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>
9 #include "rk3188-radxarock-u-boot.dtsi"
13 compatible = "radxa,rock", "rockchip,rk3188";
20 device_type = "memory";
21 reg = <0x60000000 0x80000000>;
25 compatible = "gpio-keys";
29 gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_POWER>;
31 label = "GPIO Key Power";
32 linux,input-type = <1>;
34 debounce-interval = <100>;
39 compatible = "gpio-leds";
42 label = "rock:green:user1";
43 gpios = <&gpio0 RK_PB4 GPIO_ACTIVE_LOW>;
44 default-state = "off";
48 label = "rock:blue:user2";
49 gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>;
50 default-state = "off";
54 label = "rock:red:power";
55 gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
56 default-state = "off";
61 compatible = "simple-audio-card";
62 simple-audio-card,name = "SPDIF";
64 simple-audio-card,dai-link@1 { /* S/PDIF - S/PDIF */
65 cpu { sound-dai = <&spdif>; };
66 codec { sound-dai = <&spdif_out>; };
70 spdif_out: spdif-out {
71 compatible = "linux,spdif-dit";
72 #sound-dai-cells = <0>;
75 ir_recv: gpio-ir-receiver {
76 compatible = "gpio-ir-receiver";
77 gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
78 pinctrl-names = "default";
79 pinctrl-0 = <&ir_recv_pin>;
82 vcc_otg: usb-otg-regulator {
83 compatible = "regulator-fixed";
85 gpio = <&gpio2 RK_PD7 GPIO_ACTIVE_HIGH>;
86 pinctrl-names = "default";
87 pinctrl-0 = <&otg_vbus_drv>;
88 regulator-name = "otg-vbus";
89 regulator-min-microvolt = <5000000>;
90 regulator-max-microvolt = <5000000>;
95 vcc_sd0: sdmmc-regulator {
96 compatible = "regulator-fixed";
97 regulator-name = "sdmmc-supply";
98 regulator-min-microvolt = <3300000>;
99 regulator-max-microvolt = <3300000>;
100 gpio = <&gpio3 RK_PA1 GPIO_ACTIVE_LOW>;
101 pinctrl-names = "default";
102 pinctrl-0 = <&sdmmc_pwr>;
103 startup-delay-us = <100000>;
104 vin-supply = <&vcc_io>;
107 vcc_host: usb-host-regulator {
108 compatible = "regulator-fixed";
110 gpio = <&gpio0 RK_PA3 GPIO_ACTIVE_HIGH>;
111 pinctrl-names = "default";
112 pinctrl-0 = <&host_vbus_drv>;
113 regulator-name = "host-pwr";
114 regulator-min-microvolt = <5000000>;
115 regulator-max-microvolt = <5000000>;
120 vsys: vsys-regulator {
121 compatible = "regulator-fixed";
122 regulator-name = "vsys";
123 regulator-min-microvolt = <5000000>;
124 regulator-max-microvolt = <5000000>;
132 pinctrl-names = "default";
133 pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&phy_int>;
136 phy-supply = <&vcc_rmii>;
138 phy0: ethernet-phy@0 {
140 interrupt-parent = <&gpio3>;
141 interrupts = <RK_PD2 IRQ_TYPE_LEVEL_LOW>;
146 cpu-supply = <&vdd_arm>;
150 cpu-supply = <&vdd_arm>;
154 cpu-supply = <&vdd_arm>;
158 cpu-supply = <&vdd_arm>;
167 clock-frequency = <400000>;
170 compatible = "haoyu,hym8563";
172 interrupt-parent = <&gpio0>;
173 interrupts = <RK_PB5 IRQ_TYPE_EDGE_FALLING>;
174 pinctrl-names = "default";
175 pinctrl-0 = <&rtc_int>;
177 clock-output-names = "xin32k";
180 act8846: act8846@5a {
181 compatible = "active-semi,act8846";
184 system-power-controller;
186 pinctrl-names = "default";
187 pinctrl-0 = <&act8846_dvs0_ctl>;
189 vp1-supply = <&vsys>;
190 vp2-supply = <&vsys>;
191 vp3-supply = <&vsys>;
192 vp4-supply = <&vsys>;
193 inl1-supply = <&vcc_io>;
194 inl2-supply = <&vsys>;
195 inl3-supply = <&vsys>;
199 regulator-name = "VCC_DDR";
200 regulator-min-microvolt = <1200000>;
201 regulator-max-microvolt = <1200000>;
206 regulator-name = "VDD_LOG";
207 regulator-min-microvolt = <1000000>;
208 regulator-max-microvolt = <1000000>;
213 regulator-name = "VDD_ARM";
214 regulator-min-microvolt = <875000>;
215 regulator-max-microvolt = <1350000>;
220 regulator-name = "VCC_IO";
221 regulator-min-microvolt = <3300000>;
222 regulator-max-microvolt = <3300000>;
227 regulator-name = "VDD_10";
228 regulator-min-microvolt = <1000000>;
229 regulator-max-microvolt = <1000000>;
234 regulator-name = "VDD_HDMI";
235 regulator-min-microvolt = <2500000>;
236 regulator-max-microvolt = <2500000>;
241 regulator-name = "VCC_18";
242 regulator-min-microvolt = <1800000>;
243 regulator-max-microvolt = <1800000>;
248 regulator-name = "VCCA_33";
249 regulator-min-microvolt = <3300000>;
250 regulator-max-microvolt = <3300000>;
255 regulator-name = "VCC_RMII";
256 regulator-min-microvolt = <3300000>;
257 regulator-max-microvolt = <3300000>;
261 regulator-name = "VCCIO_WL";
262 regulator-min-microvolt = <3300000>;
263 regulator-max-microvolt = <3300000>;
268 regulator-name = "VCC18_IO";
269 regulator-min-microvolt = <1800000>;
270 regulator-max-microvolt = <1800000>;
275 regulator-name = "VCC_28";
276 regulator-min-microvolt = <2800000>;
277 regulator-max-microvolt = <2800000>;
286 pinctrl-names = "default";
287 pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
288 vmmc-supply = <&vcc_sd0>;
309 pcfg_output_low: pcfg-output-low {
314 act8846_dvs0_ctl: act8846-dvs0-ctl {
315 rockchip,pins = <3 RK_PD3 RK_FUNC_GPIO &pcfg_output_low>;
321 rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;
327 rockchip,pins = <3 RK_PD2 RK_FUNC_GPIO &pcfg_pull_up>;
332 ir_recv_pin: ir-recv-pin {
333 rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
338 sdmmc_pwr: sdmmc-pwr {
339 rockchip,pins = <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
344 host_vbus_drv: host-vbus-drv {
345 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
347 otg_vbus_drv: otg-vbus-drv {
348 rockchip,pins = <2 RK_PD7 RK_FUNC_GPIO &pcfg_pull_none>;