xref: /OK3568_Linux_fs/u-boot/arch/arm/dts/rk3288-vyasa.dts (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun/*
2*4882a593Smuzhiyun * Copyright (C) 2017 Jagan Teki <jagan@amarulasolutions.com>
3*4882a593Smuzhiyun *
4*4882a593Smuzhiyun * This file is dual-licensed: you can use it either under the terms
5*4882a593Smuzhiyun * of the GPL or the X11 license, at your option. Note that this dual
6*4882a593Smuzhiyun * licensing only applies to this file, and not this project as a
7*4882a593Smuzhiyun * whole.
8*4882a593Smuzhiyun *
9*4882a593Smuzhiyun *  a) This file is free software; you can redistribute it and/or
10*4882a593Smuzhiyun *     modify it under the terms of the GNU General Public License as
11*4882a593Smuzhiyun *     published by the Free Software Foundation; either version 2 of the
12*4882a593Smuzhiyun *     License, or (at your option) any later version.
13*4882a593Smuzhiyun *
14*4882a593Smuzhiyun *     This file is distributed in the hope that it will be useful,
15*4882a593Smuzhiyun *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16*4882a593Smuzhiyun *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17*4882a593Smuzhiyun *     GNU General Public License for more details.
18*4882a593Smuzhiyun *
19*4882a593Smuzhiyun * Or, alternatively,
20*4882a593Smuzhiyun *
21*4882a593Smuzhiyun *  b) Permission is hereby granted, free of charge, to any person
22*4882a593Smuzhiyun *     obtaining a copy of this software and associated documentation
23*4882a593Smuzhiyun *     files (the "Software"), to deal in the Software without
24*4882a593Smuzhiyun *     restriction, including without limitation the rights to use,
25*4882a593Smuzhiyun *     copy, modify, merge, publish, distribute, sublicense, and/or
26*4882a593Smuzhiyun *     sell copies of the Software, and to permit persons to whom the
27*4882a593Smuzhiyun *     Software is furnished to do so, subject to the following
28*4882a593Smuzhiyun *     conditions:
29*4882a593Smuzhiyun *
30*4882a593Smuzhiyun *     The above copyright notice and this permission notice shall be
31*4882a593Smuzhiyun *     included in all copies or substantial portions of the Software.
32*4882a593Smuzhiyun *
33*4882a593Smuzhiyun *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34*4882a593Smuzhiyun *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35*4882a593Smuzhiyun *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36*4882a593Smuzhiyun *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37*4882a593Smuzhiyun *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38*4882a593Smuzhiyun *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39*4882a593Smuzhiyun *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40*4882a593Smuzhiyun *     OTHER DEALINGS IN THE SOFTWARE.
41*4882a593Smuzhiyun */
42*4882a593Smuzhiyun
43*4882a593Smuzhiyun/dts-v1/;
44*4882a593Smuzhiyun#include "rk3288.dtsi"
45*4882a593Smuzhiyun#include "rk3288-u-boot.dtsi"
46*4882a593Smuzhiyun
47*4882a593Smuzhiyun/ {
48*4882a593Smuzhiyun	model = "Amarula Vyasa-RK3288";
49*4882a593Smuzhiyun	compatible = "amarula,vyasa-rk3288", "rockchip,rk3288";
50*4882a593Smuzhiyun
51*4882a593Smuzhiyun	chosen {
52*4882a593Smuzhiyun		stdout-path = &uart2;
53*4882a593Smuzhiyun	};
54*4882a593Smuzhiyun
55*4882a593Smuzhiyun	memory {
56*4882a593Smuzhiyun		device_type = "memory";
57*4882a593Smuzhiyun		reg = <0 0x80000000>;
58*4882a593Smuzhiyun	};
59*4882a593Smuzhiyun
60*4882a593Smuzhiyun	vcc_sd: sdmmc-regulator {
61*4882a593Smuzhiyun		compatible = "regulator-fixed";
62*4882a593Smuzhiyun		gpio = <&gpio7 RK_PB3 GPIO_ACTIVE_LOW>;
63*4882a593Smuzhiyun		pinctrl-names = "default";
64*4882a593Smuzhiyun		pinctrl-0 = <&sdmmc_pwr>;
65*4882a593Smuzhiyun		regulator-name = "vcc_sd";
66*4882a593Smuzhiyun		regulator-min-microvolt = <3300000>;
67*4882a593Smuzhiyun		regulator-max-microvolt = <3300000>;
68*4882a593Smuzhiyun		startup-delay-us = <100000>;
69*4882a593Smuzhiyun		vin-supply = <&vcc_io>;
70*4882a593Smuzhiyun	};
71*4882a593Smuzhiyun
72*4882a593Smuzhiyun	vcc_sys: vsys-regulator {
73*4882a593Smuzhiyun		compatible = "regulator-fixed";
74*4882a593Smuzhiyun		regulator-name = "vcc_sys";
75*4882a593Smuzhiyun		regulator-min-microvolt = <5000000>;
76*4882a593Smuzhiyun		regulator-max-microvolt = <5000000>;
77*4882a593Smuzhiyun		regulator-always-on;
78*4882a593Smuzhiyun		regulator-boot-on;
79*4882a593Smuzhiyun	};
80*4882a593Smuzhiyun};
81*4882a593Smuzhiyun
82*4882a593Smuzhiyun&dmc {
83*4882a593Smuzhiyun	rockchip,pctl-timing = <0x29a 0xc8 0x1f8 0x42 0x4e 0x4 0xea 0xa
84*4882a593Smuzhiyun		0x5 0x0 0xa 0x7 0x19 0x24 0xa 0x7
85*4882a593Smuzhiyun		0x5 0xa 0x5 0x200 0x5 0x10 0x40 0x0
86*4882a593Smuzhiyun		0x1 0x7 0x7 0x4 0xc 0x43 0x100 0x0
87*4882a593Smuzhiyun		0x5 0x0>;
88*4882a593Smuzhiyun	rockchip,phy-timing = <0x48f9aab4 0xea0910 0x1002c200
89*4882a593Smuzhiyun		0xa60 0x40 0x10 0x0>;
90*4882a593Smuzhiyun	/* Add a dummy value to cause of-platdata think this is bytes */
91*4882a593Smuzhiyun	rockchip,sdram-params = <0x30B25564 0x627 3 666000000 3 9 1>;
92*4882a593Smuzhiyun};
93*4882a593Smuzhiyun
94*4882a593Smuzhiyun&cpu0 {
95*4882a593Smuzhiyun	cpu0-supply = <&vdd_cpu>;
96*4882a593Smuzhiyun};
97*4882a593Smuzhiyun
98*4882a593Smuzhiyun&i2c0 {
99*4882a593Smuzhiyun	clock-frequency = <400000>;
100*4882a593Smuzhiyun	status = "okay";
101*4882a593Smuzhiyun
102*4882a593Smuzhiyun	rk808: pmic@1b {
103*4882a593Smuzhiyun		compatible = "rockchip,rk808";
104*4882a593Smuzhiyun		reg = <0x1b>;
105*4882a593Smuzhiyun		interrupt-parent = <&gpio0>;
106*4882a593Smuzhiyun		interrupts = <RK_PA4 IRQ_TYPE_LEVEL_LOW>;
107*4882a593Smuzhiyun		pinctrl-names = "default";
108*4882a593Smuzhiyun		pinctrl-0 = <&pmic_int &global_pwroff>;
109*4882a593Smuzhiyun		wakeup-source;
110*4882a593Smuzhiyun		rockchip,system-power-controller;
111*4882a593Smuzhiyun		#clock-cells = <1>;
112*4882a593Smuzhiyun		clock-output-names = "xin32k", "rk808-clkout2";
113*4882a593Smuzhiyun
114*4882a593Smuzhiyun		vcc1-supply = <&vcc_sys>;
115*4882a593Smuzhiyun		vcc2-supply = <&vcc_sys>;
116*4882a593Smuzhiyun		vcc3-supply = <&vcc_sys>;
117*4882a593Smuzhiyun		vcc4-supply = <&vcc_sys>;
118*4882a593Smuzhiyun		vcc6-supply = <&vcc_sys>;
119*4882a593Smuzhiyun		vcc7-supply = <&vcc_sys>;
120*4882a593Smuzhiyun		vcc8-supply = <&vcc_io>;
121*4882a593Smuzhiyun		vcc9-supply = <&vcc_sys>;
122*4882a593Smuzhiyun		vcc10-supply = <&vcc_sys>;
123*4882a593Smuzhiyun		vcc11-supply = <&vcc_sys>;
124*4882a593Smuzhiyun		vcc12-supply = <&vcc_io>;
125*4882a593Smuzhiyun
126*4882a593Smuzhiyun		regulators {
127*4882a593Smuzhiyun			vdd_cpu: vdd_log: DCDC_REG1 {
128*4882a593Smuzhiyun				regulator-always-on;
129*4882a593Smuzhiyun				regulator-boot-on;
130*4882a593Smuzhiyun				regulator-min-microvolt = <750000>;
131*4882a593Smuzhiyun				regulator-max-microvolt = <1350000>;
132*4882a593Smuzhiyun				regulator-name = "vdd_log";
133*4882a593Smuzhiyun				regulator-state-mem {
134*4882a593Smuzhiyun					regulator-off-in-suspend;
135*4882a593Smuzhiyun				};
136*4882a593Smuzhiyun			};
137*4882a593Smuzhiyun
138*4882a593Smuzhiyun			vdd_gpu: DCDC_REG2 {
139*4882a593Smuzhiyun				regulator-always-on;
140*4882a593Smuzhiyun				regulator-boot-on;
141*4882a593Smuzhiyun				regulator-min-microvolt = <850000>;
142*4882a593Smuzhiyun				regulator-max-microvolt = <1250000>;
143*4882a593Smuzhiyun				regulator-name = "vdd_gpu";
144*4882a593Smuzhiyun				regulator-state-mem {
145*4882a593Smuzhiyun					regulator-on-in-suspend;
146*4882a593Smuzhiyun					regulator-suspend-microvolt = <1000000>;
147*4882a593Smuzhiyun				};
148*4882a593Smuzhiyun			};
149*4882a593Smuzhiyun
150*4882a593Smuzhiyun			vcc_ddr: DCDC_REG3 {
151*4882a593Smuzhiyun				regulator-always-on;
152*4882a593Smuzhiyun				regulator-boot-on;
153*4882a593Smuzhiyun				regulator-name = "vcc_ddr";
154*4882a593Smuzhiyun				regulator-state-mem {
155*4882a593Smuzhiyun					regulator-on-in-suspend;
156*4882a593Smuzhiyun				};
157*4882a593Smuzhiyun			};
158*4882a593Smuzhiyun
159*4882a593Smuzhiyun			vcc_io: DCDC_REG4 {
160*4882a593Smuzhiyun				regulator-always-on;
161*4882a593Smuzhiyun				regulator-boot-on;
162*4882a593Smuzhiyun				regulator-min-microvolt = <3300000>;
163*4882a593Smuzhiyun				regulator-max-microvolt = <3300000>;
164*4882a593Smuzhiyun				regulator-name = "vcc_io";
165*4882a593Smuzhiyun				regulator-state-mem {
166*4882a593Smuzhiyun					regulator-on-in-suspend;
167*4882a593Smuzhiyun					regulator-suspend-microvolt = <3300000>;
168*4882a593Smuzhiyun				};
169*4882a593Smuzhiyun			};
170*4882a593Smuzhiyun
171*4882a593Smuzhiyun			vcca_tp: LDO_REG1 {
172*4882a593Smuzhiyun				regulator-always-on;
173*4882a593Smuzhiyun				regulator-boot-on;
174*4882a593Smuzhiyun				regulator-min-microvolt = <3300000>;
175*4882a593Smuzhiyun				regulator-max-microvolt = <3300000>;
176*4882a593Smuzhiyun				regulator-name = "vcc_tp";
177*4882a593Smuzhiyun				regulator-state-mem {
178*4882a593Smuzhiyun					regulator-on-in-suspend;
179*4882a593Smuzhiyun					regulator-suspend-microvolt = <3300000>;
180*4882a593Smuzhiyun				};
181*4882a593Smuzhiyun			};
182*4882a593Smuzhiyun
183*4882a593Smuzhiyun			vcc_codec: LDO_REG2 {
184*4882a593Smuzhiyun				regulator-always-on;
185*4882a593Smuzhiyun				regulator-boot-on;
186*4882a593Smuzhiyun				regulator-min-microvolt = <3300000>;
187*4882a593Smuzhiyun				regulator-max-microvolt = <3300000>;
188*4882a593Smuzhiyun				regulator-name = "vcc_codec";
189*4882a593Smuzhiyun				regulator-state-mem {
190*4882a593Smuzhiyun					regulator-off-in-suspend;
191*4882a593Smuzhiyun				};
192*4882a593Smuzhiyun			};
193*4882a593Smuzhiyun
194*4882a593Smuzhiyun			vdd_10: LDO_REG3 {
195*4882a593Smuzhiyun				regulator-always-on;
196*4882a593Smuzhiyun				regulator-boot-on;
197*4882a593Smuzhiyun				regulator-min-microvolt = <1000000>;
198*4882a593Smuzhiyun				regulator-max-microvolt = <1000000>;
199*4882a593Smuzhiyun				regulator-name = "vdd_10";
200*4882a593Smuzhiyun				regulator-state-mem {
201*4882a593Smuzhiyun					regulator-on-in-suspend;
202*4882a593Smuzhiyun					regulator-suspend-microvolt = <1000000>;
203*4882a593Smuzhiyun				};
204*4882a593Smuzhiyun			};
205*4882a593Smuzhiyun
206*4882a593Smuzhiyun			vcc_gps: LDO_REG4 {
207*4882a593Smuzhiyun				regulator-always-on;
208*4882a593Smuzhiyun				regulator-boot-on;
209*4882a593Smuzhiyun				regulator-min-microvolt = <1800000>;
210*4882a593Smuzhiyun				regulator-max-microvolt = <1800000>;
211*4882a593Smuzhiyun				regulator-name = "vcc_gps";
212*4882a593Smuzhiyun				regulator-state-mem {
213*4882a593Smuzhiyun					regulator-on-in-suspend;
214*4882a593Smuzhiyun					regulator-suspend-microvolt = <1800000>;
215*4882a593Smuzhiyun				};
216*4882a593Smuzhiyun			};
217*4882a593Smuzhiyun
218*4882a593Smuzhiyun			vccio_sd: LDO_REG5 {
219*4882a593Smuzhiyun				regulator-always-on;
220*4882a593Smuzhiyun				regulator-boot-on;
221*4882a593Smuzhiyun				regulator-min-microvolt = <1800000>;
222*4882a593Smuzhiyun				regulator-max-microvolt = <3300000>;
223*4882a593Smuzhiyun				regulator-name = "vccio_sd";
224*4882a593Smuzhiyun				regulator-state-mem {
225*4882a593Smuzhiyun					regulator-on-in-suspend;
226*4882a593Smuzhiyun					regulator-suspend-microvolt = <3300000>;
227*4882a593Smuzhiyun				};
228*4882a593Smuzhiyun			};
229*4882a593Smuzhiyun
230*4882a593Smuzhiyun			vcc10_lcd: LDO_REG6 {
231*4882a593Smuzhiyun				regulator-always-on;
232*4882a593Smuzhiyun				regulator-boot-on;
233*4882a593Smuzhiyun				regulator-min-microvolt = <1000000>;
234*4882a593Smuzhiyun				regulator-max-microvolt = <1000000>;
235*4882a593Smuzhiyun				regulator-name = "vcc10_lcd";
236*4882a593Smuzhiyun				regulator-state-mem {
237*4882a593Smuzhiyun					regulator-on-in-suspend;
238*4882a593Smuzhiyun					regulator-suspend-microvolt = <1800000>;
239*4882a593Smuzhiyun				};
240*4882a593Smuzhiyun			};
241*4882a593Smuzhiyun
242*4882a593Smuzhiyun			vcc_18: LDO_REG7 {
243*4882a593Smuzhiyun				regulator-always-on;
244*4882a593Smuzhiyun				regulator-boot-on;
245*4882a593Smuzhiyun				regulator-min-microvolt = <1800000>;
246*4882a593Smuzhiyun				regulator-max-microvolt = <1800000>;
247*4882a593Smuzhiyun				regulator-name = "vcc_18";
248*4882a593Smuzhiyun				regulator-state-mem {
249*4882a593Smuzhiyun					regulator-on-in-suspend;
250*4882a593Smuzhiyun					regulator-suspend-microvolt = <1800000>;
251*4882a593Smuzhiyun				};
252*4882a593Smuzhiyun			};
253*4882a593Smuzhiyun
254*4882a593Smuzhiyun			vcc18_lcd: LDO_REG8 {
255*4882a593Smuzhiyun				regulator-always-on;
256*4882a593Smuzhiyun				regulator-boot-on;
257*4882a593Smuzhiyun				regulator-min-microvolt = <1800000>;
258*4882a593Smuzhiyun				regulator-max-microvolt = <1800000>;
259*4882a593Smuzhiyun				regulator-name = "vcc18_lcd";
260*4882a593Smuzhiyun				regulator-state-mem {
261*4882a593Smuzhiyun					regulator-on-in-suspend;
262*4882a593Smuzhiyun					regulator-suspend-microvolt = <1800000>;
263*4882a593Smuzhiyun				};
264*4882a593Smuzhiyun			};
265*4882a593Smuzhiyun
266*4882a593Smuzhiyun			vcc33_sd: SWITCH_REG1 {
267*4882a593Smuzhiyun				regulator-always-on;
268*4882a593Smuzhiyun				regulator-boot-on;
269*4882a593Smuzhiyun				regulator-min-microvolt = <3300000>;
270*4882a593Smuzhiyun				regulator-max-microvolt = <3300000>;
271*4882a593Smuzhiyun				regulator-name = "vcc33_sd";
272*4882a593Smuzhiyun				regulator-state-mem {
273*4882a593Smuzhiyun					regulator-on-in-suspend;
274*4882a593Smuzhiyun				};
275*4882a593Smuzhiyun			};
276*4882a593Smuzhiyun
277*4882a593Smuzhiyun			vcc_lan: SWITCH_REG2 {
278*4882a593Smuzhiyun				regulator-always-on;
279*4882a593Smuzhiyun				regulator-boot-on;
280*4882a593Smuzhiyun				regulator-min-microvolt = <3300000>;
281*4882a593Smuzhiyun				regulator-max-microvolt = <3300000>;
282*4882a593Smuzhiyun				regulator-name = "vcc_lan";
283*4882a593Smuzhiyun				regulator-state-mem {
284*4882a593Smuzhiyun					regulator-on-in-suspend;
285*4882a593Smuzhiyun				};
286*4882a593Smuzhiyun			};
287*4882a593Smuzhiyun		};
288*4882a593Smuzhiyun	};
289*4882a593Smuzhiyun};
290*4882a593Smuzhiyun
291*4882a593Smuzhiyun&sdmmc {
292*4882a593Smuzhiyun	u-boot,dm-pre-reloc;
293*4882a593Smuzhiyun	status = "okay";
294*4882a593Smuzhiyun
295*4882a593Smuzhiyun	bus-width = <4>;
296*4882a593Smuzhiyun	cap-mmc-highspeed;
297*4882a593Smuzhiyun	cap-sd-highspeed;
298*4882a593Smuzhiyun	card-detect-delay = <200>;
299*4882a593Smuzhiyun	disable-wp;
300*4882a593Smuzhiyun	pinctrl-names = "default";
301*4882a593Smuzhiyun	pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_cd>, <&sdmmc_bus4>;
302*4882a593Smuzhiyun	vmmc-supply = <&vcc_sd>;
303*4882a593Smuzhiyun	vqmmc-supply = <&vccio_sd>;
304*4882a593Smuzhiyun};
305*4882a593Smuzhiyun
306*4882a593Smuzhiyun&uart2 {
307*4882a593Smuzhiyun	u-boot,dm-pre-reloc;
308*4882a593Smuzhiyun	status = "okay";
309*4882a593Smuzhiyun};
310*4882a593Smuzhiyun
311*4882a593Smuzhiyun&wdt {
312*4882a593Smuzhiyun	status = "okay";
313*4882a593Smuzhiyun};
314*4882a593Smuzhiyun
315*4882a593Smuzhiyun&pinctrl {
316*4882a593Smuzhiyun	u-boot,dm-pre-reloc;
317*4882a593Smuzhiyun	pmic {
318*4882a593Smuzhiyun		pmic_int: pmic-int {
319*4882a593Smuzhiyun			rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>;
320*4882a593Smuzhiyun		};
321*4882a593Smuzhiyun	};
322*4882a593Smuzhiyun
323*4882a593Smuzhiyun	sdmmc {
324*4882a593Smuzhiyun		sdmmc_pwr: sdmmc-pwr {
325*4882a593Smuzhiyun			rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
326*4882a593Smuzhiyun		};
327*4882a593Smuzhiyun	};
328*4882a593Smuzhiyun};
329