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 "rk3188.dtsi"
48 compatible = "radxa,rock", "rockchip,rk3188";
51 device_type = "memory";
52 reg = <0x60000000 0x80000000>;
56 compatible = "gpio-keys";
62 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
64 label = "GPIO Key Power";
65 linux,input-type = <1>;
66 gpio-key,wakeup = <1>;
67 debounce-interval = <100>;
72 compatible = "gpio-leds";
75 label = "rock:green:user1";
76 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
77 default-state = "off";
81 label = "rock:blue:user2";
82 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
83 default-state = "off";
87 label = "rock:red:power";
88 gpios = <&gpio0 15 0>;
89 default-state = "off";
93 ir_recv: gpio-ir-receiver {
94 compatible = "gpio-ir-receiver";
95 gpios = <&gpio0 10 1>;
96 pinctrl-names = "default";
97 pinctrl-0 = <&ir_recv_pin>;
100 vcc_otg: usb-otg-regulator {
101 compatible = "regulator-fixed";
103 gpio = <&gpio2 31 GPIO_ACTIVE_HIGH>;
104 pinctrl-names = "default";
105 pinctrl-0 = <&otg_vbus_drv>;
106 regulator-name = "otg-vbus";
107 regulator-min-microvolt = <5000000>;
108 regulator-max-microvolt = <5000000>;
113 vcc_sd0: sdmmc-regulator {
114 compatible = "regulator-fixed";
115 regulator-name = "sdmmc-supply";
116 regulator-min-microvolt = <3300000>;
117 regulator-max-microvolt = <3300000>;
118 gpio = <&gpio3 1 GPIO_ACTIVE_LOW>;
119 startup-delay-us = <100000>;
120 vin-supply = <&vcc_io>;
123 vcc_host: usb-host-regulator {
124 compatible = "regulator-fixed";
126 gpio = <&gpio0 3 GPIO_ACTIVE_HIGH>;
127 pinctrl-names = "default";
128 pinctrl-0 = <&host_vbus_drv>;
129 regulator-name = "host-pwr";
130 regulator-min-microvolt = <5000000>;
131 regulator-max-microvolt = <5000000>;
136 vsys: vsys-regulator {
137 compatible = "regulator-fixed";
138 regulator-name = "vsys";
139 regulator-min-microvolt = <5000000>;
140 regulator-max-microvolt = <5000000>;
148 pinctrl-names = "default";
149 pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&phy_int>;
152 phy-supply = <&vcc_rmii>;
154 phy0: ethernet-phy@0 {
156 interrupt-parent = <&gpio3>;
157 interrupts = <26 IRQ_TYPE_LEVEL_LOW>;
162 cpu0-supply = <&vdd_arm>;
167 clock-frequency = <400000>;
170 compatible = "haoyu,hym8563";
172 interrupt-parent = <&gpio0>;
173 interrupts = <13 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>;
287 pinctrl-names = "default";
288 pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
289 vmmc-supply = <&vcc_sd0>;
308 pcfg_output_low: pcfg-output-low {
313 act8846_dvs0_ctl: act8846-dvs0-ctl {
314 rockchip,pins = <RK_GPIO3 27 RK_FUNC_GPIO &pcfg_output_low>;
320 rockchip,pins = <RK_GPIO0 0 RK_FUNC_GPIO &pcfg_pull_up>;
326 rockchip,pins = <RK_GPIO3 26 RK_FUNC_GPIO &pcfg_pull_up>;
331 ir_recv_pin: ir-recv-pin {
332 rockchip,pins = <RK_GPIO0 10 RK_FUNC_GPIO &pcfg_pull_none>;
337 host_vbus_drv: host-vbus-drv {
338 rockchip,pins = <0 3 RK_FUNC_GPIO &pcfg_pull_none>;
340 otg_vbus_drv: otg-vbus-drv {
341 rockchip,pins = <2 31 RK_FUNC_GPIO &pcfg_pull_none>;