1 // SPDX-License-Identifier: GPL-2.0
5 #include <dt-bindings/clock/ingenic,tcu.h>
6 #include <dt-bindings/gpio/gpio.h>
9 compatible = "img,ci20", "ingenic,jz4780";
23 device_type = "memory";
25 0x30000000 0x30000000>;
28 eth0_power: fixedregulator@0 {
29 compatible = "regulator-fixed";
30 regulator-name = "eth0_power";
31 gpio = <&gpb 25 GPIO_ACTIVE_LOW>;
37 clock-frequency = <48000000>;
44 max-frequency = <50000000>;
46 pinctrl-names = "default";
47 pinctrl-0 = <&pins_mmc0>;
49 cd-gpios = <&gpf 20 GPIO_ACTIVE_LOW>;
56 max-frequency = <50000000>;
58 pinctrl-names = "default";
59 pinctrl-0 = <&pins_mmc1>;
65 pinctrl-names = "default";
66 pinctrl-0 = <&pins_uart0>;
72 pinctrl-names = "default";
73 pinctrl-0 = <&pins_uart1>;
79 pinctrl-names = "default";
80 pinctrl-0 = <&pins_uart3>;
86 pinctrl-names = "default";
87 pinctrl-0 = <&pins_uart4>;
93 nandc: nand-controller@1 {
94 compatible = "ingenic,jz4780-nand";
95 reg = <1 0 0x1000000>;
100 ingenic,bch-controller = <&bch>;
102 ingenic,nemc-tAS = <10>;
103 ingenic,nemc-tAH = <5>;
104 ingenic,nemc-tBP = <10>;
105 ingenic,nemc-tAW = <15>;
106 ingenic,nemc-tSTRV = <100>;
109 * Only CLE/ALE are needed for the devices that are connected, rather
110 * than the full address line set.
112 pinctrl-names = "default";
113 pinctrl-0 = <&pins_nemc>;
118 nand-ecc-step-size = <1024>;
119 nand-ecc-strength = <24>;
120 nand-ecc-mode = "hw";
123 pinctrl-names = "default";
124 pinctrl-0 = <&pins_nemc_cs1>;
127 compatible = "fixed-partitions";
128 #address-cells = <2>;
132 label = "u-boot-spl";
133 reg = <0x0 0x0 0x0 0x800000>;
138 reg = <0x0 0x800000 0x0 0x200000>;
142 label = "u-boot-env";
143 reg = <0x0 0xa00000 0x0 0x200000>;
148 reg = <0x0 0xc00000 0x0 0x4000000>;
153 reg = <0x0 0x4c00000 0x1 0xfb400000>;
160 compatible = "davicom,dm9000";
163 pinctrl-names = "default";
164 pinctrl-0 = <&pins_nemc_cs6>;
166 reg = <6 0 1 /* addr */
169 ingenic,nemc-tAS = <15>;
170 ingenic,nemc-tAH = <10>;
171 ingenic,nemc-tBP = <20>;
172 ingenic,nemc-tAW = <50>;
173 ingenic,nemc-tSTRV = <100>;
175 reset-gpios = <&gpf 12 GPIO_ACTIVE_HIGH>;
176 vcc-supply = <ð0_power>;
178 interrupt-parent = <&gpe>;
190 groups = "uart0-data";
196 groups = "uart1-data";
202 groups = "uart3-data", "uart3-hwflow";
208 groups = "uart4-data";
214 groups = "nemc-data", "nemc-cle-ale", "nemc-rd-we", "nemc-frd-fwe";
218 pins_nemc_cs1: nemc-cs1 {
219 function = "nemc-cs1";
224 pins_nemc_cs6: nemc-cs6 {
225 function = "nemc-cs6";
232 groups = "mmc0-1bit-e", "mmc0-4bit-e";
238 groups = "mmc1-1bit-d", "mmc1-4bit-d";
244 /* 3 MHz for the system timer and clocksource */
245 assigned-clocks = <&tcu TCU_CLK_TIMER0>, <&tcu TCU_CLK_TIMER1>;
246 assigned-clock-rates = <3000000>, <3000000>;