2 * Copyright (c) 2015 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/pwm/pwm.h>
45 #include "rk3288.dtsi"
48 compatible = "netxeon,r89", "rockchip,rk3288";
51 device_type = "memory";
52 reg = <0x0 0x80000000>;
55 ext_gmac: external-gmac-clock {
56 compatible = "fixed-clock";
57 clock-frequency = <125000000>;
58 clock-output-names = "ext_gmac";
63 compatible = "gpio-keys";
68 pinctrl-names = "default";
69 pinctrl-0 = <&pwrbtn>;
72 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
74 label = "GPIO Key Power";
75 linux,input-type = <1>;
76 gpio-key,wakeup = <1>;
77 debounce-interval = <100>;
81 vcc_host: vcc-host-regulator {
82 compatible = "regulator-fixed";
84 gpio = <&gpio0 14 GPIO_ACTIVE_HIGH>;
85 pinctrl-names = "default";
86 pinctrl-0 = <&host_vbus_drv>;
87 regulator-name = "vcc_host";
92 vcc_otg: vcc-otg-regulator {
93 compatible = "regulator-fixed";
95 gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
96 pinctrl-names = "default";
97 pinctrl-0 = <&otg_vbus_drv>;
98 regulator-name = "vcc_otg";
103 vcc_sdmmc: sdmmc-regulator {
104 compatible = "regulator-fixed";
105 regulator-name = "sdmmc-supply";
106 regulator-min-microvolt = <3300000>;
107 regulator-max-microvolt = <3300000>;
108 gpio = <&gpio7 11 GPIO_ACTIVE_LOW>;
109 startup-delay-us = <100000>;
110 vin-supply = <&vcc_io>;
113 vcc_sys: sys-regulator {
114 compatible = "regulator-fixed";
115 regulator-name = "sys-supply";
116 regulator-min-microvolt = <5000000>;
117 regulator-max-microvolt = <5000000>;
124 cpu0-supply = <&vdd_cpu>;
128 phy-supply = <&vcc_lan>;
130 clock_in_out = "input";
131 snps,reset-gpio = <&gpio4 7 0>;
132 snps,reset-active-low;
133 snps,reset-delays-us = <0 10000 1000000>;
134 assigned-clocks = <&cru SCLK_MAC>;
135 assigned-clock-parents = <&ext_gmac>;
136 pinctrl-names = "default";
137 pinctrl-0 = <&rgmii_pins>;
151 compatible = "silergy,syr827";
153 fcs,suspend-voltage-selector = <1>;
154 regulator-name = "VDD_CPU";
155 regulator-enable-ramp-delay = <300>;
156 regulator-min-microvolt = <850000>;
157 regulator-max-microvolt = <1350000>;
158 regulator-ramp-delay = <8000>;
161 vin-supply = <&vcc_sys>;
165 compatible = "silergy,syr828";
167 fcs,suspend-voltage-selector = <1>;
168 regulator-name = "VDD_GPU";
169 regulator-enable-ramp-delay = <300>;
170 regulator-min-microvolt = <850000>;
171 regulator-max-microvolt = <1350000>;
172 regulator-ramp-delay = <8000>;
175 vin-supply = <&vcc_sys>;
179 compatible = "haoyu,hym8563";
182 clock-output-names = "xin32k";
183 interrupt-parent = <&gpio0>;
184 interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
185 pinctrl-names = "default";
186 pinctrl-0 = <&pmic_int>;
190 compatible = "active-semi,act8846";
192 pinctrl-names = "default";
193 pinctrl-0 = <&pmic_vsel>, <&pwr_hold>;
194 system-power-controller;
198 regulator-name = "VCC_DDR";
199 regulator-min-microvolt = <1200000>;
200 regulator-max-microvolt = <1200000>;
205 regulator-name = "VCC_IO";
206 regulator-min-microvolt = <3300000>;
207 regulator-max-microvolt = <3300000>;
212 regulator-name = "VDD_LOG";
213 regulator-min-microvolt = <1000000>;
214 regulator-max-microvolt = <1000000>;
219 regulator-name = "VCC_20";
220 regulator-min-microvolt = <2000000>;
221 regulator-max-microvolt = <2000000>;
226 regulator-name = "VCCIO_SD";
227 regulator-min-microvolt = <3300000>;
228 regulator-max-microvolt = <3300000>;
233 regulator-name = "VDD10_LCD";
234 regulator-min-microvolt = <1000000>;
235 regulator-max-microvolt = <1000000>;
240 regulator-name = "VCC_WL";
241 regulator-min-microvolt = <3300000>;
242 regulator-max-microvolt = <3300000>;
247 regulator-name = "VCCA_33";
248 regulator-min-microvolt = <3300000>;
249 regulator-max-microvolt = <3300000>;
254 regulator-name = "VCC_LAN";
255 regulator-min-microvolt = <3300000>;
256 regulator-max-microvolt = <3300000>;
261 regulator-name = "VDD_10";
262 regulator-min-microvolt = <1000000>;
263 regulator-max-microvolt = <1000000>;
268 regulator-name = "VCC_18";
269 regulator-min-microvolt = <1800000>;
270 regulator-max-microvolt = <1800000>;
275 regulator-name = "VCC18_LCD";
276 regulator-min-microvolt = <1800000>;
277 regulator-max-microvolt = <1800000>;
289 pcfg_output_high: pcfg-output-high {
293 pcfg_output_low: pcfg-output-low {
298 pmic_vsel: pmic-vsel {
299 rockchip,pins = <7 1 RK_FUNC_GPIO &pcfg_output_low>;
303 rockchip,pins = <0 6 RK_FUNC_GPIO &pcfg_output_high>;
309 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
315 rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>;
320 host_vbus_drv: host-vbus-drv {
321 rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
324 otg_vbus_drv: otg-vbus-drv {
325 rockchip,pins = <0 12 RK_FUNC_GPIO &pcfg_pull_none>;
335 vref-supply = <&vcc_18>;
343 card-detect-delay = <200>;
346 pinctrl-names = "default";
347 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
348 vmmc-supply = <&vcc_sdmmc>;
349 vqmmc-supply = <&vccio_sd>;
354 rockchip,hw-tshut-mode = <0>;
355 rockchip,hw-tshut-polarity = <0>;