blob: aff3cd4b18bdcb0402161208e4a9d066a277875e [file] [log] [blame]
Jagan Teki59ea6182017-09-12 17:15:47 +05301/*
2 * Copyright (C) 2017 Jagan Teki <jagan@amarulasolutions.com>
3 *
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
7 * whole.
8 *
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.
13 *
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.
18 *
19 * Or, alternatively,
20 *
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
28 * conditions:
29 *
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
32 *
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.
41 */
42
43/dts-v1/;
44#include "rk3288.dtsi"
45
46/ {
47 model = "Amarula Vyasa-RK3288";
48 compatible = "amarula,vyasa-rk3288", "rockchip,rk3288";
49
50 chosen {
51 stdout-path = &uart2;
52 };
53
54 memory {
Jagan Tekif233c432018-02-14 21:26:14 +053055 reg = <0x0 0x0 0x0 0x80000000>;
Jagan Teki59ea6182017-09-12 17:15:47 +053056 device_type = "memory";
Jagan Teki59ea6182017-09-12 17:15:47 +053057 };
58
Jagan Teki59ea6182017-09-12 17:15:47 +053059 vcc_sys: vsys-regulator {
60 compatible = "regulator-fixed";
61 regulator-name = "vcc_sys";
62 regulator-min-microvolt = <5000000>;
63 regulator-max-microvolt = <5000000>;
64 regulator-always-on;
65 regulator-boot-on;
66 };
67};
68
Jagan Teki59ea6182017-09-12 17:15:47 +053069&cpu0 {
70 cpu0-supply = <&vdd_cpu>;
71};
72
Jagan Tekif233c432018-02-14 21:26:14 +053073&gpu {
74 mali-supply = <&vdd_gpu>;
75 status = "okay";
76};
77
78&hdmi {
79 ddc-i2c-bus = <&i2c2>;
80 status = "okay";
81};
82
Jagan Teki59ea6182017-09-12 17:15:47 +053083&i2c0 {
84 clock-frequency = <400000>;
85 status = "okay";
86
87 rk808: pmic@1b {
88 compatible = "rockchip,rk808";
89 reg = <0x1b>;
90 interrupt-parent = <&gpio0>;
91 interrupts = <RK_PA4 IRQ_TYPE_LEVEL_LOW>;
Jagan Tekif233c432018-02-14 21:26:14 +053092 #clock-cells = <1>;
93 clock-output-names = "xin32k", "rk808-clkout2";
Jagan Teki59ea6182017-09-12 17:15:47 +053094 pinctrl-names = "default";
95 pinctrl-0 = <&pmic_int &global_pwroff>;
Jagan Teki59ea6182017-09-12 17:15:47 +053096 rockchip,system-power-controller;
Jagan Tekif233c432018-02-14 21:26:14 +053097 wakeup-source;
Jagan Teki59ea6182017-09-12 17:15:47 +053098
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>;
110
111 regulators {
Jagan Teki91d838d2018-02-14 21:26:15 +0530112 vdd_cpu: DCDC_REG1 {
113 regulator-name = "vdd_arm";
Jagan Teki59ea6182017-09-12 17:15:47 +0530114 regulator-min-microvolt = <750000>;
115 regulator-max-microvolt = <1350000>;
Jagan Tekif233c432018-02-14 21:26:14 +0530116 regulator-always-on;
117 regulator-boot-on;
Jagan Teki59ea6182017-09-12 17:15:47 +0530118 regulator-state-mem {
119 regulator-off-in-suspend;
120 };
121 };
122
123 vdd_gpu: DCDC_REG2 {
Jagan Tekif233c432018-02-14 21:26:14 +0530124 regulator-name = "vdd_gpu";
Jagan Teki59ea6182017-09-12 17:15:47 +0530125 regulator-min-microvolt = <850000>;
126 regulator-max-microvolt = <1250000>;
Jagan Tekif233c432018-02-14 21:26:14 +0530127 regulator-always-on;
128 regulator-boot-on;
Jagan Teki59ea6182017-09-12 17:15:47 +0530129 regulator-state-mem {
130 regulator-on-in-suspend;
131 regulator-suspend-microvolt = <1000000>;
132 };
133 };
134
135 vcc_ddr: DCDC_REG3 {
Jagan Tekif233c432018-02-14 21:26:14 +0530136 regulator-name = "vcc_ddr";
Jagan Teki59ea6182017-09-12 17:15:47 +0530137 regulator-always-on;
138 regulator-boot-on;
Jagan Teki59ea6182017-09-12 17:15:47 +0530139 regulator-state-mem {
140 regulator-on-in-suspend;
141 };
142 };
143
144 vcc_io: DCDC_REG4 {
Jagan Tekif233c432018-02-14 21:26:14 +0530145 regulator-name = "vcc_io";
Jagan Teki59ea6182017-09-12 17:15:47 +0530146 regulator-min-microvolt = <3300000>;
147 regulator-max-microvolt = <3300000>;
Jagan Tekif233c432018-02-14 21:26:14 +0530148 regulator-always-on;
149 regulator-boot-on;
Jagan Teki59ea6182017-09-12 17:15:47 +0530150 regulator-state-mem {
151 regulator-on-in-suspend;
152 regulator-suspend-microvolt = <3300000>;
153 };
154 };
155
156 vcca_tp: LDO_REG1 {
Jagan Tekif233c432018-02-14 21:26:14 +0530157 regulator-name = "vcc_tp";
Jagan Teki59ea6182017-09-12 17:15:47 +0530158 regulator-min-microvolt = <3300000>;
159 regulator-max-microvolt = <3300000>;
Jagan Tekif233c432018-02-14 21:26:14 +0530160 regulator-always-on;
161 regulator-boot-on;
Jagan Teki59ea6182017-09-12 17:15:47 +0530162 regulator-state-mem {
163 regulator-on-in-suspend;
164 regulator-suspend-microvolt = <3300000>;
165 };
166 };
167
168 vcc_codec: LDO_REG2 {
Jagan Tekif233c432018-02-14 21:26:14 +0530169 regulator-name = "vcc_codec";
Jagan Teki59ea6182017-09-12 17:15:47 +0530170 regulator-min-microvolt = <3300000>;
171 regulator-max-microvolt = <3300000>;
Jagan Tekif233c432018-02-14 21:26:14 +0530172 regulator-always-on;
173 regulator-boot-on;
Jagan Teki59ea6182017-09-12 17:15:47 +0530174 regulator-state-mem {
175 regulator-off-in-suspend;
176 };
177 };
178
179 vdd_10: LDO_REG3 {
Jagan Tekif233c432018-02-14 21:26:14 +0530180 regulator-name = "vdd_10";
Jagan Teki59ea6182017-09-12 17:15:47 +0530181 regulator-min-microvolt = <1000000>;
182 regulator-max-microvolt = <1000000>;
Jagan Tekif233c432018-02-14 21:26:14 +0530183 regulator-always-on;
184 regulator-boot-on;
Jagan Teki59ea6182017-09-12 17:15:47 +0530185 regulator-state-mem {
186 regulator-on-in-suspend;
187 regulator-suspend-microvolt = <1000000>;
188 };
189 };
190
191 vcc_gps: LDO_REG4 {
Jagan Tekif233c432018-02-14 21:26:14 +0530192 regulator-name = "vcc_gps";
Jagan Teki59ea6182017-09-12 17:15:47 +0530193 regulator-min-microvolt = <1800000>;
194 regulator-max-microvolt = <1800000>;
Jagan Tekif233c432018-02-14 21:26:14 +0530195 regulator-always-on;
196 regulator-boot-on;
Jagan Teki59ea6182017-09-12 17:15:47 +0530197 regulator-state-mem {
198 regulator-on-in-suspend;
199 regulator-suspend-microvolt = <1800000>;
200 };
201 };
202
203 vccio_sd: LDO_REG5 {
Jagan Tekif233c432018-02-14 21:26:14 +0530204 regulator-name = "vccio_sd";
Jagan Teki59ea6182017-09-12 17:15:47 +0530205 regulator-min-microvolt = <1800000>;
206 regulator-max-microvolt = <3300000>;
Jagan Tekif233c432018-02-14 21:26:14 +0530207 regulator-always-on;
208 regulator-boot-on;
Jagan Teki59ea6182017-09-12 17:15:47 +0530209 regulator-state-mem {
210 regulator-on-in-suspend;
211 regulator-suspend-microvolt = <3300000>;
212 };
213 };
214
215 vcc10_lcd: LDO_REG6 {
Jagan Tekif233c432018-02-14 21:26:14 +0530216 regulator-name = "vcc10_lcd";
Jagan Teki59ea6182017-09-12 17:15:47 +0530217 regulator-min-microvolt = <1000000>;
218 regulator-max-microvolt = <1000000>;
Jagan Tekif233c432018-02-14 21:26:14 +0530219 regulator-always-on;
220 regulator-boot-on;
Jagan Teki59ea6182017-09-12 17:15:47 +0530221 regulator-state-mem {
222 regulator-on-in-suspend;
223 regulator-suspend-microvolt = <1800000>;
224 };
225 };
226
227 vcc_18: LDO_REG7 {
Jagan Tekif233c432018-02-14 21:26:14 +0530228 regulator-name = "vcc_18";
Jagan Teki59ea6182017-09-12 17:15:47 +0530229 regulator-min-microvolt = <1800000>;
230 regulator-max-microvolt = <1800000>;
Jagan Tekif233c432018-02-14 21:26:14 +0530231 regulator-always-on;
232 regulator-boot-on;
Jagan Teki59ea6182017-09-12 17:15:47 +0530233 regulator-state-mem {
234 regulator-on-in-suspend;
235 regulator-suspend-microvolt = <1800000>;
236 };
237 };
238
239 vcc18_lcd: LDO_REG8 {
Jagan Tekif233c432018-02-14 21:26:14 +0530240 regulator-name = "vcc18_lcd";
Jagan Teki59ea6182017-09-12 17:15:47 +0530241 regulator-min-microvolt = <1800000>;
242 regulator-max-microvolt = <1800000>;
Jagan Tekif233c432018-02-14 21:26:14 +0530243 regulator-always-on;
244 regulator-boot-on;
Jagan Teki59ea6182017-09-12 17:15:47 +0530245 regulator-state-mem {
246 regulator-on-in-suspend;
247 regulator-suspend-microvolt = <1800000>;
248 };
249 };
250
Jagan Teki5d8a9b82018-02-14 21:26:16 +0530251 vcc_sd: SWITCH_REG1 {
252 regulator-name = "vcc_sd";
Jagan Teki59ea6182017-09-12 17:15:47 +0530253 regulator-min-microvolt = <3300000>;
254 regulator-max-microvolt = <3300000>;
Jagan Tekif233c432018-02-14 21:26:14 +0530255 regulator-always-on;
256 regulator-boot-on;
Jagan Teki59ea6182017-09-12 17:15:47 +0530257 regulator-state-mem {
258 regulator-on-in-suspend;
259 };
260 };
261
262 vcc_lan: SWITCH_REG2 {
Jagan Tekif233c432018-02-14 21:26:14 +0530263 regulator-name = "vcc_lan";
Jagan Teki59ea6182017-09-12 17:15:47 +0530264 regulator-min-microvolt = <3300000>;
265 regulator-max-microvolt = <3300000>;
Jagan Tekif233c432018-02-14 21:26:14 +0530266 regulator-always-on;
267 regulator-boot-on;
Jagan Teki59ea6182017-09-12 17:15:47 +0530268 regulator-state-mem {
269 regulator-on-in-suspend;
270 };
271 };
272 };
273 };
274};
275
Jagan Tekif233c432018-02-14 21:26:14 +0530276&i2c2 {
Jagan Teki59ea6182017-09-12 17:15:47 +0530277 status = "okay";
Jagan Tekif233c432018-02-14 21:26:14 +0530278};
Jagan Teki59ea6182017-09-12 17:15:47 +0530279
Jagan Tekif233c432018-02-14 21:26:14 +0530280&sdmmc {
Jagan Teki59ea6182017-09-12 17:15:47 +0530281 bus-width = <4>;
282 cap-mmc-highspeed;
283 cap-sd-highspeed;
284 card-detect-delay = <200>;
285 disable-wp;
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>;
Jagan Tekif233c432018-02-14 21:26:14 +0530290 status = "okay";
Jagan Teki59ea6182017-09-12 17:15:47 +0530291};
292
293&uart2 {
Jagan Tekif233c432018-02-14 21:26:14 +0530294 status = "okay";
295};
296
297&vopb {
298 status = "okay";
299};
300
301&vopb_mmu {
Jagan Teki59ea6182017-09-12 17:15:47 +0530302 status = "okay";
303};
304
Jagan Tekif233c432018-02-14 21:26:14 +0530305&vopl {
306 status = "okay";
307};
308
309&vopl_mmu {
310 status = "okay";
311};
312
Jagan Teki59ea6182017-09-12 17:15:47 +0530313&wdt {
314 status = "okay";
315};
316
317&pinctrl {
Jagan Teki59ea6182017-09-12 17:15:47 +0530318 pmic {
319 pmic_int: pmic-int {
320 rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>;
321 };
322 };
Jagan Teki59ea6182017-09-12 17:15:47 +0530323};