2 * Copyright (C) 2017 Jagan Teki <jagan@amarulasolutions.com>
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 "rk3288.dtsi"
47 model = "Amarula Vyasa-RK3288";
48 compatible = "amarula,vyasa-rk3288", "rockchip,rk3288";
55 reg = <0x0 0x0 0x0 0x80000000>;
56 device_type = "memory";
59 vcc_sys: vsys-regulator {
60 compatible = "regulator-fixed";
61 regulator-name = "vcc_sys";
62 regulator-min-microvolt = <5000000>;
63 regulator-max-microvolt = <5000000>;
70 cpu0-supply = <&vdd_cpu>;
74 mali-supply = <&vdd_gpu>;
79 ddc-i2c-bus = <&i2c2>;
84 clock-frequency = <400000>;
88 compatible = "rockchip,rk808";
90 interrupt-parent = <&gpio0>;
91 interrupts = <RK_PA4 IRQ_TYPE_LEVEL_LOW>;
93 clock-output-names = "xin32k", "rk808-clkout2";
94 pinctrl-names = "default";
95 pinctrl-0 = <&pmic_int &global_pwroff>;
96 rockchip,system-power-controller;
99 vcc1-supply = <&vcc_sys>;
100 vcc2-supply = <&vcc_sys>;
101 vcc3-supply = <&vcc_sys>;
102 vcc4-supply = <&vcc_sys>;
103 vcc6-supply = <&vcc_sys>;
104 vcc7-supply = <&vcc_sys>;
105 vcc8-supply = <&vcc_io>;
106 vcc9-supply = <&vcc_sys>;
107 vcc10-supply = <&vcc_sys>;
108 vcc11-supply = <&vcc_sys>;
109 vcc12-supply = <&vcc_io>;
113 regulator-name = "vdd_arm";
114 regulator-min-microvolt = <750000>;
115 regulator-max-microvolt = <1350000>;
118 regulator-state-mem {
119 regulator-off-in-suspend;
124 regulator-name = "vdd_gpu";
125 regulator-min-microvolt = <850000>;
126 regulator-max-microvolt = <1250000>;
129 regulator-state-mem {
130 regulator-on-in-suspend;
131 regulator-suspend-microvolt = <1000000>;
136 regulator-name = "vcc_ddr";
139 regulator-state-mem {
140 regulator-on-in-suspend;
145 regulator-name = "vcc_io";
146 regulator-min-microvolt = <3300000>;
147 regulator-max-microvolt = <3300000>;
150 regulator-state-mem {
151 regulator-on-in-suspend;
152 regulator-suspend-microvolt = <3300000>;
157 regulator-name = "vcc_tp";
158 regulator-min-microvolt = <3300000>;
159 regulator-max-microvolt = <3300000>;
162 regulator-state-mem {
163 regulator-on-in-suspend;
164 regulator-suspend-microvolt = <3300000>;
168 vcc_codec: LDO_REG2 {
169 regulator-name = "vcc_codec";
170 regulator-min-microvolt = <3300000>;
171 regulator-max-microvolt = <3300000>;
174 regulator-state-mem {
175 regulator-off-in-suspend;
180 regulator-name = "vdd_10";
181 regulator-min-microvolt = <1000000>;
182 regulator-max-microvolt = <1000000>;
185 regulator-state-mem {
186 regulator-on-in-suspend;
187 regulator-suspend-microvolt = <1000000>;
192 regulator-name = "vcc_gps";
193 regulator-min-microvolt = <1800000>;
194 regulator-max-microvolt = <1800000>;
197 regulator-state-mem {
198 regulator-on-in-suspend;
199 regulator-suspend-microvolt = <1800000>;
204 regulator-name = "vccio_sd";
205 regulator-min-microvolt = <1800000>;
206 regulator-max-microvolt = <3300000>;
209 regulator-state-mem {
210 regulator-on-in-suspend;
211 regulator-suspend-microvolt = <3300000>;
215 vcc10_lcd: LDO_REG6 {
216 regulator-name = "vcc10_lcd";
217 regulator-min-microvolt = <1000000>;
218 regulator-max-microvolt = <1000000>;
221 regulator-state-mem {
222 regulator-on-in-suspend;
223 regulator-suspend-microvolt = <1800000>;
228 regulator-name = "vcc_18";
229 regulator-min-microvolt = <1800000>;
230 regulator-max-microvolt = <1800000>;
233 regulator-state-mem {
234 regulator-on-in-suspend;
235 regulator-suspend-microvolt = <1800000>;
239 vcc18_lcd: LDO_REG8 {
240 regulator-name = "vcc18_lcd";
241 regulator-min-microvolt = <1800000>;
242 regulator-max-microvolt = <1800000>;
245 regulator-state-mem {
246 regulator-on-in-suspend;
247 regulator-suspend-microvolt = <1800000>;
251 vcc_sd: SWITCH_REG1 {
252 regulator-name = "vcc_sd";
253 regulator-min-microvolt = <3300000>;
254 regulator-max-microvolt = <3300000>;
257 regulator-state-mem {
258 regulator-on-in-suspend;
262 vcc_lan: SWITCH_REG2 {
263 regulator-name = "vcc_lan";
264 regulator-min-microvolt = <3300000>;
265 regulator-max-microvolt = <3300000>;
268 regulator-state-mem {
269 regulator-on-in-suspend;
284 card-detect-delay = <200>;
286 pinctrl-names = "default";
287 pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_cd>, <&sdmmc_bus4>;
288 vmmc-supply = <&vcc_sd>;
289 vqmmc-supply = <&vccio_sd>;
320 rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>;