rk3288-veyron-mickey.dts 6.7 KB

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