2 * Copyright (c) 2013 Heiko Stuebner <heiko@sntech.de>
4 * SPDX-License-Identifier: GPL-2.0+ or X11
8 #include <dt-bindings/input/input.h>
13 compatible = "radxa,rock", "rockchip,rk3188";
16 /* stdout-path = &uart2; */
17 stdout-path = "serial2:115200n8";
22 u-boot,boot-led = "rock:red:power";
26 device_type = "memory";
27 reg = <0x60000000 0x80000000>;
31 compatible = "gpio-keys";
35 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_POWER>;
37 label = "GPIO Key Power";
38 linux,input-type = <1>;
40 debounce-interval = <100>;
45 compatible = "gpio-leds";
48 label = "rock:green:user1";
49 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
50 default-state = "off";
54 label = "rock:blue:user2";
55 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
56 default-state = "off";
60 label = "rock:red:power";
61 gpios = <&gpio0 15 0>;
62 default-state = "off";
67 compatible = "simple-audio-card";
68 simple-audio-card,name = "SPDIF";
70 simple-audio-card,dai-link@1 { /* S/PDIF - S/PDIF */
71 cpu { sound-dai = <&spdif>; };
72 codec { sound-dai = <&spdif_out>; };
76 spdif_out: spdif-out {
77 compatible = "linux,spdif-dit";
78 #sound-dai-cells = <0>;
81 ir_recv: gpio-ir-receiver {
82 compatible = "gpio-ir-receiver";
83 gpios = <&gpio0 10 1>;
84 pinctrl-names = "default";
85 pinctrl-0 = <&ir_recv_pin>;
88 vcc_otg: usb-otg-regulator {
89 compatible = "regulator-fixed";
91 gpio = <&gpio2 31 GPIO_ACTIVE_HIGH>;
92 pinctrl-names = "default";
93 pinctrl-0 = <&otg_vbus_drv>;
94 regulator-name = "otg-vbus";
95 regulator-min-microvolt = <5000000>;
96 regulator-max-microvolt = <5000000>;
101 vcc_sd0: sdmmc-regulator {
102 compatible = "regulator-fixed";
103 regulator-name = "sdmmc-supply";
104 regulator-min-microvolt = <3300000>;
105 regulator-max-microvolt = <3300000>;
106 gpio = <&gpio3 1 GPIO_ACTIVE_LOW>;
107 startup-delay-us = <100000>;
108 vin-supply = <&vcc_io>;
111 vcc_host: usb-host-regulator {
112 compatible = "regulator-fixed";
114 gpio = <&gpio0 3 GPIO_ACTIVE_HIGH>;
115 pinctrl-names = "default";
116 pinctrl-0 = <&host_vbus_drv>;
117 regulator-name = "host-pwr";
118 regulator-min-microvolt = <5000000>;
119 regulator-max-microvolt = <5000000>;
124 vsys: vsys-regulator {
125 compatible = "regulator-fixed";
126 regulator-name = "vsys";
127 regulator-min-microvolt = <5000000>;
128 regulator-max-microvolt = <5000000>;
134 rockchip,pctl-timing = <0x12c 0xc8 0x1f4 0x1e 0x4e 0x4 0x69 0x6
135 0x3 0x0 0x6 0x5 0xc 0x10 0x6 0x4
136 0x4 0x5 0x4 0x200 0x3 0xa 0x40 0x0
137 0x1 0x5 0x5 0x3 0xc 0x1e 0x100 0x0
139 rockchip,phy-timing = <0x208c6690 0x690878 0x10022a00
141 rockchip,sdram-params = <0x24716310 0 2 300000000 3 9 0>;
147 pinctrl-names = "default";
148 pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&phy_int>;
151 phy-supply = <&vcc_rmii>;
153 phy0: ethernet-phy@0 {
155 interrupt-parent = <&gpio3>;
156 interrupts = <26 IRQ_TYPE_LEVEL_LOW>;
161 cpu0-supply = <&vdd_arm>;
166 clock-frequency = <400000>;
169 compatible = "haoyu,hym8563";
171 interrupt-parent = <&gpio0>;
172 interrupts = <13 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>;
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 = <RK_GPIO3 27 RK_FUNC_GPIO &pcfg_output_low>;
321 rockchip,pins = <RK_GPIO0 0 RK_FUNC_GPIO &pcfg_pull_up>;
327 rockchip,pins = <RK_GPIO3 26 RK_FUNC_GPIO &pcfg_pull_up>;
332 ir_recv_pin: ir-recv-pin {
333 rockchip,pins = <RK_GPIO0 10 RK_FUNC_GPIO &pcfg_pull_none>;
338 host_vbus_drv: host-vbus-drv {
339 rockchip,pins = <0 3 RK_FUNC_GPIO &pcfg_pull_none>;
341 otg_vbus_drv: otg-vbus-drv {
342 rockchip,pins = <2 31 RK_FUNC_GPIO &pcfg_pull_none>;