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