18bab661aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 28bab661aSEmmanuel Vadot/* 38bab661aSEmmanuel Vadot * Google Zombie 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.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 clock-frequency = <400000>; 258bab661aSEmmanuel Vadot status = "okay"; 268bab661aSEmmanuel Vadot 278bab661aSEmmanuel Vadot trackpad: trackpad@15 { 288bab661aSEmmanuel Vadot compatible = "hid-over-i2c"; 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 hid-descr-addr = <0x01>; 378bab661aSEmmanuel Vadot vdd-supply = <&pp3300_z1>; 388bab661aSEmmanuel Vadot 398bab661aSEmmanuel Vadot wakeup-source; 408bab661aSEmmanuel Vadot }; 418bab661aSEmmanuel Vadot}; 428bab661aSEmmanuel Vadot 438bab661aSEmmanuel Vadot&ap_sar_sensor_i2c { 448bab661aSEmmanuel Vadot status = "okay"; 458bab661aSEmmanuel Vadot}; 468bab661aSEmmanuel Vadot 478bab661aSEmmanuel Vadot&ap_sar_sensor0 { 488bab661aSEmmanuel Vadot status = "okay"; 498bab661aSEmmanuel Vadot}; 508bab661aSEmmanuel Vadot 518bab661aSEmmanuel Vadot&ap_sar_sensor1 { 528bab661aSEmmanuel Vadot status = "okay"; 538bab661aSEmmanuel Vadot}; 548bab661aSEmmanuel Vadot 558bab661aSEmmanuel Vadot&mdss_edp { 568bab661aSEmmanuel Vadot status = "okay"; 578bab661aSEmmanuel Vadot}; 588bab661aSEmmanuel Vadot 598bab661aSEmmanuel Vadot&mdss_edp_phy { 608bab661aSEmmanuel Vadot status = "okay"; 618bab661aSEmmanuel Vadot}; 628bab661aSEmmanuel Vadot 638bab661aSEmmanuel Vadot&pm8350c_pwm_backlight { 64*cb7aa33aSEmmanuel Vadot /* Set the PWM period to 320 microseconds (3.125kHz frequency) */ 65*cb7aa33aSEmmanuel Vadot pwms = <&pm8350c_pwm 3 320000>; 668bab661aSEmmanuel Vadot}; 678bab661aSEmmanuel Vadot 688bab661aSEmmanuel Vadot&pwmleds { 698bab661aSEmmanuel Vadot status = "okay"; 708bab661aSEmmanuel Vadot}; 718bab661aSEmmanuel Vadot 728bab661aSEmmanuel Vadot/* For eMMC */ 738bab661aSEmmanuel Vadot&sdhc_1 { 748bab661aSEmmanuel Vadot status = "okay"; 758bab661aSEmmanuel Vadot}; 768bab661aSEmmanuel Vadot 778bab661aSEmmanuel Vadot/* PINCTRL - ADDITIONS TO NODES IN PARENT DEVICE TREE FILES */ 788bab661aSEmmanuel Vadot 798bab661aSEmmanuel Vadot&ts_rst_conn { 808bab661aSEmmanuel Vadot bias-disable; 818bab661aSEmmanuel Vadot}; 828bab661aSEmmanuel Vadot 838bab661aSEmmanuel Vadot/* PINCTRL - BOARD-SPECIFIC */ 848bab661aSEmmanuel Vadot 858bab661aSEmmanuel Vadot/* 868bab661aSEmmanuel Vadot * Methodology for gpio-line-names: 878bab661aSEmmanuel Vadot * - If a pin goes to herobrine board and is named it gets that name. 888bab661aSEmmanuel Vadot * - If a pin goes to herobrine board and is not named, it gets no name. 898bab661aSEmmanuel Vadot * - If a pin is totally internal to Qcard then it gets Qcard name. 908bab661aSEmmanuel Vadot * - If a pin is not hooked up on Qcard, it gets no name. 918bab661aSEmmanuel Vadot */ 928bab661aSEmmanuel Vadot 938bab661aSEmmanuel Vadot&pm8350c_gpios { 948bab661aSEmmanuel Vadot gpio-line-names = "FLASH_STROBE_1", /* 1 */ 958bab661aSEmmanuel Vadot "AP_SUSPEND", 968bab661aSEmmanuel Vadot "PM8008_1_RST_N", 978bab661aSEmmanuel Vadot "", 988bab661aSEmmanuel Vadot "", 998bab661aSEmmanuel Vadot "", 1008bab661aSEmmanuel Vadot "PMIC_EDP_BL_EN", 1018bab661aSEmmanuel Vadot "PMIC_EDP_BL_PWM", 1028bab661aSEmmanuel Vadot ""; 1038bab661aSEmmanuel Vadot}; 1048bab661aSEmmanuel Vadot 1058bab661aSEmmanuel Vadot&tlmm { 1068bab661aSEmmanuel Vadot gpio-line-names = "AP_TP_I2C_SDA", /* 0 */ 1078bab661aSEmmanuel Vadot "AP_TP_I2C_SCL", 1088bab661aSEmmanuel Vadot "SSD_RST_L", 1098bab661aSEmmanuel Vadot "PE_WAKE_ODL", 1108bab661aSEmmanuel Vadot "AP_SAR_SDA", 1118bab661aSEmmanuel Vadot "AP_SAR_SCL", 1128bab661aSEmmanuel Vadot "PRB_SC_GPIO_6", 1138bab661aSEmmanuel Vadot "TP_INT_ODL", 1148bab661aSEmmanuel Vadot "HP_I2C_SDA", 1158bab661aSEmmanuel Vadot "HP_I2C_SCL", 1168bab661aSEmmanuel Vadot 1178bab661aSEmmanuel Vadot "GNSS_L1_EN", /* 10 */ 1188bab661aSEmmanuel Vadot "GNSS_L5_EN", 1198bab661aSEmmanuel Vadot "SPI_AP_MOSI", 1208bab661aSEmmanuel Vadot "SPI_AP_MISO", 1218bab661aSEmmanuel Vadot "SPI_AP_CLK", 1228bab661aSEmmanuel Vadot "SPI_AP_CS0_L", 1238bab661aSEmmanuel Vadot /* 1248bab661aSEmmanuel Vadot * AP_FLASH_WP is crossystem ABI. Schematics 1258bab661aSEmmanuel Vadot * call it BIOS_FLASH_WP_OD. 1268bab661aSEmmanuel Vadot */ 1278bab661aSEmmanuel Vadot "AP_FLASH_WP", 1288bab661aSEmmanuel Vadot "", 1298bab661aSEmmanuel Vadot "AP_EC_INT_L", 1308bab661aSEmmanuel Vadot "", 1318bab661aSEmmanuel Vadot 1328bab661aSEmmanuel Vadot "UF_CAM_RST_L", /* 20 */ 1338bab661aSEmmanuel Vadot "WF_CAM_RST_L", 1348bab661aSEmmanuel Vadot "UART_AP_TX_DBG_RX", 1358bab661aSEmmanuel Vadot "UART_DBG_TX_AP_RX", 1368bab661aSEmmanuel Vadot "", 1378bab661aSEmmanuel Vadot "PM8008_IRQ_1", 1388bab661aSEmmanuel Vadot "HOST2WLAN_SOL", 1398bab661aSEmmanuel Vadot "WLAN2HOST_SOL", 1408bab661aSEmmanuel Vadot "MOS_BT_UART_CTS", 1418bab661aSEmmanuel Vadot "MOS_BT_UART_RFR", 1428bab661aSEmmanuel Vadot 1438bab661aSEmmanuel Vadot "MOS_BT_UART_TX", /* 30 */ 1448bab661aSEmmanuel Vadot "MOS_BT_UART_RX", 1458bab661aSEmmanuel Vadot "PRB_SC_GPIO_32", 1468bab661aSEmmanuel Vadot "HUB_RST_L", 1478bab661aSEmmanuel Vadot "", 1488bab661aSEmmanuel Vadot "", 1498bab661aSEmmanuel Vadot "AP_SPI_FP_MISO", 1508bab661aSEmmanuel Vadot "AP_SPI_FP_MOSI", 1518bab661aSEmmanuel Vadot "AP_SPI_FP_CLK", 1528bab661aSEmmanuel Vadot "AP_SPI_FP_CS_L", 1538bab661aSEmmanuel Vadot 1548bab661aSEmmanuel Vadot "AP_EC_SPI_MISO", /* 40 */ 1558bab661aSEmmanuel Vadot "AP_EC_SPI_MOSI", 1568bab661aSEmmanuel Vadot "AP_EC_SPI_CLK", 1578bab661aSEmmanuel Vadot "AP_EC_SPI_CS_L", 1588bab661aSEmmanuel Vadot "LCM_RST_L", 1598bab661aSEmmanuel Vadot "EARLY_EUD_N", 1608bab661aSEmmanuel Vadot "", 1618bab661aSEmmanuel Vadot "DP_HOT_PLUG_DET", 1628bab661aSEmmanuel Vadot "IO_BRD_MLB_ID0", 1638bab661aSEmmanuel Vadot "IO_BRD_MLB_ID1", 1648bab661aSEmmanuel Vadot 1658bab661aSEmmanuel Vadot "IO_BRD_MLB_ID2", /* 50 */ 1668bab661aSEmmanuel Vadot "SSD_EN", 1678bab661aSEmmanuel Vadot "TS_I2C_SDA_CONN", 1688bab661aSEmmanuel Vadot "TS_I2C_CLK_CONN", 1698bab661aSEmmanuel Vadot "TS_RST_CONN", 1708bab661aSEmmanuel Vadot "TS_INT_CONN", 1718bab661aSEmmanuel Vadot "AP_I2C_TPM_SDA", 1728bab661aSEmmanuel Vadot "AP_I2C_TPM_SCL", 1738bab661aSEmmanuel Vadot "PRB_SC_GPIO_58", 1748bab661aSEmmanuel Vadot "PRB_SC_GPIO_59", 1758bab661aSEmmanuel Vadot 1768bab661aSEmmanuel Vadot "EDP_HOT_PLUG_DET_N", /* 60 */ 1778bab661aSEmmanuel Vadot "FP_TO_AP_IRQ_L", 1788bab661aSEmmanuel Vadot "", 1798bab661aSEmmanuel Vadot "AMP_EN", 1808bab661aSEmmanuel Vadot "CAM0_MCLK_GPIO_64", 1818bab661aSEmmanuel Vadot "CAM1_MCLK_GPIO_65", 1828bab661aSEmmanuel Vadot "WF_CAM_MCLK", 1838bab661aSEmmanuel Vadot "PRB_SC_GPIO_67", 1848bab661aSEmmanuel Vadot "FPMCU_BOOT0", 1858bab661aSEmmanuel Vadot "UF_CAM_SDA", 1868bab661aSEmmanuel Vadot 1878bab661aSEmmanuel Vadot "UF_CAM_SCL", /* 70 */ 1888bab661aSEmmanuel Vadot "", 1898bab661aSEmmanuel Vadot "", 1908bab661aSEmmanuel Vadot "WF_CAM_SDA", 1918bab661aSEmmanuel Vadot "WF_CAM_SCL", 1928bab661aSEmmanuel Vadot "", 1938bab661aSEmmanuel Vadot "", 1948bab661aSEmmanuel Vadot "EN_FP_RAILS", 1958bab661aSEmmanuel Vadot "FP_RST_L", 1968bab661aSEmmanuel Vadot "PCIE1_CLKREQ_ODL", 1978bab661aSEmmanuel Vadot 1988bab661aSEmmanuel Vadot "EN_PP3300_DX_EDP", /* 80 */ 1998bab661aSEmmanuel Vadot "US_EURO_HS_SEL", 2008bab661aSEmmanuel Vadot "FORCED_USB_BOOT", 2018bab661aSEmmanuel Vadot "WCD_RESET_N", 2028bab661aSEmmanuel Vadot "MOS_WLAN_EN", 2038bab661aSEmmanuel Vadot "MOS_BT_EN", 2048bab661aSEmmanuel Vadot "MOS_SW_CTRL", 2058bab661aSEmmanuel Vadot "MOS_PCIE0_RST", 2068bab661aSEmmanuel Vadot "MOS_PCIE0_CLKREQ_N", 2078bab661aSEmmanuel Vadot "MOS_PCIE0_WAKE_N", 2088bab661aSEmmanuel Vadot 2098bab661aSEmmanuel Vadot "MOS_LAA_AS_EN", /* 90 */ 2108bab661aSEmmanuel Vadot "SD_CD_ODL", 2118bab661aSEmmanuel Vadot "", 2128bab661aSEmmanuel Vadot "", 2138bab661aSEmmanuel Vadot "MOS_BT_WLAN_SLIMBUS_CLK", 2148bab661aSEmmanuel Vadot "MOS_BT_WLAN_SLIMBUS_DAT0", 2158bab661aSEmmanuel Vadot "HP_MCLK", 2168bab661aSEmmanuel Vadot "HP_BCLK", 2178bab661aSEmmanuel Vadot "HP_DOUT", 2188bab661aSEmmanuel Vadot "HP_DIN", 2198bab661aSEmmanuel Vadot 2208bab661aSEmmanuel Vadot "HP_LRCLK", /* 100 */ 2218bab661aSEmmanuel Vadot "HP_IRQ", 2228bab661aSEmmanuel Vadot "", 2238bab661aSEmmanuel Vadot "", 2248bab661aSEmmanuel Vadot "GSC_AP_INT_ODL", 2258bab661aSEmmanuel Vadot "EN_PP3300_CODEC", 2268bab661aSEmmanuel Vadot "AMP_BCLK", 2278bab661aSEmmanuel Vadot "AMP_DIN", 2288bab661aSEmmanuel Vadot "AMP_LRCLK", 2298bab661aSEmmanuel Vadot "UIM1_DATA_GPIO_109", 2308bab661aSEmmanuel Vadot 2318bab661aSEmmanuel Vadot "UIM1_CLK_GPIO_110", /* 110 */ 2328bab661aSEmmanuel Vadot "UIM1_RESET_GPIO_111", 2338bab661aSEmmanuel Vadot "PRB_SC_GPIO_112", 2348bab661aSEmmanuel Vadot "UIM0_DATA", 2358bab661aSEmmanuel Vadot "UIM0_CLK", 2368bab661aSEmmanuel Vadot "UIM0_RST", 2378bab661aSEmmanuel Vadot "UIM0_PRESENT_ODL", 2388bab661aSEmmanuel Vadot "SDM_RFFE0_CLK", 2398bab661aSEmmanuel Vadot "SDM_RFFE0_DATA", 2408bab661aSEmmanuel Vadot "WF_CAM_EN", 2418bab661aSEmmanuel Vadot 2428bab661aSEmmanuel Vadot "FASTBOOT_SEL_0", /* 120 */ 2438bab661aSEmmanuel Vadot "SC_GPIO_121", 2448bab661aSEmmanuel Vadot "FASTBOOT_SEL_1", 2458bab661aSEmmanuel Vadot "SC_GPIO_123", 2468bab661aSEmmanuel Vadot "FASTBOOT_SEL_2", 2478bab661aSEmmanuel Vadot "SM_RFFE4_CLK_GRFC_8", 2488bab661aSEmmanuel Vadot "SM_RFFE4_DATA_GRFC_9", 2498bab661aSEmmanuel Vadot "WLAN_COEX_UART1_RX", 2508bab661aSEmmanuel Vadot "WLAN_COEX_UART1_TX", 2518bab661aSEmmanuel Vadot "PRB_SC_GPIO_129", 2528bab661aSEmmanuel Vadot 2538bab661aSEmmanuel Vadot "LCM_ID0", /* 130 */ 2548bab661aSEmmanuel Vadot "LCM_ID1", 2558bab661aSEmmanuel Vadot "", 2568bab661aSEmmanuel Vadot "SDR_QLINK_REQ", 2578bab661aSEmmanuel Vadot "SDR_QLINK_EN", 2588bab661aSEmmanuel Vadot "QLINK0_WMSS_RESET_N", 2598bab661aSEmmanuel Vadot "SMR526_QLINK1_REQ", 2608bab661aSEmmanuel Vadot "SMR526_QLINK1_EN", 2618bab661aSEmmanuel Vadot "SMR526_QLINK1_WMSS_RESET_N", 2628bab661aSEmmanuel Vadot "PRB_SC_GPIO_139", 2638bab661aSEmmanuel Vadot 2648bab661aSEmmanuel Vadot "SAR1_IRQ_ODL", /* 140 */ 2658bab661aSEmmanuel Vadot "SAR0_IRQ_ODL", 2668bab661aSEmmanuel Vadot "PRB_SC_GPIO_142", 2678bab661aSEmmanuel Vadot "", 2688bab661aSEmmanuel Vadot "WCD_SWR_TX_CLK", 2698bab661aSEmmanuel Vadot "WCD_SWR_TX_DATA0", 2708bab661aSEmmanuel Vadot "WCD_SWR_TX_DATA1", 2718bab661aSEmmanuel Vadot "WCD_SWR_RX_CLK", 2728bab661aSEmmanuel Vadot "WCD_SWR_RX_DATA0", 2738bab661aSEmmanuel Vadot "WCD_SWR_RX_DATA1", 2748bab661aSEmmanuel Vadot 2758bab661aSEmmanuel Vadot "DMIC01_CLK", /* 150 */ 2768bab661aSEmmanuel Vadot "DMIC01_DATA", 2778bab661aSEmmanuel Vadot "DMIC23_CLK", 2788bab661aSEmmanuel Vadot "DMIC23_DATA", 2798bab661aSEmmanuel Vadot "", 2808bab661aSEmmanuel Vadot "", 2818bab661aSEmmanuel Vadot "EC_IN_RW_ODL", 2828bab661aSEmmanuel Vadot "HUB_EN", 2838bab661aSEmmanuel Vadot "WCD_SWR_TX_DATA2", 2848bab661aSEmmanuel Vadot "", 2858bab661aSEmmanuel Vadot 2868bab661aSEmmanuel Vadot "", /* 160 */ 2878bab661aSEmmanuel Vadot "", 2888bab661aSEmmanuel Vadot "", 2898bab661aSEmmanuel Vadot "", 2908bab661aSEmmanuel Vadot "", 2918bab661aSEmmanuel Vadot "", 2928bab661aSEmmanuel Vadot "", 2938bab661aSEmmanuel Vadot "", 2948bab661aSEmmanuel Vadot "", 2958bab661aSEmmanuel Vadot "", 2968bab661aSEmmanuel Vadot 2978bab661aSEmmanuel Vadot "", /* 170 */ 2988bab661aSEmmanuel Vadot "MOS_BLE_UART_TX", 2998bab661aSEmmanuel Vadot "MOS_BLE_UART_RX", 3008bab661aSEmmanuel Vadot "", 3018bab661aSEmmanuel Vadot ""; 3028bab661aSEmmanuel Vadot}; 303