xref: /OK3568_Linux_fs/u-boot/arch/arm/dts/rk3288-veyron-mickey.dts (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun/*
2*4882a593Smuzhiyun * Google Veyron Mickey Rev 0 board device tree source
3*4882a593Smuzhiyun *
4*4882a593Smuzhiyun * Copyright 2015 Google, Inc
5*4882a593Smuzhiyun *
6*4882a593Smuzhiyun * This file is dual-licensed: you can use it either under the terms
7*4882a593Smuzhiyun * of the GPL or the X11 license, at your option. Note that this dual
8*4882a593Smuzhiyun * licensing only applies to this file, and not this project as a
9*4882a593Smuzhiyun * whole.
10*4882a593Smuzhiyun *
11*4882a593Smuzhiyun *  a) This file is free software; you can redistribute it and/or
12*4882a593Smuzhiyun *     modify it under the terms of the GNU General Public License as
13*4882a593Smuzhiyun *     published by the Free Software Foundation; either version 2 of the
14*4882a593Smuzhiyun *     License, or (at your option) any later version.
15*4882a593Smuzhiyun *
16*4882a593Smuzhiyun *     This file is distributed in the hope that it will be useful,
17*4882a593Smuzhiyun *     but WITHOUT ANY WARRANTY; without even the implied warranty of
18*4882a593Smuzhiyun *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19*4882a593Smuzhiyun *     GNU General Public License for more details.
20*4882a593Smuzhiyun *
21*4882a593Smuzhiyun *  Or, alternatively,
22*4882a593Smuzhiyun *
23*4882a593Smuzhiyun *  b) Permission is hereby granted, free of charge, to any person
24*4882a593Smuzhiyun *     obtaining a copy of this software and associated documentation
25*4882a593Smuzhiyun *     files (the "Software"), to deal in the Software without
26*4882a593Smuzhiyun *     restriction, including without limitation the rights to use,
27*4882a593Smuzhiyun *     copy, modify, merge, publish, distribute, sublicense, and/or
28*4882a593Smuzhiyun *     sell copies of the Software, and to permit persons to whom the
29*4882a593Smuzhiyun *     Software is furnished to do so, subject to the following
30*4882a593Smuzhiyun *     conditions:
31*4882a593Smuzhiyun *
32*4882a593Smuzhiyun *     The above copyright notice and this permission notice shall be
33*4882a593Smuzhiyun *     included in all copies or substantial portions of the Software.
34*4882a593Smuzhiyun *
35*4882a593Smuzhiyun *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36*4882a593Smuzhiyun *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37*4882a593Smuzhiyun *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38*4882a593Smuzhiyun *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39*4882a593Smuzhiyun *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40*4882a593Smuzhiyun *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41*4882a593Smuzhiyun *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42*4882a593Smuzhiyun *     OTHER DEALINGS IN THE SOFTWARE.
43*4882a593Smuzhiyun */
44*4882a593Smuzhiyun
45*4882a593Smuzhiyun/dts-v1/;
46*4882a593Smuzhiyun#include "rk3288-veyron-chromebook.dtsi"
47*4882a593Smuzhiyun
48*4882a593Smuzhiyun/ {
49*4882a593Smuzhiyun	model = "Google Mickey";
50*4882a593Smuzhiyun	compatible = "google,veyron-mickey-rev8", "google,veyron-mickey-rev7",
51*4882a593Smuzhiyun		     "google,veyron-mickey-rev6", "google,veyron-mickey-rev5",
52*4882a593Smuzhiyun		     "google,veyron-mickey-rev4", "google,veyron-mickey-rev3",
53*4882a593Smuzhiyun		     "google,veyron-mickey-rev2", "google,veyron-mickey-rev1",
54*4882a593Smuzhiyun		     "google,veyron-mickey-rev0", "google,veyron-mickey",
55*4882a593Smuzhiyun		     "google,veyron", "rockchip,rk3288";
56*4882a593Smuzhiyun
57*4882a593Smuzhiyun	vcc_5v: vcc-5v {
58*4882a593Smuzhiyun		vin-supply = <&vcc33_sys>;
59*4882a593Smuzhiyun	};
60*4882a593Smuzhiyun
61*4882a593Smuzhiyun	vcc33_io: vcc33_io {
62*4882a593Smuzhiyun		compatible = "regulator-fixed";
63*4882a593Smuzhiyun		regulator-name = "vcc33_io";
64*4882a593Smuzhiyun		regulator-always-on;
65*4882a593Smuzhiyun		regulator-boot-on;
66*4882a593Smuzhiyun		vin-supply = <&vcc33_sys>;
67*4882a593Smuzhiyun	};
68*4882a593Smuzhiyun};
69*4882a593Smuzhiyun
70*4882a593Smuzhiyun&cpu_thermal {
71*4882a593Smuzhiyun	/delete-node/ trips;
72*4882a593Smuzhiyun	/delete-node/ cooling-maps;
73*4882a593Smuzhiyun
74*4882a593Smuzhiyun	trips {
75*4882a593Smuzhiyun		cpu_alert_almost_warm: cpu_alert_almost_warm {
76*4882a593Smuzhiyun			temperature = <63000>; /* millicelsius */
77*4882a593Smuzhiyun			hysteresis = <2000>; /* millicelsius */
78*4882a593Smuzhiyun			type = "passive";
79*4882a593Smuzhiyun		};
80*4882a593Smuzhiyun		cpu_alert_warm: cpu_alert_warm {
81*4882a593Smuzhiyun			temperature = <65000>; /* millicelsius */
82*4882a593Smuzhiyun			hysteresis = <2000>; /* millicelsius */
83*4882a593Smuzhiyun			type = "passive";
84*4882a593Smuzhiyun		};
85*4882a593Smuzhiyun		cpu_alert_almost_hot: cpu_alert_almost_hot {
86*4882a593Smuzhiyun			temperature = <80000>; /* millicelsius */
87*4882a593Smuzhiyun			hysteresis = <2000>; /* millicelsius */
88*4882a593Smuzhiyun			type = "passive";
89*4882a593Smuzhiyun		};
90*4882a593Smuzhiyun		cpu_alert_hot: cpu_alert_hot {
91*4882a593Smuzhiyun			temperature = <82000>; /* millicelsius */
92*4882a593Smuzhiyun			hysteresis = <2000>; /* millicelsius */
93*4882a593Smuzhiyun			type = "passive";
94*4882a593Smuzhiyun		};
95*4882a593Smuzhiyun		cpu_alert_hotter: cpu_alert_hotter {
96*4882a593Smuzhiyun			temperature = <84000>; /* millicelsius */
97*4882a593Smuzhiyun			hysteresis = <2000>; /* millicelsius */
98*4882a593Smuzhiyun			type = "passive";
99*4882a593Smuzhiyun		};
100*4882a593Smuzhiyun		cpu_alert_very_hot: cpu_alert_very_hot {
101*4882a593Smuzhiyun			temperature = <85000>; /* millicelsius */
102*4882a593Smuzhiyun			hysteresis = <2000>; /* millicelsius */
103*4882a593Smuzhiyun			type = "passive";
104*4882a593Smuzhiyun		};
105*4882a593Smuzhiyun		cpu_crit: cpu_crit {
106*4882a593Smuzhiyun			temperature = <90000>; /* millicelsius */
107*4882a593Smuzhiyun			hysteresis = <2000>; /* millicelsius */
108*4882a593Smuzhiyun			type = "critical";
109*4882a593Smuzhiyun		};
110*4882a593Smuzhiyun	};
111*4882a593Smuzhiyun
112*4882a593Smuzhiyun	cooling-maps {
113*4882a593Smuzhiyun		/*
114*4882a593Smuzhiyun		 * After 1st level, throttle the CPU down to as low as 1.4 GHz
115*4882a593Smuzhiyun		 * and don't let the GPU go faster than 400 MHz.  Note that we
116*4882a593Smuzhiyun		 * won't throttle the GPU lower than 400 MHz due to CPU
117*4882a593Smuzhiyun		 * heat--we'll let the GPU do the rest itself.
118*4882a593Smuzhiyun		 */
119*4882a593Smuzhiyun		cpu_warm_limit_cpu {
120*4882a593Smuzhiyun			trip = <&cpu_alert_warm>;
121*4882a593Smuzhiyun			cooling-device =
122*4882a593Smuzhiyun				<&cpu0 THERMAL_NO_LIMIT 4>;
123*4882a593Smuzhiyun		};
124*4882a593Smuzhiyun
125*4882a593Smuzhiyun		/*
126*4882a593Smuzhiyun		 * Add some discrete steps to help throttling system deal
127*4882a593Smuzhiyun		 * with the fact that there are two passive cooling devices:
128*4882a593Smuzhiyun		 * the CPU and the GPU.
129*4882a593Smuzhiyun		 *
130*4882a593Smuzhiyun		 * - 1.2 GHz - 1.0 GHz (almost hot)
131*4882a593Smuzhiyun		 * - 800 MHz           (hot)
132*4882a593Smuzhiyun		 * - 800 MHz - 696 MHz (hotter)
133*4882a593Smuzhiyun		 * - 696 MHz - min     (very hot)
134*4882a593Smuzhiyun		 *
135*4882a593Smuzhiyun		 * Note:
136*4882a593Smuzhiyun		 * - 800 MHz appears to be a "sweet spot" for me.  I can run
137*4882a593Smuzhiyun		 *   some pretty serious workload here and be happy.
138*4882a593Smuzhiyun		 * - After 696 MHz we stop lowering voltage, so throttling
139*4882a593Smuzhiyun		 *   past there is less effective.
140*4882a593Smuzhiyun		 */
141*4882a593Smuzhiyun		cpu_almost_hot_limit_cpu {
142*4882a593Smuzhiyun			trip = <&cpu_alert_almost_hot>;
143*4882a593Smuzhiyun			cooling-device =
144*4882a593Smuzhiyun				<&cpu0 5 6>;
145*4882a593Smuzhiyun		};
146*4882a593Smuzhiyun		cpu_hot_limit_cpu {
147*4882a593Smuzhiyun			trip = <&cpu_alert_hot>;
148*4882a593Smuzhiyun			cooling-device =
149*4882a593Smuzhiyun				<&cpu0 7 7>;
150*4882a593Smuzhiyun		};
151*4882a593Smuzhiyun		cpu_hotter_limit_cpu {
152*4882a593Smuzhiyun			trip = <&cpu_alert_hotter>;
153*4882a593Smuzhiyun			cooling-device =
154*4882a593Smuzhiyun				<&cpu0 7 8>;
155*4882a593Smuzhiyun		};
156*4882a593Smuzhiyun		cpu_very_hot_limit_cpu {
157*4882a593Smuzhiyun			trip = <&cpu_alert_very_hot>;
158*4882a593Smuzhiyun			cooling-device =
159*4882a593Smuzhiyun				<&cpu0 8 THERMAL_NO_LIMIT>;
160*4882a593Smuzhiyun		};
161*4882a593Smuzhiyun	};
162*4882a593Smuzhiyun};
163*4882a593Smuzhiyun
164*4882a593Smuzhiyun&dmc {
165*4882a593Smuzhiyun	rockchip,pctl-timing = <0x215 0xc8 0x0 0x35 0x26 0x2 0x70 0x2000d
166*4882a593Smuzhiyun		0x6 0x0 0x8 0x4 0x17 0x24 0xd 0x6
167*4882a593Smuzhiyun		0x4 0x8 0x4 0x76 0x4 0x0 0x30 0x0
168*4882a593Smuzhiyun		0x1 0x2 0x2 0x4 0x0 0x0 0xc0 0x4
169*4882a593Smuzhiyun		0x8 0x1f4>;
170*4882a593Smuzhiyun	rockchip,phy-timing = <0x48d7dd93 0x187008d8 0x121076
171*4882a593Smuzhiyun		0x0 0xc3 0x6 0x2>;
172*4882a593Smuzhiyun	rockchip,sdram-params = <0x20d266a4 0x5b6 2 533000000 6 9 1>;
173*4882a593Smuzhiyun};
174*4882a593Smuzhiyun
175*4882a593Smuzhiyun&emmc {
176*4882a593Smuzhiyun	/delete-property/mmc-hs200-1_8v;
177*4882a593Smuzhiyun};
178*4882a593Smuzhiyun
179*4882a593Smuzhiyun&i2c2 {
180*4882a593Smuzhiyun	status = "disabled";
181*4882a593Smuzhiyun};
182*4882a593Smuzhiyun
183*4882a593Smuzhiyun&i2c4 {
184*4882a593Smuzhiyun	status = "disabled";
185*4882a593Smuzhiyun};
186*4882a593Smuzhiyun
187*4882a593Smuzhiyun&i2s {
188*4882a593Smuzhiyun	status = "okay";
189*4882a593Smuzhiyun	clock-names = "i2s_hclk", "i2s_clk", "i2s_clk_out";
190*4882a593Smuzhiyun	clocks = <&cru HCLK_I2S0>, <&cru SCLK_I2S0>, <&cru SCLK_I2S0_OUT>;
191*4882a593Smuzhiyun};
192*4882a593Smuzhiyun
193*4882a593Smuzhiyun&rk808 {
194*4882a593Smuzhiyun	pinctrl-names = "default";
195*4882a593Smuzhiyun	pinctrl-0 = <&pmic_int_l &dvs_1 &dvs_2>;
196*4882a593Smuzhiyun	dvs-gpios = <&gpio7 12 GPIO_ACTIVE_HIGH>,
197*4882a593Smuzhiyun		    <&gpio7 15 GPIO_ACTIVE_HIGH>;
198*4882a593Smuzhiyun
199*4882a593Smuzhiyun	/delete-property/ vcc6-supply;
200*4882a593Smuzhiyun	/delete-property/ vcc12-supply;
201*4882a593Smuzhiyun
202*4882a593Smuzhiyun	vcc11-supply = <&vcc33_sys>;
203*4882a593Smuzhiyun
204*4882a593Smuzhiyun	regulators {
205*4882a593Smuzhiyun		/* vcc33_io is sourced directly from vcc33_sys */
206*4882a593Smuzhiyun		/delete-node/ LDO_REG1;
207*4882a593Smuzhiyun		/delete-node/ LDO_REG7;
208*4882a593Smuzhiyun
209*4882a593Smuzhiyun		/* This is not a pwren anymore, but the real power supply */
210*4882a593Smuzhiyun		vdd10_lcd: LDO_REG7 {
211*4882a593Smuzhiyun			regulator-always-on;
212*4882a593Smuzhiyun			regulator-boot-on;
213*4882a593Smuzhiyun			regulator-min-microvolt = <1000000>;
214*4882a593Smuzhiyun			regulator-max-microvolt = <1000000>;
215*4882a593Smuzhiyun			regulator-name = "vdd10_lcd";
216*4882a593Smuzhiyun			regulator-suspend-mem-disabled;
217*4882a593Smuzhiyun		};
218*4882a593Smuzhiyun
219*4882a593Smuzhiyun		vcc18_lcd: LDO_REG8 {
220*4882a593Smuzhiyun			regulator-always-on;
221*4882a593Smuzhiyun			regulator-boot-on;
222*4882a593Smuzhiyun			regulator-min-microvolt = <1800000>;
223*4882a593Smuzhiyun			regulator-max-microvolt = <1800000>;
224*4882a593Smuzhiyun			regulator-name = "vcc18_lcd";
225*4882a593Smuzhiyun			regulator-suspend-mem-disabled;
226*4882a593Smuzhiyun		};
227*4882a593Smuzhiyun	};
228*4882a593Smuzhiyun};
229*4882a593Smuzhiyun
230*4882a593Smuzhiyun&pinctrl {
231*4882a593Smuzhiyun	hdmi {
232*4882a593Smuzhiyun		power_hdmi_on: power-hdmi-on {
233*4882a593Smuzhiyun			rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
234*4882a593Smuzhiyun		};
235*4882a593Smuzhiyun	};
236*4882a593Smuzhiyun
237*4882a593Smuzhiyun	pmic {
238*4882a593Smuzhiyun		dvs_1: dvs-1 {
239*4882a593Smuzhiyun			rockchip,pins = <7 12 RK_FUNC_GPIO &pcfg_pull_down>;
240*4882a593Smuzhiyun		};
241*4882a593Smuzhiyun
242*4882a593Smuzhiyun		dvs_2: dvs-2 {
243*4882a593Smuzhiyun			rockchip,pins = <7 15 RK_FUNC_GPIO &pcfg_pull_down>;
244*4882a593Smuzhiyun		};
245*4882a593Smuzhiyun	};
246*4882a593Smuzhiyun};
247*4882a593Smuzhiyun
248*4882a593Smuzhiyun&sdmmc {
249*4882a593Smuzhiyun	status = "disabled";
250*4882a593Smuzhiyun};
251*4882a593Smuzhiyun
252*4882a593Smuzhiyun&sdio0 {
253*4882a593Smuzhiyun	status = "disabled";
254*4882a593Smuzhiyun};
255*4882a593Smuzhiyun
256*4882a593Smuzhiyun&sdmmc {
257*4882a593Smuzhiyun	status = "disabled";
258*4882a593Smuzhiyun};
259*4882a593Smuzhiyun
260*4882a593Smuzhiyun&spi0 {
261*4882a593Smuzhiyun	status = "disabled";
262*4882a593Smuzhiyun};
263*4882a593Smuzhiyun
264*4882a593Smuzhiyun&usb_host0_ehci {
265*4882a593Smuzhiyun	status = "disabled";
266*4882a593Smuzhiyun};
267*4882a593Smuzhiyun
268*4882a593Smuzhiyun&usb_host1 {
269*4882a593Smuzhiyun	status = "disabled";
270*4882a593Smuzhiyun};
271*4882a593Smuzhiyun
272*4882a593Smuzhiyun&vcc50_hdmi {
273*4882a593Smuzhiyun	enable-active-high;
274*4882a593Smuzhiyun	gpio = <&gpio7 11 GPIO_ACTIVE_HIGH>;
275*4882a593Smuzhiyun	pinctrl-names = "default";
276*4882a593Smuzhiyun	pinctrl-0 = <&power_hdmi_on>;
277*4882a593Smuzhiyun};
278