1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Google Pompom board device tree source 4 * 5 * Copyright 2020 Google LLC. 6 */ 7 8#include "sc7180.dtsi" 9 10ap_ec_spi: &spi6 {}; 11ap_h1_spi: &spi0 {}; 12 13#include "sc7180-trogdor.dtsi" 14 15/ { 16 thermal-zones { 17 5v-choke-thermal { 18 polling-delay-passive = <0>; 19 polling-delay = <250>; 20 21 thermal-sensors = <&pm6150_adc_tm 1>; 22 23 trips { 24 5v-choke-crit { 25 temperature = <125000>; 26 hysteresis = <1000>; 27 type = "critical"; 28 }; 29 }; 30 }; 31 }; 32}; 33 34&alc5682 { 35 realtek,dmic-clk-driving-high = "true"; 36}; 37 38&cpu6_alert0 { 39 temperature = <60000>; 40}; 41 42&cpu6_alert1 { 43 temperature = <65000>; 44}; 45 46&cpu6_thermal { 47 sustainable-power = <948>; 48}; 49 50&cpu7_alert0 { 51 temperature = <60000>; 52}; 53 54&cpu7_alert1 { 55 temperature = <65000>; 56}; 57 58&cpu7_thermal { 59 sustainable-power = <948>; 60}; 61 62&cpu8_alert0 { 63 temperature = <60000>; 64}; 65 66&cpu8_alert1 { 67 temperature = <65000>; 68}; 69 70&cpu8_thermal { 71 sustainable-power = <948>; 72}; 73 74&cpu9_alert0 { 75 temperature = <60000>; 76}; 77 78&cpu9_alert1 { 79 temperature = <65000>; 80}; 81 82&cpu9_thermal { 83 sustainable-power = <948>; 84}; 85 86&gpio_keys { 87 status = "okay"; 88}; 89 90ap_ts_pen_1v8: &i2c4 { 91 status = "okay"; 92 clock-frequency = <400000>; 93 94 ap_ts: touchscreen@10 { 95 compatible = "hid-over-i2c"; 96 reg = <0x10>; 97 pinctrl-names = "default"; 98 pinctrl-0 = <&ts_int_l>, <&ts_reset_l>; 99 100 interrupt-parent = <&tlmm>; 101 interrupts = <9 IRQ_TYPE_LEVEL_LOW>; 102 103 post-power-on-delay-ms = <20>; 104 hid-descr-addr = <0x0001>; 105 106 vdd-supply = <&pp3300_ts>; 107 }; 108}; 109 110&panel { 111 compatible = "kingdisplay,kd116n21-30nv-a010"; 112}; 113 114&pen_insert { 115 /* Insert = high, eject = low */ 116 gpios = <&tlmm 52 GPIO_ACTIVE_HIGH>; 117}; 118 119&pm6150_adc { 120 5v-choke-thermistor@4e { 121 reg = <ADC5_AMUX_THM2_100K_PU>; 122 qcom,ratiometric; 123 qcom,hw-settle-time = <200>; 124 }; 125}; 126 127&pm6150_adc_tm { 128 status = "okay"; 129 130 5v-choke-thermistor@1 { 131 reg = <1>; 132 io-channels = <&pm6150_adc ADC5_AMUX_THM2_100K_PU>; 133 qcom,ratiometric; 134 qcom,hw-settle-time-us = <200>; 135 }; 136}; 137 138&sdhc_2 { 139 status = "okay"; 140}; 141 142&sound { 143 model = "sc7180-rt5682-max98357a-2mic"; 144 pinctrl-names = "default"; 145 pinctrl-0 = <&dmic_sel>; 146 dmic-gpios = <&tlmm 86 GPIO_ACTIVE_HIGH>; 147}; 148 149&usb_c1 { 150 status = "disabled"; 151}; 152 153&wifi { 154 qcom,ath10k-calibration-variant = "GO_POMPOM"; 155}; 156 157/* PINCTRL - board-specific pinctrl */ 158 159&tlmm { 160 gpio-line-names = "TP_INT_ODL", 161 "AP_RAM_ID0", 162 "AP_SKU_ID2", 163 "AP_RAM_ID1", 164 "", 165 "AP_RAM_ID2", 166 "AP_TP_I2C_SDA", 167 "AP_TP_I2C_SCL", 168 "TS_RESET_L", 169 "TS_INT_L", 170 "", 171 "EDP_BRIJ_IRQ", 172 "AP_EDP_BKLTEN", 173 "", 174 "", 175 "EDP_BRIJ_I2C_SDA", 176 "EDP_BRIJ_I2C_SCL", 177 "HUB_RST_L", 178 "", 179 "", 180 "", 181 "", 182 "", 183 "AMP_EN", 184 "P_SENSOR_INT_L", 185 "AP_SAR_SENSOR_SDA", 186 "AP_SAR_SENSOR_SCL", 187 "", 188 "HP_IRQ", 189 "", 190 "EN_PP3300_DX_EDP", 191 "AP_BRD_ID2", 192 "BRIJ_SUSPEND", 193 "AP_BRD_ID0", 194 "AP_H1_SPI_MISO", 195 "AP_H1_SPI_MOSI", 196 "AP_H1_SPI_CLK", 197 "AP_H1_SPI_CS_L", 198 "", 199 "", 200 "", 201 "", 202 "H1_AP_INT_ODL", 203 "", 204 "UART_AP_TX_DBG_RX", 205 "UART_DBG_TX_AP_RX", 206 "HP_I2C_SDA", 207 "HP_I2C_SCL", 208 "FORCED_USB_BOOT", 209 "AMP_BCLK", 210 "AMP_LRCLK", 211 "AMP_DIN", 212 "PEN_PDCT_L", 213 "HP_BCLK", 214 "HP_LRCLK", 215 "HP_DOUT", 216 "HP_DIN", 217 "HP_MCLK", 218 "AP_SKU_ID0", 219 "AP_EC_SPI_MISO", 220 "AP_EC_SPI_MOSI", 221 "AP_EC_SPI_CLK", 222 "AP_EC_SPI_CS_L", 223 "AP_SPI_CLK", 224 "AP_SPI_MOSI", 225 "AP_SPI_MISO", 226 /* 227 * AP_FLASH_WP_L is crossystem ABI. Schematics 228 * call it BIOS_FLASH_WP_L. 229 */ 230 "AP_FLASH_WP_L", 231 "", 232 "AP_SPI_CS0_L", 233 "SD_CD_ODL", 234 "", 235 "", 236 "", 237 "", 238 "", 239 "UIM2_DATA", 240 "UIM2_CLK", 241 "UIM2_RST", 242 "UIM2_PRESENT", 243 "UIM1_DATA", 244 "UIM1_CLK", 245 "UIM1_RST", 246 "", 247 "EN_PP3300_CODEC", 248 "EN_PP3300_HUB", 249 "", 250 "DMIC_SEL", 251 "", 252 "", 253 "", 254 "AP_SKU_ID1", 255 "AP_RST_REQ", 256 "", 257 "AP_BRD_ID1", 258 "AP_EC_INT_R_L", 259 "", 260 "", 261 "", 262 "", 263 "", 264 "", 265 "", 266 "", 267 "", 268 "EDP_BRIJ_EN", 269 "", 270 "", 271 "", 272 "", 273 "", 274 "", 275 "", 276 "", 277 "", 278 "", 279 "AP_TS_PEN_I2C_SDA", 280 "AP_TS_PEN_I2C_SCL", 281 "DP_HOT_PLUG_DET", 282 "EC_IN_RW_ODL"; 283 284 dmic_sel: dmic-sel { 285 pinmux { 286 pins = "gpio86"; 287 function = "gpio"; 288 }; 289 290 pinconf { 291 pins = "gpio86"; 292 bias-pull-down; 293 }; 294 }; 295}; 296