1 // SPDX-License-Identifier: GPL-2.0
5 #include <dt-bindings/clock/ingenic,tcu.h>
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/regulator/active-semi,8865-regulator.h>
12 compatible = "img,ci20", "ingenic,jz4780";
26 device_type = "memory";
28 0x30000000 0x30000000>;
32 compatible = "gpio-keys";
36 linux,code = <KEY_F13>;
37 gpios = <&gpd 17 GPIO_ACTIVE_HIGH>;
43 compatible = "gpio-leds";
46 label = "ci20:red:led0";
47 gpios = <&gpc 3 GPIO_ACTIVE_HIGH>;
48 linux,default-trigger = "none";
52 label = "ci20:red:led1";
53 gpios = <&gpc 2 GPIO_ACTIVE_HIGH>;
54 linux,default-trigger = "nand-disk";
58 label = "ci20:red:led2";
59 gpios = <&gpc 1 GPIO_ACTIVE_HIGH>;
60 linux,default-trigger = "cpu1";
64 label = "ci20:red:led3";
65 gpios = <&gpc 0 GPIO_ACTIVE_HIGH>;
66 linux,default-trigger = "cpu0";
70 eth0_power: fixedregulator@0 {
71 compatible = "regulator-fixed";
73 regulator-name = "eth0_power";
74 regulator-min-microvolt = <3300000>;
75 regulator-max-microvolt = <3300000>;
77 gpio = <&gpb 25 GPIO_ACTIVE_LOW>;
82 compatible = "gpio-ir-receiver";
83 gpios = <&gpe 3 GPIO_ACTIVE_LOW>;
86 wlan0_power: fixedregulator@1 {
87 compatible = "regulator-fixed";
89 regulator-name = "wlan0_power";
91 gpio = <&gpb 19 GPIO_ACTIVE_LOW>;
95 otg_power: fixedregulator@2 {
96 compatible = "regulator-fixed";
98 regulator-name = "otg_power";
99 regulator-min-microvolt = <5000000>;
100 regulator-max-microvolt = <5000000>;
102 gpio = <&gpf 14 GPIO_ACTIVE_LOW>;
108 clock-frequency = <48000000>;
113 * Use the 32.768 kHz oscillator as the parent of the RTC for a higher
116 assigned-clocks = <&cgu JZ4780_CLK_OTGPHY>, <&cgu JZ4780_CLK_RTC>;
117 assigned-clock-parents = <0>, <&cgu JZ4780_CLK_RTCLK>;
118 assigned-clock-rates = <48000000>;
125 max-frequency = <50000000>;
127 pinctrl-names = "default";
128 pinctrl-0 = <&pins_mmc0>;
130 cd-gpios = <&gpf 20 GPIO_ACTIVE_LOW>;
137 max-frequency = <50000000>;
140 pinctrl-names = "default";
141 pinctrl-0 = <&pins_mmc1>;
145 compatible = "brcm,bcm4330-fmac";
146 vcc-supply = <&wlan0_power>;
147 device-wakeup-gpios = <&gpd 9 GPIO_ACTIVE_HIGH>;
148 shutdown-gpios = <&gpf 7 GPIO_ACTIVE_LOW>;
155 pinctrl-names = "default";
156 pinctrl-0 = <&pins_uart0>;
162 pinctrl-names = "default";
163 pinctrl-0 = <&pins_uart1>;
169 pinctrl-names = "default";
170 pinctrl-0 = <&pins_uart2>;
174 compatible = "brcm,bcm4330-bt";
175 reset-gpios = <&gpf 8 GPIO_ACTIVE_HIGH>;
176 vcc-supply = <&wlan0_power>;
177 device-wakeup-gpios = <&gpf 5 GPIO_ACTIVE_HIGH>;
178 host-wakeup-gpios = <&gpf 6 GPIO_ACTIVE_HIGH>;
179 shutdown-gpios = <&gpf 4 GPIO_ACTIVE_LOW>;
186 pinctrl-names = "default";
187 pinctrl-0 = <&pins_uart3>;
193 pinctrl-names = "default";
194 pinctrl-0 = <&pins_uart4>;
200 pinctrl-names = "default";
201 pinctrl-0 = <&pins_i2c0>;
203 clock-frequency = <400000>;
205 act8600: act8600@5a {
206 compatible = "active-semi,act8600";
212 regulator-name = "DCDC_REG1";
213 regulator-min-microvolt = <1100000>;
214 regulator-max-microvolt = <1100000>;
218 regulator-name = "DCDC_REG2";
219 regulator-min-microvolt = <1500000>;
220 regulator-max-microvolt = <1500000>;
224 regulator-name = "DCDC_REG3";
225 regulator-min-microvolt = <3300000>;
226 regulator-max-microvolt = <3300000>;
230 regulator-name = "SUDCDC_REG4";
231 regulator-min-microvolt = <5000000>;
232 regulator-max-microvolt = <5000000>;
236 regulator-name = "LDO_REG5";
237 regulator-min-microvolt = <2500000>;
238 regulator-max-microvolt = <2500000>;
242 regulator-name = "LDO_REG6";
243 regulator-min-microvolt = <2500000>;
244 regulator-max-microvolt = <2500000>;
248 regulator-name = "LDO_REG7";
249 regulator-min-microvolt = <2800000>;
250 regulator-max-microvolt = <2800000>;
254 regulator-name = "LDO_REG8";
255 regulator-min-microvolt = <1500000>;
256 regulator-max-microvolt = <1500000>;
260 regulator-name = "LDO_REG9";
261 /* Despite the datasheet stating 3.3V
262 * for REG9 and the driver expecting that,
264 * Likely the CI20 uses a proprietary
265 * factory programmed chip variant.
266 * Since this is a simple on/off LDO the
267 * exact values do not matter.
269 regulator-min-microvolt = <3300000>;
270 regulator-max-microvolt = <3300000>;
274 regulator-name = "LDO_REG10";
275 regulator-min-microvolt = <1200000>;
276 regulator-max-microvolt = <1200000>;
286 pinctrl-names = "default";
287 pinctrl-0 = <&pins_i2c1>;
294 pinctrl-names = "default";
295 pinctrl-0 = <&pins_i2c2>;
302 pinctrl-names = "default";
303 pinctrl-0 = <&pins_i2c3>;
310 pinctrl-names = "default";
311 pinctrl-0 = <&pins_i2c4>;
313 clock-frequency = <400000>;
316 compatible = "nxp,pcf8563";
319 interrupt-parent = <&gpf>;
320 interrupts = <30 IRQ_TYPE_LEVEL_LOW>;
327 nandc: nand-controller@1 {
328 compatible = "ingenic,jz4780-nand";
329 reg = <1 0 0x1000000>;
331 #address-cells = <1>;
334 ingenic,bch-controller = <&bch>;
336 ingenic,nemc-tAS = <10>;
337 ingenic,nemc-tAH = <5>;
338 ingenic,nemc-tBP = <10>;
339 ingenic,nemc-tAW = <15>;
340 ingenic,nemc-tSTRV = <100>;
343 * Only CLE/ALE are needed for the devices that are connected, rather
344 * than the full address line set.
346 pinctrl-names = "default";
347 pinctrl-0 = <&pins_nemc>;
352 nand-ecc-step-size = <1024>;
353 nand-ecc-strength = <24>;
354 nand-ecc-mode = "hw";
357 pinctrl-names = "default";
358 pinctrl-0 = <&pins_nemc_cs1>;
361 compatible = "fixed-partitions";
362 #address-cells = <2>;
366 label = "u-boot-spl";
367 reg = <0x0 0x0 0x0 0x800000>;
372 reg = <0x0 0x800000 0x0 0x200000>;
376 label = "u-boot-env";
377 reg = <0x0 0xa00000 0x0 0x200000>;
382 reg = <0x0 0xc00000 0x0 0x4000000>;
387 reg = <0x0 0x4c00000 0x1 0xfb400000>;
394 compatible = "davicom,dm9000";
397 pinctrl-names = "default";
398 pinctrl-0 = <&pins_nemc_cs6>;
400 reg = <6 0 1 /* addr */
403 ingenic,nemc-tAS = <15>;
404 ingenic,nemc-tAH = <10>;
405 ingenic,nemc-tBP = <20>;
406 ingenic,nemc-tAW = <50>;
407 ingenic,nemc-tSTRV = <100>;
409 reset-gpios = <&gpf 12 GPIO_ACTIVE_HIGH>;
410 vcc-supply = <ð0_power>;
412 interrupt-parent = <&gpe>;
415 nvmem-cells = <ð0_addr>;
416 nvmem-cell-names = "mac-address";
427 vcc-supply = <&otg_power>;
437 groups = "uart0-data";
443 groups = "uart1-data";
449 groups = "uart2-data", "uart2-hwflow";
455 groups = "uart3-data", "uart3-hwflow";
461 groups = "uart4-data";
467 groups = "i2c0-data";
473 groups = "i2c1-data";
479 groups = "i2c2-data";
485 groups = "i2c3-data";
491 groups = "i2c4-data-e";
497 groups = "nemc-data", "nemc-cle-ale", "nemc-rd-we", "nemc-frd-fwe";
501 pins_nemc_cs1: nemc-cs1 {
502 function = "nemc-cs1";
507 pins_nemc_cs6: nemc-cs6 {
508 function = "nemc-cs6";
515 groups = "mmc0-1bit-e", "mmc0-4bit-e";
521 groups = "mmc1-1bit-d", "mmc1-4bit-d";
528 * 750 kHz for the system timer and 3 MHz for the clocksource,
529 * use channel #0 for the system timer, #1 for the clocksource.
531 assigned-clocks = <&tcu TCU_CLK_TIMER0>, <&tcu TCU_CLK_TIMER1>,
533 assigned-clock-rates = <750000>, <3000000>, <3000000>;