Merge tag 'batadv-next-for-davem-20190213' of git://git.open-mesh.org/linux-merge
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / rk3288-veyron-mickey.dts
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3  * Google Veyron Mickey Rev 0 board device tree source
4  *
5  * Copyright 2015 Google, Inc
6  */
7
8 /dts-v1/;
9 #include "rk3288-veyron.dtsi"
10
11 / {
12         model = "Google Mickey";
13         compatible = "google,veyron-mickey-rev8", "google,veyron-mickey-rev7",
14                      "google,veyron-mickey-rev6", "google,veyron-mickey-rev5",
15                      "google,veyron-mickey-rev4", "google,veyron-mickey-rev3",
16                      "google,veyron-mickey-rev2", "google,veyron-mickey-rev1",
17                      "google,veyron-mickey-rev0", "google,veyron-mickey",
18                      "google,veyron", "rockchip,rk3288";
19
20         vcc_5v: vcc-5v {
21                 vin-supply = <&vcc33_sys>;
22         };
23
24         vcc33_io: vcc33_io {
25                 compatible = "regulator-fixed";
26                 regulator-name = "vcc33_io";
27                 regulator-always-on;
28                 regulator-boot-on;
29                 vin-supply = <&vcc33_sys>;
30         };
31 };
32
33 &cpu_thermal {
34         /delete-node/ trips;
35         /delete-node/ cooling-maps;
36
37         trips {
38                 cpu_alert_almost_warm: cpu_alert_almost_warm {
39                         temperature = <63000>; /* millicelsius */
40                         hysteresis = <2000>; /* millicelsius */
41                         type = "passive";
42                 };
43                 cpu_alert_warm: cpu_alert_warm {
44                         temperature = <65000>; /* millicelsius */
45                         hysteresis = <2000>; /* millicelsius */
46                         type = "passive";
47                 };
48                 cpu_alert_almost_hot: cpu_alert_almost_hot {
49                         temperature = <80000>; /* millicelsius */
50                         hysteresis = <2000>; /* millicelsius */
51                         type = "passive";
52                 };
53                 cpu_alert_hot: cpu_alert_hot {
54                         temperature = <82000>; /* millicelsius */
55                         hysteresis = <2000>; /* millicelsius */
56                         type = "passive";
57                 };
58                 cpu_alert_hotter: cpu_alert_hotter {
59                         temperature = <84000>; /* millicelsius */
60                         hysteresis = <2000>; /* millicelsius */
61                         type = "passive";
62                 };
63                 cpu_alert_very_hot: cpu_alert_very_hot {
64                         temperature = <85000>; /* millicelsius */
65                         hysteresis = <2000>; /* millicelsius */
66                         type = "passive";
67                 };
68                 cpu_crit: cpu_crit {
69                         temperature = <90000>; /* millicelsius */
70                         hysteresis = <2000>; /* millicelsius */
71                         type = "critical";
72                 };
73         };
74
75         cooling-maps {
76                 /*
77                  * After 1st level, throttle the CPU down to as low as 1.4 GHz
78                  * and don't let the GPU go faster than 400 MHz.  Note that we
79                  * won't throttle the GPU lower than 400 MHz due to CPU
80                  * heat--we'll let the GPU do the rest itself.
81                  */
82                 cpu_warm_limit_cpu {
83                         trip = <&cpu_alert_warm>;
84                         cooling-device = <&cpu0 THERMAL_NO_LIMIT 4>,
85                                          <&cpu1 THERMAL_NO_LIMIT 4>,
86                                          <&cpu2 THERMAL_NO_LIMIT 4>,
87                                          <&cpu3 THERMAL_NO_LIMIT 4>;
88                 };
89
90                 /*
91                  * Add some discrete steps to help throttling system deal
92                  * with the fact that there are two passive cooling devices:
93                  * the CPU and the GPU.
94                  *
95                  * - 1.2 GHz - 1.0 GHz (almost hot)
96                  * - 800 MHz           (hot)
97                  * - 800 MHz - 696 MHz (hotter)
98                  * - 696 MHz - min     (very hot)
99                  *
100                  * Note:
101                  * - 800 MHz appears to be a "sweet spot" for me.  I can run
102                  *   some pretty serious workload here and be happy.
103                  * - After 696 MHz we stop lowering voltage, so throttling
104                  *   past there is less effective.
105                  */
106                 cpu_almost_hot_limit_cpu {
107                         trip = <&cpu_alert_almost_hot>;
108                         cooling-device = <&cpu0 5 6>, <&cpu1 5 6>, <&cpu2 5 6>,
109                                          <&cpu3 5 6>;
110                 };
111                 cpu_hot_limit_cpu {
112                         trip = <&cpu_alert_hot>;
113                         cooling-device = <&cpu0 7 7>, <&cpu1 7 7>, <&cpu2 7 7>,
114                                          <&cpu3 7 7>;
115                 };
116                 cpu_hotter_limit_cpu {
117                         trip = <&cpu_alert_hotter>;
118                         cooling-device = <&cpu0 7 8>, <&cpu1 7 8>, <&cpu2 7 8>,
119                                          <&cpu3 7 8>;
120                 };
121                 cpu_very_hot_limit_cpu {
122                         trip = <&cpu_alert_very_hot>;
123                         cooling-device = <&cpu0 8 THERMAL_NO_LIMIT>,
124                                          <&cpu1 8 THERMAL_NO_LIMIT>,
125                                          <&cpu2 8 THERMAL_NO_LIMIT>,
126                                          <&cpu3 8 THERMAL_NO_LIMIT>;
127                 };
128         };
129 };
130
131 &emmc {
132         /delete-property/mmc-hs200-1_8v;
133 };
134
135 &i2c2 {
136         status = "disabled";
137 };
138
139 &i2c4 {
140         status = "disabled";
141 };
142
143 &i2s {
144         status = "okay";
145         clock-names = "i2s_hclk", "i2s_clk", "i2s_clk_out";
146         clocks = <&cru HCLK_I2S0>, <&cru SCLK_I2S0>, <&cru SCLK_I2S0_OUT>;
147 };
148
149 &rk808 {
150         pinctrl-names = "default";
151         pinctrl-0 = <&pmic_int_l &dvs_1 &dvs_2>;
152         dvs-gpios = <&gpio7 RK_PB4 GPIO_ACTIVE_HIGH>,
153                     <&gpio7 RK_PB7 GPIO_ACTIVE_HIGH>;
154
155         /delete-property/ vcc6-supply;
156         /delete-property/ vcc12-supply;
157
158         vcc11-supply = <&vcc33_sys>;
159
160         regulators {
161                 /* vcc33_io is sourced directly from vcc33_sys */
162                 /delete-node/ LDO_REG1;
163                 /delete-node/ LDO_REG7;
164
165                 /* This is not a pwren anymore, but the real power supply */
166                 vdd10_lcd: LDO_REG7 {
167                         regulator-always-on;
168                         regulator-boot-on;
169                         regulator-min-microvolt = <1000000>;
170                         regulator-max-microvolt = <1000000>;
171                         regulator-name = "vdd10_lcd";
172                         regulator-suspend-mem-disabled;
173                 };
174
175                 vcc18_lcd: LDO_REG8 {
176                         regulator-always-on;
177                         regulator-boot-on;
178                         regulator-min-microvolt = <1800000>;
179                         regulator-max-microvolt = <1800000>;
180                         regulator-name = "vcc18_lcd";
181                         regulator-suspend-mem-disabled;
182                 };
183         };
184 };
185
186 &pinctrl {
187         hdmi {
188                 power_hdmi_on: power-hdmi-on {
189                         rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
190                 };
191         };
192
193         pmic {
194                 dvs_1: dvs-1 {
195                         rockchip,pins = <7 12 RK_FUNC_GPIO &pcfg_pull_down>;
196                 };
197
198                 dvs_2: dvs-2 {
199                         rockchip,pins = <7 15 RK_FUNC_GPIO &pcfg_pull_down>;
200                 };
201         };
202 };
203
204 &usb_host0_ehci {
205         status = "disabled";
206 };
207
208 &usb_host1 {
209         status = "disabled";
210 };
211
212 &vcc50_hdmi {
213         enable-active-high;
214         gpio = <&gpio7 RK_PB3 GPIO_ACTIVE_HIGH>;
215         pinctrl-names = "default";
216         pinctrl-0 = <&power_hdmi_on>;
217 };