17ec3e673SRob Clark// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
27ec3e673SRob Clark/*
37ec3e673SRob Clark * Google Trogdor board device tree source
47ec3e673SRob Clark *
57ec3e673SRob Clark * Copyright 2020 Google LLC.
67ec3e673SRob Clark */
77ec3e673SRob Clark
87ec3e673SRob Clark/dts-v1/;
97ec3e673SRob Clark
107ec3e673SRob Clark#include "sc7180.dtsi"
117ec3e673SRob Clark
127ec3e673SRob Clarkap_ec_spi: &spi6 {};
137ec3e673SRob Clarkap_h1_spi: &spi0 {};
147ec3e673SRob Clark
157ec3e673SRob Clark#include "sc7180-trogdor.dtsi"
164537977aSPhilip Chen#include "sc7180-trogdor-ti-sn65dsi86.dtsi"
177ec3e673SRob Clark
187ec3e673SRob Clark/ {
197ec3e673SRob Clark	model = "Google Trogdor (rev1+)";
207ec3e673SRob Clark	compatible = "google,trogdor", "qcom,sc7180";
217ec3e673SRob Clark};
227ec3e673SRob Clark
23*51d30402SStephen Boyd&ap_tp_i2c {
24*51d30402SStephen Boyd	status = "okay";
25*51d30402SStephen Boyd};
26*51d30402SStephen Boyd
277ec3e673SRob Clarkap_ts_pen_1v8: &i2c4 {
287ec3e673SRob Clark	status = "okay";
297ec3e673SRob Clark	clock-frequency = <400000>;
307ec3e673SRob Clark
317ec3e673SRob Clark	ap_ts: touchscreen@10 {
327ec3e673SRob Clark		compatible = "elan,ekth3500";
337ec3e673SRob Clark		reg = <0x10>;
347ec3e673SRob Clark		pinctrl-names = "default";
357ec3e673SRob Clark		pinctrl-0 = <&ts_int_l>, <&ts_reset_l>;
367ec3e673SRob Clark
377ec3e673SRob Clark		interrupt-parent = <&tlmm>;
387ec3e673SRob Clark		interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
397ec3e673SRob Clark
407ec3e673SRob Clark		vcc33-supply = <&pp3300_ts>;
417ec3e673SRob Clark
427ec3e673SRob Clark		reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;
437ec3e673SRob Clark	};
447ec3e673SRob Clark};
457ec3e673SRob Clark
46f415e0f5SDouglas Anderson&panel {
47f415e0f5SDouglas Anderson	compatible = "auo,b116xa01";
48f415e0f5SDouglas Anderson};
49f415e0f5SDouglas Anderson
50066c2a94SMatthias Kaehlcke&pp3300_hub {
51066c2a94SMatthias Kaehlcke	/* pp3300_l7c is used to power the USB hub */
52066c2a94SMatthias Kaehlcke	/delete-property/regulator-always-on;
53066c2a94SMatthias Kaehlcke	/delete-property/regulator-boot-on;
54066c2a94SMatthias Kaehlcke};
55066c2a94SMatthias Kaehlcke
56066c2a94SMatthias Kaehlcke&pp3300_l7c {
57066c2a94SMatthias Kaehlcke	regulator-always-on;
58066c2a94SMatthias Kaehlcke	regulator-boot-on;
59066c2a94SMatthias Kaehlcke};
60066c2a94SMatthias Kaehlcke
617ec3e673SRob Clark&sdhc_2 {
627ec3e673SRob Clark	status = "okay";
637ec3e673SRob Clark};
647ec3e673SRob Clark
65ce250024SDouglas Anderson&trackpad {
66ce250024SDouglas Anderson	interrupts = <58 IRQ_TYPE_EDGE_FALLING>;
67ce250024SDouglas Anderson};
68ce250024SDouglas Anderson
69ce250024SDouglas Anderson/* PINCTRL - modifications to sc7180-trogdor.dtsi */
70ce250024SDouglas Anderson
71ce250024SDouglas Anderson&trackpad_int_1v8_odl {
72ce250024SDouglas Anderson	pinmux {
73ce250024SDouglas Anderson		pins = "gpio58";
74ce250024SDouglas Anderson	};
75ce250024SDouglas Anderson
76ce250024SDouglas Anderson	pinconf {
77ce250024SDouglas Anderson		pins = "gpio58";
78ce250024SDouglas Anderson	};
79ce250024SDouglas Anderson};
80ce250024SDouglas Anderson
817ec3e673SRob Clark/* PINCTRL - board-specific pinctrl */
827ec3e673SRob Clark
837ec3e673SRob Clark&tlmm {
847ec3e673SRob Clark	gpio-line-names = "ESIM_MISO",
857ec3e673SRob Clark			  "ESIM_MOSI",
867ec3e673SRob Clark			  "ESIM_CLK",
877ec3e673SRob Clark			  "ESIM_CS_L",
887ec3e673SRob Clark			  "FP_TO_AP_IRQ_L",
897ec3e673SRob Clark			  "FP_RST_L",
907ec3e673SRob Clark			  "AP_TP_I2C_SDA",
917ec3e673SRob Clark			  "AP_TP_I2C_SCL",
927ec3e673SRob Clark			  "TS_RESET_L",
937ec3e673SRob Clark			  "TS_INT_L",
947ec3e673SRob Clark			  "FPMCU_BOOT0",
957ec3e673SRob Clark			  "EDP_BRIJ_IRQ",
967ec3e673SRob Clark			  "AP_EDP_BKLTEN",
977ec3e673SRob Clark			  "",
987ec3e673SRob Clark			  "",
997ec3e673SRob Clark			  "EDP_BRIJ_I2C_SDA",
1007ec3e673SRob Clark			  "EDP_BRIJ_I2C_SCL",
1017ec3e673SRob Clark			  "HUB_RST_L",
1027ec3e673SRob Clark			  "PEN_RST_ODL",
1037ec3e673SRob Clark			  "AP_RAM_ID1",
1047ec3e673SRob Clark			  "AP_RAM_ID2",
1057ec3e673SRob Clark			  "PEN_IRQ_L",
1067ec3e673SRob Clark			  "FPMCU_SEL",
1077ec3e673SRob Clark			  "AMP_EN",
1087ec3e673SRob Clark			  "P_SENSOR_INT_L",
1097ec3e673SRob Clark			  "AP_SAR_SENSOR_SDA",
1107ec3e673SRob Clark			  "AP_SAR_SENSOR_SCL",
1117ec3e673SRob Clark			  "",
1127ec3e673SRob Clark			  "HP_IRQ",
1137ec3e673SRob Clark			  "AP_RAM_ID0",
1147ec3e673SRob Clark			  "EN_PP3300_DX_EDP",
1157ec3e673SRob Clark			  "AP_BRD_ID2",
1167ec3e673SRob Clark			  "BRIJ_SUSPEND",
1177ec3e673SRob Clark			  "AP_BRD_ID0",
1187ec3e673SRob Clark			  "AP_H1_SPI_MISO",
1197ec3e673SRob Clark			  "AP_H1_SPI_MOSI",
1207ec3e673SRob Clark			  "AP_H1_SPI_CLK",
1217ec3e673SRob Clark			  "AP_H1_SPI_CS_L",
1227ec3e673SRob Clark			  "",
1237ec3e673SRob Clark			  "",
1247ec3e673SRob Clark			  "",
1257ec3e673SRob Clark			  "",
1267ec3e673SRob Clark			  "H1_AP_INT_ODL",
1277ec3e673SRob Clark			  "",
1287ec3e673SRob Clark			  "UART_AP_TX_DBG_RX",
1297ec3e673SRob Clark			  "UART_DBG_TX_AP_RX",
1307ec3e673SRob Clark			  "HP_I2C_SDA",
1317ec3e673SRob Clark			  "HP_I2C_SCL",
1327ec3e673SRob Clark			  "FORCED_USB_BOOT",
1337ec3e673SRob Clark			  "",
1347ec3e673SRob Clark			  "",
1357ec3e673SRob Clark			  "AMP_DIN",
1367ec3e673SRob Clark			  "PEN_PDCT_L",
1377ec3e673SRob Clark			  "HP_BCLK",
1387ec3e673SRob Clark			  "HP_LRCLK",
1397ec3e673SRob Clark			  "HP_DOUT",
1407ec3e673SRob Clark			  "HP_DIN",
1417ec3e673SRob Clark			  "HP_MCLK",
1427ec3e673SRob Clark			  "TRACKPAD_INT_1V8_ODL",
1437ec3e673SRob Clark			  "AP_EC_SPI_MISO",
1447ec3e673SRob Clark			  "AP_EC_SPI_MOSI",
1457ec3e673SRob Clark			  "AP_EC_SPI_CLK",
1467ec3e673SRob Clark			  "AP_EC_SPI_CS_L",
1477ec3e673SRob Clark			  "AP_SPI_CLK",
1487ec3e673SRob Clark			  "AP_SPI_MOSI",
1497ec3e673SRob Clark			  "AP_SPI_MISO",
1507ec3e673SRob Clark			  /*
1517ec3e673SRob Clark			   * AP_FLASH_WP_L is crossystem ABI. Schematics
1527ec3e673SRob Clark			   * call it BIOS_FLASH_WP_L.
1537ec3e673SRob Clark			   */
1547ec3e673SRob Clark			  "AP_FLASH_WP_L",
1557ec3e673SRob Clark			  "DBG_SPI_HOLD_L",
1567ec3e673SRob Clark			  "AP_SPI_CS0_L",
1577ec3e673SRob Clark			  "SD_CD_ODL",
1587ec3e673SRob Clark			  "",
1597ec3e673SRob Clark			  "",
1607ec3e673SRob Clark			  "",
1617ec3e673SRob Clark			  "",
1627ec3e673SRob Clark			  "",
1637ec3e673SRob Clark			  "UIM2_DATA",
1647ec3e673SRob Clark			  "UIM2_CLK",
1657ec3e673SRob Clark			  "UIM2_RST",
1667ec3e673SRob Clark			  "UIM2_PRESENT",
1677ec3e673SRob Clark			  "UIM1_DATA",
1687ec3e673SRob Clark			  "UIM1_CLK",
1697ec3e673SRob Clark			  "UIM1_RST",
1707ec3e673SRob Clark			  "",
1717ec3e673SRob Clark			  "EN_PP3300_CODEC",
1727ec3e673SRob Clark			  "EN_PP3300_HUB",
1737ec3e673SRob Clark			  "",
1747ec3e673SRob Clark			  "AP_SPI_FP_MISO",
1757ec3e673SRob Clark			  "AP_SPI_FP_MOSI",
1767ec3e673SRob Clark			  "AP_SPI_FP_CLK",
1777ec3e673SRob Clark			  "AP_SPI_FP_CS_L",
1787ec3e673SRob Clark			  "AP_SKU_ID1",
1797ec3e673SRob Clark			  "AP_RST_REQ",
1807ec3e673SRob Clark			  "",
1817ec3e673SRob Clark			  "AP_BRD_ID1",
1827ec3e673SRob Clark			  "AP_EC_INT_L",
1837ec3e673SRob Clark			  "",
1847ec3e673SRob Clark			  "",
1857ec3e673SRob Clark			  "",
1867ec3e673SRob Clark			  "",
1877ec3e673SRob Clark			  "",
1887ec3e673SRob Clark			  "",
1897ec3e673SRob Clark			  "",
1907ec3e673SRob Clark			  "",
1917ec3e673SRob Clark			  "",
1927ec3e673SRob Clark			  "EDP_BRIJ_EN",
1937ec3e673SRob Clark			  "AP_SKU_ID0",
1947ec3e673SRob Clark			  "",
1957ec3e673SRob Clark			  "",
1967ec3e673SRob Clark			  "",
1977ec3e673SRob Clark			  "",
1987ec3e673SRob Clark			  "",
1997ec3e673SRob Clark			  "",
2007ec3e673SRob Clark			  "",
2017ec3e673SRob Clark			  "",
2027ec3e673SRob Clark			  "",
2037ec3e673SRob Clark			  "AP_TS_PEN_I2C_SDA",
2047ec3e673SRob Clark			  "AP_TS_PEN_I2C_SCL",
2057ec3e673SRob Clark			  "DP_HOT_PLUG_DET",
2067ec3e673SRob Clark			  "EC_IN_RW_ODL";
2077ec3e673SRob Clark};
208