1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * sc7280 CRD 3+ board device tree source
5 * Copyright 2022 Google LLC.
10 #include "sc7280-herobrine.dtsi"
11 #include "sc7280-herobrine-audio-wcd9385.dtsi"
14 model = "Qualcomm Technologies, Inc. sc7280 CRD platform (rev5+)";
15 compatible = "google,hoglin", "qcom,sc7280";
17 /* FIXED REGULATORS */
20 * On most herobrine boards PPVAR_SYS directly provides VREG_EDP_BL.
21 * However, on CRD there's an extra regulator in the way. Since this
22 * is expected to be uncommon, we'll leave the "vreg_edp_bl" label
23 * in the baseboard herobrine.dtsi point at "ppvar_sys" and then
24 * make a "_crd" specific version here.
26 vreg_edp_bl_crd: vreg-edp-bl-crd-regulator {
27 compatible = "regulator-fixed";
28 regulator-name = "vreg_edp_bl_crd";
30 gpio = <&pm8350c_gpios 6 GPIO_ACTIVE_HIGH>;
32 pinctrl-names = "default";
33 pinctrl-0 = <&edp_bl_reg_en>;
35 vin-supply = <&ppvar_sys>;
39 /* ADDITIONS TO NODES DEFINED IN PARENT DEVICE TREE FILES */
43 compatible = "qcom,pmg1110-rpmh-regulators";
47 regulator-min-microvolt = <1010000>;
48 regulator-max-microvolt = <1170000>;
55 clock-frequency = <400000>;
57 trackpad: trackpad@15 {
58 compatible = "hid-over-i2c";
60 pinctrl-names = "default";
61 pinctrl-0 = <&tp_int_odl>;
63 interrupt-parent = <&tlmm>;
64 interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
66 post-power-on-delay-ms = <20>;
67 hid-descr-addr = <0x0001>;
68 vdd-supply = <&pp3300_z1>;
86 ap_ts_pen_1v8: &i2c13 {
88 clock-frequency = <400000>;
90 ap_ts: touchscreen@5c {
91 compatible = "hid-over-i2c";
93 pinctrl-names = "default";
94 pinctrl-0 = <&ts_int_conn>, <&ts_rst_conn>;
96 interrupt-parent = <&tlmm>;
97 interrupts = <55 IRQ_TYPE_LEVEL_LOW>;
99 post-power-on-delay-ms = <500>;
100 hid-descr-addr = <0x0000>;
102 vdd-supply = <&pp3300_left_in_mlb>;
124 &pm8350c_pwm_backlight {
125 power-supply = <&vreg_edp_bl_crd>;
138 /* PINCTRL - ADDITIONS TO NODES IN PARENT DEVICE TREE FILES */
141 * This pin goes to the display panel but then doesn't actually do anything
142 * on the panel itself (it doesn't connect to the touchscreen controller).
143 * We'll set a pullup here just to park the line.
149 /* PINCTRL - BOARD-SPECIFIC */
152 * Methodology for gpio-line-names:
153 * - If a pin goes to CRD board and is named it gets that name.
154 * - If a pin goes to CRD board and is not named, it gets no name.
155 * - If a pin is totally internal to Qcard then it gets Qcard name.
156 * - If a pin is not hooked up on Qcard, it gets no name.
160 gpio-line-names = "FLASH_STROBE_1", /* 1 */
170 edp_bl_reg_en: edp-bl-reg-en {
174 qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
179 gpio-line-names = "AP_TP_I2C_SDA", /* 0 */
190 "GNSS_L1_EN", /* 10 */
197 * AP_FLASH_WP is crossystem ABI. Schematics call it
198 * BIOS_FLASH_WP_L (the '_L' suffix is misleading, the
199 * signal is active high).
206 "CAM0_RST_N", /* 20 */
217 "MOS_BT_UART_TX", /* 30 */
228 "EC_SPI_MISO_GPIO40", /* 40 */
229 "EC_SPI_MOSI_GPIO41",
235 "DP_HOT_PLUG_DETECT",
239 "AP_BRD_ID_2", /* 50 */
250 "EDP_HOT_PLUG_DET_N", /* 60 */
261 "CCI_I2C_SCL0", /* 70 */
272 "EN_PP3300_DX_EDP", /* 80 */
280 "MOS_PCIE0_CLKREQ_N",
283 "MOS_LAA_AS_EN", /* 90 */
287 "MOS_BT_WLAN_SLIMBUS_CLK",
288 "MOS_BT_WLAN_SLIMBUS_DAT0",
303 "UIM1_DATA_GPIO_109",
305 "UIM1_CLK_GPIO_110", /* 110 */
306 "UIM1_RESET_GPIO_111",
316 "SDM_RFFE1_DATA", /* 120 */
321 "SM_RFFE4_CLK_GRFC_8",
322 "SM_RFFE4_DATA_GRFC_9",
323 "WLAN_COEX_UART1_RX",
324 "WLAN_COEX_UART1_TX",
332 "QLINK0_WMSS_RESET_N",
335 "SMR526_QLINK1_WMSS_RESET_N",
338 "SAR1_INT_N", /* 140 */
349 "DMIC01_CLK", /* 150 */