1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Google Gru-Kevin Rev 6+ board device tree source
5 * Copyright 2016-2017 Google, Inc
9 #include "rk3399-gru-chromebook.dtsi"
10 #include <dt-bindings/input/linux-event-codes.h>
13 * Kevin-specific things
15 * Things in this section should use names from Kevin schematic since no
16 * equivalent exists in Gru schematic. If referring to signals that exist
17 * in Gru we use the Gru names, though. Confusing enough for you?
20 model = "Google Kevin";
21 compatible = "google,kevin-rev15", "google,kevin-rev14",
22 "google,kevin-rev13", "google,kevin-rev12",
23 "google,kevin-rev11", "google,kevin-rev10",
24 "google,kevin-rev9", "google,kevin-rev8",
25 "google,kevin-rev7", "google,kevin-rev6",
26 "google,kevin", "google,gru", "rockchip,rk3399";
30 p3_3v_dig: p3-3v-dig {
31 compatible = "regulator-fixed";
32 regulator-name = "p3.3v_dig";
33 pinctrl-names = "default";
34 pinctrl-0 = <&cpu3_pen_pwr_en>;
37 gpio = <&gpio4 30 GPIO_ACTIVE_HIGH>;
38 vin-supply = <&pp3300>;
41 edp_panel: edp-panel {
42 compatible = "sharp,lq123p1jx31";
43 backlight = <&backlight>;
44 power-supply = <&pp3300_disp>;
47 clock-frequency = <266666667>;
61 panel_in_edp: endpoint {
62 remote-endpoint = <&edp_out_panel>;
67 thermistor_ppvar_bigcpu: thermistor-ppvar-bigcpu {
68 compatible = "murata,ncp15wb473";
69 pullup-uv = <1800000>;
72 io-channels = <&saradc 2>;
73 #thermal-sensor-cells = <0>;
76 thermistor_ppvar_litcpu: thermistor-ppvar-litcpu {
77 compatible = "murata,ncp15wb473";
78 pullup-uv = <1800000>;
81 io-channels = <&saradc 3>;
82 #thermal-sensor-cells = <0>;
87 pwms = <&cros_ec_pwm 1>;
91 pinctrl-names = "default";
92 pinctrl-0 = <&bt_host_wake_l>, <&cpu1_pen_eject>;
96 /* Insert = low, eject = high */
97 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
98 linux,code = <SW_PEN_INSERTED>;
99 linux,input-type = <EV_SW>;
105 bigcpu_reg_thermal: bigcpu-reg-thermal {
106 polling-delay-passive = <100>; /* milliseconds */
107 polling-delay = <1000>; /* milliseconds */
108 thermal-sensors = <&thermistor_ppvar_bigcpu 0>;
109 sustainable-power = <4000>;
111 ppvar_bigcpu_trips: trips {
112 ppvar_bigcpu_on: ppvar-bigcpu-on {
113 temperature = <40000>; /* millicelsius */
114 hysteresis = <2000>; /* millicelsius */
118 ppvar_bigcpu_alert: ppvar-bigcpu-alert {
119 temperature = <50000>; /* millicelsius */
120 hysteresis = <2000>; /* millicelsius */
124 ppvar_bigcpu_crit: ppvar-bigcpu-crit {
125 temperature = <90000>; /* millicelsius */
126 hysteresis = <0>; /* millicelsius */
133 trip = <&ppvar_bigcpu_alert>;
135 <&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
136 <&cpu_l1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
137 <&cpu_l2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
138 <&cpu_l3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
139 contribution = <4096>;
142 trip = <&ppvar_bigcpu_alert>;
144 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
145 <&cpu_b1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
146 contribution = <1024>;
151 litcpu_reg_thermal: litcpu-reg-thermal {
152 polling-delay-passive = <100>; /* milliseconds */
153 polling-delay = <1000>; /* milliseconds */
154 thermal-sensors = <&thermistor_ppvar_litcpu 0>;
155 sustainable-power = <4000>;
157 ppvar_litcpu_trips: trips {
158 ppvar_litcpu_on: ppvar-litcpu-on {
159 temperature = <40000>; /* millicelsius */
160 hysteresis = <2000>; /* millicelsius */
164 ppvar_litcpu_alert: ppvar-litcpu-alert {
165 temperature = <50000>; /* millicelsius */
166 hysteresis = <2000>; /* millicelsius */
170 ppvar_litcpu_crit: ppvar-litcpu-crit {
171 temperature = <90000>; /* millicelsius */
172 hysteresis = <0>; /* millicelsius */
182 clock-frequency = <400000>;
184 /* These are relatively safe rise/fall times. */
185 i2c-scl-falling-time-ns = <50>;
186 i2c-scl-rising-time-ns = <300>;
189 compatible = "infineon,slb9645tt";
191 powered-while-suspended;
198 clock-frequency = <400000>;
200 /* These are relatively safe rise/fall times. */
201 i2c-scl-falling-time-ns = <50>;
202 i2c-scl-rising-time-ns = <300>;
204 digitizer: digitizer@9 {
206 compatible = "hid-over-i2c";
208 pinctrl-names = "default";
209 pinctrl-0 = <&cpu1_dig_irq_l &cpu1_dig_pdct_l>;
211 vdd-supply = <&p3_3v_dig>;
212 post-power-on-delay-ms = <100>;
214 interrupt-parent = <&gpio2>;
215 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
217 hid-descr-addr = <0x1>;
221 /* Adjustments to things in the gru baseboard */
225 compatible = "atmel,maxtouch";
227 pinctrl-names = "default";
228 pinctrl-0 = <&trackpad_int_l>;
229 interrupt-parent = <&gpio1>;
230 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
231 linux,gpio-keymap = <KEY_RESERVED
241 compatible = "atmel,maxtouch";
243 pinctrl-names = "default";
244 pinctrl-0 = <&touch_int_l>;
245 interrupt-parent = <&gpio3>;
246 interrupts = <13 IRQ_TYPE_LEVEL_LOW>;
251 regulator-min-microvolt = <798674>;
252 regulator-max-microvolt = <1302172>;
256 regulator-min-microvolt = <798674>;
257 regulator-max-microvolt = <1302172>;
258 ctrl-voltage-range = <798674 1302172>;
262 regulator-min-microvolt = <799065>;
263 regulator-max-microvolt = <1303738>;
267 regulator-min-microvolt = <799065>;
268 regulator-max-microvolt = <1303738>;
269 ctrl-voltage-range = <799065 1303738>;
273 regulator-min-microvolt = <785782>;
274 regulator-max-microvolt = <1217729>;
278 regulator-min-microvolt = <785782>;
279 regulator-max-microvolt = <1217729>;
280 ctrl-voltage-range = <785782 1217729>;
283 &ppvar_centerlogic_pwm {
284 regulator-min-microvolt = <800069>;
285 regulator-max-microvolt = <1049692>;
289 regulator-min-microvolt = <800069>;
290 regulator-max-microvolt = <1049692>;
291 ctrl-voltage-range = <800069 1049692>;
296 vref-supply = <&pp1800_ap_io>;
300 marvell,wakeup-pin = <14>; /* GPIO_14 on Marvell */
305 /* Has external pullup */
306 cpu1_dig_irq_l: cpu1-dig-irq-l {
307 rockchip,pins = <2 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
310 /* Has external pullup */
311 cpu1_dig_pdct_l: cpu1-dig-pdct-l {
312 rockchip,pins = <2 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
316 discrete-regulators {
317 cpu3_pen_pwr_en: cpu3-pen-pwr-en {
318 rockchip,pins = <4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
323 cpu1_pen_eject: cpu1-pen-eject {
324 rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>;