xref: /freebsd-src/sys/contrib/device-tree/src/arm64/qcom/sc7280-herobrine-evoker.dtsi (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
18bab661aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
28bab661aSEmmanuel Vadot/*
38bab661aSEmmanuel Vadot * Google Evoker board device tree source
48bab661aSEmmanuel Vadot *
58bab661aSEmmanuel Vadot * Copyright 2022 Google LLC.
68bab661aSEmmanuel Vadot */
78bab661aSEmmanuel Vadot
88bab661aSEmmanuel Vadot#include "sc7280-herobrine.dtsi"
98bab661aSEmmanuel Vadot#include "sc7280-herobrine-audio-rt5682-3mic.dtsi"
108bab661aSEmmanuel Vadot
118bab661aSEmmanuel Vadot/*
128bab661aSEmmanuel Vadot * ADDITIONS TO FIXED REGULATORS DEFINED IN PARENT DEVICE TREE FILES
138bab661aSEmmanuel Vadot *
148bab661aSEmmanuel Vadot * Sort order matches the order in the parent files (parents before children).
158bab661aSEmmanuel Vadot */
168bab661aSEmmanuel Vadot
178bab661aSEmmanuel Vadot&pp3300_codec {
188bab661aSEmmanuel Vadot	status = "okay";
198bab661aSEmmanuel Vadot};
208bab661aSEmmanuel Vadot
218bab661aSEmmanuel Vadot/* ADDITIONS TO NODES DEFINED IN PARENT DEVICE TREE FILES */
228bab661aSEmmanuel Vadot
238bab661aSEmmanuel Vadotap_tp_i2c: &i2c0 {
248bab661aSEmmanuel Vadot	status = "okay";
258bab661aSEmmanuel Vadot	clock-frequency = <400000>;
268bab661aSEmmanuel Vadot
278bab661aSEmmanuel Vadot	trackpad: trackpad@15 {
288bab661aSEmmanuel Vadot		compatible = "elan,ekth3000";
298bab661aSEmmanuel Vadot		reg = <0x15>;
308bab661aSEmmanuel Vadot		pinctrl-names = "default";
318bab661aSEmmanuel Vadot		pinctrl-0 = <&tp_int_odl>;
328bab661aSEmmanuel Vadot
338bab661aSEmmanuel Vadot		interrupt-parent = <&tlmm>;
348bab661aSEmmanuel Vadot		interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
358bab661aSEmmanuel Vadot
368bab661aSEmmanuel Vadot		vcc-supply = <&pp3300_z1>;
378bab661aSEmmanuel Vadot
388bab661aSEmmanuel Vadot		wakeup-source;
398bab661aSEmmanuel Vadot	};
408bab661aSEmmanuel Vadot};
418bab661aSEmmanuel Vadot
428bab661aSEmmanuel Vadotts_i2c: &i2c13 {
438bab661aSEmmanuel Vadot	status = "okay";
448bab661aSEmmanuel Vadot	clock-frequency = <400000>;
458bab661aSEmmanuel Vadot
468bab661aSEmmanuel Vadot	ap_ts: touchscreen@5d {
478bab661aSEmmanuel Vadot		compatible = "goodix,gt7986u", "goodix,gt7375p";
488bab661aSEmmanuel Vadot		reg = <0x5d>;
498bab661aSEmmanuel Vadot		pinctrl-names = "default";
508bab661aSEmmanuel Vadot		pinctrl-0 = <&ts_int_conn>, <&ts_rst_conn>;
518bab661aSEmmanuel Vadot
528bab661aSEmmanuel Vadot		interrupt-parent = <&tlmm>;
538bab661aSEmmanuel Vadot		interrupts = <55 IRQ_TYPE_LEVEL_LOW>;
548bab661aSEmmanuel Vadot
558bab661aSEmmanuel Vadot		reset-gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
568bab661aSEmmanuel Vadot
578bab661aSEmmanuel Vadot		vdd-supply = <&ts_avdd>;
58*cb7aa33aSEmmanuel Vadot		mainboard-vddio-supply = <&ts_avccio>;
598bab661aSEmmanuel Vadot	};
608bab661aSEmmanuel Vadot};
618bab661aSEmmanuel Vadot
628bab661aSEmmanuel Vadot&ap_sar_sensor_i2c {
638bab661aSEmmanuel Vadot	status = "okay";
648bab661aSEmmanuel Vadot};
658bab661aSEmmanuel Vadot
668bab661aSEmmanuel Vadot&ap_sar_sensor0 {
678bab661aSEmmanuel Vadot	status = "okay";
688bab661aSEmmanuel Vadot};
698bab661aSEmmanuel Vadot
708bab661aSEmmanuel Vadot&ap_sar_sensor1 {
718bab661aSEmmanuel Vadot	status = "okay";
728bab661aSEmmanuel Vadot};
738bab661aSEmmanuel Vadot
748bab661aSEmmanuel Vadot&mdss_edp {
758bab661aSEmmanuel Vadot	status = "okay";
768bab661aSEmmanuel Vadot};
778bab661aSEmmanuel Vadot
788bab661aSEmmanuel Vadot&mdss_edp_phy {
798bab661aSEmmanuel Vadot	status = "okay";
808bab661aSEmmanuel Vadot};
818bab661aSEmmanuel Vadot
828bab661aSEmmanuel Vadot/* For nvme */
838bab661aSEmmanuel Vadot&pcie1 {
848bab661aSEmmanuel Vadot	status = "okay";
858bab661aSEmmanuel Vadot};
868bab661aSEmmanuel Vadot
878bab661aSEmmanuel Vadot/* For nvme */
888bab661aSEmmanuel Vadot&pcie1_phy {
898bab661aSEmmanuel Vadot	status = "okay";
908bab661aSEmmanuel Vadot};
918bab661aSEmmanuel Vadot
928bab661aSEmmanuel Vadot&pwmleds {
938bab661aSEmmanuel Vadot	status = "okay";
948bab661aSEmmanuel Vadot};
958bab661aSEmmanuel Vadot
968bab661aSEmmanuel Vadot/* For eMMC */
978bab661aSEmmanuel Vadot&sdhc_1 {
988bab661aSEmmanuel Vadot	status = "okay";
998bab661aSEmmanuel Vadot};
1008bab661aSEmmanuel Vadot
1018bab661aSEmmanuel Vadot/* PINCTRL - ADDITIONS TO NODES IN PARENT DEVICE TREE FILES */
1028bab661aSEmmanuel Vadot
1038bab661aSEmmanuel Vadot&ts_rst_conn {
1048bab661aSEmmanuel Vadot	bias-disable;
1058bab661aSEmmanuel Vadot};
1068bab661aSEmmanuel Vadot
1078bab661aSEmmanuel Vadot/* PINCTRL - BOARD-SPECIFIC */
1088bab661aSEmmanuel Vadot
1098bab661aSEmmanuel Vadot/*
1108bab661aSEmmanuel Vadot * Methodology for gpio-line-names:
1118bab661aSEmmanuel Vadot * - If a pin goes to herobrine board and is named it gets that name.
1128bab661aSEmmanuel Vadot * - If a pin goes to herobrine board and is not named, it gets no name.
1138bab661aSEmmanuel Vadot * - If a pin is totally internal to Qcard then it gets Qcard name.
1148bab661aSEmmanuel Vadot * - If a pin is not hooked up on Qcard, it gets no name.
1158bab661aSEmmanuel Vadot */
1168bab661aSEmmanuel Vadot
1178bab661aSEmmanuel Vadot&pm8350c_gpios {
1188bab661aSEmmanuel Vadot	gpio-line-names = "FLASH_STROBE_1",		/* 1 */
1198bab661aSEmmanuel Vadot			  "AP_SUSPEND",
1208bab661aSEmmanuel Vadot			  "PM8008_1_RST_N",
1218bab661aSEmmanuel Vadot			  "",
1228bab661aSEmmanuel Vadot			  "",
1238bab661aSEmmanuel Vadot			  "",
1248bab661aSEmmanuel Vadot			  "PMIC_EDP_BL_EN",
1258bab661aSEmmanuel Vadot			  "PMIC_EDP_BL_PWM",
1268bab661aSEmmanuel Vadot			  "";
1278bab661aSEmmanuel Vadot};
1288bab661aSEmmanuel Vadot
1298bab661aSEmmanuel Vadot&tlmm {
1308bab661aSEmmanuel Vadot	gpio-line-names = "AP_TP_I2C_SDA",		/* 0 */
1318bab661aSEmmanuel Vadot			  "AP_TP_I2C_SCL",
1328bab661aSEmmanuel Vadot			  "SSD_RST_L",
1338bab661aSEmmanuel Vadot			  "PE_WAKE_ODL",
1348bab661aSEmmanuel Vadot			  "AP_SAR_SDA",
1358bab661aSEmmanuel Vadot			  "AP_SAR_SCL",
1368bab661aSEmmanuel Vadot			  "PRB_SC_GPIO_6",
1378bab661aSEmmanuel Vadot			  "TP_INT_ODL",
1388bab661aSEmmanuel Vadot			  "HP_I2C_SDA",
1398bab661aSEmmanuel Vadot			  "HP_I2C_SCL",
1408bab661aSEmmanuel Vadot
1418bab661aSEmmanuel Vadot			  "GNSS_L1_EN",			/* 10 */
1428bab661aSEmmanuel Vadot			  "GNSS_L5_EN",
1438bab661aSEmmanuel Vadot			  "SPI_AP_MOSI",
1448bab661aSEmmanuel Vadot			  "SPI_AP_MISO",
1458bab661aSEmmanuel Vadot			  "SPI_AP_CLK",
1468bab661aSEmmanuel Vadot			  "SPI_AP_CS0_L",
1478bab661aSEmmanuel Vadot			  /*
1488bab661aSEmmanuel Vadot			   * AP_FLASH_WP is crossystem ABI. Schematics
1498bab661aSEmmanuel Vadot			   * call it BIOS_FLASH_WP_OD.
1508bab661aSEmmanuel Vadot			   */
1518bab661aSEmmanuel Vadot			  "AP_FLASH_WP",
1528bab661aSEmmanuel Vadot			  "",
1538bab661aSEmmanuel Vadot			  "AP_EC_INT_L",
1548bab661aSEmmanuel Vadot			  "",
1558bab661aSEmmanuel Vadot
1568bab661aSEmmanuel Vadot			  "UF_CAM_RST_L",		/* 20 */
1578bab661aSEmmanuel Vadot			  "WF_CAM_RST_L",
1588bab661aSEmmanuel Vadot			  "UART_AP_TX_DBG_RX",
1598bab661aSEmmanuel Vadot			  "UART_DBG_TX_AP_RX",
1608bab661aSEmmanuel Vadot			  "",
1618bab661aSEmmanuel Vadot			  "PM8008_IRQ_1",
1628bab661aSEmmanuel Vadot			  "HOST2WLAN_SOL",
1638bab661aSEmmanuel Vadot			  "WLAN2HOST_SOL",
1648bab661aSEmmanuel Vadot			  "MOS_BT_UART_CTS",
1658bab661aSEmmanuel Vadot			  "MOS_BT_UART_RFR",
1668bab661aSEmmanuel Vadot
1678bab661aSEmmanuel Vadot			  "MOS_BT_UART_TX",		/* 30 */
1688bab661aSEmmanuel Vadot			  "MOS_BT_UART_RX",
1698bab661aSEmmanuel Vadot			  "PRB_SC_GPIO_32",
1708bab661aSEmmanuel Vadot			  "HUB_RST_L",
1718bab661aSEmmanuel Vadot			  "",
1728bab661aSEmmanuel Vadot			  "",
1738bab661aSEmmanuel Vadot			  "AP_SPI_FP_MISO",
1748bab661aSEmmanuel Vadot			  "AP_SPI_FP_MOSI",
1758bab661aSEmmanuel Vadot			  "AP_SPI_FP_CLK",
1768bab661aSEmmanuel Vadot			  "AP_SPI_FP_CS_L",
1778bab661aSEmmanuel Vadot
1788bab661aSEmmanuel Vadot			  "AP_EC_SPI_MISO",		/* 40 */
1798bab661aSEmmanuel Vadot			  "AP_EC_SPI_MOSI",
1808bab661aSEmmanuel Vadot			  "AP_EC_SPI_CLK",
1818bab661aSEmmanuel Vadot			  "AP_EC_SPI_CS_L",
1828bab661aSEmmanuel Vadot			  "LCM_RST_L",
1838bab661aSEmmanuel Vadot			  "EARLY_EUD_N",
1848bab661aSEmmanuel Vadot			  "",
1858bab661aSEmmanuel Vadot			  "DP_HOT_PLUG_DET",
1868bab661aSEmmanuel Vadot			  "IO_BRD_MLB_ID0",
1878bab661aSEmmanuel Vadot			  "IO_BRD_MLB_ID1",
1888bab661aSEmmanuel Vadot
1898bab661aSEmmanuel Vadot			  "IO_BRD_MLB_ID2",		/* 50 */
1908bab661aSEmmanuel Vadot			  "SSD_EN",
1918bab661aSEmmanuel Vadot			  "TS_I2C_SDA_CONN",
1928bab661aSEmmanuel Vadot			  "TS_I2C_CLK_CONN",
1938bab661aSEmmanuel Vadot			  "TS_RST_CONN",
1948bab661aSEmmanuel Vadot			  "TS_INT_CONN",
1958bab661aSEmmanuel Vadot			  "AP_I2C_TPM_SDA",
1968bab661aSEmmanuel Vadot			  "AP_I2C_TPM_SCL",
1978bab661aSEmmanuel Vadot			  "PRB_SC_GPIO_58",
1988bab661aSEmmanuel Vadot			  "PRB_SC_GPIO_59",
1998bab661aSEmmanuel Vadot
2008bab661aSEmmanuel Vadot			  "EDP_HOT_PLUG_DET_N",		/* 60 */
2018bab661aSEmmanuel Vadot			  "FP_TO_AP_IRQ_L",
2028bab661aSEmmanuel Vadot			  "",
2038bab661aSEmmanuel Vadot			  "AMP_EN",
2048bab661aSEmmanuel Vadot			  "CAM0_MCLK_GPIO_64",
2058bab661aSEmmanuel Vadot			  "CAM1_MCLK_GPIO_65",
2068bab661aSEmmanuel Vadot			  "WF_CAM_MCLK",
2078bab661aSEmmanuel Vadot			  "PRB_SC_GPIO_67",
2088bab661aSEmmanuel Vadot			  "FPMCU_BOOT0",
2098bab661aSEmmanuel Vadot			  "UF_CAM_SDA",
2108bab661aSEmmanuel Vadot
2118bab661aSEmmanuel Vadot			  "UF_CAM_SCL",			/* 70 */
2128bab661aSEmmanuel Vadot			  "",
2138bab661aSEmmanuel Vadot			  "",
2148bab661aSEmmanuel Vadot			  "WF_CAM_SDA",
2158bab661aSEmmanuel Vadot			  "WF_CAM_SCL",
2168bab661aSEmmanuel Vadot			  "",
2178bab661aSEmmanuel Vadot			  "",
2188bab661aSEmmanuel Vadot			  "EN_FP_RAILS",
2198bab661aSEmmanuel Vadot			  "FP_RST_L",
2208bab661aSEmmanuel Vadot			  "PCIE1_CLKREQ_ODL",
2218bab661aSEmmanuel Vadot
2228bab661aSEmmanuel Vadot			  "EN_PP3300_DX_EDP",		/* 80 */
2238bab661aSEmmanuel Vadot			  "SC_GPIO_81",
2248bab661aSEmmanuel Vadot			  "FORCED_USB_BOOT",
2258bab661aSEmmanuel Vadot			  "WCD_RESET_N",
2268bab661aSEmmanuel Vadot			  "MOS_WLAN_EN",
2278bab661aSEmmanuel Vadot			  "MOS_BT_EN",
2288bab661aSEmmanuel Vadot			  "MOS_SW_CTRL",
2298bab661aSEmmanuel Vadot			  "MOS_PCIE0_RST",
2308bab661aSEmmanuel Vadot			  "MOS_PCIE0_CLKREQ_N",
2318bab661aSEmmanuel Vadot			  "MOS_PCIE0_WAKE_N",
2328bab661aSEmmanuel Vadot
2338bab661aSEmmanuel Vadot			  "MOS_LAA_AS_EN",		/* 90 */
2348bab661aSEmmanuel Vadot			  "SD_CD_ODL",
2358bab661aSEmmanuel Vadot			  "",
2368bab661aSEmmanuel Vadot			  "",
2378bab661aSEmmanuel Vadot			  "MOS_BT_WLAN_SLIMBUS_CLK",
2388bab661aSEmmanuel Vadot			  "MOS_BT_WLAN_SLIMBUS_DAT0",
2398bab661aSEmmanuel Vadot			  "HP_MCLK",
2408bab661aSEmmanuel Vadot			  "HP_BCLK",
2418bab661aSEmmanuel Vadot			  "HP_DOUT",
2428bab661aSEmmanuel Vadot			  "HP_DIN",
2438bab661aSEmmanuel Vadot
2448bab661aSEmmanuel Vadot			  "HP_LRCLK",			/* 100 */
2458bab661aSEmmanuel Vadot			  "HP_IRQ",
2468bab661aSEmmanuel Vadot			  "",
2478bab661aSEmmanuel Vadot			  "",
2488bab661aSEmmanuel Vadot			  "GSC_AP_INT_ODL",
2498bab661aSEmmanuel Vadot			  "EN_PP3300_CODEC",
2508bab661aSEmmanuel Vadot			  "AMP_BCLK",
2518bab661aSEmmanuel Vadot			  "AMP_DIN",
2528bab661aSEmmanuel Vadot			  "AMP_LRCLK",
2538bab661aSEmmanuel Vadot			  "UIM1_DATA_GPIO_109",
2548bab661aSEmmanuel Vadot
2558bab661aSEmmanuel Vadot			  "UIM1_CLK_GPIO_110",		/* 110 */
2568bab661aSEmmanuel Vadot			  "UIM1_RESET_GPIO_111",
2578bab661aSEmmanuel Vadot			  "PRB_SC_GPIO_112",
2588bab661aSEmmanuel Vadot			  "UIM0_DATA",
2598bab661aSEmmanuel Vadot			  "UIM0_CLK",
2608bab661aSEmmanuel Vadot			  "UIM0_RST",
2618bab661aSEmmanuel Vadot			  "UIM0_PRESENT_ODL",
2628bab661aSEmmanuel Vadot			  "SDM_RFFE0_CLK",
2638bab661aSEmmanuel Vadot			  "SDM_RFFE0_DATA",
2648bab661aSEmmanuel Vadot			  "WF_CAM_EN",
2658bab661aSEmmanuel Vadot
2668bab661aSEmmanuel Vadot			  "FASTBOOT_SEL_0",		/* 120 */
2678bab661aSEmmanuel Vadot			  "SC_GPIO_121",
2688bab661aSEmmanuel Vadot			  "FASTBOOT_SEL_1",
2698bab661aSEmmanuel Vadot			  "SC_GPIO_123",
2708bab661aSEmmanuel Vadot			  "FASTBOOT_SEL_2",
2718bab661aSEmmanuel Vadot			  "SM_RFFE4_CLK_GRFC_8",
2728bab661aSEmmanuel Vadot			  "SM_RFFE4_DATA_GRFC_9",
2738bab661aSEmmanuel Vadot			  "WLAN_COEX_UART1_RX",
2748bab661aSEmmanuel Vadot			  "WLAN_COEX_UART1_TX",
2758bab661aSEmmanuel Vadot			  "PRB_SC_GPIO_129",
2768bab661aSEmmanuel Vadot
2778bab661aSEmmanuel Vadot			  "LCM_ID0",			/* 130 */
2788bab661aSEmmanuel Vadot			  "LCM_ID1",
2798bab661aSEmmanuel Vadot			  "",
2808bab661aSEmmanuel Vadot			  "SDR_QLINK_REQ",
2818bab661aSEmmanuel Vadot			  "SDR_QLINK_EN",
2828bab661aSEmmanuel Vadot			  "QLINK0_WMSS_RESET_N",
2838bab661aSEmmanuel Vadot			  "SMR526_QLINK1_REQ",
2848bab661aSEmmanuel Vadot			  "SMR526_QLINK1_EN",
2858bab661aSEmmanuel Vadot			  "SMR526_QLINK1_WMSS_RESET_N",
2868bab661aSEmmanuel Vadot			  "PRB_SC_GPIO_139",
2878bab661aSEmmanuel Vadot
2888bab661aSEmmanuel Vadot			  "SAR1_IRQ_ODL",		/* 140 */
2898bab661aSEmmanuel Vadot			  "SAR0_IRQ_ODL",
2908bab661aSEmmanuel Vadot			  "PRB_SC_GPIO_142",
2918bab661aSEmmanuel Vadot			  "",
2928bab661aSEmmanuel Vadot			  "WCD_SWR_TX_CLK",
2938bab661aSEmmanuel Vadot			  "WCD_SWR_TX_DATA0",
2948bab661aSEmmanuel Vadot			  "WCD_SWR_TX_DATA1",
2958bab661aSEmmanuel Vadot			  "WCD_SWR_RX_CLK",
2968bab661aSEmmanuel Vadot			  "WCD_SWR_RX_DATA0",
2978bab661aSEmmanuel Vadot			  "WCD_SWR_RX_DATA1",
2988bab661aSEmmanuel Vadot
2998bab661aSEmmanuel Vadot			  "DMIC01_CLK",			/* 150 */
3008bab661aSEmmanuel Vadot			  "DMIC01_DATA",
3018bab661aSEmmanuel Vadot			  "DMIC23_CLK",
3028bab661aSEmmanuel Vadot			  "DMIC23_DATA",
3038bab661aSEmmanuel Vadot			  "",
3048bab661aSEmmanuel Vadot			  "",
3058bab661aSEmmanuel Vadot			  "EC_IN_RW_ODL",
3068bab661aSEmmanuel Vadot			  "HUB_EN",
3078bab661aSEmmanuel Vadot			  "WCD_SWR_TX_DATA2",
3088bab661aSEmmanuel Vadot			  "",
3098bab661aSEmmanuel Vadot
3108bab661aSEmmanuel Vadot			  "",				/* 160 */
3118bab661aSEmmanuel Vadot			  "",
3128bab661aSEmmanuel Vadot			  "",
3138bab661aSEmmanuel Vadot			  "",
3148bab661aSEmmanuel Vadot			  "",
3158bab661aSEmmanuel Vadot			  "",
3168bab661aSEmmanuel Vadot			  "",
3178bab661aSEmmanuel Vadot			  "",
3188bab661aSEmmanuel Vadot			  "",
3198bab661aSEmmanuel Vadot			  "",
3208bab661aSEmmanuel Vadot
3218bab661aSEmmanuel Vadot			  "",				/* 170 */
3228bab661aSEmmanuel Vadot			  "MOS_BLE_UART_TX",
3238bab661aSEmmanuel Vadot			  "MOS_BLE_UART_RX",
3248bab661aSEmmanuel Vadot			  "",
3258bab661aSEmmanuel Vadot			  "";
3268bab661aSEmmanuel Vadot};
327