1b97ee269SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2b97ee269SEmmanuel Vadot/* 3b97ee269SEmmanuel Vadot * Google Wormdingler board device tree source 4b97ee269SEmmanuel Vadot * 5b97ee269SEmmanuel Vadot * Copyright 2021 Google LLC. 6b97ee269SEmmanuel Vadot */ 7b97ee269SEmmanuel Vadot 8b97ee269SEmmanuel Vadot/dts-v1/; 9b97ee269SEmmanuel Vadot 10b97ee269SEmmanuel Vadot#include "sc7180-trogdor.dtsi" 11*0e8011faSEmmanuel Vadot#include "sc7180-trogdor-detachable.dtsi" 12b97ee269SEmmanuel Vadot 13b97ee269SEmmanuel Vadot/ { 148bab661aSEmmanuel Vadot avdd_lcd: avdd-lcd-regulator { 15b97ee269SEmmanuel Vadot compatible = "regulator-fixed"; 16b97ee269SEmmanuel Vadot regulator-name = "avdd_lcd"; 17b97ee269SEmmanuel Vadot 18b97ee269SEmmanuel Vadot gpio = <&tlmm 88 GPIO_ACTIVE_HIGH>; 19b97ee269SEmmanuel Vadot enable-active-high; 20b97ee269SEmmanuel Vadot pinctrl-names = "default"; 21b97ee269SEmmanuel Vadot pinctrl-0 = <&avdd_lcd_en>; 22b97ee269SEmmanuel Vadot 23b97ee269SEmmanuel Vadot vin-supply = <&pp5000_a>; 24b97ee269SEmmanuel Vadot }; 25b97ee269SEmmanuel Vadot 268bab661aSEmmanuel Vadot avee_lcd: avee-lcd-regulator { 27b97ee269SEmmanuel Vadot compatible = "regulator-fixed"; 28b97ee269SEmmanuel Vadot regulator-name = "avee_lcd"; 29b97ee269SEmmanuel Vadot 30b97ee269SEmmanuel Vadot gpio = <&tlmm 21 GPIO_ACTIVE_HIGH>; 31b97ee269SEmmanuel Vadot enable-active-high; 32b97ee269SEmmanuel Vadot pinctrl-names = "default"; 33b97ee269SEmmanuel Vadot pinctrl-0 = <&avee_lcd_en>; 34b97ee269SEmmanuel Vadot 35b97ee269SEmmanuel Vadot vin-supply = <&pp5000_a>; 36b97ee269SEmmanuel Vadot }; 37b97ee269SEmmanuel Vadot 38b97ee269SEmmanuel Vadot pp1800_ts: 398bab661aSEmmanuel Vadot v1p8_mipi: v1p8-mipi-regulator { 40b97ee269SEmmanuel Vadot compatible = "regulator-fixed"; 41b97ee269SEmmanuel Vadot regulator-name = "v1p8_mipi"; 42b97ee269SEmmanuel Vadot 43b97ee269SEmmanuel Vadot gpio = <&tlmm 86 GPIO_ACTIVE_HIGH>; 44b97ee269SEmmanuel Vadot enable-active-high; 45b97ee269SEmmanuel Vadot pinctrl-names = "default"; 46b97ee269SEmmanuel Vadot pinctrl-0 = <&mipi_1800_en>; 47b97ee269SEmmanuel Vadot 48b97ee269SEmmanuel Vadot vin-supply = <&pp3300_a>; 49b97ee269SEmmanuel Vadot }; 50b97ee269SEmmanuel Vadot 51b97ee269SEmmanuel Vadot thermal-zones { 52b97ee269SEmmanuel Vadot skin_temp_thermal: skin-temp-thermal { 53b97ee269SEmmanuel Vadot polling-delay-passive = <250>; 54b97ee269SEmmanuel Vadot 55b97ee269SEmmanuel Vadot thermal-sensors = <&pm6150_adc_tm 1>; 56b97ee269SEmmanuel Vadot sustainable-power = <574>; 57b97ee269SEmmanuel Vadot 58b97ee269SEmmanuel Vadot trips { 59b97ee269SEmmanuel Vadot skin_temp_alert0: trip-point0 { 60b97ee269SEmmanuel Vadot temperature = <58000>; 61b97ee269SEmmanuel Vadot hysteresis = <1000>; 62b97ee269SEmmanuel Vadot type = "passive"; 63b97ee269SEmmanuel Vadot }; 64b97ee269SEmmanuel Vadot 65b97ee269SEmmanuel Vadot skin_temp_alert1: trip-point1 { 66b97ee269SEmmanuel Vadot temperature = <62500>; 67b97ee269SEmmanuel Vadot hysteresis = <1000>; 68b97ee269SEmmanuel Vadot type = "passive"; 69b97ee269SEmmanuel Vadot }; 70b97ee269SEmmanuel Vadot 71b97ee269SEmmanuel Vadot skin-temp-crit { 72b97ee269SEmmanuel Vadot temperature = <68000>; 73b97ee269SEmmanuel Vadot hysteresis = <1000>; 74b97ee269SEmmanuel Vadot type = "critical"; 75b97ee269SEmmanuel Vadot }; 76b97ee269SEmmanuel Vadot }; 77b97ee269SEmmanuel Vadot 78b97ee269SEmmanuel Vadot cooling-maps { 79b97ee269SEmmanuel Vadot map0 { 80b97ee269SEmmanuel Vadot trip = <&skin_temp_alert0>; 81b97ee269SEmmanuel Vadot cooling-device = <&CPU6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 82b97ee269SEmmanuel Vadot <&CPU7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 83b97ee269SEmmanuel Vadot }; 84b97ee269SEmmanuel Vadot 85b97ee269SEmmanuel Vadot map1 { 86b97ee269SEmmanuel Vadot trip = <&skin_temp_alert1>; 87b97ee269SEmmanuel Vadot cooling-device = <&CPU6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 88b97ee269SEmmanuel Vadot <&CPU7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 89b97ee269SEmmanuel Vadot }; 90b97ee269SEmmanuel Vadot }; 91b97ee269SEmmanuel Vadot }; 92b97ee269SEmmanuel Vadot }; 93b97ee269SEmmanuel Vadot}; 94b97ee269SEmmanuel Vadot 95b97ee269SEmmanuel Vadot&backlight { 96b97ee269SEmmanuel Vadot pwms = <&cros_ec_pwm 0>; 97b97ee269SEmmanuel Vadot}; 98b97ee269SEmmanuel Vadot 99b97ee269SEmmanuel Vadot&camcc { 100b97ee269SEmmanuel Vadot status = "okay"; 101b97ee269SEmmanuel Vadot}; 102b97ee269SEmmanuel Vadot 103b97ee269SEmmanuel Vadot&cros_ec { 104b97ee269SEmmanuel Vadot base_detection: cbas { 105b97ee269SEmmanuel Vadot compatible = "google,cros-cbas"; 106b97ee269SEmmanuel Vadot }; 107b97ee269SEmmanuel Vadot}; 108b97ee269SEmmanuel Vadot 109b97ee269SEmmanuel Vadot&i2c4 { 110b97ee269SEmmanuel Vadot status = "okay"; 111b97ee269SEmmanuel Vadot clock-frequency = <400000>; 112b97ee269SEmmanuel Vadot 113b97ee269SEmmanuel Vadot ap_ts: touchscreen@1 { 114b97ee269SEmmanuel Vadot compatible = "hid-over-i2c"; 115b97ee269SEmmanuel Vadot reg = <0x01>; 116b97ee269SEmmanuel Vadot pinctrl-names = "default"; 117b97ee269SEmmanuel Vadot pinctrl-0 = <&ts_int_l>; 118b97ee269SEmmanuel Vadot 119b97ee269SEmmanuel Vadot interrupt-parent = <&tlmm>; 120b97ee269SEmmanuel Vadot interrupts = <9 IRQ_TYPE_EDGE_FALLING>; 121b97ee269SEmmanuel Vadot 12284943d6fSEmmanuel Vadot panel = <&panel>; 123b97ee269SEmmanuel Vadot post-power-on-delay-ms = <70>; 124b97ee269SEmmanuel Vadot hid-descr-addr = <0x0001>; 125b97ee269SEmmanuel Vadot 126b97ee269SEmmanuel Vadot vdd-supply = <&pp3300_ts>; 127b97ee269SEmmanuel Vadot vddl-supply = <&pp1800_ts>; 128b97ee269SEmmanuel Vadot }; 129b97ee269SEmmanuel Vadot}; 130b97ee269SEmmanuel Vadot 131f126890aSEmmanuel Vadot&mdss_dsi0 { 132f126890aSEmmanuel Vadot 133f126890aSEmmanuel Vadot panel: panel@0 { 134f126890aSEmmanuel Vadot reg = <0>; 135f126890aSEmmanuel Vadot enable-gpios = <&tlmm 87 GPIO_ACTIVE_HIGH>; 136f126890aSEmmanuel Vadot pinctrl-names = "default"; 137f126890aSEmmanuel Vadot pinctrl-0 = <&vdd_reset_1800>; 138f126890aSEmmanuel Vadot avdd-supply = <&avdd_lcd>; 139f126890aSEmmanuel Vadot avee-supply = <&avee_lcd>; 140f126890aSEmmanuel Vadot pp1800-supply = <&v1p8_mipi>; 141f126890aSEmmanuel Vadot pp3300-supply = <&pp3300_dx_edp>; 142f126890aSEmmanuel Vadot backlight = <&backlight>; 143f126890aSEmmanuel Vadot rotation = <270>; 144f126890aSEmmanuel Vadot 145f126890aSEmmanuel Vadot port { 146f126890aSEmmanuel Vadot panel_in: endpoint { 147f126890aSEmmanuel Vadot remote-endpoint = <&mdss_dsi0_out>; 148f126890aSEmmanuel Vadot }; 149f126890aSEmmanuel Vadot }; 150f126890aSEmmanuel Vadot }; 151f126890aSEmmanuel Vadot 152f126890aSEmmanuel Vadot ports { 153f126890aSEmmanuel Vadot port@1 { 154f126890aSEmmanuel Vadot endpoint { 155f126890aSEmmanuel Vadot remote-endpoint = <&panel_in>; 156f126890aSEmmanuel Vadot data-lanes = <0 1 2 3>; 157f126890aSEmmanuel Vadot }; 158f126890aSEmmanuel Vadot }; 159f126890aSEmmanuel Vadot }; 160f126890aSEmmanuel Vadot}; 161f126890aSEmmanuel Vadot 162b97ee269SEmmanuel Vadot&pm6150_adc { 163aa1a8ff2SEmmanuel Vadot channel@4d { 164b97ee269SEmmanuel Vadot reg = <ADC5_AMUX_THM1_100K_PU>; 165b97ee269SEmmanuel Vadot qcom,ratiometric; 166b97ee269SEmmanuel Vadot qcom,hw-settle-time = <200>; 167aa1a8ff2SEmmanuel Vadot label = "skin_therm"; 168b97ee269SEmmanuel Vadot }; 169b97ee269SEmmanuel Vadot}; 170b97ee269SEmmanuel Vadot 171b97ee269SEmmanuel Vadot&pm6150_adc_tm { 172b97ee269SEmmanuel Vadot status = "okay"; 173b97ee269SEmmanuel Vadot 174b97ee269SEmmanuel Vadot skin-temp-thermistor@1 { 175b97ee269SEmmanuel Vadot reg = <1>; 176b97ee269SEmmanuel Vadot io-channels = <&pm6150_adc ADC5_AMUX_THM1_100K_PU>; 177b97ee269SEmmanuel Vadot qcom,ratiometric; 178b97ee269SEmmanuel Vadot qcom,hw-settle-time-us = <200>; 179b97ee269SEmmanuel Vadot }; 180b97ee269SEmmanuel Vadot}; 181b97ee269SEmmanuel Vadot 182b97ee269SEmmanuel Vadot&pp1800_uf_cam { 183b97ee269SEmmanuel Vadot status = "okay"; 184b97ee269SEmmanuel Vadot}; 185b97ee269SEmmanuel Vadot 186b97ee269SEmmanuel Vadot&pp1800_wf_cam { 187b97ee269SEmmanuel Vadot status = "okay"; 188b97ee269SEmmanuel Vadot}; 189b97ee269SEmmanuel Vadot 190b97ee269SEmmanuel Vadot&pp2800_uf_cam { 191b97ee269SEmmanuel Vadot status = "okay"; 192b97ee269SEmmanuel Vadot}; 193b97ee269SEmmanuel Vadot 194b97ee269SEmmanuel Vadot&pp2800_wf_cam { 195b97ee269SEmmanuel Vadot status = "okay"; 196b97ee269SEmmanuel Vadot}; 197b97ee269SEmmanuel Vadot 198b97ee269SEmmanuel Vadot&wifi { 199b97ee269SEmmanuel Vadot qcom,ath10k-calibration-variant = "GO_WORMDINGLER"; 200b97ee269SEmmanuel Vadot}; 201b97ee269SEmmanuel Vadot 202b97ee269SEmmanuel Vadot/* 203b97ee269SEmmanuel Vadot * No eDP on this board but it's logically the same signal so just give it 204b97ee269SEmmanuel Vadot * a new name and assign the proper GPIO. 205b97ee269SEmmanuel Vadot */ 206b97ee269SEmmanuel Vadotpp3300_disp_on: &pp3300_dx_edp { 207b97ee269SEmmanuel Vadot gpio = <&tlmm 85 GPIO_ACTIVE_HIGH>; 208b97ee269SEmmanuel Vadot}; 209b97ee269SEmmanuel Vadot 210b97ee269SEmmanuel Vadot/* PINCTRL - modifications to sc7180-trogdor.dtsi */ 211b97ee269SEmmanuel Vadot 212b97ee269SEmmanuel Vadot/* 213b97ee269SEmmanuel Vadot * No eDP on this board but it's logically the same signal so just give it 214b97ee269SEmmanuel Vadot * a new name and assign the proper GPIO. 215b97ee269SEmmanuel Vadot */ 216b97ee269SEmmanuel Vadot 217b97ee269SEmmanuel Vadottp_en: &en_pp3300_dx_edp { 218b97ee269SEmmanuel Vadot pins = "gpio85"; 219b97ee269SEmmanuel Vadot}; 220b97ee269SEmmanuel Vadot 221b97ee269SEmmanuel Vadot/* PINCTRL - board-specific pinctrl */ 222b97ee269SEmmanuel Vadot 223b97ee269SEmmanuel Vadot&tlmm { 224b97ee269SEmmanuel Vadot gpio-line-names = "HUB_RST_L", 225b97ee269SEmmanuel Vadot "AP_RAM_ID0", 226b97ee269SEmmanuel Vadot "AP_SKU_ID2", 227b97ee269SEmmanuel Vadot "AP_RAM_ID1", 228b97ee269SEmmanuel Vadot "", 229b97ee269SEmmanuel Vadot "AP_RAM_ID2", 230b97ee269SEmmanuel Vadot "UF_CAM_EN", 231b97ee269SEmmanuel Vadot "WF_CAM_EN", 232b97ee269SEmmanuel Vadot "TS_RESET_L", 233b97ee269SEmmanuel Vadot "TS_INT_L", 234b97ee269SEmmanuel Vadot "", 235b97ee269SEmmanuel Vadot "", 236b97ee269SEmmanuel Vadot "AP_EDP_BKLTEN", 237b97ee269SEmmanuel Vadot "UF_CAM_MCLK", 238b97ee269SEmmanuel Vadot "WF_CAM_CLK", 239b97ee269SEmmanuel Vadot "", 240b97ee269SEmmanuel Vadot "", 241b97ee269SEmmanuel Vadot "UF_CAM_SDA", 242b97ee269SEmmanuel Vadot "UF_CAM_SCL", 243b97ee269SEmmanuel Vadot "WF_CAM_SDA", 244b97ee269SEmmanuel Vadot "WF_CAM_SCL", 245b97ee269SEmmanuel Vadot "AVEE_LCD_EN", 246b97ee269SEmmanuel Vadot "", 247b97ee269SEmmanuel Vadot "AMP_EN", 248b97ee269SEmmanuel Vadot "", 249b97ee269SEmmanuel Vadot "", 250b97ee269SEmmanuel Vadot "", 251b97ee269SEmmanuel Vadot "", 252b97ee269SEmmanuel Vadot "HP_IRQ", 253b97ee269SEmmanuel Vadot "WF_CAM_RST_L", 254b97ee269SEmmanuel Vadot "UF_CAM_RST_L", 255b97ee269SEmmanuel Vadot "AP_BRD_ID2", 256b97ee269SEmmanuel Vadot "", 257b97ee269SEmmanuel Vadot "AP_BRD_ID0", 258b97ee269SEmmanuel Vadot "AP_H1_SPI_MISO", 259b97ee269SEmmanuel Vadot "AP_H1_SPI_MOSI", 260b97ee269SEmmanuel Vadot "AP_H1_SPI_CLK", 261b97ee269SEmmanuel Vadot "AP_H1_SPI_CS_L", 262b97ee269SEmmanuel Vadot "BT_UART_CTS", 263b97ee269SEmmanuel Vadot "BT_UART_RTS", 264b97ee269SEmmanuel Vadot "BT_UART_TXD", 265b97ee269SEmmanuel Vadot "BT_UART_RXD", 266b97ee269SEmmanuel Vadot "H1_AP_INT_ODL", 267b97ee269SEmmanuel Vadot "", 268b97ee269SEmmanuel Vadot "UART_AP_TX_DBG_RX", 269b97ee269SEmmanuel Vadot "UART_DBG_TX_AP_RX", 270b97ee269SEmmanuel Vadot "HP_I2C_SDA", 271b97ee269SEmmanuel Vadot "HP_I2C_SCL", 272b97ee269SEmmanuel Vadot "FORCED_USB_BOOT", 273b97ee269SEmmanuel Vadot "AMP_BCLK", 274b97ee269SEmmanuel Vadot "AMP_LRCLK", 275b97ee269SEmmanuel Vadot "AMP_DIN", 276b97ee269SEmmanuel Vadot "", 277b97ee269SEmmanuel Vadot "HP_BCLK", 278b97ee269SEmmanuel Vadot "HP_LRCLK", 279b97ee269SEmmanuel Vadot "HP_DOUT", 280b97ee269SEmmanuel Vadot "HP_DIN", 281b97ee269SEmmanuel Vadot "HP_MCLK", 282b97ee269SEmmanuel Vadot "AP_SKU_ID0", 283b97ee269SEmmanuel Vadot "AP_EC_SPI_MISO", 284b97ee269SEmmanuel Vadot "AP_EC_SPI_MOSI", 285b97ee269SEmmanuel Vadot "AP_EC_SPI_CLK", 286b97ee269SEmmanuel Vadot "AP_EC_SPI_CS_L", 287b97ee269SEmmanuel Vadot "AP_SPI_CLK", 288b97ee269SEmmanuel Vadot "AP_SPI_MOSI", 289b97ee269SEmmanuel Vadot "AP_SPI_MISO", 290b97ee269SEmmanuel Vadot /* 291b97ee269SEmmanuel Vadot * AP_FLASH_WP_L is crossystem ABI. Schematics 292b97ee269SEmmanuel Vadot * call it BIOS_FLASH_WP_L. 293b97ee269SEmmanuel Vadot */ 294b97ee269SEmmanuel Vadot "AP_FLASH_WP_L", 295b97ee269SEmmanuel Vadot "", 296b97ee269SEmmanuel Vadot "AP_SPI_CS0_L", 297b97ee269SEmmanuel Vadot "", 298b97ee269SEmmanuel Vadot "", 299b97ee269SEmmanuel Vadot "", 300b97ee269SEmmanuel Vadot "", 301b97ee269SEmmanuel Vadot "WLAN_SW_CTRL", 302b97ee269SEmmanuel Vadot "", 303b97ee269SEmmanuel Vadot "REPORT_E", 304b97ee269SEmmanuel Vadot "", 305b97ee269SEmmanuel Vadot "ID0", 306b97ee269SEmmanuel Vadot "", 307b97ee269SEmmanuel Vadot "ID1", 308b97ee269SEmmanuel Vadot "", 309b97ee269SEmmanuel Vadot "", 310b97ee269SEmmanuel Vadot "", 311b97ee269SEmmanuel Vadot "CODEC_PWR_EN", 312b97ee269SEmmanuel Vadot "HUB_EN", 313b97ee269SEmmanuel Vadot "TP_EN", 314b97ee269SEmmanuel Vadot "MIPI_1.8V_EN", 315b97ee269SEmmanuel Vadot "VDD_RESET_1.8V", 316b97ee269SEmmanuel Vadot "AVDD_LCD_EN", 317b97ee269SEmmanuel Vadot "", 318b97ee269SEmmanuel Vadot "AP_SKU_ID1", 319b97ee269SEmmanuel Vadot "AP_RST_REQ", 320b97ee269SEmmanuel Vadot "", 321b97ee269SEmmanuel Vadot "AP_BRD_ID1", 322b97ee269SEmmanuel Vadot "AP_EC_INT_L", 323b97ee269SEmmanuel Vadot "SDM_GRFC_3", 324b97ee269SEmmanuel Vadot "", 325b97ee269SEmmanuel Vadot "", 326b97ee269SEmmanuel Vadot "BOOT_CONFIG_4", 327b97ee269SEmmanuel Vadot "BOOT_CONFIG_2", 328b97ee269SEmmanuel Vadot "", 329b97ee269SEmmanuel Vadot "", 330b97ee269SEmmanuel Vadot "", 331b97ee269SEmmanuel Vadot "", 332b97ee269SEmmanuel Vadot "", 333b97ee269SEmmanuel Vadot "", 334b97ee269SEmmanuel Vadot "", 335b97ee269SEmmanuel Vadot "BOOT_CONFIG_3", 336b97ee269SEmmanuel Vadot "WCI2_LTE_COEX_TXD", 337b97ee269SEmmanuel Vadot "WCI2_LTE_COEX_RXD", 338b97ee269SEmmanuel Vadot "", 339b97ee269SEmmanuel Vadot "", 340b97ee269SEmmanuel Vadot "", 341b97ee269SEmmanuel Vadot "", 342b97ee269SEmmanuel Vadot "FORCED_USB_BOOT_POL", 343b97ee269SEmmanuel Vadot "AP_TS_PEN_I2C_SDA", 344b97ee269SEmmanuel Vadot "AP_TS_PEN_I2C_SCL", 345b97ee269SEmmanuel Vadot "DP_HOT_PLUG_DET", 346b97ee269SEmmanuel Vadot "EC_IN_RW_ODL"; 347b97ee269SEmmanuel Vadot 3488bab661aSEmmanuel Vadot avdd_lcd_en: avdd-lcd-en-state { 349b97ee269SEmmanuel Vadot pins = "gpio88"; 350b97ee269SEmmanuel Vadot function = "gpio"; 351b97ee269SEmmanuel Vadot drive-strength = <2>; 352b97ee269SEmmanuel Vadot bias-disable; 353b97ee269SEmmanuel Vadot }; 354b97ee269SEmmanuel Vadot 3558bab661aSEmmanuel Vadot avee_lcd_en: avee-lcd-en-state { 356b97ee269SEmmanuel Vadot pins = "gpio21"; 357b97ee269SEmmanuel Vadot function = "gpio"; 358b97ee269SEmmanuel Vadot drive-strength = <2>; 359b97ee269SEmmanuel Vadot bias-disable; 360b97ee269SEmmanuel Vadot }; 361b97ee269SEmmanuel Vadot 3628bab661aSEmmanuel Vadot mipi_1800_en: mipi-1800-en-state { 363b97ee269SEmmanuel Vadot pins = "gpio86"; 364b97ee269SEmmanuel Vadot function = "gpio"; 365b97ee269SEmmanuel Vadot drive-strength = <2>; 366b97ee269SEmmanuel Vadot bias-disable; 367b97ee269SEmmanuel Vadot }; 368b97ee269SEmmanuel Vadot 3698bab661aSEmmanuel Vadot vdd_reset_1800: vdd-reset-1800-state { 370b97ee269SEmmanuel Vadot pins = "gpio87"; 371b97ee269SEmmanuel Vadot function = "gpio"; 372b97ee269SEmmanuel Vadot drive-strength = <2>; 373b97ee269SEmmanuel Vadot bias-disable; 374b97ee269SEmmanuel Vadot }; 375b97ee269SEmmanuel Vadot}; 376