108260782SDouglas Anderson// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
208260782SDouglas Anderson/*
308260782SDouglas Anderson * Google Pompom board device tree source
408260782SDouglas Anderson *
508260782SDouglas Anderson * Copyright 2020 Google LLC.
608260782SDouglas Anderson */
708260782SDouglas Anderson
808260782SDouglas Anderson#include "sc7180.dtsi"
908260782SDouglas Anderson
1008260782SDouglas Andersonap_ec_spi: &spi6 {};
1108260782SDouglas Andersonap_h1_spi: &spi0 {};
1208260782SDouglas Anderson
1308260782SDouglas Anderson#include "sc7180-trogdor.dtsi"
1408260782SDouglas Anderson
1508260782SDouglas Anderson/ {
1608260782SDouglas Anderson	thermal-zones {
1708260782SDouglas Anderson		5v-choke-thermal {
1808260782SDouglas Anderson			polling-delay-passive = <0>;
1908260782SDouglas Anderson			polling-delay = <250>;
2008260782SDouglas Anderson
2108260782SDouglas Anderson			thermal-sensors = <&pm6150_adc_tm 1>;
2208260782SDouglas Anderson
2308260782SDouglas Anderson			trips {
2408260782SDouglas Anderson				5v-choke-crit {
2508260782SDouglas Anderson					temperature = <125000>;
2608260782SDouglas Anderson					hysteresis = <1000>;
2708260782SDouglas Anderson					type = "critical";
2808260782SDouglas Anderson				};
2908260782SDouglas Anderson			};
3008260782SDouglas Anderson		};
3108260782SDouglas Anderson	};
3208260782SDouglas Anderson};
3308260782SDouglas Anderson
3408260782SDouglas Anderson&alc5682 {
3508260782SDouglas Anderson	realtek,dmic-clk-driving-high = "true";
3608260782SDouglas Anderson};
3708260782SDouglas Anderson
3808260782SDouglas Anderson&cpu6_alert0 {
3908260782SDouglas Anderson	temperature = <60000>;
4008260782SDouglas Anderson};
4108260782SDouglas Anderson
4208260782SDouglas Anderson&cpu6_alert1 {
4308260782SDouglas Anderson	temperature = <65000>;
4408260782SDouglas Anderson};
4508260782SDouglas Anderson
4608260782SDouglas Anderson&cpu6_thermal {
4708260782SDouglas Anderson	sustainable-power = <948>;
4808260782SDouglas Anderson};
4908260782SDouglas Anderson
5008260782SDouglas Anderson&cpu7_alert0 {
5108260782SDouglas Anderson	temperature = <60000>;
5208260782SDouglas Anderson};
5308260782SDouglas Anderson
5408260782SDouglas Anderson&cpu7_alert1 {
5508260782SDouglas Anderson	temperature = <65000>;
5608260782SDouglas Anderson};
5708260782SDouglas Anderson
5808260782SDouglas Anderson&cpu7_thermal {
5908260782SDouglas Anderson	sustainable-power = <948>;
6008260782SDouglas Anderson};
6108260782SDouglas Anderson
6208260782SDouglas Anderson&cpu8_alert0 {
6308260782SDouglas Anderson	temperature = <60000>;
6408260782SDouglas Anderson};
6508260782SDouglas Anderson
6608260782SDouglas Anderson&cpu8_alert1 {
6708260782SDouglas Anderson	temperature = <65000>;
6808260782SDouglas Anderson};
6908260782SDouglas Anderson
7008260782SDouglas Anderson&cpu8_thermal {
7108260782SDouglas Anderson	sustainable-power = <948>;
7208260782SDouglas Anderson};
7308260782SDouglas Anderson
7408260782SDouglas Anderson&cpu9_alert0 {
7508260782SDouglas Anderson	temperature = <60000>;
7608260782SDouglas Anderson};
7708260782SDouglas Anderson
7808260782SDouglas Anderson&cpu9_alert1 {
7908260782SDouglas Anderson	temperature = <65000>;
8008260782SDouglas Anderson};
8108260782SDouglas Anderson
8208260782SDouglas Anderson&cpu9_thermal {
8308260782SDouglas Anderson	sustainable-power = <948>;
8408260782SDouglas Anderson};
8508260782SDouglas Anderson
8608260782SDouglas Anderson&gpio_keys {
8708260782SDouglas Anderson	status = "okay";
8808260782SDouglas Anderson};
8908260782SDouglas Anderson
9008260782SDouglas Andersonap_ts_pen_1v8: &i2c4 {
9108260782SDouglas Anderson	status = "okay";
9208260782SDouglas Anderson	clock-frequency = <400000>;
9308260782SDouglas Anderson
9408260782SDouglas Anderson	ap_ts: touchscreen@10 {
9508260782SDouglas Anderson		compatible = "hid-over-i2c";
9608260782SDouglas Anderson		reg = <0x10>;
9708260782SDouglas Anderson		pinctrl-names = "default";
9808260782SDouglas Anderson		pinctrl-0 = <&ts_int_l>, <&ts_reset_l>;
9908260782SDouglas Anderson
10008260782SDouglas Anderson		interrupt-parent = <&tlmm>;
10108260782SDouglas Anderson		interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
10208260782SDouglas Anderson
10308260782SDouglas Anderson		post-power-on-delay-ms = <20>;
10408260782SDouglas Anderson		hid-descr-addr = <0x0001>;
10508260782SDouglas Anderson
10608260782SDouglas Anderson		vdd-supply = <&pp3300_ts>;
10708260782SDouglas Anderson	};
10808260782SDouglas Anderson};
10908260782SDouglas Anderson
11008260782SDouglas Anderson&panel {
11108260782SDouglas Anderson	compatible = "kingdisplay,kd116n21-30nv-a010";
11208260782SDouglas Anderson};
11308260782SDouglas Anderson
11408260782SDouglas Anderson&pen_insert {
11508260782SDouglas Anderson	/* Insert = high, eject = low */
11608260782SDouglas Anderson	gpios = <&tlmm 52 GPIO_ACTIVE_HIGH>;
11708260782SDouglas Anderson};
11808260782SDouglas Anderson
11908260782SDouglas Anderson&pm6150_adc {
12008260782SDouglas Anderson	5v-choke-thermistor@4e {
12108260782SDouglas Anderson		reg = <ADC5_AMUX_THM2_100K_PU>;
12208260782SDouglas Anderson		qcom,ratiometric;
12308260782SDouglas Anderson		qcom,hw-settle-time = <200>;
12408260782SDouglas Anderson	};
12508260782SDouglas Anderson};
12608260782SDouglas Anderson
12708260782SDouglas Anderson&pm6150_adc_tm {
12808260782SDouglas Anderson	status = "okay";
12908260782SDouglas Anderson
13008260782SDouglas Anderson	5v-choke-thermistor@1 {
13108260782SDouglas Anderson		reg = <1>;
13208260782SDouglas Anderson		io-channels = <&pm6150_adc ADC5_AMUX_THM2_100K_PU>;
13308260782SDouglas Anderson		qcom,ratiometric;
13408260782SDouglas Anderson		qcom,hw-settle-time-us = <200>;
13508260782SDouglas Anderson	};
13608260782SDouglas Anderson};
13708260782SDouglas Anderson
13808260782SDouglas Anderson&sdhc_2 {
13908260782SDouglas Anderson	status = "okay";
14008260782SDouglas Anderson};
14108260782SDouglas Anderson
142*108ec20bSDouglas Anderson&sound {
143*108ec20bSDouglas Anderson	model = "sc7180-rt5682-max98357a-2mic";
144*108ec20bSDouglas Anderson	pinctrl-names = "default";
145*108ec20bSDouglas Anderson	pinctrl-0 = <&dmic_sel>;
146*108ec20bSDouglas Anderson	dmic-gpios = <&tlmm 86 GPIO_ACTIVE_HIGH>;
147*108ec20bSDouglas Anderson};
148*108ec20bSDouglas Anderson
14908260782SDouglas Anderson&usb_c1 {
15008260782SDouglas Anderson	status = "disabled";
15108260782SDouglas Anderson};
15208260782SDouglas Anderson
15308260782SDouglas Anderson&wifi {
15408260782SDouglas Anderson	qcom,ath10k-calibration-variant = "GO_POMPOM";
15508260782SDouglas Anderson};
15608260782SDouglas Anderson
15708260782SDouglas Anderson/* PINCTRL - board-specific pinctrl */
15808260782SDouglas Anderson
15908260782SDouglas Anderson&tlmm {
16008260782SDouglas Anderson	gpio-line-names = "TP_INT_ODL",
16108260782SDouglas Anderson			  "AP_RAM_ID0",
16208260782SDouglas Anderson			  "AP_SKU_ID2",
16308260782SDouglas Anderson			  "AP_RAM_ID1",
16408260782SDouglas Anderson			  "",
16508260782SDouglas Anderson			  "AP_RAM_ID2",
16608260782SDouglas Anderson			  "AP_TP_I2C_SDA",
16708260782SDouglas Anderson			  "AP_TP_I2C_SCL",
16808260782SDouglas Anderson			  "TS_RESET_L",
16908260782SDouglas Anderson			  "TS_INT_L",
17008260782SDouglas Anderson			  "",
17108260782SDouglas Anderson			  "EDP_BRIJ_IRQ",
17208260782SDouglas Anderson			  "AP_EDP_BKLTEN",
17308260782SDouglas Anderson			  "",
17408260782SDouglas Anderson			  "",
17508260782SDouglas Anderson			  "EDP_BRIJ_I2C_SDA",
17608260782SDouglas Anderson			  "EDP_BRIJ_I2C_SCL",
17708260782SDouglas Anderson			  "HUB_RST_L",
17808260782SDouglas Anderson			  "",
17908260782SDouglas Anderson			  "",
18008260782SDouglas Anderson			  "",
18108260782SDouglas Anderson			  "",
18208260782SDouglas Anderson			  "",
18308260782SDouglas Anderson			  "AMP_EN",
18408260782SDouglas Anderson			  "P_SENSOR_INT_L",
18508260782SDouglas Anderson			  "AP_SAR_SENSOR_SDA",
18608260782SDouglas Anderson			  "AP_SAR_SENSOR_SCL",
18708260782SDouglas Anderson			  "",
18808260782SDouglas Anderson			  "HP_IRQ",
18908260782SDouglas Anderson			  "",
19008260782SDouglas Anderson			  "EN_PP3300_DX_EDP",
19108260782SDouglas Anderson			  "AP_BRD_ID2",
19208260782SDouglas Anderson			  "BRIJ_SUSPEND",
19308260782SDouglas Anderson			  "AP_BRD_ID0",
19408260782SDouglas Anderson			  "AP_H1_SPI_MISO",
19508260782SDouglas Anderson			  "AP_H1_SPI_MOSI",
19608260782SDouglas Anderson			  "AP_H1_SPI_CLK",
19708260782SDouglas Anderson			  "AP_H1_SPI_CS_L",
19808260782SDouglas Anderson			  "",
19908260782SDouglas Anderson			  "",
20008260782SDouglas Anderson			  "",
20108260782SDouglas Anderson			  "",
20208260782SDouglas Anderson			  "H1_AP_INT_ODL",
20308260782SDouglas Anderson			  "",
20408260782SDouglas Anderson			  "UART_AP_TX_DBG_RX",
20508260782SDouglas Anderson			  "UART_DBG_TX_AP_RX",
20608260782SDouglas Anderson			  "HP_I2C_SDA",
20708260782SDouglas Anderson			  "HP_I2C_SCL",
20808260782SDouglas Anderson			  "FORCED_USB_BOOT",
20908260782SDouglas Anderson			  "AMP_BCLK",
21008260782SDouglas Anderson			  "AMP_LRCLK",
21108260782SDouglas Anderson			  "AMP_DIN",
21208260782SDouglas Anderson			  "PEN_PDCT_L",
21308260782SDouglas Anderson			  "HP_BCLK",
21408260782SDouglas Anderson			  "HP_LRCLK",
21508260782SDouglas Anderson			  "HP_DOUT",
21608260782SDouglas Anderson			  "HP_DIN",
21708260782SDouglas Anderson			  "HP_MCLK",
21808260782SDouglas Anderson			  "AP_SKU_ID0",
21908260782SDouglas Anderson			  "AP_EC_SPI_MISO",
22008260782SDouglas Anderson			  "AP_EC_SPI_MOSI",
22108260782SDouglas Anderson			  "AP_EC_SPI_CLK",
22208260782SDouglas Anderson			  "AP_EC_SPI_CS_L",
22308260782SDouglas Anderson			  "AP_SPI_CLK",
22408260782SDouglas Anderson			  "AP_SPI_MOSI",
22508260782SDouglas Anderson			  "AP_SPI_MISO",
22608260782SDouglas Anderson			  /*
22708260782SDouglas Anderson			   * AP_FLASH_WP_L is crossystem ABI. Schematics
22808260782SDouglas Anderson			   * call it BIOS_FLASH_WP_L.
22908260782SDouglas Anderson			   */
23008260782SDouglas Anderson			  "AP_FLASH_WP_L",
23108260782SDouglas Anderson			  "",
23208260782SDouglas Anderson			  "AP_SPI_CS0_L",
23308260782SDouglas Anderson			  "SD_CD_ODL",
23408260782SDouglas Anderson			  "",
23508260782SDouglas Anderson			  "",
23608260782SDouglas Anderson			  "",
23708260782SDouglas Anderson			  "",
23808260782SDouglas Anderson			  "",
23908260782SDouglas Anderson			  "UIM2_DATA",
24008260782SDouglas Anderson			  "UIM2_CLK",
24108260782SDouglas Anderson			  "UIM2_RST",
24208260782SDouglas Anderson			  "UIM2_PRESENT",
24308260782SDouglas Anderson			  "UIM1_DATA",
24408260782SDouglas Anderson			  "UIM1_CLK",
24508260782SDouglas Anderson			  "UIM1_RST",
24608260782SDouglas Anderson			  "",
24708260782SDouglas Anderson			  "EN_PP3300_CODEC",
24808260782SDouglas Anderson			  "EN_PP3300_HUB",
24908260782SDouglas Anderson			  "",
25008260782SDouglas Anderson			  "DMIC_SEL",
25108260782SDouglas Anderson			  "",
25208260782SDouglas Anderson			  "",
25308260782SDouglas Anderson			  "",
25408260782SDouglas Anderson			  "AP_SKU_ID1",
25508260782SDouglas Anderson			  "AP_RST_REQ",
25608260782SDouglas Anderson			  "",
25708260782SDouglas Anderson			  "AP_BRD_ID1",
25808260782SDouglas Anderson			  "AP_EC_INT_R_L",
25908260782SDouglas Anderson			  "",
26008260782SDouglas Anderson			  "",
26108260782SDouglas Anderson			  "",
26208260782SDouglas Anderson			  "",
26308260782SDouglas Anderson			  "",
26408260782SDouglas Anderson			  "",
26508260782SDouglas Anderson			  "",
26608260782SDouglas Anderson			  "",
26708260782SDouglas Anderson			  "",
26808260782SDouglas Anderson			  "EDP_BRIJ_EN",
26908260782SDouglas Anderson			  "",
27008260782SDouglas Anderson			  "",
27108260782SDouglas Anderson			  "",
27208260782SDouglas Anderson			  "",
27308260782SDouglas Anderson			  "",
27408260782SDouglas Anderson			  "",
27508260782SDouglas Anderson			  "",
27608260782SDouglas Anderson			  "",
27708260782SDouglas Anderson			  "",
27808260782SDouglas Anderson			  "",
27908260782SDouglas Anderson			  "AP_TS_PEN_I2C_SDA",
28008260782SDouglas Anderson			  "AP_TS_PEN_I2C_SCL",
28108260782SDouglas Anderson			  "DP_HOT_PLUG_DET",
28208260782SDouglas Anderson			  "EC_IN_RW_ODL";
28308260782SDouglas Anderson
28408260782SDouglas Anderson	dmic_sel: dmic-sel {
28508260782SDouglas Anderson		pinmux {
28608260782SDouglas Anderson			pins = "gpio86";
28708260782SDouglas Anderson			function = "gpio";
28808260782SDouglas Anderson		};
28908260782SDouglas Anderson
29008260782SDouglas Anderson		pinconf {
29108260782SDouglas Anderson			pins = "gpio86";
29208260782SDouglas Anderson			bias-pull-down;
29308260782SDouglas Anderson		};
29408260782SDouglas Anderson	};
29508260782SDouglas Anderson};
296