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_pinctrl.dtsi"
24 linux,initrd-start = <0x0 0x46100000>;
25 linux,initrd-end = <0x0 0x4c000000>;
26 stdout-path = "serial0:115200";
27 #bootargs = "debug console=ttyS0 rootwait";
31 timebase-frequency = <4000000>;
35 device_type = "memory";
36 reg = <0x0 0x40000000 0x1 0x0>;
45 compatible = "shared-dma-pool";
47 size = <0x0 0x20000000>;
48 alignment = <0x0 0x1000>;
49 alloc-ranges = <0x0 0xa0000000 0x0 0x20000000>;
53 e24_mem: e24@c0000000 {
55 reg = <0x0 0xc0110000 0x0 0xf0000>;
58 xrp_reserved: xrpbuffer@f0000000 {
59 reg = <0x0 0xf0000000 0x0 0x01ffffff
60 0x0 0xf2000000 0x0 0x00001000
61 0x0 0xf2001000 0x0 0x00fff000
62 0x0 0xf3000000 0x0 0x00001000>;
69 pinctrl-names = "default";
70 pinctrl-0 = <&uart0_pins>;
75 pinctrl-names = "default";
76 pinctrl-0 = <&uart3_pins>;
89 clock-frequency = <100000>;
90 i2c-sda-hold-time-ns = <300>;
91 i2c-sda-falling-time-ns = <3000>;
92 i2c-scl-falling-time-ns = <3000>;
94 pinctrl-names = "default";
95 pinctrl-0 = <&i2c0_pins>;
99 compatible = "x-power,ac108_0";
101 #sound-dai-cells = <0>;
106 compatible = "wlf,wm8960";
108 #sound-dai-cells = <0>;
115 clock-frequency = <100000>;
116 i2c-sda-hold-time-ns = <300>;
117 i2c-sda-falling-time-ns = <3000>;
118 i2c-scl-falling-time-ns = <3000>;
120 pinctrl-names = "default";
121 pinctrl-0 = <&i2c1_pins>;
127 clock-frequency = <100000>;
128 i2c-sda-hold-time-ns = <300>;
129 i2c-sda-falling-time-ns = <3000>;
130 i2c-scl-falling-time-ns = <3000>;
132 pinctrl-names = "default";
133 pinctrl-0 = <&i2c2_pins>;
138 clock-frequency = <100000>;
139 i2c-sda-hold-time-ns = <300>;
140 i2c-sda-falling-time-ns = <3000>;
141 i2c-scl-falling-time-ns = <3000>;
143 pinctrl-names = "default";
144 pinctrl-0 = <&i2c3_pins>;
148 compatible = "nxp,tda998x";
152 tda998x_0_input: endpoint {
153 remote-endpoint = <&hdmi_out>;
160 clock-frequency = <100000>;
161 i2c-sda-hold-time-ns = <300>;
162 i2c-sda-falling-time-ns = <3000>;
163 i2c-scl-falling-time-ns = <3000>;
165 pinctrl-names = "default";
166 pinctrl-0 = <&i2c4_pins>;
170 compatible = "ovti,ov5640";
172 clocks = <&clk_ext_camera>;
173 clock-names = "xclk";
174 //DOVDD-supply = <&v2v8>;
177 // Parallel bus endpoint
178 ov5640_to_parallel: endpoint {
179 remote-endpoint = <¶llel_from_ov5640>;
180 bus-type = <5>; /* Parallel */
182 data-shift = <2>; /* lines 13:6 are used */
191 compatible = "sc2235";
193 clocks = <&clk_ext_camera>;
194 clock-names = "xclk";
197 /* Parallel bus endpoint */
198 sc2235_to_parallel: endpoint {
199 remote-endpoint = <¶llel_from_sc2235>;
200 bus-type = <5>; /* Parallel */
202 data-shift = <2>; /* lines 13:6 are used */
212 clock-frequency = <100000>;
213 i2c-sda-hold-time-ns = <300>;
214 i2c-sda-falling-time-ns = <3000>;
215 i2c-scl-falling-time-ns = <3000>;
217 pinctrl-names = "default";
218 pinctrl-0 = <&i2c5_pins>;
222 compatible = "starfive,pmic";
228 clock-frequency = <100000>;
229 i2c-sda-hold-time-ns = <300>;
230 i2c-sda-falling-time-ns = <3000>;
231 i2c-scl-falling-time-ns = <3000>;
233 pinctrl-names = "default";
234 pinctrl-0 = <&i2c6_pins>;
238 compatible = "ovti,ov4689";
240 clocks = <&clk_ext_camera>;
241 clock-names = "xclk";
242 //reset-gpio = <&gpio 18 0>;
246 /* Parallel bus endpoint */
247 ov4689_to_csi2rx0: endpoint {
248 remote-endpoint = <&csi2rx0_from_ov4689>;
249 bus-type = <4>; /* MIPI CSI-2 D-PHY */
251 data-lanes = <1 2 3 4>;
257 compatible = "ovti,ov13850";
259 clocks = <&clk_ext_camera>;
260 clock-names = "xclk";
261 //reset-gpio = <&gpio 18 0>;
265 /* CSI2 bus endpoint */
266 ov13850_to_csi2rx0: endpoint {
267 remote-endpoint = <&csi2rx0_from_ov13850>;
268 bus-type = <4>; /* MIPI CSI-2 D-PHY */
275 /* default sd card */
277 clock-frequency = <102400000>;
278 max-frequency = <200000000>;
279 card-detect-delay = <300>;
283 post-power-on-delay-ms = <200>;
284 pinctrl-names = "default";
285 pinctrl-0 = <&sdcard0_pins>;
286 //cd-gpios = <&gpio 23 0>;
291 clock-frequency = <4000000>;
292 max-frequency = <1000000>;
293 card-detect-delay = <300>;
300 keep-power-in-suspend;
302 post-power-on-delay-ms = <200>;
303 pinctrl-names = "default";
304 pinctrl-0 = <&mmc1_pins>;
309 /* when use dvp open this pinctrl*/
310 //pinctrl-names = "default";
311 //pinctrl-0 = <&dvp_pins>;
315 #address-cells = <1>;
320 #address-cells = <1>;
323 /* Parallel bus endpoint */
324 parallel_from_ov5640: endpoint@0 {
326 remote-endpoint = <&ov5640_to_parallel>;
327 bus-type = <5>; /* Parallel */
329 data-shift = <2>; /* lines 9:2 are used */
336 /* Parallel bus endpoint */
337 parallel_from_sc2235: endpoint@1 {
339 remote-endpoint = <&sc2235_to_parallel>;
340 bus-type = <5>; /* Parallel */
342 data-shift = <2>; /* lines 9:2 are used */
352 #address-cells = <1>;
355 /* CSI2 bus endpoint */
356 csi2rx0_from_ov13850: endpoint@0 {
358 remote-endpoint = <&ov13850_to_csi2rx0>;
359 bus-type = <4>; /* MIPI CSI-2 D-PHY */
361 data-lanes = <1 2 3 4>;
365 /* CSI2 bus endpoint */
366 csi2rx0_from_ov4689: endpoint@1 {
368 remote-endpoint = <&ov4689_to_csi2rx0>;
369 bus-type = <4>; /* MIPI CSI-2 D-PHY */
371 data-lanes = <1 2 3 4>;
399 #address-cells = <1>;
402 phy0: ethernet-phy@0 {
403 rxc-skew-ps = <1060>;
404 txc-skew-ps = <1800>;
414 pinctrl-names = "default";
415 pinctrl-0 = <&can0_pins>;
424 pinctrl-names = "default";
425 pinctrl-0 = <&tdm0_pins>;
434 pinctrl-names = "default";
435 pinctrl-0 = <&pwmdac0_pins>;
444 pinctrl-names = "default";
445 pinctrl-0 = <&pdm0_pins>;
450 pinctrl-names = "default";
451 pinctrl-0 = <&i2s_clk_pins>;
460 pinctrl-names = "default";
461 pinctrl-0 = <&i2s_clk_pins &i2stx_pins>;
466 pinctrl-names = "default";
467 pinctrl-0 = <&pwm_ch0_pins>;
488 pinctrl-names = "default";
489 pinctrl-0 = <&ssp0_pins>;
493 compatible = "rohm,dh2228fv";
494 pl022,com-mode = <1>;
495 spi-max-frequency = <10000000>;
502 pinctrl-names = "default";
503 pinctrl-0 = <&ssp1_pins>;
507 compatible = "rohm,dh2228fv";
508 pl022,com-mode = <1>;
509 spi-max-frequency = <10000000>;
516 pinctrl-names = "default";
517 pinctrl-0 = <&ssp2_pins>;
521 compatible = "rohm,dh2228fv";
522 pl022,com-mode = <1>;
523 spi-max-frequency = <10000000>;
530 pinctrl-names = "default";
531 pinctrl-0 = <&ssp3_pins>;
535 compatible = "rohm,dh2228fv";
536 pl022,com-mode = <1>;
537 spi-max-frequency = <10000000>;
544 pinctrl-names = "default";
545 pinctrl-0 = <&ssp4_pins>;
549 compatible = "rohm,dh2228fv";
550 pl022,com-mode = <1>;
551 spi-max-frequency = <10000000>;
558 pinctrl-names = "default";
559 pinctrl-0 = <&ssp5_pins>;
563 compatible = "rohm,dh2228fv";
564 pl022,com-mode = <1>;
565 spi-max-frequency = <10000000>;
572 pinctrl-names = "default";
573 pinctrl-0 = <&ssp6_pins>;
577 compatible = "rohm,dh2228fv";
578 pl022,com-mode = <1>;
579 spi-max-frequency = <10000000>;
586 pinctrl-names = "perst-default", "perst-active", "power-active";
587 pinctrl-0 = <&pcie0_perst_default>;
588 pinctrl-1 = <&pcie0_perst_active>;
589 pinctrl-2 = <&pcie0_power_active>;
594 pinctrl-names = "perst-default", "perst-active", "power-active";
595 pinctrl-0 = <&pcie1_perst_default>;
596 pinctrl-1 = <&pcie1_perst_active>;
597 pinctrl-2 = <&pcie1_power_active>;
615 pinctrl-names = "default";
616 pinctrl-0 = <&inno_hdmi_pins>;
619 #address-cells = <1>;
621 hdmi_in_lcdc: endpoint@0 {
623 remote-endpoint = <&dc_out_dpi1>;
629 //pinctrl-names = "default";
630 //pinctrl-0 = <&rgb_pad_pins>;
634 #address-cells = <1>;
636 dc_out_dpi0: endpoint@0 {
638 remote-endpoint = <&hdmi_input0>;
640 dc_out_dpi1: endpoint@1 {
642 remote-endpoint = <&hdmi_in_lcdc>;
651 #address-cells = <1>;
654 #address-cells = <1>;
657 hdmi_input0:endpoint@0 {
659 remote-endpoint = <&dc_out_dpi0>;
665 remote-endpoint = <&tda998x_0_input>;
676 pinctrl-names = "default";
677 pinctrl-0 = <&usb_pins>;
678 dr_mode = "host"; /*host or peripheral*/