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>;
82 compatible = "hdmi-connector";
86 ddc-en-gpios = <&gpa 25 GPIO_ACTIVE_HIGH>;
90 remote-endpoint = <&dw_hdmi_out>;
96 compatible = "gpio-ir-receiver";
97 gpios = <&gpe 3 GPIO_ACTIVE_LOW>;
100 bt_power: fixedregulator-1 {
101 compatible = "regulator-fixed";
103 regulator-name = "bt_power";
104 regulator-min-microvolt = <3300000>;
105 regulator-max-microvolt = <3300000>;
106 regulator-settling-time-us = <1400>;
108 vin-supply = <&vcc_50>;
114 otg_power: fixedregulator-2 {
115 compatible = "regulator-fixed";
117 regulator-name = "otg_power";
118 regulator-min-microvolt = <5000000>;
119 regulator-max-microvolt = <5000000>;
125 wifi_power: fixedregulator-4 {
126 compatible = "regulator-fixed";
128 regulator-name = "wifi_power";
131 * Technically it's 5V, the WiFi chip has its own internal
132 * regulators; but the MMC/SD subsystem won't accept such a
135 regulator-min-microvolt = <3300000>;
136 regulator-max-microvolt = <3300000>;
137 regulator-settling-time-us = <150000>;
139 vin-supply = <&bt_power>;
142 vcc_33v: fixedregulator-5 {
143 compatible = "regulator-fixed";
145 regulator-name = "vcc_33v";
146 regulator-min-microvolt = <3300000>;
147 regulator-max-microvolt = <3300000>;
151 wifi_pwrseq: pwrseq {
152 compatible = "mmc-pwrseq-simple";
153 reset-gpios = <&gpf 7 GPIO_ACTIVE_LOW>;
156 clock-names = "ext_clock";
161 clock-frequency = <48000000>;
166 * Use the 32.768 kHz oscillator as the parent of the RTC for a higher
169 assigned-clocks = <&cgu JZ4780_CLK_OTGPHY>, <&cgu JZ4780_CLK_RTC>,
170 <&cgu JZ4780_CLK_SSIPLL>, <&cgu JZ4780_CLK_SSI>,
171 <&cgu JZ4780_CLK_HDMI>, <&cgu JZ4780_CLK_MSCMUX>;
172 assigned-clock-parents = <0>, <&cgu JZ4780_CLK_RTCLK>,
173 <&cgu JZ4780_CLK_MPLL>,
174 <&cgu JZ4780_CLK_SSIPLL>,
175 <0>, <&cgu JZ4780_CLK_MPLL>;
176 assigned-clock-rates = <48000000>, <0>, <54000000>, <0>, <27000000>;
181 * 750 kHz for the system timers and clocksource,
182 * use channel #0 and #1 for the per cpu system timers,
183 * and use channel #2 for the clocksource.
185 * 3000 kHz for the OST timer to provide a higher
186 * precision clocksource.
188 assigned-clocks = <&tcu TCU_CLK_TIMER0>, <&tcu TCU_CLK_TIMER1>,
189 <&tcu TCU_CLK_TIMER2>, <&tcu TCU_CLK_OST>;
190 assigned-clock-rates = <750000>, <750000>, <750000>, <3000000>;
197 max-frequency = <50000000>;
199 pinctrl-names = "default";
200 pinctrl-0 = <&pins_mmc0>;
202 cd-gpios = <&gpf 20 GPIO_ACTIVE_LOW>;
203 vmmc-supply = <&vcc_33v>;
204 vqmmc-supply = <&vcc_33v>;
211 max-frequency = <25000000>;
212 mmc-pwrseq = <&wifi_pwrseq>;
213 vmmc-supply = <&wifi_power>;
214 vqmmc-supply = <&wifi_io>;
217 pinctrl-names = "default";
218 pinctrl-0 = <&pins_mmc1>;
220 #address-cells = <1>;
224 compatible = "brcm,bcm4329-fmac";
227 interrupt-parent = <&gpd>;
228 interrupts = <9 IRQ_TYPE_EDGE_FALLING>;
229 interrupt-names = "host-wake";
236 pinctrl-names = "default";
237 pinctrl-0 = <&pins_uart0>;
243 pinctrl-names = "default";
244 pinctrl-0 = <&pins_uart1>;
250 pinctrl-names = "default";
251 pinctrl-0 = <&pins_uart2>;
255 compatible = "brcm,bcm4330-bt";
257 vbat-supply = <&bt_power>;
258 vddio-supply = <&wifi_io>;
260 interrupt-parent = <&gpf>;
261 interrupts = <6 IRQ_TYPE_EDGE_RISING>;
262 interrupt-names = "host-wakeup";
267 reset-gpios = <&gpf 8 GPIO_ACTIVE_LOW>;
268 device-wakeup-gpios = <&gpf 5 GPIO_ACTIVE_HIGH>;
269 shutdown-gpios = <&gpf 4 GPIO_ACTIVE_HIGH>;
276 pinctrl-names = "default";
277 pinctrl-0 = <&pins_uart3>;
283 pinctrl-names = "default";
284 pinctrl-0 = <&pins_uart4>;
290 pinctrl-names = "default";
291 pinctrl-0 = <&pins_i2c0>;
293 clock-frequency = <400000>;
295 act8600: act8600@5a {
296 compatible = "active-semi,act8600";
301 regulator-min-microvolt = <1125000>;
302 regulator-max-microvolt = <1125000>;
303 vp1-supply = <&vcc_33v>;
307 regulator-min-microvolt = <1500000>;
308 regulator-max-microvolt = <1500000>;
309 vp2-supply = <&vcc_33v>;
313 regulator-min-microvolt = <3300000>;
314 regulator-max-microvolt = <3300000>;
315 vp3-supply = <&vcc_33v>;
318 vcc_50: SUDCDC_REG4 {
319 regulator-min-microvolt = <5000000>;
320 regulator-max-microvolt = <5000000>;
324 regulator-min-microvolt = <2500000>;
325 regulator-max-microvolt = <2500000>;
326 inl-supply = <&vcc_33v>;
330 regulator-min-microvolt = <1800000>;
331 regulator-max-microvolt = <1800000>;
332 regulator-settling-time-us = <150000>;
333 inl-supply = <&vcc_33v>;
336 regulator-min-microvolt = <2800000>;
337 regulator-max-microvolt = <2800000>;
338 inl-supply = <&vcc_33v>;
341 regulator-min-microvolt = <1500000>;
342 regulator-max-microvolt = <1500000>;
343 inl-supply = <&vcc_33v>;
346 /* Despite the datasheet stating 3.3V
347 * for REG9 and the driver expecting that,
349 * Likely the CI20 uses a proprietary
350 * factory programmed chip variant.
351 * Since this is a simple on/off LDO the
352 * exact values do not matter.
354 regulator-min-microvolt = <3300000>;
355 regulator-max-microvolt = <3300000>;
359 regulator-min-microvolt = <1200000>;
360 regulator-max-microvolt = <1200000>;
370 pinctrl-names = "default";
371 pinctrl-0 = <&pins_i2c1>;
378 pinctrl-names = "default";
379 pinctrl-0 = <&pins_i2c2>;
386 pinctrl-names = "default";
387 pinctrl-0 = <&pins_i2c3>;
394 pinctrl-names = "default";
395 pinctrl-0 = <&pins_i2c4>;
397 clock-frequency = <400000>;
400 compatible = "nxp,pcf8563";
403 interrupt-parent = <&gpf>;
404 interrupts = <30 IRQ_TYPE_LEVEL_LOW>;
411 nandc: nand-controller@1 {
412 compatible = "ingenic,jz4780-nand";
413 reg = <1 0 0x1000000>;
415 #address-cells = <1>;
420 ingenic,nemc-tAS = <10>;
421 ingenic,nemc-tAH = <5>;
422 ingenic,nemc-tBP = <10>;
423 ingenic,nemc-tAW = <15>;
424 ingenic,nemc-tSTRV = <100>;
427 * Only CLE/ALE are needed for the devices that are connected, rather
428 * than the full address line set.
430 pinctrl-names = "default";
431 pinctrl-0 = <&pins_nemc>;
436 nand-ecc-step-size = <1024>;
437 nand-ecc-strength = <24>;
438 nand-ecc-mode = "hw";
441 pinctrl-names = "default";
442 pinctrl-0 = <&pins_nemc_cs1>;
445 compatible = "fixed-partitions";
446 #address-cells = <2>;
450 label = "u-boot-spl";
451 reg = <0x0 0x0 0x0 0x800000>;
456 reg = <0x0 0x800000 0x0 0x200000>;
460 label = "u-boot-env";
461 reg = <0x0 0xa00000 0x0 0x200000>;
466 reg = <0x0 0xc00000 0x0 0x4000000>;
471 reg = <0x0 0x4c00000 0x1 0xfb400000>;
478 compatible = "davicom,dm9000";
481 pinctrl-names = "default";
482 pinctrl-0 = <&pins_nemc_cs6>;
484 reg = <6 0 1>, /* addr */
487 ingenic,nemc-tAS = <15>;
488 ingenic,nemc-tAH = <10>;
489 ingenic,nemc-tBP = <20>;
490 ingenic,nemc-tAW = <50>;
491 ingenic,nemc-tSTRV = <100>;
493 reset-gpios = <&gpf 12 GPIO_ACTIVE_LOW>;
494 vcc-supply = <ð0_power>;
496 interrupt-parent = <&gpe>;
497 interrupts = <19 IRQ_TYPE_EDGE_RISING>;
499 nvmem-cells = <ð0_addr>;
500 nvmem-cell-names = "mac-address";
511 vcc-supply = <&otg_power>;
521 groups = "uart0-data";
527 groups = "uart1-data";
533 groups = "uart2-data", "uart2-hwflow";
539 groups = "uart3-data", "uart3-hwflow";
545 groups = "uart4-data";
551 groups = "i2c0-data";
557 groups = "i2c1-data";
563 groups = "i2c2-data";
569 groups = "i2c3-data";
575 groups = "i2c4-data-e";
579 pins_hdmi_ddc: hdmi_ddc {
580 function = "hdmi-ddc";
587 groups = "nemc-data", "nemc-cle-ale", "nemc-rd-we", "nemc-frd-fwe";
591 pins_nemc_cs1: nemc-cs1 {
592 function = "nemc-cs1";
597 pins_nemc_cs6: nemc-cs6 {
598 function = "nemc-cs6";
605 groups = "mmc0-1bit-e", "mmc0-4bit-e";
611 groups = "mmc1-1bit-d", "mmc1-4bit-d";
619 pinctrl-names = "default";
620 pinctrl-0 = <&pins_hdmi_ddc>;
623 #address-cells = <1>;
628 dw_hdmi_in: endpoint {
629 remote-endpoint = <&lcd_out>;
635 dw_hdmi_out: endpoint {
636 remote-endpoint = <&hdmi_con>;
647 remote-endpoint = <&dw_hdmi_in>;