2 * Copyright (c) 2013 Heiko Stuebner <heiko@sntech.de>
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
9 * a) This file is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
14 * This file is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
21 * b) Permission is hereby granted, free of charge, to any person
22 * obtaining a copy of this software and associated documentation
23 * files (the "Software"), to deal in the Software without
24 * restriction, including without limitation the rights to use,
25 * copy, modify, merge, publish, distribute, sublicense, and/or
26 * sell copies of the Software, and to permit persons to whom the
27 * Software is furnished to do so, subject to the following
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
33 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40 * OTHER DEALINGS IN THE SOFTWARE.
44 #include <dt-bindings/input/input.h>
45 #include "rk3188.dtsi"
49 compatible = "radxa,rock", "rockchip,rk3188";
52 device_type = "memory";
53 reg = <0x60000000 0x80000000>;
57 compatible = "gpio-keys";
61 gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
62 linux,code = <KEY_POWER>;
63 label = "GPIO Key Power";
64 linux,input-type = <1>;
66 debounce-interval = <100>;
71 compatible = "gpio-leds";
74 label = "rock:green:user1";
75 gpios = <&gpio0 RK_PB4 GPIO_ACTIVE_LOW>;
76 default-state = "off";
80 label = "rock:blue:user2";
81 gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>;
82 default-state = "off";
86 label = "rock:red:power";
87 gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
88 default-state = "off";
93 compatible = "simple-audio-card";
94 simple-audio-card,name = "SPDIF";
96 simple-audio-card,dai-link@1 { /* S/PDIF - S/PDIF */
97 cpu { sound-dai = <&spdif>; };
98 codec { sound-dai = <&spdif_out>; };
102 spdif_out: spdif-out {
103 compatible = "linux,spdif-dit";
104 #sound-dai-cells = <0>;
107 ir_recv: gpio-ir-receiver {
108 compatible = "gpio-ir-receiver";
109 gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
110 pinctrl-names = "default";
111 pinctrl-0 = <&ir_recv_pin>;
114 vcc_otg: usb-otg-regulator {
115 compatible = "regulator-fixed";
117 gpio = <&gpio2 RK_PD7 GPIO_ACTIVE_HIGH>;
118 pinctrl-names = "default";
119 pinctrl-0 = <&otg_vbus_drv>;
120 regulator-name = "otg-vbus";
121 regulator-min-microvolt = <5000000>;
122 regulator-max-microvolt = <5000000>;
127 vcc_sd0: sdmmc-regulator {
128 compatible = "regulator-fixed";
129 regulator-name = "sdmmc-supply";
130 regulator-min-microvolt = <3300000>;
131 regulator-max-microvolt = <3300000>;
132 gpio = <&gpio3 RK_PA1 GPIO_ACTIVE_LOW>;
133 startup-delay-us = <100000>;
134 vin-supply = <&vcc_io>;
137 vcc_host: usb-host-regulator {
138 compatible = "regulator-fixed";
140 gpio = <&gpio0 RK_PA3 GPIO_ACTIVE_HIGH>;
141 pinctrl-names = "default";
142 pinctrl-0 = <&host_vbus_drv>;
143 regulator-name = "host-pwr";
144 regulator-min-microvolt = <5000000>;
145 regulator-max-microvolt = <5000000>;
150 vsys: vsys-regulator {
151 compatible = "regulator-fixed";
152 regulator-name = "vsys";
153 regulator-min-microvolt = <5000000>;
154 regulator-max-microvolt = <5000000>;
162 pinctrl-names = "default";
163 pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&phy_int>;
166 phy-supply = <&vcc_rmii>;
168 phy0: ethernet-phy@0 {
170 interrupt-parent = <&gpio3>;
171 interrupts = <RK_PD2 IRQ_TYPE_LEVEL_LOW>;
176 cpu0-supply = <&vdd_arm>;
181 clock-frequency = <400000>;
184 compatible = "haoyu,hym8563";
186 interrupt-parent = <&gpio0>;
187 interrupts = <RK_PB5 IRQ_TYPE_EDGE_FALLING>;
188 pinctrl-names = "default";
189 pinctrl-0 = <&rtc_int>;
191 clock-output-names = "xin32k";
194 act8846: act8846@5a {
195 compatible = "active-semi,act8846";
198 system-power-controller;
200 pinctrl-names = "default";
201 pinctrl-0 = <&act8846_dvs0_ctl>;
203 vp1-supply = <&vsys>;
204 vp2-supply = <&vsys>;
205 vp3-supply = <&vsys>;
206 vp4-supply = <&vsys>;
207 inl1-supply = <&vcc_io>;
208 inl2-supply = <&vsys>;
209 inl3-supply = <&vsys>;
213 regulator-name = "VCC_DDR";
214 regulator-min-microvolt = <1200000>;
215 regulator-max-microvolt = <1200000>;
220 regulator-name = "VDD_LOG";
221 regulator-min-microvolt = <1000000>;
222 regulator-max-microvolt = <1000000>;
227 regulator-name = "VDD_ARM";
228 regulator-min-microvolt = <875000>;
229 regulator-max-microvolt = <1350000>;
234 regulator-name = "VCC_IO";
235 regulator-min-microvolt = <3300000>;
236 regulator-max-microvolt = <3300000>;
241 regulator-name = "VDD_10";
242 regulator-min-microvolt = <1000000>;
243 regulator-max-microvolt = <1000000>;
248 regulator-name = "VDD_HDMI";
249 regulator-min-microvolt = <2500000>;
250 regulator-max-microvolt = <2500000>;
255 regulator-name = "VCC_18";
256 regulator-min-microvolt = <1800000>;
257 regulator-max-microvolt = <1800000>;
262 regulator-name = "VCCA_33";
263 regulator-min-microvolt = <3300000>;
264 regulator-max-microvolt = <3300000>;
269 regulator-name = "VCC_RMII";
270 regulator-min-microvolt = <3300000>;
271 regulator-max-microvolt = <3300000>;
275 regulator-name = "VCCIO_WL";
276 regulator-min-microvolt = <3300000>;
277 regulator-max-microvolt = <3300000>;
282 regulator-name = "VCC18_IO";
283 regulator-min-microvolt = <1800000>;
284 regulator-max-microvolt = <1800000>;
289 regulator-name = "VCC_28";
290 regulator-min-microvolt = <2800000>;
291 regulator-max-microvolt = <2800000>;
301 pinctrl-names = "default";
302 pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
303 vmmc-supply = <&vcc_sd0>;
324 pcfg_output_low: pcfg-output-low {
329 act8846_dvs0_ctl: act8846-dvs0-ctl {
330 rockchip,pins = <RK_GPIO3 27 RK_FUNC_GPIO &pcfg_output_low>;
336 rockchip,pins = <RK_GPIO0 0 RK_FUNC_GPIO &pcfg_pull_up>;
342 rockchip,pins = <RK_GPIO3 26 RK_FUNC_GPIO &pcfg_pull_up>;
347 ir_recv_pin: ir-recv-pin {
348 rockchip,pins = <RK_GPIO0 10 RK_FUNC_GPIO &pcfg_pull_none>;
353 host_vbus_drv: host-vbus-drv {
354 rockchip,pins = <0 3 RK_FUNC_GPIO &pcfg_pull_none>;
356 otg_vbus_drv: otg-vbus-drv {
357 rockchip,pins = <2 31 RK_FUNC_GPIO &pcfg_pull_none>;