1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Google Homestar board device tree source 4 * 5 * Copyright 2021 Google LLC. 6 */ 7 8ap_ec_spi: &spi6 {}; 9ap_h1_spi: &spi0 {}; 10 11#include "sc7180-trogdor.dtsi" 12 13/ { 14 /* BOARD-SPECIFIC TOP LEVEL NODES */ 15 16 max98360a_1: max98360a_1 { 17 compatible = "maxim,max98360a"; 18 #sound-dai-cells = <0>; 19 }; 20 21 max98360a_2: max98360a_2 { 22 compatible = "maxim,max98360a"; 23 #sound-dai-cells = <0>; 24 }; 25 26 max98360a_3: max98360a_3 { 27 compatible = "maxim,max98360a"; 28 #sound-dai-cells = <0>; 29 }; 30 31 pp3300_touch: pp3300-touch { 32 compatible = "regulator-fixed"; 33 regulator-name = "pp3300_touch"; 34 35 regulator-min-microvolt = <3300000>; 36 regulator-max-microvolt = <3300000>; 37 38 gpio = <&tlmm 87 GPIO_ACTIVE_HIGH>; 39 enable-active-high; 40 pinctrl-names = "default"; 41 pinctrl-0 = <&en_pp3300_touch>; 42 43 vin-supply = <&pp3300_a>; 44 }; 45 46 thermal-zones { 47 skin_temp_thermal: skin-temp-thermal { 48 polling-delay-passive = <250>; 49 polling-delay = <0>; 50 51 thermal-sensors = <&pm6150_adc_tm 1>; 52 sustainable-power = <965>; 53 54 trips { 55 skin_temp_alert0: trip-point0 { 56 temperature = <55000>; 57 hysteresis = <1000>; 58 type = "passive"; 59 }; 60 61 skin_temp_alert1: trip-point1 { 62 temperature = <58000>; 63 hysteresis = <1000>; 64 type = "passive"; 65 }; 66 67 skin-temp-crit { 68 temperature = <73000>; 69 hysteresis = <1000>; 70 type = "critical"; 71 }; 72 }; 73 74 cooling-maps { 75 map0 { 76 trip = <&skin_temp_alert0>; 77 cooling-device = <&CPU6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 78 <&CPU7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 79 }; 80 81 map1 { 82 trip = <&skin_temp_alert1>; 83 cooling-device = <&CPU6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 84 <&CPU7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 85 }; 86 }; 87 }; 88 }; 89}; 90 91&ap_tp_i2c { 92 status = "disabled"; 93}; 94 95ap_ts_pen_1v8: &i2c4 { 96 status = "okay"; 97 clock-frequency = <400000>; 98 99 ap_ts: touchscreen@14 { 100 compatible = "goodix,gt7375p"; 101 reg = <0x14>; 102 pinctrl-names = "default"; 103 pinctrl-0 = <&ts_int_l>, <&ts_reset_l>; 104 105 interrupt-parent = <&tlmm>; 106 interrupts = <9 IRQ_TYPE_LEVEL_LOW>; 107 108 reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>; 109 110 vdd-supply = <&pp3300_touch>; 111 }; 112}; 113 114/* Panel controls backlight over aux channel */ 115 116&backlight { 117 status = "disabled"; 118}; 119 120&camcc { 121 status = "okay"; 122}; 123 124&panel { 125 compatible = "samsung,atna33xc20"; 126 enable-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>; 127 /delete-property/ backlight; 128}; 129 130&pm6150_adc { 131 skin-temp-thermistor@4d { 132 reg = <ADC5_AMUX_THM1_100K_PU>; 133 qcom,ratiometric; 134 qcom,hw-settle-time = <200>; 135 }; 136}; 137 138&pm6150_adc_tm { 139 status = "okay"; 140 141 skin-temp-thermistor@1 { 142 reg = <1>; 143 io-channels = <&pm6150_adc ADC5_AMUX_THM1_100K_PU>; 144 qcom,ratiometric; 145 qcom,hw-settle-time-us = <200>; 146 }; 147}; 148 149&pp3300_dx_edp { 150 gpio = <&tlmm 67 GPIO_ACTIVE_HIGH>; 151}; 152 153&secondary_mi2s { 154 qcom,playback-sd-lines = <0 1>; 155}; 156 157&sound_multimedia1_codec { 158 sound-dai = <&max98360a>, <&max98360a_1>, <&max98360a_2>, <&max98360a_3> ; 159}; 160 161&wifi { 162 qcom,ath10k-calibration-variant = "GO_HOMESTAR"; 163}; 164 165/* PINCTRL - modifications to sc7180-trogdor.dtsi */ 166 167&en_pp3300_dx_edp { 168 pinmux { 169 pins = "gpio67"; 170 }; 171 172 pinconf { 173 pins = "gpio67"; 174 }; 175}; 176 177&sec_mi2s_active{ 178 pinmux { 179 pins = "gpio49", "gpio50", "gpio51", "gpio52"; 180 function = "mi2s_1"; 181 }; 182}; 183 184&ts_reset_l { 185 pinconf { 186 /* 187 * We want reset state by default and it will be up to the 188 * driver to disable this when it's ready. 189 */ 190 output-low; 191 }; 192}; 193 194/* PINCTRL - board-specific pinctrl */ 195 196&tlmm { 197 gpio-line-names = "HUB_RST_L", 198 "AP_RAM_ID0", 199 "AP_SKU_ID2", 200 "AP_RAM_ID1", 201 "", 202 "AP_RAM_ID2", 203 "UF_CAM_EN", 204 "WF_CAM_EN", 205 "TS_RESET_L", 206 "TS_INT_L", 207 "", 208 "EDP_BRIJ_IRQ", 209 "AP_EDP_BKLTEN", 210 "UF_CAM_MCLK", 211 "WF_CAM_CLK", 212 "EDP_BRIJ_I2C_SDA", 213 "EDP_BRIJ_I2C_SCL", 214 "UF_CAM_SDA", 215 "UF_CAM_SCL", 216 "WF_CAM_SDA", 217 "WF_CAM_SCL", 218 "AVEE_LCD_EN", 219 "", 220 "AMP_EN", 221 "AMP_EN2", 222 "AP_SAR_SENSOR_SDA", 223 "AP_SAR_SENSOR_SCL", 224 "SEL_LCM", 225 "HP_IRQ", 226 "WF_CAM_RST_L", 227 "UF_CAM_RST_L", 228 "AP_BRD_ID2", 229 "BRIJ_SUSPEND", 230 "AP_BRD_ID0", 231 "AP_H1_SPI_MISO", 232 "AP_H1_SPI_MOSI", 233 "AP_H1_SPI_CLK", 234 "AP_H1_SPI_CS_L", 235 "BT_UART_CTS", 236 "BT_UART_RTS", 237 "BT_UART_TXD", 238 "BT_UART_RXD", 239 "H1_AP_INT_ODL", 240 "", 241 "UART_AP_TX_DBG_RX", 242 "UART_DBG_TX_AP_RX", 243 "HP_I2C_SDA", 244 "HP_I2C_SCL", 245 "FORCED_USB_BOOT", 246 "AMP_BCLK", 247 "AMP_LRCLK", 248 "AMP_DIN", 249 "AMP_DIN_2", 250 "HP_BCLK", 251 "HP_LRCLK", 252 "HP_DOUT", 253 "HP_DIN", 254 "HP_MCLK", 255 "AP_SKU_ID0", 256 "AP_EC_SPI_MISO", 257 "AP_EC_SPI_MOSI", 258 "AP_EC_SPI_CLK", 259 "AP_EC_SPI_CS_L", 260 "AP_SPI_CLK", 261 "AP_SPI_MOSI", 262 "AP_SPI_MISO", 263 /* 264 * AP_FLASH_WP_L is crossystem ABI. Schematics 265 * call it BIOS_FLASH_WP_L. 266 */ 267 "AP_FLASH_WP_L", 268 "EN_PP3300_DX_EDP", 269 "AP_SPI_CS0_L", 270 "SD_CD_ODL", 271 "", 272 "", 273 "", 274 "WLAN_SW_CTRL", 275 "", 276 "REPORT_E", 277 "VDD_RESET_1.8V", 278 "ID0", 279 "", 280 "ID1", 281 "AVDD_LCD_EN", 282 "MIPI_1.8V_EN", 283 "", 284 "CODEC_PWR_EN", 285 "HUB_EN", 286 "", 287 "PP1800_MIPI_SW_EN", 288 "EN_PP3300_TOUCH", 289 "", 290 "", 291 "AP_SKU_ID1", 292 "AP_RST_REQ", 293 "", 294 "AP_BRD_ID1", 295 "AP_EC_INT_L", 296 "SDM_GRFC_3", 297 "", 298 "", 299 "BOOT_CONFIG_4", 300 "BOOT_CONFIG_2", 301 "", 302 "", 303 "", 304 "", 305 "EDP_BRIJ_EN", 306 "", 307 "", 308 "BOOT_CONFIG_3", 309 "WCI2_LTE_COEX_TXD", 310 "WCI2_LTE_COEX_RXD", 311 "", 312 "", 313 "", 314 "", 315 "FORCED_USB_BOOT_POL", 316 "AP_TS_PEN_I2C_SDA", 317 "AP_TS_PEN_I2C_SCL", 318 "DP_HOT_PLUG_DET", 319 "EC_IN_RW_ODL"; 320 321 en_pp3300_touch: en-pp3300-touch { 322 pinmux { 323 pins = "gpio87"; 324 function = "gpio"; 325 }; 326 327 pinconf { 328 pins = "gpio87"; 329 drive-strength = <2>; 330 bias-disable; 331 }; 332 }; 333}; 334