1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2013 Heiko Stuebner <heiko@sntech.de>
7 #include <dt-bindings/input/input.h>
12 compatible = "radxa,rock", "rockchip,rk3188";
19 device_type = "memory";
20 reg = <0x60000000 0x80000000>;
24 compatible = "gpio-keys";
28 gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_POWER>;
30 label = "GPIO Key Power";
31 linux,input-type = <1>;
33 debounce-interval = <100>;
38 compatible = "gpio-leds";
41 label = "rock:green:user1";
42 gpios = <&gpio0 RK_PB4 GPIO_ACTIVE_LOW>;
43 default-state = "off";
47 label = "rock:blue:user2";
48 gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>;
49 default-state = "off";
53 label = "rock:red:power";
54 gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
55 default-state = "off";
60 compatible = "simple-audio-card";
61 simple-audio-card,name = "SPDIF";
63 simple-audio-card,dai-link@1 { /* S/PDIF - S/PDIF */
64 cpu { sound-dai = <&spdif>; };
65 codec { sound-dai = <&spdif_out>; };
69 spdif_out: spdif-out {
70 compatible = "linux,spdif-dit";
71 #sound-dai-cells = <0>;
74 ir_recv: gpio-ir-receiver {
75 compatible = "gpio-ir-receiver";
76 gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
77 pinctrl-names = "default";
78 pinctrl-0 = <&ir_recv_pin>;
81 vcc_otg: usb-otg-regulator {
82 compatible = "regulator-fixed";
84 gpio = <&gpio2 RK_PD7 GPIO_ACTIVE_HIGH>;
85 pinctrl-names = "default";
86 pinctrl-0 = <&otg_vbus_drv>;
87 regulator-name = "otg-vbus";
88 regulator-min-microvolt = <5000000>;
89 regulator-max-microvolt = <5000000>;
94 vcc_sd0: sdmmc-regulator {
95 compatible = "regulator-fixed";
96 regulator-name = "sdmmc-supply";
97 regulator-min-microvolt = <3300000>;
98 regulator-max-microvolt = <3300000>;
99 gpio = <&gpio3 RK_PA1 GPIO_ACTIVE_LOW>;
100 pinctrl-names = "default";
101 pinctrl-0 = <&sdmmc_pwr>;
102 startup-delay-us = <100000>;
103 vin-supply = <&vcc_io>;
106 vcc_host: usb-host-regulator {
107 compatible = "regulator-fixed";
109 gpio = <&gpio0 RK_PA3 GPIO_ACTIVE_HIGH>;
110 pinctrl-names = "default";
111 pinctrl-0 = <&host_vbus_drv>;
112 regulator-name = "host-pwr";
113 regulator-min-microvolt = <5000000>;
114 regulator-max-microvolt = <5000000>;
119 vsys: vsys-regulator {
120 compatible = "regulator-fixed";
121 regulator-name = "vsys";
122 regulator-min-microvolt = <5000000>;
123 regulator-max-microvolt = <5000000>;
131 pinctrl-names = "default";
132 pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&phy_int>;
135 phy-supply = <&vcc_rmii>;
137 phy0: ethernet-phy@0 {
139 interrupt-parent = <&gpio3>;
140 interrupts = <RK_PD2 IRQ_TYPE_LEVEL_LOW>;
145 cpu-supply = <&vdd_arm>;
149 cpu-supply = <&vdd_arm>;
153 cpu-supply = <&vdd_arm>;
157 cpu-supply = <&vdd_arm>;
166 clock-frequency = <400000>;
169 compatible = "haoyu,hym8563";
171 interrupt-parent = <&gpio0>;
172 interrupts = <RK_PB5 IRQ_TYPE_EDGE_FALLING>;
173 pinctrl-names = "default";
174 pinctrl-0 = <&rtc_int>;
176 clock-output-names = "xin32k";
179 act8846: act8846@5a {
180 compatible = "active-semi,act8846";
183 system-power-controller;
185 pinctrl-names = "default";
186 pinctrl-0 = <&act8846_dvs0_ctl>;
188 vp1-supply = <&vsys>;
189 vp2-supply = <&vsys>;
190 vp3-supply = <&vsys>;
191 vp4-supply = <&vsys>;
192 inl1-supply = <&vcc_io>;
193 inl2-supply = <&vsys>;
194 inl3-supply = <&vsys>;
198 regulator-name = "VCC_DDR";
199 regulator-min-microvolt = <1200000>;
200 regulator-max-microvolt = <1200000>;
205 regulator-name = "VDD_LOG";
206 regulator-min-microvolt = <1000000>;
207 regulator-max-microvolt = <1000000>;
212 regulator-name = "VDD_ARM";
213 regulator-min-microvolt = <875000>;
214 regulator-max-microvolt = <1350000>;
219 regulator-name = "VCC_IO";
220 regulator-min-microvolt = <3300000>;
221 regulator-max-microvolt = <3300000>;
226 regulator-name = "VDD_10";
227 regulator-min-microvolt = <1000000>;
228 regulator-max-microvolt = <1000000>;
233 regulator-name = "VDD_HDMI";
234 regulator-min-microvolt = <2500000>;
235 regulator-max-microvolt = <2500000>;
240 regulator-name = "VCC_18";
241 regulator-min-microvolt = <1800000>;
242 regulator-max-microvolt = <1800000>;
247 regulator-name = "VCCA_33";
248 regulator-min-microvolt = <3300000>;
249 regulator-max-microvolt = <3300000>;
254 regulator-name = "VCC_RMII";
255 regulator-min-microvolt = <3300000>;
256 regulator-max-microvolt = <3300000>;
260 regulator-name = "VCCIO_WL";
261 regulator-min-microvolt = <3300000>;
262 regulator-max-microvolt = <3300000>;
267 regulator-name = "VCC18_IO";
268 regulator-min-microvolt = <1800000>;
269 regulator-max-microvolt = <1800000>;
274 regulator-name = "VCC_28";
275 regulator-min-microvolt = <2800000>;
276 regulator-max-microvolt = <2800000>;
285 pinctrl-names = "default";
286 pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
287 vmmc-supply = <&vcc_sd0>;
308 pcfg_output_low: pcfg-output-low {
313 act8846_dvs0_ctl: act8846-dvs0-ctl {
314 rockchip,pins = <3 RK_PD3 RK_FUNC_GPIO &pcfg_output_low>;
320 rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;
326 rockchip,pins = <3 RK_PD2 RK_FUNC_GPIO &pcfg_pull_up>;
331 ir_recv_pin: ir-recv-pin {
332 rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
337 sdmmc_pwr: sdmmc-pwr {
338 rockchip,pins = <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
343 host_vbus_drv: host-vbus-drv {
344 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
346 otg_vbus_drv: otg-vbus-drv {
347 rockchip,pins = <2 RK_PD7 RK_FUNC_GPIO &pcfg_pull_none>;