rk3399-gru-kevin.dts 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Google Gru-Kevin Rev 6+ board device tree source
  4. *
  5. * Copyright 2016-2017 Google, Inc
  6. */
  7. /dts-v1/;
  8. #include "rk3399-gru-chromebook.dtsi"
  9. #include <dt-bindings/input/linux-event-codes.h>
  10. /*
  11. * Kevin-specific things
  12. *
  13. * Things in this section should use names from Kevin schematic since no
  14. * equivalent exists in Gru schematic. If referring to signals that exist
  15. * in Gru we use the Gru names, though. Confusing enough for you?
  16. */
  17. / {
  18. model = "Google Kevin";
  19. compatible = "google,kevin-rev15", "google,kevin-rev14",
  20. "google,kevin-rev13", "google,kevin-rev12",
  21. "google,kevin-rev11", "google,kevin-rev10",
  22. "google,kevin-rev9", "google,kevin-rev8",
  23. "google,kevin-rev7", "google,kevin-rev6",
  24. "google,kevin", "google,gru", "rockchip,rk3399";
  25. /* Power tree */
  26. p3_3v_dig: p3-3v-dig {
  27. compatible = "regulator-fixed";
  28. regulator-name = "p3.3v_dig";
  29. pinctrl-names = "default";
  30. pinctrl-0 = <&cpu3_pen_pwr_en>;
  31. enable-active-high;
  32. gpio = <&gpio4 30 GPIO_ACTIVE_HIGH>;
  33. vin-supply = <&pp3300>;
  34. };
  35. edp_panel: edp-panel {
  36. compatible = "sharp,lq123p1jx31", "simple-panel";
  37. backlight = <&backlight>;
  38. power-supply = <&pp3300_disp>;
  39. port {
  40. panel_in_edp: endpoint {
  41. remote-endpoint = <&edp_out_panel>;
  42. };
  43. };
  44. };
  45. thermistor_ppvar_bigcpu: thermistor-ppvar-bigcpu {
  46. compatible = "murata,ncp15wb473";
  47. pullup-uv = <1800000>;
  48. pullup-ohm = <25500>;
  49. pulldown-ohm = <0>;
  50. io-channels = <&saradc 2>;
  51. #thermal-sensor-cells = <0>;
  52. };
  53. thermistor_ppvar_litcpu: thermistor-ppvar-litcpu {
  54. compatible = "murata,ncp15wb473";
  55. pullup-uv = <1800000>;
  56. pullup-ohm = <25500>;
  57. pulldown-ohm = <0>;
  58. io-channels = <&saradc 3>;
  59. #thermal-sensor-cells = <0>;
  60. };
  61. };
  62. &backlight {
  63. pwms = <&cros_ec_pwm 1>;
  64. };
  65. &gpio_keys {
  66. pinctrl-names = "default";
  67. pinctrl-0 = <&bt_host_wake_l>, <&cpu1_pen_eject>;
  68. pen-insert {
  69. label = "Pen Insert";
  70. /* Insert = low, eject = high */
  71. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  72. linux,code = <SW_PEN_INSERTED>;
  73. linux,input-type = <EV_SW>;
  74. wakeup-source;
  75. };
  76. };
  77. &thermal_zones {
  78. bigcpu_reg_thermal: bigcpu-reg-thermal {
  79. polling-delay-passive = <100>; /* milliseconds */
  80. polling-delay = <1000>; /* milliseconds */
  81. thermal-sensors = <&thermistor_ppvar_bigcpu 0>;
  82. sustainable-power = <4000>;
  83. ppvar_bigcpu_trips: trips {
  84. ppvar_bigcpu_on: ppvar-bigcpu-on {
  85. temperature = <40000>; /* millicelsius */
  86. hysteresis = <2000>; /* millicelsius */
  87. type = "passive";
  88. };
  89. ppvar_bigcpu_alert: ppvar-bigcpu-alert {
  90. temperature = <50000>; /* millicelsius */
  91. hysteresis = <2000>; /* millicelsius */
  92. type = "passive";
  93. };
  94. ppvar_bigcpu_crit: ppvar-bigcpu-crit {
  95. temperature = <90000>; /* millicelsius */
  96. hysteresis = <0>; /* millicelsius */
  97. type = "critical";
  98. };
  99. };
  100. cooling-maps {
  101. map0 {
  102. trip = <&ppvar_bigcpu_alert>;
  103. cooling-device =
  104. <&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
  105. contribution = <4096>;
  106. };
  107. map1 {
  108. trip = <&ppvar_bigcpu_alert>;
  109. cooling-device =
  110. <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
  111. contribution = <1024>;
  112. };
  113. };
  114. };
  115. litcpu_reg_thermal: litcpu-reg-thermal {
  116. polling-delay-passive = <100>; /* milliseconds */
  117. polling-delay = <1000>; /* milliseconds */
  118. thermal-sensors = <&thermistor_ppvar_litcpu 0>;
  119. sustainable-power = <4000>;
  120. ppvar_litcpu_trips: trips {
  121. ppvar_litcpu_on: ppvar-litcpu-on {
  122. temperature = <40000>; /* millicelsius */
  123. hysteresis = <2000>; /* millicelsius */
  124. type = "passive";
  125. };
  126. ppvar_litcpu_alert: ppvar-litcpu-alert {
  127. temperature = <50000>; /* millicelsius */
  128. hysteresis = <2000>; /* millicelsius */
  129. type = "passive";
  130. };
  131. ppvar_litcpu_crit: ppvar-litcpu-crit {
  132. temperature = <90000>; /* millicelsius */
  133. hysteresis = <0>; /* millicelsius */
  134. type = "critical";
  135. };
  136. };
  137. };
  138. };
  139. ap_i2c_tpm: &i2c0 {
  140. status = "okay";
  141. clock-frequency = <400000>;
  142. /* These are relatively safe rise/fall times. */
  143. i2c-scl-falling-time-ns = <50>;
  144. i2c-scl-rising-time-ns = <300>;
  145. tpm: tpm@20 {
  146. compatible = "infineon,slb9645tt";
  147. reg = <0x20>;
  148. powered-while-suspended;
  149. };
  150. };
  151. ap_i2c_dig: &i2c2 {
  152. status = "okay";
  153. clock-frequency = <400000>;
  154. /* These are relatively safe rise/fall times. */
  155. i2c-scl-falling-time-ns = <50>;
  156. i2c-scl-rising-time-ns = <300>;
  157. digitizer: digitizer@9 {
  158. /* wacom,w9013 */
  159. compatible = "hid-over-i2c";
  160. reg = <0x9>;
  161. pinctrl-names = "default";
  162. pinctrl-0 = <&cpu1_dig_irq_l &cpu1_dig_pdct_l>;
  163. vdd-supply = <&p3_3v_dig>;
  164. post-power-on-delay-ms = <100>;
  165. interrupt-parent = <&gpio2>;
  166. interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
  167. hid-descr-addr = <0x1>;
  168. };
  169. };
  170. /* Adjustments to things in the gru baseboard */
  171. &ap_i2c_tp {
  172. trackpad@4a {
  173. compatible = "atmel,maxtouch";
  174. reg = <0x4a>;
  175. pinctrl-names = "default";
  176. pinctrl-0 = <&trackpad_int_l>;
  177. interrupt-parent = <&gpio1>;
  178. interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
  179. linux,gpio-keymap = <KEY_RESERVED
  180. KEY_RESERVED
  181. KEY_RESERVED
  182. BTN_LEFT>;
  183. wakeup-source;
  184. };
  185. };
  186. &ap_i2c_ts {
  187. touchscreen@4b {
  188. compatible = "atmel,maxtouch";
  189. reg = <0x4b>;
  190. pinctrl-names = "default";
  191. pinctrl-0 = <&touch_int_l>;
  192. interrupt-parent = <&gpio3>;
  193. interrupts = <13 IRQ_TYPE_LEVEL_LOW>;
  194. };
  195. };
  196. &ppvar_bigcpu_pwm {
  197. regulator-min-microvolt = <798674>;
  198. regulator-max-microvolt = <1302172>;
  199. };
  200. &ppvar_bigcpu {
  201. regulator-min-microvolt = <798674>;
  202. regulator-max-microvolt = <1302172>;
  203. ctrl-voltage-range = <798674 1302172>;
  204. };
  205. &ppvar_litcpu_pwm {
  206. regulator-min-microvolt = <799065>;
  207. regulator-max-microvolt = <1303738>;
  208. };
  209. &ppvar_litcpu {
  210. regulator-min-microvolt = <799065>;
  211. regulator-max-microvolt = <1303738>;
  212. ctrl-voltage-range = <799065 1303738>;
  213. };
  214. &ppvar_gpu_pwm {
  215. regulator-min-microvolt = <785782>;
  216. regulator-max-microvolt = <1217729>;
  217. };
  218. &ppvar_gpu {
  219. regulator-min-microvolt = <785782>;
  220. regulator-max-microvolt = <1217729>;
  221. ctrl-voltage-range = <785782 1217729>;
  222. };
  223. &ppvar_centerlogic_pwm {
  224. regulator-min-microvolt = <800069>;
  225. regulator-max-microvolt = <1049692>;
  226. };
  227. &ppvar_centerlogic {
  228. regulator-min-microvolt = <800069>;
  229. regulator-max-microvolt = <1049692>;
  230. ctrl-voltage-range = <800069 1049692>;
  231. };
  232. &saradc {
  233. status = "okay";
  234. vref-supply = <&pp1800_ap_io>;
  235. };
  236. &mvl_wifi {
  237. marvell,wakeup-pin = <14>; /* GPIO_14 on Marvell */
  238. };
  239. &pinctrl {
  240. digitizer {
  241. /* Has external pullup */
  242. cpu1_dig_irq_l: cpu1-dig-irq-l {
  243. rockchip,pins = <2 4 RK_FUNC_GPIO &pcfg_pull_none>;
  244. };
  245. /* Has external pullup */
  246. cpu1_dig_pdct_l: cpu1-dig-pdct-l {
  247. rockchip,pins = <2 5 RK_FUNC_GPIO &pcfg_pull_none>;
  248. };
  249. };
  250. discrete-regulators {
  251. cpu3_pen_pwr_en: cpu3-pen-pwr-en {
  252. rockchip,pins = <4 30 RK_FUNC_GPIO &pcfg_pull_none>;
  253. };
  254. };
  255. pen {
  256. cpu1_pen_eject: cpu1-pen-eject {
  257. rockchip,pins = <0 13 RK_FUNC_GPIO &pcfg_pull_up>;
  258. };
  259. };
  260. };