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"
10 #include "codecs/sf_hdmi.dtsi"
32 linux,initrd-start = <0x0 0x46100000>;
33 linux,initrd-end = <0x0 0x4c000000>;
34 stdout-path = "serial0:115200";
35 #bootargs = "debug console=ttyS0 rootwait";
39 timebase-frequency = <4000000>;
43 device_type = "memory";
44 reg = <0x0 0x40000000 0x1 0x0>;
53 compatible = "shared-dma-pool";
55 size = <0x0 0x20000000>;
56 alignment = <0x0 0x1000>;
57 alloc-ranges = <0x0 0x80000000 0x0 0x20000000>;
61 e24_mem: e24@c0000000 {
63 reg = <0x0 0xc0110000 0x0 0xf0000>;
66 xrp_reserved: xrpbuffer@f0000000 {
67 reg = <0x0 0xf0000000 0x0 0x01ffffff
68 0x0 0xf2000000 0x0 0x00001000
69 0x0 0xf2001000 0x0 0x00fff000
70 0x0 0xf3000000 0x0 0x00001000>;
77 pinctrl-names = "default";
78 pinctrl-0 = <&uart0_pins>;
83 pinctrl-names = "default";
84 pinctrl-0 = <&uart1_pins>;
89 pinctrl-names = "default";
90 pinctrl-0 = <&uart2_pins>;
95 pinctrl-names = "default";
96 pinctrl-0 = <&uart3_pins>;
101 pinctrl-names = "default";
102 pinctrl-0 = <&uart4_pins>;
107 pinctrl-names = "default";
108 pinctrl-0 = <&uart5_pins>;
129 clock-frequency = <100000>;
130 i2c-sda-hold-time-ns = <300>;
131 i2c-sda-falling-time-ns = <510>;
132 i2c-scl-falling-time-ns = <510>;
134 pinctrl-names = "default";
135 pinctrl-0 = <&i2c0_pins>;
139 compatible = "x-power,ac108_0";
141 #sound-dai-cells = <0>;
146 compatible = "wlf,wm8960";
148 #sound-dai-cells = <0>;
155 clock-frequency = <100000>;
156 i2c-sda-hold-time-ns = <300>;
157 i2c-sda-falling-time-ns = <510>;
158 i2c-scl-falling-time-ns = <510>;
160 pinctrl-names = "default";
161 pinctrl-0 = <&i2c1_pins>;
166 clock-frequency = <100000>;
167 i2c-sda-hold-time-ns = <300>;
168 i2c-sda-falling-time-ns = <510>;
169 i2c-scl-falling-time-ns = <510>;
171 pinctrl-names = "default";
172 pinctrl-0 = <&i2c2_pins>;
176 compatible = "seeed_panel";
180 panel_dsi_port: endpoint {
181 remote-endpoint = <&dsi_out_port>;
189 clock-frequency = <100000>;
190 i2c-sda-hold-time-ns = <300>;
191 i2c-sda-falling-time-ns = <510>;
192 i2c-scl-falling-time-ns = <510>;
194 pinctrl-names = "default";
195 pinctrl-0 = <&i2c3_pins>;
200 clock-frequency = <100000>;
201 i2c-sda-hold-time-ns = <300>;
202 i2c-sda-falling-time-ns = <510>;
203 i2c-scl-falling-time-ns = <510>;
205 pinctrl-names = "default";
206 pinctrl-0 = <&i2c4_pins>;
210 compatible = "smartsens,sc2235";
212 clocks = <&clk_ext_camera>;
213 clock-names = "xclk";
216 /* Parallel bus endpoint */
217 sc2235_to_parallel: endpoint {
218 remote-endpoint = <¶llel_from_sc2235>;
219 bus-type = <5>; /* Parallel */
221 data-shift = <2>; /* lines 13:6 are used */
230 compatible = "nxp,tda998x";
234 tda998x_0_input: endpoint {
235 remote-endpoint = <&hdmi_out>;
242 clock-frequency = <100000>;
243 i2c-sda-hold-time-ns = <300>;
244 i2c-sda-falling-time-ns = <510>;
245 i2c-scl-falling-time-ns = <510>;
247 pinctrl-names = "default";
248 pinctrl-0 = <&i2c5_pins>;
253 clock-frequency = <100000>;
254 i2c-sda-hold-time-ns = <300>;
255 i2c-sda-falling-time-ns = <510>;
256 i2c-scl-falling-time-ns = <510>;
258 pinctrl-names = "default";
259 pinctrl-0 = <&i2c6_pins>;
263 compatible = "ovti,ov4689";
265 clocks = <&clk_ext_camera>;
266 clock-names = "xclk";
267 //reset-gpio = <&gpio 18 0>;
271 /* Parallel bus endpoint */
272 ov4689_to_csi2rx0: endpoint {
273 remote-endpoint = <&csi2rx0_from_ov4689>;
274 bus-type = <4>; /* MIPI CSI-2 D-PHY */
276 data-lanes = <1 2 3 4>;
282 compatible = "sony,imx219";
284 clocks = <&clk_ext_camera>;
285 clock-names = "xclk";
286 //reset-gpio = <&gpio 10 0>;
287 //DOVDD-supply = <&v2v8>;
288 pinctrl-names = "default", "power_up", "power_down";
289 pinctrl-0 = <&csi_pins_default>;
290 pinctrl-1 = <&csi_pins_pwup>;
291 pinctrl-2 = <&csi_pins_pwdn>;
293 orientation = <1>; //CAMERA_ORIENTATION_BACK
296 /* CSI2 bus endpoint */
297 imx219_to_csi2rx0: endpoint {
298 remote-endpoint = <&csi2rx0_from_imx219>;
299 bus-type = <4>; /* MIPI CSI-2 D-PHY */
302 lane-polarities = <1 1 1>;
303 link-frequencies = /bits/ 64 <456000000>;
321 #address-cells = <1>;
326 #address-cells = <1>;
329 /* Parallel bus endpoint */
330 parallel_from_sc2235: endpoint@0 {
332 remote-endpoint = <&sc2235_to_parallel>;
333 bus-type = <5>; /* Parallel */
335 data-shift = <2>; /* lines 9:2 are used */
345 #address-cells = <1>;
348 /* CSI2 bus endpoint */
349 csi2rx0_from_ov4689: endpoint@0 {
351 remote-endpoint = <&ov4689_to_csi2rx0>;
352 bus-type = <4>; /* MIPI CSI-2 D-PHY */
354 data-lanes = <1 2 3 4>;
358 /* CSI2 bus endpoint */
359 csi2rx0_from_imx219: endpoint@1 {
361 remote-endpoint = <&imx219_to_csi2rx0>;
362 bus-type = <4>; /* MIPI CSI-2 D-PHY */
365 lane-polarities = <1 1 1>;
390 #address-cells = <1>;
392 phy0: ethernet-phy@0 {
394 tx_delay_sel_fe = <5>;
400 #address-cells = <1>;
403 phy1: ethernet-phy@1 {
404 rxc-skew-ps = <1060>;
405 txc-skew-ps = <1800>;
415 pinctrl-names = "default";
416 pinctrl-0 = <&can0_pins>;
421 pinctrl-names = "default";
422 pinctrl-0 = <&can1_pins>;
427 pinctrl-names = "default";
428 pinctrl-0 = <&tdm0_pins>;
433 pinctrl-names = "default";
434 pinctrl-0 = <&spdif0_pins>;
439 pinctrl-names = "default";
440 pinctrl-0 = <&pwmdac0_pins>;
449 pinctrl-names = "default";
450 pinctrl-0 = <&pdm0_pins>;
455 pinctrl-names = "default";
456 pinctrl-0 = <&i2srx_clk_pins>;
461 pinctrl-names = "default";
462 pinctrl-0 = <&i2s_clk_pins &i2srx_pins>;
467 pinctrl-names = "default";
468 pinctrl-0 = <&mclk_ext_pins>;
473 pinctrl-names = "default";
474 pinctrl-0 = <&i2stx_pins>;
491 pinctrl-names = "default";
492 pinctrl-0 = <&ssp0_pins>;
496 compatible = "rohm,dh2228fv";
497 pl022,com-mode = <1>;
498 spi-max-frequency = <10000000>;
505 pinctrl-names = "default";
506 pinctrl-0 = <&ssp1_pins>;
510 compatible = "rohm,dh2228fv";
511 pl022,com-mode = <1>;
512 spi-max-frequency = <10000000>;
519 pinctrl-names = "default";
520 pinctrl-0 = <&ssp2_pins>;
524 compatible = "rohm,dh2228fv";
525 pl022,com-mode = <1>;
526 spi-max-frequency = <10000000>;
533 pinctrl-names = "default";
534 pinctrl-0 = <&ssp3_pins>;
538 compatible = "rohm,dh2228fv";
539 pl022,com-mode = <1>;
540 spi-max-frequency = <10000000>;
547 pinctrl-names = "default";
548 pinctrl-0 = <&ssp4_pins>;
552 compatible = "rohm,dh2228fv";
553 pl022,com-mode = <1>;
554 spi-max-frequency = <10000000>;
561 pinctrl-names = "default";
562 pinctrl-0 = <&ssp5_pins>;
566 compatible = "rohm,dh2228fv";
567 pl022,com-mode = <1>;
568 spi-max-frequency = <10000000>;
575 pinctrl-names = "default";
576 pinctrl-0 = <&ssp6_pins>;
580 compatible = "rohm,dh2228fv";
581 pl022,com-mode = <1>;
582 spi-max-frequency = <10000000>;
589 pinctrl-names = "perst-default", "perst-active", "power-active";
590 pinctrl-0 = <&pcie0_perst_default>;
591 pinctrl-1 = <&pcie0_perst_active>;
592 pinctrl-2 = <&pcie0_power_active>;
597 pinctrl-names = "perst-default", "perst-active", "power-active";
598 pinctrl-0 = <&pcie1_perst_default>;
599 pinctrl-1 = <&pcie1_perst_active>;
600 pinctrl-2 = <&pcie1_power_active>;
618 pinctrl-names = "default";
619 pinctrl-0 = <&inno_hdmi_pins>;
622 #address-cells = <1>;
624 hdmi_in_lcdc: endpoint@0 {
626 remote-endpoint = <&dc_out_dpi1>;
635 #address-cells = <1>;
637 dc_out_dpi0: endpoint@0 {
639 remote-endpoint = <&hdmi_input0>;
641 dc_out_dpi1: endpoint@1 {
643 remote-endpoint = <&hdmi_in_lcdc>;
646 dc_out_dpi2: endpoint@2 {
648 remote-endpoint = <&mipi_in>;
657 #address-cells = <1>;
660 #address-cells = <1>;
663 hdmi_input0:endpoint@0 {
665 remote-endpoint = <&dc_out_dpi0>;
671 remote-endpoint = <&tda998x_0_input>;
678 pinctrl-names = "default";
679 pinctrl-0 = <&rgb_pad_pins>;
687 #address-cells = <1>;
693 remote-endpoint = <&dc_out_dpi2>;
700 remote-endpoint = <&dsi_in_port>;
719 pinctrl-names = "default";
720 pinctrl-0 = <&usb_pins>;
721 dr_mode = "host"; /*host or peripheral*/