0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003 * Google Wormdingler board device tree source
0004 *
0005 * Copyright 2021 Google LLC.
0006 */
0007
0008 /dts-v1/;
0009
0010 #include "sc7180-trogdor.dtsi"
0011
0012 / {
0013 avdd_lcd: avdd-lcd {
0014 compatible = "regulator-fixed";
0015 regulator-name = "avdd_lcd";
0016
0017 gpio = <&tlmm 88 GPIO_ACTIVE_HIGH>;
0018 enable-active-high;
0019 pinctrl-names = "default";
0020 pinctrl-0 = <&avdd_lcd_en>;
0021
0022 vin-supply = <&pp5000_a>;
0023 };
0024
0025 avee_lcd: avee-lcd {
0026 compatible = "regulator-fixed";
0027 regulator-name = "avee_lcd";
0028
0029 gpio = <&tlmm 21 GPIO_ACTIVE_HIGH>;
0030 enable-active-high;
0031 pinctrl-names = "default";
0032 pinctrl-0 = <&avee_lcd_en>;
0033
0034 vin-supply = <&pp5000_a>;
0035 };
0036
0037 pp1800_ts:
0038 v1p8_mipi: v1p8-mipi {
0039 compatible = "regulator-fixed";
0040 regulator-name = "v1p8_mipi";
0041
0042 gpio = <&tlmm 86 GPIO_ACTIVE_HIGH>;
0043 enable-active-high;
0044 pinctrl-names = "default";
0045 pinctrl-0 = <&mipi_1800_en>;
0046
0047 vin-supply = <&pp3300_a>;
0048 };
0049
0050 thermal-zones {
0051 skin_temp_thermal: skin-temp-thermal {
0052 polling-delay-passive = <250>;
0053 polling-delay = <0>;
0054
0055 thermal-sensors = <&pm6150_adc_tm 1>;
0056 sustainable-power = <574>;
0057
0058 trips {
0059 skin_temp_alert0: trip-point0 {
0060 temperature = <58000>;
0061 hysteresis = <1000>;
0062 type = "passive";
0063 };
0064
0065 skin_temp_alert1: trip-point1 {
0066 temperature = <62500>;
0067 hysteresis = <1000>;
0068 type = "passive";
0069 };
0070
0071 skin-temp-crit {
0072 temperature = <68000>;
0073 hysteresis = <1000>;
0074 type = "critical";
0075 };
0076 };
0077
0078 cooling-maps {
0079 map0 {
0080 trip = <&skin_temp_alert0>;
0081 cooling-device = <&CPU6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
0082 <&CPU7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
0083 };
0084
0085 map1 {
0086 trip = <&skin_temp_alert1>;
0087 cooling-device = <&CPU6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
0088 <&CPU7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
0089 };
0090 };
0091 };
0092 };
0093 };
0094
0095 &backlight {
0096 pwms = <&cros_ec_pwm 0>;
0097 };
0098
0099 &camcc {
0100 status = "okay";
0101 };
0102
0103 &cros_ec {
0104 base_detection: cbas {
0105 compatible = "google,cros-cbas";
0106 };
0107
0108 keyboard-controller {
0109 compatible = "google,cros-ec-keyb-switches";
0110 };
0111 };
0112
0113 &dsi0 {
0114
0115 panel: panel@0 {
0116 reg = <0>;
0117 enable-gpios = <&tlmm 87 GPIO_ACTIVE_HIGH>;
0118 pinctrl-names = "default";
0119 pinctrl-0 = <&vdd_reset_1800>;
0120 avdd-supply = <&avdd_lcd>;
0121 avee-supply = <&avee_lcd>;
0122 pp1800-supply = <&v1p8_mipi>;
0123 pp3300-supply = <&pp3300_dx_edp>;
0124 backlight = <&backlight>;
0125 rotation = <270>;
0126
0127 ports {
0128 #address-cells = <1>;
0129 #size-cells = <0>;
0130 port@0 {
0131 reg = <0>;
0132 panel_in: endpoint {
0133 remote-endpoint = <&dsi0_out>;
0134 };
0135 };
0136 };
0137 };
0138
0139 ports {
0140 port@1 {
0141 endpoint {
0142 remote-endpoint = <&panel_in>;
0143 data-lanes = <0 1 2 3>;
0144 };
0145 };
0146 };
0147 };
0148
0149 &i2c4 {
0150 status = "okay";
0151 clock-frequency = <400000>;
0152
0153 ap_ts: touchscreen@1 {
0154 compatible = "hid-over-i2c";
0155 reg = <0x01>;
0156 pinctrl-names = "default";
0157 pinctrl-0 = <&ts_int_l>;
0158
0159 interrupt-parent = <&tlmm>;
0160 interrupts = <9 IRQ_TYPE_EDGE_FALLING>;
0161
0162 post-power-on-delay-ms = <70>;
0163 hid-descr-addr = <0x0001>;
0164
0165 vdd-supply = <&pp3300_ts>;
0166 vddl-supply = <&pp1800_ts>;
0167 };
0168 };
0169
0170 &pm6150_adc {
0171 skin-temp-thermistor@4d {
0172 reg = <ADC5_AMUX_THM1_100K_PU>;
0173 qcom,ratiometric;
0174 qcom,hw-settle-time = <200>;
0175 };
0176 };
0177
0178 &pm6150_adc_tm {
0179 status = "okay";
0180
0181 skin-temp-thermistor@1 {
0182 reg = <1>;
0183 io-channels = <&pm6150_adc ADC5_AMUX_THM1_100K_PU>;
0184 qcom,ratiometric;
0185 qcom,hw-settle-time-us = <200>;
0186 };
0187 };
0188
0189 &pp1800_uf_cam {
0190 status = "okay";
0191 };
0192
0193 &pp1800_wf_cam {
0194 status = "okay";
0195 };
0196
0197 &pp2800_uf_cam {
0198 status = "okay";
0199 };
0200
0201 &pp2800_wf_cam {
0202 status = "okay";
0203 };
0204
0205 &wifi {
0206 qcom,ath10k-calibration-variant = "GO_WORMDINGLER";
0207 };
0208
0209 /*
0210 * No eDP on this board but it's logically the same signal so just give it
0211 * a new name and assign the proper GPIO.
0212 */
0213 pp3300_disp_on: &pp3300_dx_edp {
0214 gpio = <&tlmm 85 GPIO_ACTIVE_HIGH>;
0215 };
0216
0217 /* PINCTRL - modifications to sc7180-trogdor.dtsi */
0218
0219 /*
0220 * No eDP on this board but it's logically the same signal so just give it
0221 * a new name and assign the proper GPIO.
0222 */
0223
0224 tp_en: &en_pp3300_dx_edp {
0225 pinmux {
0226 pins = "gpio85";
0227 };
0228
0229 pinconf {
0230 pins = "gpio85";
0231 };
0232 };
0233
0234 /* PINCTRL - board-specific pinctrl */
0235
0236 &tlmm {
0237 gpio-line-names = "HUB_RST_L",
0238 "AP_RAM_ID0",
0239 "AP_SKU_ID2",
0240 "AP_RAM_ID1",
0241 "",
0242 "AP_RAM_ID2",
0243 "UF_CAM_EN",
0244 "WF_CAM_EN",
0245 "TS_RESET_L",
0246 "TS_INT_L",
0247 "",
0248 "",
0249 "AP_EDP_BKLTEN",
0250 "UF_CAM_MCLK",
0251 "WF_CAM_CLK",
0252 "",
0253 "",
0254 "UF_CAM_SDA",
0255 "UF_CAM_SCL",
0256 "WF_CAM_SDA",
0257 "WF_CAM_SCL",
0258 "AVEE_LCD_EN",
0259 "",
0260 "AMP_EN",
0261 "",
0262 "",
0263 "",
0264 "",
0265 "HP_IRQ",
0266 "WF_CAM_RST_L",
0267 "UF_CAM_RST_L",
0268 "AP_BRD_ID2",
0269 "",
0270 "AP_BRD_ID0",
0271 "AP_H1_SPI_MISO",
0272 "AP_H1_SPI_MOSI",
0273 "AP_H1_SPI_CLK",
0274 "AP_H1_SPI_CS_L",
0275 "BT_UART_CTS",
0276 "BT_UART_RTS",
0277 "BT_UART_TXD",
0278 "BT_UART_RXD",
0279 "H1_AP_INT_ODL",
0280 "",
0281 "UART_AP_TX_DBG_RX",
0282 "UART_DBG_TX_AP_RX",
0283 "HP_I2C_SDA",
0284 "HP_I2C_SCL",
0285 "FORCED_USB_BOOT",
0286 "AMP_BCLK",
0287 "AMP_LRCLK",
0288 "AMP_DIN",
0289 "",
0290 "HP_BCLK",
0291 "HP_LRCLK",
0292 "HP_DOUT",
0293 "HP_DIN",
0294 "HP_MCLK",
0295 "AP_SKU_ID0",
0296 "AP_EC_SPI_MISO",
0297 "AP_EC_SPI_MOSI",
0298 "AP_EC_SPI_CLK",
0299 "AP_EC_SPI_CS_L",
0300 "AP_SPI_CLK",
0301 "AP_SPI_MOSI",
0302 "AP_SPI_MISO",
0303 /*
0304 * AP_FLASH_WP_L is crossystem ABI. Schematics
0305 * call it BIOS_FLASH_WP_L.
0306 */
0307 "AP_FLASH_WP_L",
0308 "",
0309 "AP_SPI_CS0_L",
0310 "",
0311 "",
0312 "",
0313 "",
0314 "WLAN_SW_CTRL",
0315 "",
0316 "REPORT_E",
0317 "",
0318 "ID0",
0319 "",
0320 "ID1",
0321 "",
0322 "",
0323 "",
0324 "CODEC_PWR_EN",
0325 "HUB_EN",
0326 "TP_EN",
0327 "MIPI_1.8V_EN",
0328 "VDD_RESET_1.8V",
0329 "AVDD_LCD_EN",
0330 "",
0331 "AP_SKU_ID1",
0332 "AP_RST_REQ",
0333 "",
0334 "AP_BRD_ID1",
0335 "AP_EC_INT_L",
0336 "SDM_GRFC_3",
0337 "",
0338 "",
0339 "BOOT_CONFIG_4",
0340 "BOOT_CONFIG_2",
0341 "",
0342 "",
0343 "",
0344 "",
0345 "",
0346 "",
0347 "",
0348 "BOOT_CONFIG_3",
0349 "WCI2_LTE_COEX_TXD",
0350 "WCI2_LTE_COEX_RXD",
0351 "",
0352 "",
0353 "",
0354 "",
0355 "FORCED_USB_BOOT_POL",
0356 "AP_TS_PEN_I2C_SDA",
0357 "AP_TS_PEN_I2C_SCL",
0358 "DP_HOT_PLUG_DET",
0359 "EC_IN_RW_ODL";
0360
0361 avdd_lcd_en: avdd-lcd-en {
0362 pinmux {
0363 pins = "gpio88";
0364 function = "gpio";
0365 };
0366
0367 pinconf {
0368 pins = "gpio88";
0369 drive-strength = <2>;
0370 bias-disable;
0371 };
0372 };
0373
0374 avee_lcd_en: avee-lcd-en {
0375 pinmux {
0376 pins = "gpio21";
0377 function = "gpio";
0378 };
0379
0380 pinconf {
0381 pins = "gpio21";
0382 drive-strength = <2>;
0383 bias-disable;
0384 };
0385 };
0386
0387 mipi_1800_en: mipi-1800-en {
0388 pinmux {
0389 pins = "gpio86";
0390 function = "gpio";
0391 };
0392
0393 pinconf {
0394 pins = "gpio86";
0395 drive-strength = <2>;
0396 bias-disable;
0397 };
0398 };
0399
0400 vdd_reset_1800: vdd-reset-1800 {
0401 pinmux {
0402 pins = "gpio87";
0403 function = "gpio";
0404 };
0405
0406 pinconf {
0407 pins = "gpio87";
0408 drive-strength = <2>;
0409 bias-disable;
0410 };
0411 };
0412 };