1 // SPDX-License-Identifier: GPL-2.0+ OR X11
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";
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 pinctrl-names = "default";
108 pinctrl-0 = <&sdmmc_pwr>;
109 startup-delay-us = <100000>;
110 vin-supply = <&vcc_io>;
113 vcc_host: usb-host-regulator {
114 compatible = "regulator-fixed";
116 gpio = <&gpio0 3 GPIO_ACTIVE_HIGH>;
117 pinctrl-names = "default";
118 pinctrl-0 = <&host_vbus_drv>;
119 regulator-name = "host-pwr";
120 regulator-min-microvolt = <5000000>;
121 regulator-max-microvolt = <5000000>;
126 vsys: vsys-regulator {
127 compatible = "regulator-fixed";
128 regulator-name = "vsys";
129 regulator-min-microvolt = <5000000>;
130 regulator-max-microvolt = <5000000>;
136 rockchip,pctl-timing = <0x12c 0xc8 0x1f4 0x1e 0x4e 0x4 0x69 0x6
137 0x3 0x0 0x6 0x5 0xc 0x10 0x6 0x4
138 0x4 0x5 0x4 0x200 0x3 0xa 0x40 0x0
139 0x1 0x5 0x5 0x3 0xc 0x1e 0x100 0x0
141 rockchip,phy-timing = <0x208c6690 0x690878 0x10022a00
143 rockchip,sdram-params = <0x24716310 0 2 300000000 3 9 0>;
149 pinctrl-names = "default";
150 pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&phy_int>;
153 phy-supply = <&vcc_rmii>;
155 phy0: ethernet-phy@0 {
157 interrupt-parent = <&gpio3>;
158 interrupts = <26 IRQ_TYPE_LEVEL_LOW>;
163 cpu0-supply = <&vdd_arm>;
168 clock-frequency = <400000>;
171 compatible = "haoyu,hym8563";
173 interrupt-parent = <&gpio0>;
174 interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
175 pinctrl-names = "default";
176 pinctrl-0 = <&rtc_int>;
178 clock-output-names = "xin32k";
181 act8846: act8846@5a {
182 compatible = "active-semi,act8846";
185 system-power-controller;
187 pinctrl-names = "default";
188 pinctrl-0 = <&act8846_dvs0_ctl>;
190 vp1-supply = <&vsys>;
191 vp2-supply = <&vsys>;
192 vp3-supply = <&vsys>;
193 vp4-supply = <&vsys>;
194 inl1-supply = <&vcc_io>;
195 inl2-supply = <&vsys>;
196 inl3-supply = <&vsys>;
200 regulator-name = "VCC_DDR";
201 regulator-min-microvolt = <1200000>;
202 regulator-max-microvolt = <1200000>;
207 regulator-name = "VDD_LOG";
208 regulator-min-microvolt = <1000000>;
209 regulator-max-microvolt = <1000000>;
214 regulator-name = "VDD_ARM";
215 regulator-min-microvolt = <875000>;
216 regulator-max-microvolt = <1350000>;
221 regulator-name = "VCC_IO";
222 regulator-min-microvolt = <3300000>;
223 regulator-max-microvolt = <3300000>;
228 regulator-name = "VDD_10";
229 regulator-min-microvolt = <1000000>;
230 regulator-max-microvolt = <1000000>;
235 regulator-name = "VDD_HDMI";
236 regulator-min-microvolt = <2500000>;
237 regulator-max-microvolt = <2500000>;
242 regulator-name = "VCC_18";
243 regulator-min-microvolt = <1800000>;
244 regulator-max-microvolt = <1800000>;
249 regulator-name = "VCCA_33";
250 regulator-min-microvolt = <3300000>;
251 regulator-max-microvolt = <3300000>;
256 regulator-name = "VCC_RMII";
257 regulator-min-microvolt = <3300000>;
258 regulator-max-microvolt = <3300000>;
262 regulator-name = "VCCIO_WL";
263 regulator-min-microvolt = <3300000>;
264 regulator-max-microvolt = <3300000>;
269 regulator-name = "VCC18_IO";
270 regulator-min-microvolt = <1800000>;
271 regulator-max-microvolt = <1800000>;
276 regulator-name = "VCC_28";
277 regulator-min-microvolt = <2800000>;
278 regulator-max-microvolt = <2800000>;
288 pinctrl-names = "default";
289 pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
290 vmmc-supply = <&vcc_sd0>;
311 pcfg_output_low: pcfg-output-low {
316 act8846_dvs0_ctl: act8846-dvs0-ctl {
317 rockchip,pins = <RK_GPIO3 27 RK_FUNC_GPIO &pcfg_output_low>;
323 rockchip,pins = <RK_GPIO0 0 RK_FUNC_GPIO &pcfg_pull_up>;
329 rockchip,pins = <RK_GPIO3 26 RK_FUNC_GPIO &pcfg_pull_up>;
334 ir_recv_pin: ir-recv-pin {
335 rockchip,pins = <RK_GPIO0 10 RK_FUNC_GPIO &pcfg_pull_none>;
340 sdmmc_pwr: sdmmc-pwr {
341 rockchip,pins = <RK_GPIO3 1 RK_FUNC_GPIO &pcfg_pull_none>;
346 host_vbus_drv: host-vbus-drv {
347 rockchip,pins = <0 3 RK_FUNC_GPIO &pcfg_pull_none>;
349 otg_vbus_drv: otg-vbus-drv {
350 rockchip,pins = <2 31 RK_FUNC_GPIO &pcfg_pull_none>;