1 // SPDX-License-Identifier: GPL-2.0 OR MIT
3 * Copyright (C) 2022 StarFive Technology Co., Ltd.
4 * Copyright (C) 2022 Hal Feng <hal.feng@starfivetech.com>
9 #include "jh7110-evb-pinctrl.dtsi"
31 linux,initrd-start = <0x0 0x46100000>;
32 linux,initrd-end = <0x0 0x4c000000>;
33 stdout-path = "serial0:115200";
34 #bootargs = "debug console=ttyS0 rootwait";
38 timebase-frequency = <4000000>;
42 device_type = "memory";
43 reg = <0x0 0x40000000 0x1 0x0>;
52 compatible = "shared-dma-pool";
54 size = <0x0 0x20000000>;
55 alignment = <0x0 0x1000>;
56 alloc-ranges = <0x0 0xa0000000 0x0 0x20000000>;
60 e24_mem: e24@c0000000 {
62 reg = <0x0 0xc0110000 0x0 0xf0000>;
65 xrp_reserved: xrpbuffer@f0000000 {
66 reg = <0x0 0xf0000000 0x0 0x01ffffff
67 0x0 0xf2000000 0x0 0x00001000
68 0x0 0xf2001000 0x0 0x00fff000
69 0x0 0xf3000000 0x0 0x00001000>;
76 pinctrl-names = "default";
77 pinctrl-0 = <&uart0_pins>;
82 pinctrl-names = "default";
83 pinctrl-0 = <&uart1_pins>;
88 pinctrl-names = "default";
89 pinctrl-0 = <&uart2_pins>;
94 pinctrl-names = "default";
95 pinctrl-0 = <&uart3_pins>;
100 pinctrl-names = "default";
101 pinctrl-0 = <&uart4_pins>;
106 pinctrl-names = "default";
107 pinctrl-0 = <&uart5_pins>;
128 clock-frequency = <100000>;
129 i2c-sda-hold-time-ns = <300>;
130 i2c-sda-falling-time-ns = <510>;
131 i2c-scl-falling-time-ns = <510>;
133 pinctrl-names = "default";
134 pinctrl-0 = <&i2c0_pins>;
138 compatible = "x-power,ac108_0";
140 #sound-dai-cells = <0>;
145 compatible = "wlf,wm8960";
147 #sound-dai-cells = <0>;
154 clock-frequency = <100000>;
155 i2c-sda-hold-time-ns = <300>;
156 i2c-sda-falling-time-ns = <510>;
157 i2c-scl-falling-time-ns = <510>;
159 pinctrl-names = "default";
160 pinctrl-0 = <&i2c1_pins>;
165 clock-frequency = <100000>;
166 i2c-sda-hold-time-ns = <300>;
167 i2c-sda-falling-time-ns = <510>;
168 i2c-scl-falling-time-ns = <510>;
170 pinctrl-names = "default";
171 pinctrl-0 = <&i2c2_pins>;
175 compatible = "seeed_panel";
179 panel_dsi_port: endpoint {
180 remote-endpoint = <&dsi_out_port>;
188 clock-frequency = <100000>;
189 i2c-sda-hold-time-ns = <300>;
190 i2c-sda-falling-time-ns = <510>;
191 i2c-scl-falling-time-ns = <510>;
193 pinctrl-names = "default";
194 pinctrl-0 = <&i2c3_pins>;
199 clock-frequency = <100000>;
200 i2c-sda-hold-time-ns = <300>;
201 i2c-sda-falling-time-ns = <510>;
202 i2c-scl-falling-time-ns = <510>;
204 pinctrl-names = "default";
205 pinctrl-0 = <&i2c4_pins>;
209 compatible = "smartsens,sc2235";
211 clocks = <&clk_ext_camera>;
212 clock-names = "xclk";
215 /* Parallel bus endpoint */
216 sc2235_to_parallel: endpoint {
217 remote-endpoint = <¶llel_from_sc2235>;
218 bus-type = <5>; /* Parallel */
220 data-shift = <2>; /* lines 13:6 are used */
229 compatible = "nxp,tda998x";
233 tda998x_0_input: endpoint {
234 remote-endpoint = <&hdmi_out>;
241 clock-frequency = <100000>;
242 i2c-sda-hold-time-ns = <300>;
243 i2c-sda-falling-time-ns = <510>;
244 i2c-scl-falling-time-ns = <510>;
246 pinctrl-names = "default";
247 pinctrl-0 = <&i2c5_pins>;
252 clock-frequency = <100000>;
253 i2c-sda-hold-time-ns = <300>;
254 i2c-sda-falling-time-ns = <510>;
255 i2c-scl-falling-time-ns = <510>;
257 pinctrl-names = "default";
258 pinctrl-0 = <&i2c6_pins>;
262 compatible = "ovti,ov4689";
264 clocks = <&clk_ext_camera>;
265 clock-names = "xclk";
266 //reset-gpio = <&gpio 18 0>;
270 /* Parallel bus endpoint */
271 ov4689_to_csi2rx0: endpoint {
272 remote-endpoint = <&csi2rx0_from_ov4689>;
273 bus-type = <4>; /* MIPI CSI-2 D-PHY */
275 data-lanes = <1 2 3 4>;
281 compatible = "sony,imx219";
283 clocks = <&clk_ext_camera>;
284 clock-names = "xclk";
285 //reset-gpio = <&gpio 10 0>;
286 //DOVDD-supply = <&v2v8>;
287 pinctrl-names = "default", "power_up", "power_down";
288 pinctrl-0 = <&csi_pins_default>;
289 pinctrl-1 = <&csi_pins_pwup>;
290 pinctrl-2 = <&csi_pins_pwdn>;
292 orientation = <1>; //CAMERA_ORIENTATION_BACK
295 /* CSI2 bus endpoint */
296 imx219_to_csi2rx0: endpoint {
297 remote-endpoint = <&csi2rx0_from_imx219>;
298 bus-type = <4>; /* MIPI CSI-2 D-PHY */
301 lane-polarities = <1 1 1>;
302 link-frequencies = /bits/ 64 <456000000>;
320 #address-cells = <1>;
325 #address-cells = <1>;
328 /* Parallel bus endpoint */
329 parallel_from_sc2235: endpoint@0 {
331 remote-endpoint = <&sc2235_to_parallel>;
332 bus-type = <5>; /* Parallel */
334 data-shift = <2>; /* lines 9:2 are used */
344 #address-cells = <1>;
347 /* CSI2 bus endpoint */
348 csi2rx0_from_ov4689: endpoint@0 {
350 remote-endpoint = <&ov4689_to_csi2rx0>;
351 bus-type = <4>; /* MIPI CSI-2 D-PHY */
353 data-lanes = <1 2 3 4>;
357 /* CSI2 bus endpoint */
358 csi2rx0_from_imx219: endpoint@1 {
360 remote-endpoint = <&imx219_to_csi2rx0>;
361 bus-type = <4>; /* MIPI CSI-2 D-PHY */
364 lane-polarities = <1 1 1>;
389 #address-cells = <1>;
391 phy0: ethernet-phy@0 {
393 tx_delay_sel_fe = <5>;
399 #address-cells = <1>;
402 phy1: ethernet-phy@1 {
403 rxc-skew-ps = <1060>;
404 txc-skew-ps = <1800>;
414 pinctrl-names = "default";
415 pinctrl-0 = <&can0_pins>;
420 pinctrl-names = "default";
421 pinctrl-0 = <&can1_pins>;
426 pinctrl-names = "default";
427 pinctrl-0 = <&tdm0_pins>;
432 pinctrl-names = "default";
433 pinctrl-0 = <&spdif0_pins>;
438 pinctrl-names = "default";
439 pinctrl-0 = <&pwmdac0_pins>;
448 pinctrl-names = "default";
449 pinctrl-0 = <&pdm0_pins>;
454 pinctrl-names = "default";
455 pinctrl-0 = <&i2srx_clk_pins>;
460 pinctrl-names = "default";
461 pinctrl-0 = <&i2s_clk_pins &i2srx_pins>;
470 pinctrl-names = "default";
471 pinctrl-0 = <&i2stx_pins>;
476 compatible = "linux,spdif-dit";
477 #sound-dai-cells = <0>;
482 compatible = "linux,spdif-dir";
483 #sound-dai-cells = <0>;
496 pinctrl-names = "default";
497 pinctrl-0 = <&ssp0_pins>;
501 compatible = "rohm,dh2228fv";
502 pl022,com-mode = <1>;
503 spi-max-frequency = <10000000>;
510 pinctrl-names = "default";
511 pinctrl-0 = <&ssp1_pins>;
515 compatible = "rohm,dh2228fv";
516 pl022,com-mode = <1>;
517 spi-max-frequency = <10000000>;
524 pinctrl-names = "default";
525 pinctrl-0 = <&ssp2_pins>;
529 compatible = "rohm,dh2228fv";
530 pl022,com-mode = <1>;
531 spi-max-frequency = <10000000>;
538 pinctrl-names = "default";
539 pinctrl-0 = <&ssp3_pins>;
543 compatible = "rohm,dh2228fv";
544 pl022,com-mode = <1>;
545 spi-max-frequency = <10000000>;
552 pinctrl-names = "default";
553 pinctrl-0 = <&ssp4_pins>;
557 compatible = "rohm,dh2228fv";
558 pl022,com-mode = <1>;
559 spi-max-frequency = <10000000>;
566 pinctrl-names = "default";
567 pinctrl-0 = <&ssp5_pins>;
571 compatible = "rohm,dh2228fv";
572 pl022,com-mode = <1>;
573 spi-max-frequency = <10000000>;
580 pinctrl-names = "default";
581 pinctrl-0 = <&ssp6_pins>;
585 compatible = "rohm,dh2228fv";
586 pl022,com-mode = <1>;
587 spi-max-frequency = <10000000>;
594 pinctrl-names = "perst-default", "perst-active", "power-active";
595 pinctrl-0 = <&pcie0_perst_default>;
596 pinctrl-1 = <&pcie0_perst_active>;
597 pinctrl-2 = <&pcie0_power_active>;
602 pinctrl-names = "perst-default", "perst-active", "power-active";
603 pinctrl-0 = <&pcie1_perst_default>;
604 pinctrl-1 = <&pcie1_perst_active>;
605 pinctrl-2 = <&pcie1_power_active>;
623 pinctrl-names = "default";
624 pinctrl-0 = <&inno_hdmi_pins>;
627 #address-cells = <1>;
629 hdmi_in_lcdc: endpoint@0 {
631 remote-endpoint = <&dc_out_dpi1>;
640 #address-cells = <1>;
642 dc_out_dpi0: endpoint@0 {
644 remote-endpoint = <&hdmi_input0>;
646 dc_out_dpi1: endpoint@1 {
648 remote-endpoint = <&hdmi_in_lcdc>;
651 dc_out_dpi2: endpoint@2 {
653 remote-endpoint = <&mipi_in>;
662 #address-cells = <1>;
665 #address-cells = <1>;
668 hdmi_input0:endpoint@0 {
670 remote-endpoint = <&dc_out_dpi0>;
676 remote-endpoint = <&tda998x_0_input>;
683 pinctrl-names = "default";
684 pinctrl-0 = <&rgb_pad_pins>;
692 #address-cells = <1>;
698 remote-endpoint = <&dc_out_dpi2>;
705 remote-endpoint = <&dsi_in_port>;
724 pinctrl-names = "default";
725 pinctrl-0 = <&usb_pins>;
726 dr_mode = "host"; /*host or peripheral*/