1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Google Veyron Mickey Rev 0 board device tree source
5 * Copyright 2015 Google, Inc
9 #include "rk3288-veyron.dtsi"
10 #include "rk3288-veyron-broadcom-bluetooth.dtsi"
13 model = "Google Mickey";
14 compatible = "google,veyron-mickey-rev8", "google,veyron-mickey-rev7",
15 "google,veyron-mickey-rev6", "google,veyron-mickey-rev5",
16 "google,veyron-mickey-rev4", "google,veyron-mickey-rev3",
17 "google,veyron-mickey-rev2", "google,veyron-mickey-rev1",
18 "google,veyron-mickey-rev0", "google,veyron-mickey",
19 "google,veyron", "rockchip,rk3288";
22 vin-supply = <&vcc33_sys>;
26 compatible = "regulator-fixed";
27 regulator-name = "vcc33_io";
30 vin-supply = <&vcc33_sys>;
34 compatible = "rockchip,rockchip-audio-max98090";
35 rockchip,model = "VEYRON-HDMI";
36 rockchip,hdmi-codec = <&hdmi>;
37 rockchip,i2s-controller = <&i2s>;
43 /delete-node/ cooling-maps;
46 cpu_alert_almost_warm: cpu_alert_almost_warm {
47 temperature = <63000>; /* millicelsius */
48 hysteresis = <2000>; /* millicelsius */
51 cpu_alert_warm: cpu_alert_warm {
52 temperature = <65000>; /* millicelsius */
53 hysteresis = <2000>; /* millicelsius */
56 cpu_alert_almost_hot: cpu_alert_almost_hot {
57 temperature = <80000>; /* millicelsius */
58 hysteresis = <2000>; /* millicelsius */
61 cpu_alert_hot: cpu_alert_hot {
62 temperature = <82000>; /* millicelsius */
63 hysteresis = <2000>; /* millicelsius */
66 cpu_alert_hotter: cpu_alert_hotter {
67 temperature = <84000>; /* millicelsius */
68 hysteresis = <2000>; /* millicelsius */
71 cpu_alert_very_hot: cpu_alert_very_hot {
72 temperature = <85000>; /* millicelsius */
73 hysteresis = <2000>; /* millicelsius */
77 temperature = <90000>; /* millicelsius */
78 hysteresis = <2000>; /* millicelsius */
85 * After 1st level, throttle the CPU down to as low as 1.4 GHz
86 * and don't let the GPU go faster than 400 MHz.
89 trip = <&cpu_alert_warm>;
90 cooling-device = <&cpu0 THERMAL_NO_LIMIT 4>,
91 <&cpu1 THERMAL_NO_LIMIT 4>,
92 <&cpu2 THERMAL_NO_LIMIT 4>,
93 <&cpu3 THERMAL_NO_LIMIT 4>;
96 trip = <&cpu_alert_warm>;
97 cooling-device = <&gpu 1 1>;
101 * Add some discrete steps to help throttling system deal
102 * with the fact that there are two passive cooling devices:
103 * the CPU and the GPU.
105 * - 1.2 GHz - 1.0 GHz (almost hot)
107 * - 800 MHz - 696 MHz (hotter)
108 * - 696 MHz - min (very hot)
111 * - 800 MHz appears to be a "sweet spot" for me. I can run
112 * some pretty serious workload here and be happy.
113 * - After 696 MHz we stop lowering voltage, so throttling
114 * past there is less effective.
116 cpu_almost_hot_limit_cpu {
117 trip = <&cpu_alert_almost_hot>;
118 cooling-device = <&cpu0 5 6>, <&cpu1 5 6>, <&cpu2 5 6>,
122 trip = <&cpu_alert_hot>;
123 cooling-device = <&cpu0 7 7>, <&cpu1 7 7>, <&cpu2 7 7>,
126 cpu_hotter_limit_cpu {
127 trip = <&cpu_alert_hotter>;
128 cooling-device = <&cpu0 7 8>, <&cpu1 7 8>, <&cpu2 7 8>,
131 cpu_very_hot_limit_cpu {
132 trip = <&cpu_alert_very_hot>;
133 cooling-device = <&cpu0 8 THERMAL_NO_LIMIT>,
134 <&cpu1 8 THERMAL_NO_LIMIT>,
135 <&cpu2 8 THERMAL_NO_LIMIT>,
136 <&cpu3 8 THERMAL_NO_LIMIT>;
139 /* At very hot, don't let GPU go over 300 MHz */
140 cpu_very_hot_limit_gpu {
141 trip = <&cpu_alert_very_hot>;
142 cooling-device = <&gpu 2 2>;
149 /delete-node/ cooling-maps;
152 gpu_alert_warmish: gpu_alert_warmish {
153 temperature = <60000>; /* millicelsius */
154 hysteresis = <2000>; /* millicelsius */
157 gpu_alert_warm: gpu_alert_warm {
158 temperature = <65000>; /* millicelsius */
159 hysteresis = <2000>; /* millicelsius */
162 gpu_alert_hotter: gpu_alert_hotter {
163 temperature = <84000>; /* millicelsius */
164 hysteresis = <2000>; /* millicelsius */
167 gpu_alert_very_very_hot: gpu_alert_very_very_hot {
168 temperature = <86000>; /* millicelsius */
169 hysteresis = <2000>; /* millicelsius */
173 temperature = <90000>; /* millicelsius */
174 hysteresis = <2000>; /* millicelsius */
180 /* After 1st level throttle the GPU down to as low as 400 MHz */
181 gpu_warmish_limit_gpu {
182 trip = <&gpu_alert_warmish>;
183 cooling-device = <&gpu THERMAL_NO_LIMIT 1>;
187 * Slightly after we throttle the GPU, we'll also make sure that
188 * the CPU can't go faster than 1.4 GHz. Note that we won't
189 * throttle the CPU lower than 1.4 GHz due to GPU heat--we'll
190 * let the CPU do the rest itself.
193 trip = <&gpu_alert_warm>;
194 cooling-device = <&cpu0 4 4>,
200 /* When hot, GPU goes down to 300 MHz */
201 gpu_hotter_limit_gpu {
202 trip = <&gpu_alert_hotter>;
203 cooling-device = <&gpu 2 2>;
206 /* When really hot, don't let GPU go _above_ 300 MHz */
207 gpu_very_very_hot_limit_gpu {
208 trip = <&gpu_alert_very_very_hot>;
209 cooling-device = <&gpu 2 THERMAL_NO_LIMIT>;
227 pinctrl-names = "default";
228 pinctrl-0 = <&pmic_int_l &dvs_1 &dvs_2>;
229 dvs-gpios = <&gpio7 RK_PB4 GPIO_ACTIVE_HIGH>,
230 <&gpio7 RK_PB7 GPIO_ACTIVE_HIGH>;
232 /delete-property/ vcc6-supply;
233 /delete-property/ vcc12-supply;
235 vcc11-supply = <&vcc33_sys>;
238 /* vcc33_io is sourced directly from vcc33_sys */
239 /delete-node/ LDO_REG1;
240 /delete-node/ LDO_REG7;
242 /* This is not a pwren anymore, but the real power supply */
243 vdd10_lcd: LDO_REG7 {
246 regulator-min-microvolt = <1000000>;
247 regulator-max-microvolt = <1000000>;
248 regulator-name = "vdd10_lcd";
249 regulator-suspend-mem-disabled;
252 vcc18_lcd: LDO_REG8 {
255 regulator-min-microvolt = <1800000>;
256 regulator-max-microvolt = <1800000>;
257 regulator-name = "vcc18_lcd";
258 regulator-suspend-mem-disabled;
264 gpio-line-names = "PMIC_SLEEP_AP",
275 * RECOVERY_SW_L is Chrome OS ABI. Schematics call
292 gpio-line-names = "CONFIG0",
306 gpio-line-names = "FLASH0_D0",
324 "FLASH0_CS2/EMMC_CMD",
326 "FLASH0_DQS/EMMC_CLKO";
330 gpio-line-names = "",
368 gpio-line-names = "",
375 * AP_FLASH_WP_L is Chrome OS ABI. Schematics call
401 gpio-line-names = "RAM_ID0",
415 pinctrl-names = "default";
417 /* Common for sleep and wake, but no owners */
424 power_hdmi_on: power-hdmi-on {
425 rockchip,pins = <7 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
431 rockchip,pins = <7 RK_PB4 RK_FUNC_GPIO &pcfg_pull_down>;
435 rockchip,pins = <7 RK_PB7 RK_FUNC_GPIO &pcfg_pull_down>;
450 gpio = <&gpio7 RK_PB3 GPIO_ACTIVE_HIGH>;
451 pinctrl-names = "default";
452 pinctrl-0 = <&power_hdmi_on>;