168aa8348SDouglas Anderson// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
268aa8348SDouglas Anderson/*
368aa8348SDouglas Anderson * Google Villager board device tree source
468aa8348SDouglas Anderson *
568aa8348SDouglas Anderson * Copyright 2022 Google LLC.
668aa8348SDouglas Anderson */
768aa8348SDouglas Anderson
868aa8348SDouglas Anderson#include "sc7280-herobrine.dtsi"
968aa8348SDouglas Anderson
1068aa8348SDouglas Anderson/*
1168aa8348SDouglas Anderson * ADDITIONS TO FIXED REGULATORS DEFINED IN PARENT DEVICE TREE FILES
1268aa8348SDouglas Anderson *
1368aa8348SDouglas Anderson * Sort order matches the order in the parent files (parents before children).
1468aa8348SDouglas Anderson */
1568aa8348SDouglas Anderson
1668aa8348SDouglas Anderson&pp3300_codec {
1768aa8348SDouglas Anderson	status = "okay";
1868aa8348SDouglas Anderson};
1968aa8348SDouglas Anderson
2068aa8348SDouglas Anderson/* ADDITIONS TO NODES DEFINED IN PARENT DEVICE TREE FILES */
2168aa8348SDouglas Anderson
2268aa8348SDouglas Andersonap_tp_i2c: &i2c0 {
2368aa8348SDouglas Anderson	status = "okay";
2468aa8348SDouglas Anderson	clock-frequency = <400000>;
2568aa8348SDouglas Anderson
2668aa8348SDouglas Anderson	trackpad: trackpad@2c {
2768aa8348SDouglas Anderson		compatible = "hid-over-i2c";
2868aa8348SDouglas Anderson		reg = <0x2c>;
2968aa8348SDouglas Anderson		pinctrl-names = "default";
3068aa8348SDouglas Anderson		pinctrl-0 = <&tp_int_odl>;
3168aa8348SDouglas Anderson
3268aa8348SDouglas Anderson		interrupt-parent = <&tlmm>;
3368aa8348SDouglas Anderson		interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
3468aa8348SDouglas Anderson
3568aa8348SDouglas Anderson		hid-descr-addr = <0x20>;
36*de88b175SKrzysztof Kozlowski		vdd-supply = <&pp3300_z1>;
3768aa8348SDouglas Anderson
3868aa8348SDouglas Anderson		wakeup-source;
3968aa8348SDouglas Anderson	};
4068aa8348SDouglas Anderson};
4168aa8348SDouglas Anderson
4268aa8348SDouglas Andersonts_i2c: &i2c13 {
4368aa8348SDouglas Anderson	status = "okay";
4468aa8348SDouglas Anderson	clock-frequency = <400000>;
4568aa8348SDouglas Anderson
4668aa8348SDouglas Anderson	ap_ts: touchscreen@10 {
4768aa8348SDouglas Anderson		compatible = "elan,ekth6915";
4868aa8348SDouglas Anderson		reg = <0x10>;
4968aa8348SDouglas Anderson		pinctrl-names = "default";
5068aa8348SDouglas Anderson		pinctrl-0 = <&ts_int_conn>, <&ts_rst_conn>;
5168aa8348SDouglas Anderson
5268aa8348SDouglas Anderson		interrupt-parent = <&tlmm>;
5368aa8348SDouglas Anderson		interrupts = <55 IRQ_TYPE_LEVEL_LOW>;
5468aa8348SDouglas Anderson
5568aa8348SDouglas Anderson		reset-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
5668aa8348SDouglas Anderson
5768aa8348SDouglas Anderson		vcc33-supply = <&ts_avdd>;
58d90b98f5SDouglas Anderson		vccio-supply = <&ts_avccio>;
5968aa8348SDouglas Anderson	};
6068aa8348SDouglas Anderson};
6168aa8348SDouglas Anderson
6268aa8348SDouglas Anderson&ap_sar_sensor_i2c {
6368aa8348SDouglas Anderson	status = "okay";
6468aa8348SDouglas Anderson};
6568aa8348SDouglas Anderson
6668aa8348SDouglas Anderson&ap_sar_sensor0 {
6768aa8348SDouglas Anderson	status = "okay";
6868aa8348SDouglas Anderson};
6968aa8348SDouglas Anderson
7068aa8348SDouglas Anderson&ap_sar_sensor1 {
7168aa8348SDouglas Anderson	status = "okay";
7268aa8348SDouglas Anderson};
7368aa8348SDouglas Anderson
7468aa8348SDouglas Anderson&mdss_edp {
7568aa8348SDouglas Anderson	status = "okay";
7668aa8348SDouglas Anderson};
7768aa8348SDouglas Anderson
7868aa8348SDouglas Anderson&mdss_edp_phy {
7968aa8348SDouglas Anderson	status = "okay";
8068aa8348SDouglas Anderson};
8168aa8348SDouglas Anderson
8268aa8348SDouglas Anderson&pwmleds {
8368aa8348SDouglas Anderson	status = "okay";
8468aa8348SDouglas Anderson};
8568aa8348SDouglas Anderson
8668aa8348SDouglas Anderson/* For eMMC */
8768aa8348SDouglas Anderson&sdhc_1 {
8868aa8348SDouglas Anderson	status = "okay";
8968aa8348SDouglas Anderson};
9068aa8348SDouglas Anderson
9168aa8348SDouglas Anderson/* PINCTRL - ADDITIONS TO NODES IN PARENT DEVICE TREE FILES */
9268aa8348SDouglas Anderson
9368aa8348SDouglas Anderson&ts_rst_conn {
9468aa8348SDouglas Anderson	bias-disable;
9568aa8348SDouglas Anderson};
9668aa8348SDouglas Anderson
9768aa8348SDouglas Anderson/* PINCTRL - BOARD-SPECIFIC */
9868aa8348SDouglas Anderson
9968aa8348SDouglas Anderson/*
10068aa8348SDouglas Anderson * Methodology for gpio-line-names:
10168aa8348SDouglas Anderson * - If a pin goes to herobrine board and is named it gets that name.
10268aa8348SDouglas Anderson * - If a pin goes to herobrine board and is not named, it gets no name.
10368aa8348SDouglas Anderson * - If a pin is totally internal to Qcard then it gets Qcard name.
10468aa8348SDouglas Anderson * - If a pin is not hooked up on Qcard, it gets no name.
10568aa8348SDouglas Anderson */
10668aa8348SDouglas Anderson
10768aa8348SDouglas Anderson&pm8350c_gpios {
10868aa8348SDouglas Anderson	gpio-line-names = "FLASH_STROBE_1",		/* 1 */
10968aa8348SDouglas Anderson			  "AP_SUSPEND",
11068aa8348SDouglas Anderson			  "PM8008_1_RST_N",
11168aa8348SDouglas Anderson			  "",
11268aa8348SDouglas Anderson			  "",
11368aa8348SDouglas Anderson			  "",
11468aa8348SDouglas Anderson			  "PMIC_EDP_BL_EN",
11568aa8348SDouglas Anderson			  "PMIC_EDP_BL_PWM",
11668aa8348SDouglas Anderson			  "";
11768aa8348SDouglas Anderson};
11868aa8348SDouglas Anderson
11968aa8348SDouglas Anderson&tlmm {
12068aa8348SDouglas Anderson	gpio-line-names = "AP_TP_I2C_SDA",		/* 0 */
12168aa8348SDouglas Anderson			  "AP_TP_I2C_SCL",
12268aa8348SDouglas Anderson			  "SSD_RST_L",
12368aa8348SDouglas Anderson			  "PE_WAKE_ODL",
12468aa8348SDouglas Anderson			  "AP_SAR_SDA",
12568aa8348SDouglas Anderson			  "AP_SAR_SCL",
12668aa8348SDouglas Anderson			  "PRB_SC_GPIO_6",
12768aa8348SDouglas Anderson			  "TP_INT_ODL",
12868aa8348SDouglas Anderson			  "HP_I2C_SDA",
12968aa8348SDouglas Anderson			  "HP_I2C_SCL",
13068aa8348SDouglas Anderson
13168aa8348SDouglas Anderson			  "GNSS_L1_EN",			/* 10 */
13268aa8348SDouglas Anderson			  "GNSS_L5_EN",
13368aa8348SDouglas Anderson			  "SPI_AP_MOSI",
13468aa8348SDouglas Anderson			  "SPI_AP_MISO",
13568aa8348SDouglas Anderson			  "SPI_AP_CLK",
13668aa8348SDouglas Anderson			  "SPI_AP_CS0_L",
13768aa8348SDouglas Anderson			  /*
13868aa8348SDouglas Anderson			   * AP_FLASH_WP is crossystem ABI. Schematics
13968aa8348SDouglas Anderson			   * call it BIOS_FLASH_WP_OD.
14068aa8348SDouglas Anderson			   */
14168aa8348SDouglas Anderson			  "AP_FLASH_WP",
14268aa8348SDouglas Anderson			  "",
14368aa8348SDouglas Anderson			  "AP_EC_INT_L",
14468aa8348SDouglas Anderson			  "",
14568aa8348SDouglas Anderson
14668aa8348SDouglas Anderson			  "UF_CAM_RST_L",		/* 20 */
14768aa8348SDouglas Anderson			  "WF_CAM_RST_L",
14868aa8348SDouglas Anderson			  "UART_AP_TX_DBG_RX",
14968aa8348SDouglas Anderson			  "UART_DBG_TX_AP_RX",
15068aa8348SDouglas Anderson			  "",
15168aa8348SDouglas Anderson			  "PM8008_IRQ_1",
15268aa8348SDouglas Anderson			  "HOST2WLAN_SOL",
15368aa8348SDouglas Anderson			  "WLAN2HOST_SOL",
15468aa8348SDouglas Anderson			  "MOS_BT_UART_CTS",
15568aa8348SDouglas Anderson			  "MOS_BT_UART_RFR",
15668aa8348SDouglas Anderson
15768aa8348SDouglas Anderson			  "MOS_BT_UART_TX",		/* 30 */
15868aa8348SDouglas Anderson			  "MOS_BT_UART_RX",
15968aa8348SDouglas Anderson			  "PRB_SC_GPIO_32",
16068aa8348SDouglas Anderson			  "HUB_RST_L",
16168aa8348SDouglas Anderson			  "",
16268aa8348SDouglas Anderson			  "",
16368aa8348SDouglas Anderson			  "AP_SPI_FP_MISO",
16468aa8348SDouglas Anderson			  "AP_SPI_FP_MOSI",
16568aa8348SDouglas Anderson			  "AP_SPI_FP_CLK",
16668aa8348SDouglas Anderson			  "AP_SPI_FP_CS_L",
16768aa8348SDouglas Anderson
16868aa8348SDouglas Anderson			  "AP_EC_SPI_MISO",		/* 40 */
16968aa8348SDouglas Anderson			  "AP_EC_SPI_MOSI",
17068aa8348SDouglas Anderson			  "AP_EC_SPI_CLK",
17168aa8348SDouglas Anderson			  "AP_EC_SPI_CS_L",
17268aa8348SDouglas Anderson			  "LCM_RST_L",
17368aa8348SDouglas Anderson			  "EARLY_EUD_N",
17468aa8348SDouglas Anderson			  "",
17568aa8348SDouglas Anderson			  "DP_HOT_PLUG_DET",
17668aa8348SDouglas Anderson			  "IO_BRD_MLB_ID0",
17768aa8348SDouglas Anderson			  "IO_BRD_MLB_ID1",
17868aa8348SDouglas Anderson
17968aa8348SDouglas Anderson			  "IO_BRD_MLB_ID2",		/* 50 */
18068aa8348SDouglas Anderson			  "SSD_EN",
18168aa8348SDouglas Anderson			  "TS_I2C_SDA_CONN",
18268aa8348SDouglas Anderson			  "TS_I2C_CLK_CONN",
18368aa8348SDouglas Anderson			  "TS_RST_CONN",
18468aa8348SDouglas Anderson			  "TS_INT_CONN",
18568aa8348SDouglas Anderson			  "AP_I2C_TPM_SDA",
18668aa8348SDouglas Anderson			  "AP_I2C_TPM_SCL",
18768aa8348SDouglas Anderson			  "PRB_SC_GPIO_58",
18868aa8348SDouglas Anderson			  "PRB_SC_GPIO_59",
18968aa8348SDouglas Anderson
19068aa8348SDouglas Anderson			  "EDP_HOT_PLUG_DET_N",		/* 60 */
19168aa8348SDouglas Anderson			  "FP_TO_AP_IRQ_L",
19268aa8348SDouglas Anderson			  "",
19368aa8348SDouglas Anderson			  "AMP_EN",
19468aa8348SDouglas Anderson			  "CAM0_MCLK_GPIO_64",
19568aa8348SDouglas Anderson			  "CAM1_MCLK_GPIO_65",
19668aa8348SDouglas Anderson			  "WF_CAM_MCLK",
19768aa8348SDouglas Anderson			  "PRB_SC_GPIO_67",
19868aa8348SDouglas Anderson			  "FPMCU_BOOT0",
19968aa8348SDouglas Anderson			  "UF_CAM_SDA",
20068aa8348SDouglas Anderson
20168aa8348SDouglas Anderson			  "UF_CAM_SCL",			/* 70 */
20268aa8348SDouglas Anderson			  "",
20368aa8348SDouglas Anderson			  "",
20468aa8348SDouglas Anderson			  "WF_CAM_SDA",
20568aa8348SDouglas Anderson			  "WF_CAM_SCL",
20668aa8348SDouglas Anderson			  "",
20768aa8348SDouglas Anderson			  "",
20868aa8348SDouglas Anderson			  "EN_FP_RAILS",
20968aa8348SDouglas Anderson			  "FP_RST_L",
21068aa8348SDouglas Anderson			  "PCIE1_CLKREQ_ODL",
21168aa8348SDouglas Anderson
21268aa8348SDouglas Anderson			  "EN_PP3300_DX_EDP",		/* 80 */
21368aa8348SDouglas Anderson			  "SC_GPIO_81",
21468aa8348SDouglas Anderson			  "FORCED_USB_BOOT",
21568aa8348SDouglas Anderson			  "WCD_RESET_N",
21668aa8348SDouglas Anderson			  "MOS_WLAN_EN",
21768aa8348SDouglas Anderson			  "MOS_BT_EN",
21868aa8348SDouglas Anderson			  "MOS_SW_CTRL",
21968aa8348SDouglas Anderson			  "MOS_PCIE0_RST",
22068aa8348SDouglas Anderson			  "MOS_PCIE0_CLKREQ_N",
22168aa8348SDouglas Anderson			  "MOS_PCIE0_WAKE_N",
22268aa8348SDouglas Anderson
22368aa8348SDouglas Anderson			  "MOS_LAA_AS_EN",		/* 90 */
22468aa8348SDouglas Anderson			  "SD_CD_ODL",
22568aa8348SDouglas Anderson			  "",
22668aa8348SDouglas Anderson			  "",
22768aa8348SDouglas Anderson			  "MOS_BT_WLAN_SLIMBUS_CLK",
22868aa8348SDouglas Anderson			  "MOS_BT_WLAN_SLIMBUS_DAT0",
22968aa8348SDouglas Anderson			  "HP_MCLK",
23068aa8348SDouglas Anderson			  "HP_BCLK",
23168aa8348SDouglas Anderson			  "HP_DOUT",
23268aa8348SDouglas Anderson			  "HP_DIN",
23368aa8348SDouglas Anderson
23468aa8348SDouglas Anderson			  "HP_LRCLK",			/* 100 */
23568aa8348SDouglas Anderson			  "HP_IRQ",
23668aa8348SDouglas Anderson			  "",
23768aa8348SDouglas Anderson			  "",
23868aa8348SDouglas Anderson			  "GSC_AP_INT_ODL",
23968aa8348SDouglas Anderson			  "EN_PP3300_CODEC",
24068aa8348SDouglas Anderson			  "AMP_BCLK",
24168aa8348SDouglas Anderson			  "AMP_DIN",
24268aa8348SDouglas Anderson			  "AMP_LRCLK",
24368aa8348SDouglas Anderson			  "UIM1_DATA_GPIO_109",
24468aa8348SDouglas Anderson
24568aa8348SDouglas Anderson			  "UIM1_CLK_GPIO_110",		/* 110 */
24668aa8348SDouglas Anderson			  "UIM1_RESET_GPIO_111",
24768aa8348SDouglas Anderson			  "PRB_SC_GPIO_112",
24868aa8348SDouglas Anderson			  "UIM0_DATA",
24968aa8348SDouglas Anderson			  "UIM0_CLK",
25068aa8348SDouglas Anderson			  "UIM0_RST",
25168aa8348SDouglas Anderson			  "UIM0_PRESENT_ODL",
25268aa8348SDouglas Anderson			  "SDM_RFFE0_CLK",
25368aa8348SDouglas Anderson			  "SDM_RFFE0_DATA",
25468aa8348SDouglas Anderson			  "WF_CAM_EN",
25568aa8348SDouglas Anderson
25668aa8348SDouglas Anderson			  "FASTBOOT_SEL_0",		/* 120 */
25768aa8348SDouglas Anderson			  "SC_GPIO_121",
25868aa8348SDouglas Anderson			  "FASTBOOT_SEL_1",
25968aa8348SDouglas Anderson			  "SC_GPIO_123",
26068aa8348SDouglas Anderson			  "FASTBOOT_SEL_2",
26168aa8348SDouglas Anderson			  "SM_RFFE4_CLK_GRFC_8",
26268aa8348SDouglas Anderson			  "SM_RFFE4_DATA_GRFC_9",
26368aa8348SDouglas Anderson			  "WLAN_COEX_UART1_RX",
26468aa8348SDouglas Anderson			  "WLAN_COEX_UART1_TX",
26568aa8348SDouglas Anderson			  "PRB_SC_GPIO_129",
26668aa8348SDouglas Anderson
26768aa8348SDouglas Anderson			  "LCM_ID0",			/* 130 */
26868aa8348SDouglas Anderson			  "LCM_ID1",
26968aa8348SDouglas Anderson			  "",
27068aa8348SDouglas Anderson			  "SDR_QLINK_REQ",
27168aa8348SDouglas Anderson			  "SDR_QLINK_EN",
27268aa8348SDouglas Anderson			  "QLINK0_WMSS_RESET_N",
27368aa8348SDouglas Anderson			  "SMR526_QLINK1_REQ",
27468aa8348SDouglas Anderson			  "SMR526_QLINK1_EN",
27568aa8348SDouglas Anderson			  "SMR526_QLINK1_WMSS_RESET_N",
27668aa8348SDouglas Anderson			  "PRB_SC_GPIO_139",
27768aa8348SDouglas Anderson
27868aa8348SDouglas Anderson			  "SAR1_IRQ_ODL",		/* 140 */
27968aa8348SDouglas Anderson			  "SAR0_IRQ_ODL",
28068aa8348SDouglas Anderson			  "PRB_SC_GPIO_142",
28168aa8348SDouglas Anderson			  "",
28268aa8348SDouglas Anderson			  "WCD_SWR_TX_CLK",
28368aa8348SDouglas Anderson			  "WCD_SWR_TX_DATA0",
28468aa8348SDouglas Anderson			  "WCD_SWR_TX_DATA1",
28568aa8348SDouglas Anderson			  "WCD_SWR_RX_CLK",
28668aa8348SDouglas Anderson			  "WCD_SWR_RX_DATA0",
28768aa8348SDouglas Anderson			  "WCD_SWR_RX_DATA1",
28868aa8348SDouglas Anderson
28968aa8348SDouglas Anderson			  "DMIC01_CLK",			/* 150 */
29068aa8348SDouglas Anderson			  "DMIC01_DATA",
29168aa8348SDouglas Anderson			  "DMIC23_CLK",
29268aa8348SDouglas Anderson			  "DMIC23_DATA",
29368aa8348SDouglas Anderson			  "",
29468aa8348SDouglas Anderson			  "",
29568aa8348SDouglas Anderson			  "EC_IN_RW_ODL",
29668aa8348SDouglas Anderson			  "HUB_EN",
29768aa8348SDouglas Anderson			  "WCD_SWR_TX_DATA2",
29868aa8348SDouglas Anderson			  "",
29968aa8348SDouglas Anderson
30068aa8348SDouglas Anderson			  "",				/* 160 */
30168aa8348SDouglas Anderson			  "",
30268aa8348SDouglas Anderson			  "",
30368aa8348SDouglas Anderson			  "",
30468aa8348SDouglas Anderson			  "",
30568aa8348SDouglas Anderson			  "",
30668aa8348SDouglas Anderson			  "",
30768aa8348SDouglas Anderson			  "",
30868aa8348SDouglas Anderson			  "",
30968aa8348SDouglas Anderson			  "",
31068aa8348SDouglas Anderson
31168aa8348SDouglas Anderson			  "",				/* 170 */
31268aa8348SDouglas Anderson			  "MOS_BLE_UART_TX",
31368aa8348SDouglas Anderson			  "MOS_BLE_UART_RX",
31468aa8348SDouglas Anderson			  "",
31568aa8348SDouglas Anderson			  "";
31668aa8348SDouglas Anderson};
317