1d5b0e70fSEmmanuel Vadot// SPDX-License-Identifier: BSD-3-Clause
2d5b0e70fSEmmanuel Vadot/*
3d5b0e70fSEmmanuel Vadot * sc7280 CRD board device tree source
4d5b0e70fSEmmanuel Vadot *
5d5b0e70fSEmmanuel Vadot * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
6d5b0e70fSEmmanuel Vadot */
7d5b0e70fSEmmanuel Vadot
8d5b0e70fSEmmanuel Vadot/dts-v1/;
9d5b0e70fSEmmanuel Vadot
10d5b0e70fSEmmanuel Vadot#include "sc7280-idp.dtsi"
11d5b0e70fSEmmanuel Vadot#include "sc7280-idp-ec-h1.dtsi"
12d5b0e70fSEmmanuel Vadot
13d5b0e70fSEmmanuel Vadot/ {
14d5b0e70fSEmmanuel Vadot	model = "Qualcomm Technologies, Inc. sc7280 CRD platform (rev3 - 4)";
15d5b0e70fSEmmanuel Vadot	compatible = "qcom,sc7280-crd",
16d5b0e70fSEmmanuel Vadot		     "google,hoglin-rev3", "google,hoglin-rev4",
17d5b0e70fSEmmanuel Vadot		     "google,piglin-rev3", "google,piglin-rev4",
18d5b0e70fSEmmanuel Vadot		     "qcom,sc7280";
19d5b0e70fSEmmanuel Vadot
20d5b0e70fSEmmanuel Vadot	aliases {
21d5b0e70fSEmmanuel Vadot		serial0 = &uart5;
22d5b0e70fSEmmanuel Vadot	};
23d5b0e70fSEmmanuel Vadot
24d5b0e70fSEmmanuel Vadot	chosen {
25d5b0e70fSEmmanuel Vadot		stdout-path = "serial0:115200n8";
26d5b0e70fSEmmanuel Vadot	};
27d5b0e70fSEmmanuel Vadot};
28d5b0e70fSEmmanuel Vadot
29d5b0e70fSEmmanuel Vadot&apps_rsc {
30fac71e4eSEmmanuel Vadot	regulators-2 {
31d5b0e70fSEmmanuel Vadot		compatible = "qcom,pmg1110-rpmh-regulators";
32d5b0e70fSEmmanuel Vadot		qcom,pmic-id = "k";
33d5b0e70fSEmmanuel Vadot
34d5b0e70fSEmmanuel Vadot		vreg_s1k_1p0: smps1 {
35d5b0e70fSEmmanuel Vadot			regulator-min-microvolt = <1010000>;
36d5b0e70fSEmmanuel Vadot			regulator-max-microvolt = <1170000>;
37d5b0e70fSEmmanuel Vadot		};
38d5b0e70fSEmmanuel Vadot	};
39d5b0e70fSEmmanuel Vadot};
40d5b0e70fSEmmanuel Vadot
41*84943d6fSEmmanuel Vadot&bluetooth {
42*84943d6fSEmmanuel Vadot	vddio-supply = <&vreg_l18b_1p8>;
43*84943d6fSEmmanuel Vadot};
44*84943d6fSEmmanuel Vadot
45d5b0e70fSEmmanuel Vadotap_tp_i2c: &i2c0 {
46d5b0e70fSEmmanuel Vadot	status = "okay";
47d5b0e70fSEmmanuel Vadot	clock-frequency = <400000>;
48d5b0e70fSEmmanuel Vadot
49d5b0e70fSEmmanuel Vadot	trackpad: trackpad@15 {
50d5b0e70fSEmmanuel Vadot		compatible = "hid-over-i2c";
51d5b0e70fSEmmanuel Vadot		reg = <0x15>;
52d5b0e70fSEmmanuel Vadot		pinctrl-names = "default";
53d5b0e70fSEmmanuel Vadot		pinctrl-0 = <&tp_int_odl>;
54d5b0e70fSEmmanuel Vadot
55d5b0e70fSEmmanuel Vadot		interrupt-parent = <&tlmm>;
56d5b0e70fSEmmanuel Vadot		interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
57d5b0e70fSEmmanuel Vadot
58d5b0e70fSEmmanuel Vadot		post-power-on-delay-ms = <20>;
59d5b0e70fSEmmanuel Vadot		hid-descr-addr = <0x0001>;
60d5b0e70fSEmmanuel Vadot		vdd-supply = <&vreg_l18b_1p8>;
61d5b0e70fSEmmanuel Vadot
62d5b0e70fSEmmanuel Vadot		wakeup-source;
63d5b0e70fSEmmanuel Vadot	};
64d5b0e70fSEmmanuel Vadot};
65d5b0e70fSEmmanuel Vadot
66d5b0e70fSEmmanuel Vadotap_ts_pen_1v8: &i2c13 {
67d5b0e70fSEmmanuel Vadot	status = "okay";
68d5b0e70fSEmmanuel Vadot	clock-frequency = <400000>;
69d5b0e70fSEmmanuel Vadot
70d5b0e70fSEmmanuel Vadot	ap_ts: touchscreen@5c {
71d5b0e70fSEmmanuel Vadot		compatible = "hid-over-i2c";
72d5b0e70fSEmmanuel Vadot		reg = <0x5c>;
73d5b0e70fSEmmanuel Vadot		pinctrl-names = "default";
74d5b0e70fSEmmanuel Vadot		pinctrl-0 = <&ts_int_l>, <&ts_reset_l>;
75d5b0e70fSEmmanuel Vadot
76d5b0e70fSEmmanuel Vadot		interrupt-parent = <&tlmm>;
77d5b0e70fSEmmanuel Vadot		interrupts = <55 IRQ_TYPE_LEVEL_LOW>;
78d5b0e70fSEmmanuel Vadot
79d5b0e70fSEmmanuel Vadot		post-power-on-delay-ms = <500>;
80d5b0e70fSEmmanuel Vadot		hid-descr-addr = <0x0000>;
81d5b0e70fSEmmanuel Vadot
82d5b0e70fSEmmanuel Vadot		vdd-supply = <&vreg_l19b_1p8>;
83d5b0e70fSEmmanuel Vadot	};
84d5b0e70fSEmmanuel Vadot};
85d5b0e70fSEmmanuel Vadot
86d5b0e70fSEmmanuel Vadot&nvme_3v3_regulator {
87d5b0e70fSEmmanuel Vadot	gpio = <&tlmm 51 GPIO_ACTIVE_HIGH>;
88d5b0e70fSEmmanuel Vadot};
89d5b0e70fSEmmanuel Vadot
90d5b0e70fSEmmanuel Vadot&nvme_pwren {
91d5b0e70fSEmmanuel Vadot	pins = "gpio51";
92d5b0e70fSEmmanuel Vadot};
93d5b0e70fSEmmanuel Vadot
947ef62cebSEmmanuel Vadot&sound {
957ef62cebSEmmanuel Vadot	audio-routing =
967ef62cebSEmmanuel Vadot		"IN1_HPHL", "HPHL_OUT",
977ef62cebSEmmanuel Vadot		"IN2_HPHR", "HPHR_OUT",
987ef62cebSEmmanuel Vadot		"AMIC1", "MIC BIAS1",
997ef62cebSEmmanuel Vadot		"AMIC2", "MIC BIAS2",
1007ef62cebSEmmanuel Vadot		"VA DMIC0", "MIC BIAS1",
1017ef62cebSEmmanuel Vadot		"VA DMIC1", "MIC BIAS1",
1027ef62cebSEmmanuel Vadot		"VA DMIC2", "MIC BIAS3",
1037ef62cebSEmmanuel Vadot		"VA DMIC3", "MIC BIAS3",
1047ef62cebSEmmanuel Vadot		"TX SWR_ADC0", "ADC1_OUTPUT",
1057ef62cebSEmmanuel Vadot		"TX SWR_ADC1", "ADC2_OUTPUT",
1067ef62cebSEmmanuel Vadot		"TX SWR_ADC2", "ADC3_OUTPUT",
1077ef62cebSEmmanuel Vadot		"TX SWR_DMIC0", "DMIC1_OUTPUT",
1087ef62cebSEmmanuel Vadot		"TX SWR_DMIC1", "DMIC2_OUTPUT",
1097ef62cebSEmmanuel Vadot		"TX SWR_DMIC2", "DMIC3_OUTPUT",
1107ef62cebSEmmanuel Vadot		"TX SWR_DMIC3", "DMIC4_OUTPUT",
1117ef62cebSEmmanuel Vadot		"TX SWR_DMIC4", "DMIC5_OUTPUT",
1127ef62cebSEmmanuel Vadot		"TX SWR_DMIC5", "DMIC6_OUTPUT",
1137ef62cebSEmmanuel Vadot		"TX SWR_DMIC6", "DMIC7_OUTPUT",
1147ef62cebSEmmanuel Vadot		"TX SWR_DMIC7", "DMIC8_OUTPUT";
1157ef62cebSEmmanuel Vadot};
1167ef62cebSEmmanuel Vadot
1177ef62cebSEmmanuel Vadot&wcd9385 {
1187ef62cebSEmmanuel Vadot	pinctrl-names = "default", "sleep";
1197ef62cebSEmmanuel Vadot	pinctrl-0 = <&wcd_reset_n>, <&us_euro_hs_sel>;
1207ef62cebSEmmanuel Vadot	pinctrl-1 = <&wcd_reset_n_sleep>, <&us_euro_hs_sel>;
1217ef62cebSEmmanuel Vadot	us-euro-gpios = <&tlmm 81 GPIO_ACTIVE_HIGH>;
1227ef62cebSEmmanuel Vadot};
1237ef62cebSEmmanuel Vadot
124d5b0e70fSEmmanuel Vadot&tlmm {
1258bab661aSEmmanuel Vadot	tp_int_odl: tp-int-odl-state {
126d5b0e70fSEmmanuel Vadot		pins = "gpio7";
127d5b0e70fSEmmanuel Vadot		function = "gpio";
128d5b0e70fSEmmanuel Vadot		bias-disable;
129d5b0e70fSEmmanuel Vadot	};
130d5b0e70fSEmmanuel Vadot
1318bab661aSEmmanuel Vadot	ts_int_l: ts-int-l-state {
132d5b0e70fSEmmanuel Vadot		pins = "gpio55";
133d5b0e70fSEmmanuel Vadot		function = "gpio";
134d5b0e70fSEmmanuel Vadot		bias-pull-up;
135d5b0e70fSEmmanuel Vadot	};
136d5b0e70fSEmmanuel Vadot
1378bab661aSEmmanuel Vadot	ts_reset_l: ts-reset-l-state {
138d5b0e70fSEmmanuel Vadot		pins = "gpio54";
139d5b0e70fSEmmanuel Vadot		function = "gpio";
140d5b0e70fSEmmanuel Vadot		bias-disable;
141d5b0e70fSEmmanuel Vadot	};
1427ef62cebSEmmanuel Vadot
1438bab661aSEmmanuel Vadot	us_euro_hs_sel: us-euro-hs-sel-state {
1447ef62cebSEmmanuel Vadot		pins = "gpio81";
1457ef62cebSEmmanuel Vadot		function = "gpio";
1467ef62cebSEmmanuel Vadot		bias-pull-down;
1477ef62cebSEmmanuel Vadot		drive-strength = <2>;
1487ef62cebSEmmanuel Vadot	};
149d5b0e70fSEmmanuel Vadot};
150