rk3399-gru-kevin.dts 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  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. chassis-type = "convertible";
  26. /* Power tree */
  27. p3_3v_dig: p3-3v-dig {
  28. compatible = "regulator-fixed";
  29. regulator-name = "p3.3v_dig";
  30. pinctrl-names = "default";
  31. pinctrl-0 = <&cpu3_pen_pwr_en>;
  32. enable-active-high;
  33. gpio = <&gpio4 30 GPIO_ACTIVE_HIGH>;
  34. vin-supply = <&pp3300>;
  35. };
  36. edp_panel: edp-panel {
  37. compatible = "sharp,lq123p1jx31";
  38. backlight = <&backlight>;
  39. power-supply = <&pp3300_disp>;
  40. panel-timing {
  41. clock-frequency = <266666667>;
  42. hactive = <2400>;
  43. hfront-porch = <48>;
  44. hback-porch = <84>;
  45. hsync-len = <32>;
  46. hsync-active = <0>;
  47. vactive = <1600>;
  48. vfront-porch = <3>;
  49. vback-porch = <120>;
  50. vsync-len = <10>;
  51. vsync-active = <0>;
  52. };
  53. port {
  54. panel_in_edp: endpoint {
  55. remote-endpoint = <&edp_out_panel>;
  56. };
  57. };
  58. };
  59. thermistor_ppvar_bigcpu: thermistor-ppvar-bigcpu {
  60. compatible = "murata,ncp15wb473";
  61. pullup-uv = <1800000>;
  62. pullup-ohm = <25500>;
  63. pulldown-ohm = <0>;
  64. io-channels = <&saradc 2>;
  65. #thermal-sensor-cells = <0>;
  66. };
  67. thermistor_ppvar_litcpu: thermistor-ppvar-litcpu {
  68. compatible = "murata,ncp15wb473";
  69. pullup-uv = <1800000>;
  70. pullup-ohm = <25500>;
  71. pulldown-ohm = <0>;
  72. io-channels = <&saradc 3>;
  73. #thermal-sensor-cells = <0>;
  74. };
  75. };
  76. &backlight {
  77. pwms = <&cros_ec_pwm 1>;
  78. };
  79. &gpio_keys {
  80. pinctrl-names = "default";
  81. pinctrl-0 = <&bt_host_wake_l>, <&cpu1_pen_eject>;
  82. switch-pen-insert {
  83. label = "Pen Insert";
  84. /* Insert = low, eject = high */
  85. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  86. linux,code = <SW_PEN_INSERTED>;
  87. linux,input-type = <EV_SW>;
  88. wakeup-source;
  89. };
  90. };
  91. &thermal_zones {
  92. bigcpu_reg_thermal: bigcpu-reg-thermal {
  93. polling-delay-passive = <100>; /* milliseconds */
  94. polling-delay = <1000>; /* milliseconds */
  95. thermal-sensors = <&thermistor_ppvar_bigcpu 0>;
  96. sustainable-power = <4000>;
  97. ppvar_bigcpu_trips: trips {
  98. ppvar_bigcpu_on: ppvar-bigcpu-on {
  99. temperature = <40000>; /* millicelsius */
  100. hysteresis = <2000>; /* millicelsius */
  101. type = "passive";
  102. };
  103. ppvar_bigcpu_alert: ppvar-bigcpu-alert {
  104. temperature = <50000>; /* millicelsius */
  105. hysteresis = <2000>; /* millicelsius */
  106. type = "passive";
  107. };
  108. ppvar_bigcpu_crit: ppvar-bigcpu-crit {
  109. temperature = <90000>; /* millicelsius */
  110. hysteresis = <0>; /* millicelsius */
  111. type = "critical";
  112. };
  113. };
  114. cooling-maps {
  115. map0 {
  116. trip = <&ppvar_bigcpu_alert>;
  117. cooling-device =
  118. <&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
  119. <&cpu_l1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
  120. <&cpu_l2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
  121. <&cpu_l3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
  122. contribution = <4096>;
  123. };
  124. map1 {
  125. trip = <&ppvar_bigcpu_alert>;
  126. cooling-device =
  127. <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
  128. <&cpu_b1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
  129. contribution = <1024>;
  130. };
  131. };
  132. };
  133. litcpu_reg_thermal: litcpu-reg-thermal {
  134. polling-delay-passive = <100>; /* milliseconds */
  135. polling-delay = <1000>; /* milliseconds */
  136. thermal-sensors = <&thermistor_ppvar_litcpu 0>;
  137. sustainable-power = <4000>;
  138. ppvar_litcpu_trips: trips {
  139. ppvar_litcpu_on: ppvar-litcpu-on {
  140. temperature = <40000>; /* millicelsius */
  141. hysteresis = <2000>; /* millicelsius */
  142. type = "passive";
  143. };
  144. ppvar_litcpu_alert: ppvar-litcpu-alert {
  145. temperature = <50000>; /* millicelsius */
  146. hysteresis = <2000>; /* millicelsius */
  147. type = "passive";
  148. };
  149. ppvar_litcpu_crit: ppvar-litcpu-crit {
  150. temperature = <90000>; /* millicelsius */
  151. hysteresis = <0>; /* millicelsius */
  152. type = "critical";
  153. };
  154. };
  155. };
  156. };
  157. ap_i2c_tpm: &i2c0 {
  158. status = "okay";
  159. clock-frequency = <400000>;
  160. /* These are relatively safe rise/fall times. */
  161. i2c-scl-falling-time-ns = <50>;
  162. i2c-scl-rising-time-ns = <300>;
  163. tpm: tpm@20 {
  164. compatible = "infineon,slb9645tt";
  165. reg = <0x20>;
  166. powered-while-suspended;
  167. };
  168. };
  169. ap_i2c_dig: &i2c2 {
  170. status = "okay";
  171. clock-frequency = <400000>;
  172. /* These are relatively safe rise/fall times. */
  173. i2c-scl-falling-time-ns = <50>;
  174. i2c-scl-rising-time-ns = <300>;
  175. digitizer: digitizer@9 {
  176. /* wacom,w9013 */
  177. compatible = "hid-over-i2c";
  178. reg = <0x9>;
  179. pinctrl-names = "default";
  180. pinctrl-0 = <&cpu1_dig_irq_l &cpu1_dig_pdct_l>;
  181. vdd-supply = <&p3_3v_dig>;
  182. post-power-on-delay-ms = <100>;
  183. interrupt-parent = <&gpio2>;
  184. interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
  185. hid-descr-addr = <0x1>;
  186. };
  187. };
  188. /* Adjustments to things in the gru baseboard */
  189. &ap_i2c_tp {
  190. trackpad@4a {
  191. compatible = "atmel,maxtouch";
  192. reg = <0x4a>;
  193. pinctrl-names = "default";
  194. pinctrl-0 = <&trackpad_int_l>;
  195. interrupt-parent = <&gpio1>;
  196. interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
  197. linux,gpio-keymap = <KEY_RESERVED
  198. KEY_RESERVED
  199. KEY_RESERVED
  200. BTN_LEFT>;
  201. wakeup-source;
  202. };
  203. };
  204. &ap_i2c_ts {
  205. touchscreen@4b {
  206. compatible = "atmel,maxtouch";
  207. reg = <0x4b>;
  208. pinctrl-names = "default";
  209. pinctrl-0 = <&touch_int_l>;
  210. interrupt-parent = <&gpio3>;
  211. interrupts = <13 IRQ_TYPE_LEVEL_LOW>;
  212. };
  213. };
  214. &ppvar_bigcpu_pwm {
  215. regulator-min-microvolt = <798674>;
  216. regulator-max-microvolt = <1302172>;
  217. };
  218. &ppvar_bigcpu {
  219. regulator-min-microvolt = <798674>;
  220. regulator-max-microvolt = <1302172>;
  221. ctrl-voltage-range = <798674 1302172>;
  222. };
  223. &ppvar_litcpu_pwm {
  224. regulator-min-microvolt = <799065>;
  225. regulator-max-microvolt = <1303738>;
  226. };
  227. &ppvar_litcpu {
  228. regulator-min-microvolt = <799065>;
  229. regulator-max-microvolt = <1303738>;
  230. ctrl-voltage-range = <799065 1303738>;
  231. };
  232. &ppvar_gpu_pwm {
  233. regulator-min-microvolt = <785782>;
  234. regulator-max-microvolt = <1217729>;
  235. };
  236. &ppvar_gpu {
  237. regulator-min-microvolt = <785782>;
  238. regulator-max-microvolt = <1217729>;
  239. ctrl-voltage-range = <785782 1217729>;
  240. };
  241. &ppvar_centerlogic_pwm {
  242. regulator-min-microvolt = <800069>;
  243. regulator-max-microvolt = <1049692>;
  244. };
  245. &ppvar_centerlogic {
  246. regulator-min-microvolt = <800069>;
  247. regulator-max-microvolt = <1049692>;
  248. ctrl-voltage-range = <800069 1049692>;
  249. };
  250. &saradc {
  251. status = "okay";
  252. vref-supply = <&pp1800_ap_io>;
  253. };
  254. &mvl_wifi {
  255. marvell,wakeup-pin = <14>; /* GPIO_14 on Marvell */
  256. };
  257. &pinctrl {
  258. digitizer {
  259. /* Has external pullup */
  260. cpu1_dig_irq_l: cpu1-dig-irq-l {
  261. rockchip,pins = <2 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
  262. };
  263. /* Has external pullup */
  264. cpu1_dig_pdct_l: cpu1-dig-pdct-l {
  265. rockchip,pins = <2 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
  266. };
  267. };
  268. discrete-regulators {
  269. cpu3_pen_pwr_en: cpu3-pen-pwr-en {
  270. rockchip,pins = <4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
  271. };
  272. };
  273. pen {
  274. cpu1_pen_eject: cpu1-pen-eject {
  275. rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>;
  276. };
  277. };
  278. };