1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Google Homestar board device tree source
5 * Copyright 2021 Google LLC.
8 /* This file must be included after sc7180-trogdor.dtsi */
10 #include "sc7180-trogdor-rt5682i-sku.dtsi"
13 /* BOARD-SPECIFIC TOP LEVEL NODES */
15 max98360a_1: amplifier-1 {
16 compatible = "maxim,max98360a";
17 #sound-dai-cells = <0>;
20 max98360a_2: amplifier-2 {
21 compatible = "maxim,max98360a";
22 #sound-dai-cells = <0>;
25 max98360a_3: amplifier-3 {
26 compatible = "maxim,max98360a";
27 #sound-dai-cells = <0>;
30 pp3300_touch: pp3300-touch-regulator {
31 compatible = "regulator-fixed";
32 regulator-name = "pp3300_touch";
34 regulator-min-microvolt = <3300000>;
35 regulator-max-microvolt = <3300000>;
37 gpio = <&tlmm 87 GPIO_ACTIVE_HIGH>;
39 pinctrl-names = "default";
40 pinctrl-0 = <&en_pp3300_touch>;
42 vin-supply = <&pp3300_a>;
46 skin_temp_thermal: skin-temp-thermal {
47 polling-delay-passive = <250>;
50 thermal-sensors = <&pm6150_adc_tm 1>;
51 sustainable-power = <965>;
54 skin_temp_alert0: trip-point0 {
55 temperature = <55000>;
60 skin_temp_alert1: trip-point1 {
61 temperature = <58000>;
67 temperature = <73000>;
75 trip = <&skin_temp_alert0>;
76 cooling-device = <&CPU6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
77 <&CPU7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
81 trip = <&skin_temp_alert1>;
82 cooling-device = <&CPU6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
83 <&CPU7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
91 * ADDITIONS TO FIXED REGULATORS DEFINED IN PARENT DEVICE TREE FILES
93 * Sort order matches the order in the parent files (parents before children).
98 * The atna33xc20 really likes to be power cycled to keep it from
99 * getting in a bad state. This is the reason that the touchscreen
100 * rail and eDP rails are separate from each other on homestar (but
101 * not other trogdor devices) Make sure it starts "off" at bootup.
103 /delete-property/ regulator-boot-on;
106 /* ADDITIONS TO NODES DEFINED IN PARENT DEVICE TREE FILES */
108 ap_ts_pen_1v8: &i2c4 {
110 clock-frequency = <400000>;
112 ap_ts: touchscreen@14 {
113 compatible = "goodix,gt7375p";
115 pinctrl-names = "default";
116 pinctrl-0 = <&ts_int_l>, <&ts_reset_l>;
118 interrupt-parent = <&tlmm>;
119 interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
122 reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;
124 vdd-supply = <&pp3300_touch>;
128 /* Panel controls backlight over aux channel */
139 keyboard-controller {
140 compatible = "google,cros-ec-keyb-switches";
145 compatible = "samsung,atna33xc20";
146 enable-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
147 /delete-property/ backlight;
152 reg = <ADC5_AMUX_THM1_100K_PU>;
154 qcom,hw-settle-time = <200>;
155 label = "skin_therm";
162 skin-temp-thermistor@1 {
164 io-channels = <&pm6150_adc ADC5_AMUX_THM1_100K_PU>;
166 qcom,hw-settle-time-us = <200>;
187 gpio = <&tlmm 67 GPIO_ACTIVE_HIGH>;
191 qcom,playback-sd-lines = <0 1>;
194 &sound_multimedia1_codec {
195 sound-dai = <&max98360a>, <&max98360a_1>, <&max98360a_2>, <&max98360a_3> ;
199 qcom,ath10k-calibration-variant = "GO_HOMESTAR";
202 /* PINCTRL - modifications to sc7180-trogdor.dtsi */
209 pins = "gpio49", "gpio50", "gpio51", "gpio52";
214 * We want reset state by default and it will be up to the
215 * driver to disable this when it's ready.
220 /* PINCTRL - board-specific pinctrl */
223 gpio-line-names = "HUB_RST_L",
290 * AP_FLASH_WP_L is crossystem ABI. Schematics
291 * call it BIOS_FLASH_WP_L.
341 "FORCED_USB_BOOT_POL",
347 en_pp3300_touch: en-pp3300-touch-state {
350 drive-strength = <2>;