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", "simple-panel";
43 backlight = <&backlight>;
44 power-supply = <&pp3300_disp>;
47 panel_in_edp: endpoint {
48 remote-endpoint = <&edp_out_panel>;
53 thermistor_ppvar_bigcpu: thermistor-ppvar-bigcpu {
54 compatible = "murata,ncp15wb473";
55 pullup-uv = <1800000>;
58 io-channels = <&saradc 2>;
59 #thermal-sensor-cells = <0>;
62 thermistor_ppvar_litcpu: thermistor-ppvar-litcpu {
63 compatible = "murata,ncp15wb473";
64 pullup-uv = <1800000>;
67 io-channels = <&saradc 3>;
68 #thermal-sensor-cells = <0>;
73 pwms = <&cros_ec_pwm 1>;
77 pinctrl-names = "default";
78 pinctrl-0 = <&bt_host_wake_l>, <&cpu1_pen_eject>;
82 /* Insert = low, eject = high */
83 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
84 linux,code = <SW_PEN_INSERTED>;
85 linux,input-type = <EV_SW>;
91 bigcpu_reg_thermal: bigcpu-reg-thermal {
92 polling-delay-passive = <100>; /* milliseconds */
93 polling-delay = <1000>; /* milliseconds */
94 thermal-sensors = <&thermistor_ppvar_bigcpu 0>;
95 sustainable-power = <4000>;
97 ppvar_bigcpu_trips: trips {
98 ppvar_bigcpu_on: ppvar-bigcpu-on {
99 temperature = <40000>; /* millicelsius */
100 hysteresis = <2000>; /* millicelsius */
104 ppvar_bigcpu_alert: ppvar-bigcpu-alert {
105 temperature = <50000>; /* millicelsius */
106 hysteresis = <2000>; /* millicelsius */
110 ppvar_bigcpu_crit: ppvar-bigcpu-crit {
111 temperature = <90000>; /* millicelsius */
112 hysteresis = <0>; /* millicelsius */
119 trip = <&ppvar_bigcpu_alert>;
121 <&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
122 <&cpu_l1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
123 <&cpu_l2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
124 <&cpu_l3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
125 contribution = <4096>;
128 trip = <&ppvar_bigcpu_alert>;
130 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
131 <&cpu_b1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
132 contribution = <1024>;
137 litcpu_reg_thermal: litcpu-reg-thermal {
138 polling-delay-passive = <100>; /* milliseconds */
139 polling-delay = <1000>; /* milliseconds */
140 thermal-sensors = <&thermistor_ppvar_litcpu 0>;
141 sustainable-power = <4000>;
143 ppvar_litcpu_trips: trips {
144 ppvar_litcpu_on: ppvar-litcpu-on {
145 temperature = <40000>; /* millicelsius */
146 hysteresis = <2000>; /* millicelsius */
150 ppvar_litcpu_alert: ppvar-litcpu-alert {
151 temperature = <50000>; /* millicelsius */
152 hysteresis = <2000>; /* millicelsius */
156 ppvar_litcpu_crit: ppvar-litcpu-crit {
157 temperature = <90000>; /* millicelsius */
158 hysteresis = <0>; /* millicelsius */
168 clock-frequency = <400000>;
170 /* These are relatively safe rise/fall times. */
171 i2c-scl-falling-time-ns = <50>;
172 i2c-scl-rising-time-ns = <300>;
175 compatible = "infineon,slb9645tt";
177 powered-while-suspended;
184 clock-frequency = <400000>;
186 /* These are relatively safe rise/fall times. */
187 i2c-scl-falling-time-ns = <50>;
188 i2c-scl-rising-time-ns = <300>;
190 digitizer: digitizer@9 {
192 compatible = "hid-over-i2c";
194 pinctrl-names = "default";
195 pinctrl-0 = <&cpu1_dig_irq_l &cpu1_dig_pdct_l>;
197 vdd-supply = <&p3_3v_dig>;
198 post-power-on-delay-ms = <100>;
200 interrupt-parent = <&gpio2>;
201 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
203 hid-descr-addr = <0x1>;
207 /* Adjustments to things in the gru baseboard */
211 compatible = "atmel,maxtouch";
213 pinctrl-names = "default";
214 pinctrl-0 = <&trackpad_int_l>;
215 interrupt-parent = <&gpio1>;
216 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
217 linux,gpio-keymap = <KEY_RESERVED
227 compatible = "atmel,maxtouch";
229 pinctrl-names = "default";
230 pinctrl-0 = <&touch_int_l>;
231 interrupt-parent = <&gpio3>;
232 interrupts = <13 IRQ_TYPE_LEVEL_LOW>;
237 regulator-min-microvolt = <798674>;
238 regulator-max-microvolt = <1302172>;
242 regulator-min-microvolt = <798674>;
243 regulator-max-microvolt = <1302172>;
244 ctrl-voltage-range = <798674 1302172>;
248 regulator-min-microvolt = <799065>;
249 regulator-max-microvolt = <1303738>;
253 regulator-min-microvolt = <799065>;
254 regulator-max-microvolt = <1303738>;
255 ctrl-voltage-range = <799065 1303738>;
259 regulator-min-microvolt = <785782>;
260 regulator-max-microvolt = <1217729>;
264 regulator-min-microvolt = <785782>;
265 regulator-max-microvolt = <1217729>;
266 ctrl-voltage-range = <785782 1217729>;
269 &ppvar_centerlogic_pwm {
270 regulator-min-microvolt = <800069>;
271 regulator-max-microvolt = <1049692>;
275 regulator-min-microvolt = <800069>;
276 regulator-max-microvolt = <1049692>;
277 ctrl-voltage-range = <800069 1049692>;
282 vref-supply = <&pp1800_ap_io>;
286 marvell,wakeup-pin = <14>; /* GPIO_14 on Marvell */
291 /* Has external pullup */
292 cpu1_dig_irq_l: cpu1-dig-irq-l {
293 rockchip,pins = <2 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
296 /* Has external pullup */
297 cpu1_dig_pdct_l: cpu1-dig-pdct-l {
298 rockchip,pins = <2 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
302 discrete-regulators {
303 cpu3_pen_pwr_en: cpu3-pen-pwr-en {
304 rockchip,pins = <4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
309 cpu1_pen_eject: cpu1-pen-eject {
310 rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>;