xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/sc8180x-primus.dts (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: BSD-3-Clause
2f126890aSEmmanuel Vadot/*
3f126890aSEmmanuel Vadot * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
4f126890aSEmmanuel Vadot * Copyright (c) 2020-2023, Linaro Limited
5f126890aSEmmanuel Vadot */
6f126890aSEmmanuel Vadot
7f126890aSEmmanuel Vadot/dts-v1/;
8f126890aSEmmanuel Vadot
984943d6fSEmmanuel Vadot#include <dt-bindings/firmware/qcom,scm.h>
10f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
11f126890aSEmmanuel Vadot#include <dt-bindings/input/gpio-keys.h>
12f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h>
13f126890aSEmmanuel Vadot#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
14f126890aSEmmanuel Vadot#include "sc8180x.dtsi"
15f126890aSEmmanuel Vadot#include "sc8180x-pmics.dtsi"
16f126890aSEmmanuel Vadot
17f126890aSEmmanuel Vadot/ {
18f126890aSEmmanuel Vadot	model = "Qualcomm SC8180x Primus";
19f126890aSEmmanuel Vadot	compatible = "qcom,sc8180x-primus", "qcom,sc8180x";
20f126890aSEmmanuel Vadot
21f126890aSEmmanuel Vadot	aliases {
22f126890aSEmmanuel Vadot		serial0 = &uart12;
23f126890aSEmmanuel Vadot		serial1 = &uart13;
24f126890aSEmmanuel Vadot	};
25f126890aSEmmanuel Vadot
26f126890aSEmmanuel Vadot	backlight: backlight {
27f126890aSEmmanuel Vadot		compatible = "pwm-backlight";
28f126890aSEmmanuel Vadot		pwms = <&pmc8180c_lpg 4 1000000>;
29f126890aSEmmanuel Vadot		enable-gpios = <&pmc8180c_gpios 8 GPIO_ACTIVE_HIGH>;
30f126890aSEmmanuel Vadot
31f126890aSEmmanuel Vadot		pinctrl-names = "default";
32f126890aSEmmanuel Vadot		pinctrl-0 = <&bl_pwm_default>;
33f126890aSEmmanuel Vadot	};
34f126890aSEmmanuel Vadot
35f126890aSEmmanuel Vadot	chosen {
36f126890aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
37f126890aSEmmanuel Vadot	};
38f126890aSEmmanuel Vadot
39f126890aSEmmanuel Vadot	gpio-keys {
40f126890aSEmmanuel Vadot		compatible = "gpio-keys";
41f126890aSEmmanuel Vadot
42f126890aSEmmanuel Vadot		pinctrl-names = "default";
43f126890aSEmmanuel Vadot		pinctrl-0 = <&hall_int_active_state>;
44f126890aSEmmanuel Vadot
45f126890aSEmmanuel Vadot		lid-switch {
46*8d13bc63SEmmanuel Vadot			gpios = <&tlmm 121 GPIO_ACTIVE_LOW>;
47f126890aSEmmanuel Vadot			linux,input-type = <EV_SW>;
48f126890aSEmmanuel Vadot			linux,code = <SW_LID>;
49f126890aSEmmanuel Vadot			wakeup-source;
50f126890aSEmmanuel Vadot			wakeup-event-action = <EV_ACT_DEASSERTED>;
51f126890aSEmmanuel Vadot		};
52f126890aSEmmanuel Vadot	};
53f126890aSEmmanuel Vadot
54aa1a8ff2SEmmanuel Vadot	pmic-glink {
55aa1a8ff2SEmmanuel Vadot		compatible = "qcom,sc8180x-pmic-glink", "qcom,pmic-glink";
56aa1a8ff2SEmmanuel Vadot
57aa1a8ff2SEmmanuel Vadot		#address-cells = <1>;
58aa1a8ff2SEmmanuel Vadot		#size-cells = <0>;
59aa1a8ff2SEmmanuel Vadot
60aa1a8ff2SEmmanuel Vadot		connector@0 {
61aa1a8ff2SEmmanuel Vadot			compatible = "usb-c-connector";
62aa1a8ff2SEmmanuel Vadot			reg = <0>;
63aa1a8ff2SEmmanuel Vadot			power-role = "dual";
64aa1a8ff2SEmmanuel Vadot			data-role = "dual";
65aa1a8ff2SEmmanuel Vadot
66aa1a8ff2SEmmanuel Vadot			ports {
67aa1a8ff2SEmmanuel Vadot				#address-cells = <1>;
68aa1a8ff2SEmmanuel Vadot				#size-cells = <0>;
69aa1a8ff2SEmmanuel Vadot
70aa1a8ff2SEmmanuel Vadot				port@0 {
71aa1a8ff2SEmmanuel Vadot					reg = <0>;
72aa1a8ff2SEmmanuel Vadot
73aa1a8ff2SEmmanuel Vadot					pmic_glink_con0_hs: endpoint {
74aa1a8ff2SEmmanuel Vadot						remote-endpoint = <&usb_prim_role_switch>;
75aa1a8ff2SEmmanuel Vadot					};
76aa1a8ff2SEmmanuel Vadot				};
77aa1a8ff2SEmmanuel Vadot
78aa1a8ff2SEmmanuel Vadot				port@1 {
79aa1a8ff2SEmmanuel Vadot					reg = <1>;
80aa1a8ff2SEmmanuel Vadot
81aa1a8ff2SEmmanuel Vadot					pmic_glink_con0_ss: endpoint {
82aa1a8ff2SEmmanuel Vadot						remote-endpoint = <&usb_prim_qmpphy_out>;
83aa1a8ff2SEmmanuel Vadot					};
84aa1a8ff2SEmmanuel Vadot				};
85aa1a8ff2SEmmanuel Vadot
86aa1a8ff2SEmmanuel Vadot				port@2 {
87aa1a8ff2SEmmanuel Vadot					reg = <2>;
88aa1a8ff2SEmmanuel Vadot
89aa1a8ff2SEmmanuel Vadot					pmic_glink_con0_sbu: endpoint {
90aa1a8ff2SEmmanuel Vadot						remote-endpoint = <&usbprim_sbu_mux>;
91aa1a8ff2SEmmanuel Vadot					};
92aa1a8ff2SEmmanuel Vadot				};
93aa1a8ff2SEmmanuel Vadot			};
94aa1a8ff2SEmmanuel Vadot		};
95aa1a8ff2SEmmanuel Vadot
96aa1a8ff2SEmmanuel Vadot		connector@1 {
97aa1a8ff2SEmmanuel Vadot			compatible = "usb-c-connector";
98aa1a8ff2SEmmanuel Vadot			reg = <1>;
99aa1a8ff2SEmmanuel Vadot			power-role = "dual";
100aa1a8ff2SEmmanuel Vadot			data-role = "dual";
101aa1a8ff2SEmmanuel Vadot
102aa1a8ff2SEmmanuel Vadot			ports {
103aa1a8ff2SEmmanuel Vadot				#address-cells = <1>;
104aa1a8ff2SEmmanuel Vadot				#size-cells = <0>;
105aa1a8ff2SEmmanuel Vadot				port@0 {
106aa1a8ff2SEmmanuel Vadot					reg = <0>;
107aa1a8ff2SEmmanuel Vadot
108aa1a8ff2SEmmanuel Vadot					pmic_glink_con1_hs: endpoint {
109aa1a8ff2SEmmanuel Vadot						remote-endpoint = <&usb_sec_role_switch>;
110aa1a8ff2SEmmanuel Vadot					};
111aa1a8ff2SEmmanuel Vadot				};
112aa1a8ff2SEmmanuel Vadot
113aa1a8ff2SEmmanuel Vadot				port@1 {
114aa1a8ff2SEmmanuel Vadot					reg = <1>;
115aa1a8ff2SEmmanuel Vadot
116aa1a8ff2SEmmanuel Vadot					pmic_glink_con1_ss: endpoint {
117aa1a8ff2SEmmanuel Vadot						remote-endpoint = <&usb_sec_qmpphy_out>;
118aa1a8ff2SEmmanuel Vadot					};
119aa1a8ff2SEmmanuel Vadot				};
120aa1a8ff2SEmmanuel Vadot
121aa1a8ff2SEmmanuel Vadot				port@2 {
122aa1a8ff2SEmmanuel Vadot					reg = <2>;
123aa1a8ff2SEmmanuel Vadot
124aa1a8ff2SEmmanuel Vadot					pmic_glink_con1_sbu: endpoint {
125aa1a8ff2SEmmanuel Vadot						remote-endpoint = <&usbsec_sbu_mux>;
126aa1a8ff2SEmmanuel Vadot					};
127aa1a8ff2SEmmanuel Vadot				};
128aa1a8ff2SEmmanuel Vadot			};
129aa1a8ff2SEmmanuel Vadot		};
130aa1a8ff2SEmmanuel Vadot	};
131aa1a8ff2SEmmanuel Vadot
132f126890aSEmmanuel Vadot	reserved-memory {
133f126890aSEmmanuel Vadot		rmtfs_mem: rmtfs-region@85500000 {
134f126890aSEmmanuel Vadot			compatible = "qcom,rmtfs-mem";
135f126890aSEmmanuel Vadot			reg = <0x0 0x85500000 0x0 0x200000>;
136f126890aSEmmanuel Vadot			no-map;
137f126890aSEmmanuel Vadot
138f126890aSEmmanuel Vadot			qcom,client-id = <1>;
13984943d6fSEmmanuel Vadot			qcom,vmid = <QCOM_SCM_VMID_MSS_MSA>;
140f126890aSEmmanuel Vadot		};
141f126890aSEmmanuel Vadot
142f126890aSEmmanuel Vadot		wlan_mem: wlan-region@8bc00000 {
143f126890aSEmmanuel Vadot			reg = <0x0 0x8bc00000 0x0 0x180000>;
144f126890aSEmmanuel Vadot			no-map;
145f126890aSEmmanuel Vadot		};
146f126890aSEmmanuel Vadot
147f126890aSEmmanuel Vadot		adsp_mem: adsp-region@96e00000 {
148f126890aSEmmanuel Vadot			reg = <0x0 0x96e00000 0x0 0x1c00000>;
149f126890aSEmmanuel Vadot			no-map;
150f126890aSEmmanuel Vadot		};
151f126890aSEmmanuel Vadot
152f126890aSEmmanuel Vadot		mpss_mem: mpss-region@8d800000 {
153f126890aSEmmanuel Vadot			reg = <0x0 0x8d800000 0x0 0x9600000>;
154f126890aSEmmanuel Vadot			no-map;
155f126890aSEmmanuel Vadot		};
156f126890aSEmmanuel Vadot
157f126890aSEmmanuel Vadot		gpu_mem: gpu-region@98a00000 {
158f126890aSEmmanuel Vadot			reg = <0x0 0x98a00000 0x0 0x2000>;
159f126890aSEmmanuel Vadot			no-map;
160f126890aSEmmanuel Vadot		};
161f126890aSEmmanuel Vadot
162f126890aSEmmanuel Vadot		reserved-region@9a500000 {
163f126890aSEmmanuel Vadot			reg = <0x0 0x9a500000 0x0 0x600000>;
164f126890aSEmmanuel Vadot			no-map;
165f126890aSEmmanuel Vadot		};
166f126890aSEmmanuel Vadot	};
167f126890aSEmmanuel Vadot
168f126890aSEmmanuel Vadot	vreg_nvme_0p9: nvme-0p9-regulator {
169f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
170f126890aSEmmanuel Vadot		regulator-name = "vreg_nvme_0p9";
171f126890aSEmmanuel Vadot
172f126890aSEmmanuel Vadot		regulator-min-microvolt = <900000>;
173f126890aSEmmanuel Vadot		regulator-max-microvolt = <900000>;
174f126890aSEmmanuel Vadot
175f126890aSEmmanuel Vadot		regulator-always-on;
176f126890aSEmmanuel Vadot	};
177f126890aSEmmanuel Vadot
178f126890aSEmmanuel Vadot	vreg_nvme_3p3: nvme-3p3-regulator {
179f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
180f126890aSEmmanuel Vadot		regulator-name = "vreg_nvme_3p3";
181f126890aSEmmanuel Vadot
182f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
183f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
184f126890aSEmmanuel Vadot
185f126890aSEmmanuel Vadot		gpio = <&pmc8180c_gpios 11 0>;
186f126890aSEmmanuel Vadot		enable-active-high;
187f126890aSEmmanuel Vadot
188f126890aSEmmanuel Vadot		regulator-always-on;
189f126890aSEmmanuel Vadot	};
190f126890aSEmmanuel Vadot
191f126890aSEmmanuel Vadot	vdd_kb_tp_3v3: vdd-kb-tp-3v3-regulator {
192f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
193f126890aSEmmanuel Vadot		regulator-name = "vdd_kb_tp_3v3";
194f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
195f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
196f126890aSEmmanuel Vadot
197f126890aSEmmanuel Vadot		gpio = <&tlmm 4 GPIO_ACTIVE_HIGH>;
198f126890aSEmmanuel Vadot		enable-active-high;
199f126890aSEmmanuel Vadot
200f126890aSEmmanuel Vadot		regulator-always-on;
201f126890aSEmmanuel Vadot
202f126890aSEmmanuel Vadot		pinctrl-names = "default";
203f126890aSEmmanuel Vadot		pinctrl-0 = <&kb_tp_3v3_en_active_state>;
204f126890aSEmmanuel Vadot	};
205f126890aSEmmanuel Vadot
206f126890aSEmmanuel Vadot	vph_pwr: vph-pwr-regulator {
207f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
208f126890aSEmmanuel Vadot		regulator-name = "vph_pwr";
209f126890aSEmmanuel Vadot		regulator-min-microvolt = <3700000>;
210f126890aSEmmanuel Vadot		regulator-max-microvolt = <3700000>;
211f126890aSEmmanuel Vadot	};
212f126890aSEmmanuel Vadot
213f126890aSEmmanuel Vadot	vreg_s4a_1p8: pm8150-s4 {
214f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
215f126890aSEmmanuel Vadot		regulator-name = "vreg_s4a_1p8";
216f126890aSEmmanuel Vadot
217f126890aSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
218f126890aSEmmanuel Vadot		regulator-max-microvolt = <1800000>;
219f126890aSEmmanuel Vadot
220f126890aSEmmanuel Vadot		regulator-always-on;
221f126890aSEmmanuel Vadot		regulator-boot-on;
222f126890aSEmmanuel Vadot
223f126890aSEmmanuel Vadot		vin-supply = <&vph_pwr>;
224f126890aSEmmanuel Vadot	};
225aa1a8ff2SEmmanuel Vadot
226aa1a8ff2SEmmanuel Vadot	usbprim-sbu-mux {
227aa1a8ff2SEmmanuel Vadot		compatible = "pericom,pi3usb102", "gpio-sbu-mux";
228aa1a8ff2SEmmanuel Vadot
229aa1a8ff2SEmmanuel Vadot		enable-gpios = <&tlmm 152 GPIO_ACTIVE_LOW>;
230aa1a8ff2SEmmanuel Vadot		select-gpios = <&tlmm 100 GPIO_ACTIVE_HIGH>;
231aa1a8ff2SEmmanuel Vadot
232aa1a8ff2SEmmanuel Vadot		pinctrl-names = "default";
233aa1a8ff2SEmmanuel Vadot		pinctrl-0 = <&usbprim_sbu_default>;
234aa1a8ff2SEmmanuel Vadot
235aa1a8ff2SEmmanuel Vadot		mode-switch;
236aa1a8ff2SEmmanuel Vadot		orientation-switch;
237aa1a8ff2SEmmanuel Vadot
238aa1a8ff2SEmmanuel Vadot		port {
239aa1a8ff2SEmmanuel Vadot			usbprim_sbu_mux: endpoint {
240aa1a8ff2SEmmanuel Vadot				remote-endpoint = <&pmic_glink_con0_sbu>;
241aa1a8ff2SEmmanuel Vadot			};
242aa1a8ff2SEmmanuel Vadot		};
243aa1a8ff2SEmmanuel Vadot	};
244aa1a8ff2SEmmanuel Vadot
245aa1a8ff2SEmmanuel Vadot	usbsec-sbu-mux {
246aa1a8ff2SEmmanuel Vadot		compatible = "pericom,pi3usb102", "gpio-sbu-mux";
247aa1a8ff2SEmmanuel Vadot
248aa1a8ff2SEmmanuel Vadot		enable-gpios = <&tlmm 188 GPIO_ACTIVE_LOW>;
249aa1a8ff2SEmmanuel Vadot		select-gpios = <&tlmm 187 GPIO_ACTIVE_HIGH>;
250aa1a8ff2SEmmanuel Vadot
251aa1a8ff2SEmmanuel Vadot		pinctrl-names = "default";
252aa1a8ff2SEmmanuel Vadot		pinctrl-0 = <&usbsec_sbu_default>;
253aa1a8ff2SEmmanuel Vadot
254aa1a8ff2SEmmanuel Vadot		mode-switch;
255aa1a8ff2SEmmanuel Vadot		orientation-switch;
256aa1a8ff2SEmmanuel Vadot
257aa1a8ff2SEmmanuel Vadot		port {
258aa1a8ff2SEmmanuel Vadot			usbsec_sbu_mux: endpoint {
259aa1a8ff2SEmmanuel Vadot				remote-endpoint = <&pmic_glink_con1_sbu>;
260aa1a8ff2SEmmanuel Vadot			};
261aa1a8ff2SEmmanuel Vadot		};
262aa1a8ff2SEmmanuel Vadot	};
263f126890aSEmmanuel Vadot};
264f126890aSEmmanuel Vadot
265f126890aSEmmanuel Vadot&apps_rsc {
266f126890aSEmmanuel Vadot	regulators-0 {
267f126890aSEmmanuel Vadot		compatible = "qcom,pmc8180-rpmh-regulators";
268f126890aSEmmanuel Vadot		qcom,pmic-id = "a";
269f126890aSEmmanuel Vadot
270f126890aSEmmanuel Vadot		vdd-s5-supply = <&vph_pwr>;
271f126890aSEmmanuel Vadot		vdd-l7-l12-l14-l15-supply = <&vreg_s5a_2p0>;
272f126890aSEmmanuel Vadot
273f126890aSEmmanuel Vadot		vreg_s5a_2p0: smps5 {
274f126890aSEmmanuel Vadot			regulator-min-microvolt = <2040000>;
275f126890aSEmmanuel Vadot			regulator-max-microvolt = <2100000>;
276f126890aSEmmanuel Vadot		};
277f126890aSEmmanuel Vadot
278f126890aSEmmanuel Vadot		vreg_l7a_1p8: ldo7 {
279f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
280f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
281f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
282f126890aSEmmanuel Vadot		};
283f126890aSEmmanuel Vadot
284f126890aSEmmanuel Vadot		vreg_l9a_1p3: ldo9 {
285f126890aSEmmanuel Vadot			regulator-min-microvolt = <1296000>;
286f126890aSEmmanuel Vadot			regulator-max-microvolt = <1304000>;
287f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
288f126890aSEmmanuel Vadot		};
289f126890aSEmmanuel Vadot
290f126890aSEmmanuel Vadot		vreg_l12a_1p8: ldo12 {
291f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
292f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
293f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
294f126890aSEmmanuel Vadot		};
295f126890aSEmmanuel Vadot	};
296f126890aSEmmanuel Vadot
297f126890aSEmmanuel Vadot	regulators-1 {
298f126890aSEmmanuel Vadot		compatible = "qcom,pmc8180c-rpmh-regulators";
299f126890aSEmmanuel Vadot		qcom,pmic-id = "c";
300f126890aSEmmanuel Vadot
301f126890aSEmmanuel Vadot		vdd-s6-supply = <&vph_pwr>;
302f126890aSEmmanuel Vadot		vdd-s8-supply = <&vph_pwr>;
303f126890aSEmmanuel Vadot		vdd-l2-l3-supply = <&vreg_s6c_1p35>;
304f126890aSEmmanuel Vadot		vdd-bob-supply = <&vph_pwr>;
305f126890aSEmmanuel Vadot
306f126890aSEmmanuel Vadot		vreg_s6c_1p35: smps6 {
307f126890aSEmmanuel Vadot			regulator-min-microvolt = <1350000>;
308f126890aSEmmanuel Vadot			regulator-max-microvolt = <1372000>;
309f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
310f126890aSEmmanuel Vadot		};
311f126890aSEmmanuel Vadot
312f126890aSEmmanuel Vadot		vreg_s8c_1p8: smps8 {
313f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
314f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
315f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
316f126890aSEmmanuel Vadot			regulator-always-on;
317f126890aSEmmanuel Vadot		};
318f126890aSEmmanuel Vadot
319f126890aSEmmanuel Vadot		vreg_l3c_1p2: ldo3 {
320f126890aSEmmanuel Vadot			regulator-min-microvolt = <1200000>;
321f126890aSEmmanuel Vadot			regulator-max-microvolt = <1200000>;
322f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
323f126890aSEmmanuel Vadot		};
324f126890aSEmmanuel Vadot
325f126890aSEmmanuel Vadot		vreg_l4c_3p3: ldo4 {
326f126890aSEmmanuel Vadot			regulator-min-microvolt = <3008000>;
327f126890aSEmmanuel Vadot			regulator-max-microvolt = <3008000>;
328f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
329f126890aSEmmanuel Vadot		};
330f126890aSEmmanuel Vadot
331f126890aSEmmanuel Vadot		vreg_l10c_3p3: ldo10 {
332f126890aSEmmanuel Vadot			regulator-min-microvolt = <3000000>;
333f126890aSEmmanuel Vadot			regulator-max-microvolt = <3312000>;
334f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
335f126890aSEmmanuel Vadot		};
336f126890aSEmmanuel Vadot
337f126890aSEmmanuel Vadot		vreg_l11c_3p3: ldo11 {
338f126890aSEmmanuel Vadot			regulator-min-microvolt = <3296000>;
339f126890aSEmmanuel Vadot			regulator-max-microvolt = <3304000>;
340f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
341f126890aSEmmanuel Vadot		};
342f126890aSEmmanuel Vadot
343f126890aSEmmanuel Vadot		vreg_bob: bob {
344f126890aSEmmanuel Vadot			regulator-min-microvolt = <3296000>;
345f126890aSEmmanuel Vadot			regulator-max-microvolt = <3350000>;
346f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
347f126890aSEmmanuel Vadot		};
348f126890aSEmmanuel Vadot	};
349f126890aSEmmanuel Vadot
350f126890aSEmmanuel Vadot	regulators-2 {
351f126890aSEmmanuel Vadot		compatible = "qcom,pmc8180-rpmh-regulators";
352f126890aSEmmanuel Vadot		qcom,pmic-id = "e";
353f126890aSEmmanuel Vadot
354f126890aSEmmanuel Vadot		vdd-s4-supply = <&vph_pwr>;
355f126890aSEmmanuel Vadot		vdd-s5-supply = <&vph_pwr>;
356f126890aSEmmanuel Vadot		vdd-l2-l10-supply = <&vreg_bob>;
357f126890aSEmmanuel Vadot		vdd-l3-l4-l5-l18-supply = <&vreg_s4e_0p98>;
358f126890aSEmmanuel Vadot		vdd-l7-l12-l14-l15-supply = <&vreg_s5e_2p05>;
359f126890aSEmmanuel Vadot		vdd-l13-l16-l17-supply = <&vreg_bob>;
360f126890aSEmmanuel Vadot
361f126890aSEmmanuel Vadot		vreg_s4e_0p98: smps4 {
362f126890aSEmmanuel Vadot			regulator-min-microvolt = <992000>;
363f126890aSEmmanuel Vadot			regulator-max-microvolt = <992000>;
364f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
365f126890aSEmmanuel Vadot		};
366f126890aSEmmanuel Vadot
367f126890aSEmmanuel Vadot		vreg_s5e_2p05: smps5 {
368f126890aSEmmanuel Vadot			regulator-min-microvolt = <2040000>;
369f126890aSEmmanuel Vadot			regulator-max-microvolt = <2040000>;
370f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
371f126890aSEmmanuel Vadot		};
372f126890aSEmmanuel Vadot
373f126890aSEmmanuel Vadot		vreg_l1e_0p75: ldo1 {
374f126890aSEmmanuel Vadot			regulator-min-microvolt = <752000>;
375f126890aSEmmanuel Vadot			regulator-max-microvolt = <752000>;
376f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
377f126890aSEmmanuel Vadot		};
378f126890aSEmmanuel Vadot
379f126890aSEmmanuel Vadot		vreg_l5e_0p88: ldo5 {
380f126890aSEmmanuel Vadot			regulator-min-microvolt = <880000>;
381f126890aSEmmanuel Vadot			regulator-max-microvolt = <880000>;
382f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
383f126890aSEmmanuel Vadot		};
384f126890aSEmmanuel Vadot
385f126890aSEmmanuel Vadot		vreg_l7e_1p8: ldo7 {
386f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
387f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
388f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
389*8d13bc63SEmmanuel Vadot			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
390*8d13bc63SEmmanuel Vadot						   RPMH_REGULATOR_MODE_HPM>;
391*8d13bc63SEmmanuel Vadot			regulator-allow-set-load;
392f126890aSEmmanuel Vadot		};
393f126890aSEmmanuel Vadot
394f126890aSEmmanuel Vadot		vreg_l10e_2p9: ldo10 {
395f126890aSEmmanuel Vadot			regulator-min-microvolt = <2904000>;
396f126890aSEmmanuel Vadot			regulator-max-microvolt = <2904000>;
397f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
398*8d13bc63SEmmanuel Vadot			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
399*8d13bc63SEmmanuel Vadot						   RPMH_REGULATOR_MODE_HPM>;
400*8d13bc63SEmmanuel Vadot			regulator-allow-set-load;
401f126890aSEmmanuel Vadot		};
402f126890aSEmmanuel Vadot
403f126890aSEmmanuel Vadot		vreg_l12e: ldo12 {
404f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
405f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
406f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
407f126890aSEmmanuel Vadot		};
408f126890aSEmmanuel Vadot
409f126890aSEmmanuel Vadot		vreg_l16e_3p0: ldo16 {
410f126890aSEmmanuel Vadot			regulator-min-microvolt = <3072000>;
411f126890aSEmmanuel Vadot			regulator-max-microvolt = <3072000>;
412f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
413f126890aSEmmanuel Vadot		};
414f126890aSEmmanuel Vadot	};
415f126890aSEmmanuel Vadot};
416f126890aSEmmanuel Vadot
417f126890aSEmmanuel Vadot&gpu {
418f126890aSEmmanuel Vadot	status = "okay";
419f126890aSEmmanuel Vadot
420f126890aSEmmanuel Vadot	zap-shader {
421f126890aSEmmanuel Vadot		memory-region = <&gpu_mem>;
422f126890aSEmmanuel Vadot		firmware-name = "qcom/sc8180x/qcdxkmsuc8180.mbn";
423f126890aSEmmanuel Vadot	};
424f126890aSEmmanuel Vadot};
425f126890aSEmmanuel Vadot
426f126890aSEmmanuel Vadot&i2c1 {
427f126890aSEmmanuel Vadot	clock-frequency = <100000>;
428f126890aSEmmanuel Vadot
429f126890aSEmmanuel Vadot	pinctrl-names = "default";
430f126890aSEmmanuel Vadot	pinctrl-0 = <&ts_i2c_active_state>;
431f126890aSEmmanuel Vadot
432f126890aSEmmanuel Vadot	status = "okay";
433f126890aSEmmanuel Vadot
434f126890aSEmmanuel Vadot	touchscreen@10 {
435f126890aSEmmanuel Vadot		compatible = "hid-over-i2c";
436f126890aSEmmanuel Vadot		reg = <0x10>;
437f126890aSEmmanuel Vadot		hid-descr-addr = <0x1>;
438f126890aSEmmanuel Vadot
439f126890aSEmmanuel Vadot		vdd-supply = <&vreg_l4c_3p3>;
440f126890aSEmmanuel Vadot		vddl-supply = <&vreg_l12e>;
441f126890aSEmmanuel Vadot
442f126890aSEmmanuel Vadot		post-power-on-delay-ms = <20>;
443f126890aSEmmanuel Vadot
444f126890aSEmmanuel Vadot		interrupts-extended = <&tlmm 122 IRQ_TYPE_LEVEL_LOW>;
445f126890aSEmmanuel Vadot
446f126890aSEmmanuel Vadot		pinctrl-names = "default";
447f126890aSEmmanuel Vadot		pinctrl-0 = <&ts_active_state>;
448f126890aSEmmanuel Vadot	};
449f126890aSEmmanuel Vadot};
450f126890aSEmmanuel Vadot
451f126890aSEmmanuel Vadot&i2c7 {
452f126890aSEmmanuel Vadot	clock-frequency = <100000>;
453f126890aSEmmanuel Vadot
454f126890aSEmmanuel Vadot	pinctrl-names = "default";
455f126890aSEmmanuel Vadot	pinctrl-0 = <&aux_i2c_active_state>;
456f126890aSEmmanuel Vadot
457f126890aSEmmanuel Vadot	status = "okay";
458f126890aSEmmanuel Vadot
459f126890aSEmmanuel Vadot	touchpad@15 {
460f126890aSEmmanuel Vadot		compatible = "hid-over-i2c";
461f126890aSEmmanuel Vadot		reg = <0x15>;
462f126890aSEmmanuel Vadot		hid-descr-addr = <0x1>;
463f126890aSEmmanuel Vadot
464f126890aSEmmanuel Vadot		interrupts-extended = <&tlmm 24 IRQ_TYPE_LEVEL_LOW>;
465f126890aSEmmanuel Vadot
466f126890aSEmmanuel Vadot		pinctrl-names = "default";
467f126890aSEmmanuel Vadot		pinctrl-0 = <&tp_int_active_state>;
468f126890aSEmmanuel Vadot
469f126890aSEmmanuel Vadot		vdd-supply = <&vdd_kb_tp_3v3>;
470f126890aSEmmanuel Vadot	};
471f126890aSEmmanuel Vadot
472f126890aSEmmanuel Vadot	keyboard@3a {
473f126890aSEmmanuel Vadot		compatible = "hid-over-i2c";
474f126890aSEmmanuel Vadot		reg = <0x3a>;
475f126890aSEmmanuel Vadot		hid-descr-addr = <0x1>;
476f126890aSEmmanuel Vadot		interrupts-extended = <&tlmm 37 IRQ_TYPE_LEVEL_LOW>;
477f126890aSEmmanuel Vadot
478f126890aSEmmanuel Vadot		pinctrl-names = "default";
479f126890aSEmmanuel Vadot		pinctrl-0 = <&kb_int_active_state>;
480f126890aSEmmanuel Vadot
481f126890aSEmmanuel Vadot		vdd-supply = <&vdd_kb_tp_3v3>;
482f126890aSEmmanuel Vadot	};
483f126890aSEmmanuel Vadot};
484f126890aSEmmanuel Vadot
485f126890aSEmmanuel Vadot&mdss {
486f126890aSEmmanuel Vadot	status = "okay";
487f126890aSEmmanuel Vadot};
488f126890aSEmmanuel Vadot
489aa1a8ff2SEmmanuel Vadot&mdss_dp0 {
490aa1a8ff2SEmmanuel Vadot	status = "okay";
491aa1a8ff2SEmmanuel Vadot};
492aa1a8ff2SEmmanuel Vadot
493aa1a8ff2SEmmanuel Vadot&mdss_dp0_out {
494aa1a8ff2SEmmanuel Vadot	data-lanes = <0 1>;
495aa1a8ff2SEmmanuel Vadot	remote-endpoint = <&usb_prim_qmpphy_dp_in>;
496aa1a8ff2SEmmanuel Vadot};
497aa1a8ff2SEmmanuel Vadot
498aa1a8ff2SEmmanuel Vadot&mdss_dp1 {
499aa1a8ff2SEmmanuel Vadot	status = "okay";
500aa1a8ff2SEmmanuel Vadot};
501aa1a8ff2SEmmanuel Vadot
502aa1a8ff2SEmmanuel Vadot&mdss_dp1_out {
503aa1a8ff2SEmmanuel Vadot	data-lanes = <0 1>;
504aa1a8ff2SEmmanuel Vadot	remote-endpoint = <&usb_sec_qmpphy_dp_in>;
505aa1a8ff2SEmmanuel Vadot};
506aa1a8ff2SEmmanuel Vadot
507f126890aSEmmanuel Vadot&mdss_edp {
508f126890aSEmmanuel Vadot	data-lanes = <0 1 2 3>;
509f126890aSEmmanuel Vadot
510f126890aSEmmanuel Vadot	pinctrl-names = "default";
511f126890aSEmmanuel Vadot	pinctrl-0 = <&edp_hpd_active>;
512f126890aSEmmanuel Vadot
513f126890aSEmmanuel Vadot	status = "okay";
514f126890aSEmmanuel Vadot
515f126890aSEmmanuel Vadot	aux-bus {
516f126890aSEmmanuel Vadot		panel {
517f126890aSEmmanuel Vadot			compatible = "edp-panel";
518f126890aSEmmanuel Vadot
519f126890aSEmmanuel Vadot			backlight = <&backlight>;
520f126890aSEmmanuel Vadot
521f126890aSEmmanuel Vadot			port {
522f126890aSEmmanuel Vadot				auo_b133han05_in: endpoint {
523f126890aSEmmanuel Vadot					remote-endpoint = <&mdss_edp_out>;
524f126890aSEmmanuel Vadot				};
525f126890aSEmmanuel Vadot			};
526f126890aSEmmanuel Vadot		};
527f126890aSEmmanuel Vadot	};
528f126890aSEmmanuel Vadot
529f126890aSEmmanuel Vadot	ports {
530f126890aSEmmanuel Vadot		port@1 {
531f126890aSEmmanuel Vadot			reg = <1>;
532f126890aSEmmanuel Vadot			mdss_edp_out: endpoint {
533f126890aSEmmanuel Vadot				remote-endpoint = <&auo_b133han05_in>;
534f126890aSEmmanuel Vadot			};
535f126890aSEmmanuel Vadot		};
536f126890aSEmmanuel Vadot	};
537f126890aSEmmanuel Vadot};
538f126890aSEmmanuel Vadot
539f126890aSEmmanuel Vadot&pcie1 {
540*8d13bc63SEmmanuel Vadot	perst-gpios = <&tlmm 175 GPIO_ACTIVE_LOW>;
541*8d13bc63SEmmanuel Vadot	wake-gpios = <&tlmm 177 GPIO_ACTIVE_HIGH>;
542f126890aSEmmanuel Vadot	pinctrl-names = "default";
543f126890aSEmmanuel Vadot	pinctrl-0 = <&pcie2_default_state>;
544f126890aSEmmanuel Vadot
545f126890aSEmmanuel Vadot	status = "okay";
546f126890aSEmmanuel Vadot};
547f126890aSEmmanuel Vadot
548f126890aSEmmanuel Vadot&pcie1_phy {
549f126890aSEmmanuel Vadot	vdda-phy-supply = <&vreg_l5e_0p88>;
550f126890aSEmmanuel Vadot	vdda-pll-supply = <&vreg_l3c_1p2>;
551f126890aSEmmanuel Vadot
552f126890aSEmmanuel Vadot	status = "okay";
553f126890aSEmmanuel Vadot};
554f126890aSEmmanuel Vadot
555f126890aSEmmanuel Vadot&pmc8180c_lpg {
556f126890aSEmmanuel Vadot	status = "okay";
557f126890aSEmmanuel Vadot};
558f126890aSEmmanuel Vadot
559f126890aSEmmanuel Vadot&qupv3_id_0 {
560f126890aSEmmanuel Vadot	status = "okay";
561f126890aSEmmanuel Vadot};
562f126890aSEmmanuel Vadot
563f126890aSEmmanuel Vadot&qupv3_id_1 {
564f126890aSEmmanuel Vadot	status = "okay";
565f126890aSEmmanuel Vadot};
566f126890aSEmmanuel Vadot
567f126890aSEmmanuel Vadot&qupv3_id_2 {
568f126890aSEmmanuel Vadot	status = "okay";
569f126890aSEmmanuel Vadot};
570f126890aSEmmanuel Vadot
571f126890aSEmmanuel Vadot&remoteproc_adsp {
572f126890aSEmmanuel Vadot	memory-region = <&adsp_mem>;
573f126890aSEmmanuel Vadot	firmware-name = "qcom/sc8180x/qcadsp8180.mbn";
574f126890aSEmmanuel Vadot
575f126890aSEmmanuel Vadot	status = "okay";
576f126890aSEmmanuel Vadot};
577f126890aSEmmanuel Vadot
578f126890aSEmmanuel Vadot&remoteproc_mpss {
579f126890aSEmmanuel Vadot	memory-region = <&mpss_mem>;
580f126890aSEmmanuel Vadot	firmware-name = "qcom/sc8180x/qcmpss8180.mbn";
581f126890aSEmmanuel Vadot
582f126890aSEmmanuel Vadot	status = "okay";
583f126890aSEmmanuel Vadot};
584f126890aSEmmanuel Vadot
585f126890aSEmmanuel Vadot&uart12 {
586f126890aSEmmanuel Vadot	compatible = "qcom,geni-debug-uart";
587f126890aSEmmanuel Vadot	status = "okay";
588f126890aSEmmanuel Vadot};
589f126890aSEmmanuel Vadot
590f126890aSEmmanuel Vadot&uart13 {
591f126890aSEmmanuel Vadot	pinctrl-names = "default";
592f126890aSEmmanuel Vadot	pinctrl-0 = <&uart13_state>;
593f126890aSEmmanuel Vadot
594f126890aSEmmanuel Vadot	status = "okay";
595f126890aSEmmanuel Vadot
596f126890aSEmmanuel Vadot	bluetooth {
597f126890aSEmmanuel Vadot		compatible = "qcom,wcn3998-bt";
598f126890aSEmmanuel Vadot
599f126890aSEmmanuel Vadot		vddio-supply = <&vreg_s4a_1p8>;
600f126890aSEmmanuel Vadot		vddxo-supply = <&vreg_l7a_1p8>;
601f126890aSEmmanuel Vadot		vddrf-supply = <&vreg_l9a_1p3>;
602f126890aSEmmanuel Vadot		vddch0-supply = <&vreg_l11c_3p3>;
603f126890aSEmmanuel Vadot		max-speed = <3200000>;
604f126890aSEmmanuel Vadot	};
605f126890aSEmmanuel Vadot};
606f126890aSEmmanuel Vadot
607f126890aSEmmanuel Vadot&ufs_mem_hc {
608f126890aSEmmanuel Vadot	reset-gpios = <&tlmm 190 GPIO_ACTIVE_LOW>;
609f126890aSEmmanuel Vadot
610f126890aSEmmanuel Vadot	vcc-supply = <&vreg_l10e_2p9>;
611f126890aSEmmanuel Vadot	vcc-max-microamp = <155000>;
612f126890aSEmmanuel Vadot
613f126890aSEmmanuel Vadot	vccq2-supply = <&vreg_l7e_1p8>;
614f126890aSEmmanuel Vadot	vccq2-max-microamp = <425000>;
615f126890aSEmmanuel Vadot
616f126890aSEmmanuel Vadot	status = "okay";
617f126890aSEmmanuel Vadot};
618f126890aSEmmanuel Vadot
619f126890aSEmmanuel Vadot&ufs_mem_phy {
620f126890aSEmmanuel Vadot	vdda-phy-supply = <&vreg_l5e_0p88>;
621f126890aSEmmanuel Vadot	vdda-pll-supply = <&vreg_l3c_1p2>;
622f126890aSEmmanuel Vadot
623f126890aSEmmanuel Vadot	status = "okay";
624f126890aSEmmanuel Vadot};
625f126890aSEmmanuel Vadot
626f126890aSEmmanuel Vadot&usb_prim_hsphy {
627f126890aSEmmanuel Vadot	vdda-pll-supply = <&vreg_l5e_0p88>;
628f126890aSEmmanuel Vadot	vdda18-supply = <&vreg_l12a_1p8>;
629f126890aSEmmanuel Vadot	vdda33-supply = <&vreg_l16e_3p0>;
630f126890aSEmmanuel Vadot
631f126890aSEmmanuel Vadot	status = "okay";
632f126890aSEmmanuel Vadot};
633f126890aSEmmanuel Vadot
634f126890aSEmmanuel Vadot&usb_prim_qmpphy {
635f126890aSEmmanuel Vadot	vdda-phy-supply = <&vreg_l3c_1p2>;
636f126890aSEmmanuel Vadot	vdda-pll-supply = <&vreg_l5e_0p88>;
637f126890aSEmmanuel Vadot
638aa1a8ff2SEmmanuel Vadot	orientation-switch;
639aa1a8ff2SEmmanuel Vadot
640f126890aSEmmanuel Vadot	status = "okay";
641f126890aSEmmanuel Vadot};
642f126890aSEmmanuel Vadot
643f126890aSEmmanuel Vadot&usb_prim {
644f126890aSEmmanuel Vadot	status = "okay";
645f126890aSEmmanuel Vadot};
646f126890aSEmmanuel Vadot
647f126890aSEmmanuel Vadot&usb_prim_dwc3 {
648f126890aSEmmanuel Vadot	dr_mode = "host";
649f126890aSEmmanuel Vadot};
650f126890aSEmmanuel Vadot
651aa1a8ff2SEmmanuel Vadot&usb_prim_qmpphy_dp_in {
652aa1a8ff2SEmmanuel Vadot	remote-endpoint = <&mdss_dp0_out>;
653aa1a8ff2SEmmanuel Vadot};
654aa1a8ff2SEmmanuel Vadot
655aa1a8ff2SEmmanuel Vadot&usb_prim_qmpphy_out {
656aa1a8ff2SEmmanuel Vadot	remote-endpoint = <&pmic_glink_con0_ss>;
657aa1a8ff2SEmmanuel Vadot};
658aa1a8ff2SEmmanuel Vadot
659aa1a8ff2SEmmanuel Vadot&usb_prim_role_switch {
660aa1a8ff2SEmmanuel Vadot	remote-endpoint = <&pmic_glink_con0_hs>;
661aa1a8ff2SEmmanuel Vadot};
662aa1a8ff2SEmmanuel Vadot
663f126890aSEmmanuel Vadot&usb_sec_hsphy {
664f126890aSEmmanuel Vadot	vdda-pll-supply = <&vreg_l5e_0p88>;
665f126890aSEmmanuel Vadot	vdda18-supply = <&vreg_l12a_1p8>;
666f126890aSEmmanuel Vadot	vdda33-supply = <&vreg_l16e_3p0>;
667f126890aSEmmanuel Vadot
668f126890aSEmmanuel Vadot	status = "okay";
669f126890aSEmmanuel Vadot};
670f126890aSEmmanuel Vadot
671f126890aSEmmanuel Vadot&usb_sec_qmpphy {
672f126890aSEmmanuel Vadot	vdda-phy-supply = <&vreg_l3c_1p2>;
673f126890aSEmmanuel Vadot	vdda-pll-supply = <&vreg_l5e_0p88>;
674f126890aSEmmanuel Vadot
675aa1a8ff2SEmmanuel Vadot	orientation-switch;
676aa1a8ff2SEmmanuel Vadot
677f126890aSEmmanuel Vadot	status = "okay";
678f126890aSEmmanuel Vadot};
679f126890aSEmmanuel Vadot
680aa1a8ff2SEmmanuel Vadot&usb_sec_qmpphy_dp_in {
681aa1a8ff2SEmmanuel Vadot	remote-endpoint = <&mdss_dp1_out>;
682aa1a8ff2SEmmanuel Vadot};
683aa1a8ff2SEmmanuel Vadot
684aa1a8ff2SEmmanuel Vadot&usb_sec_qmpphy_out {
685aa1a8ff2SEmmanuel Vadot	remote-endpoint = <&pmic_glink_con1_ss>;
686aa1a8ff2SEmmanuel Vadot};
687aa1a8ff2SEmmanuel Vadot
688aa1a8ff2SEmmanuel Vadot&usb_sec_role_switch {
689aa1a8ff2SEmmanuel Vadot	remote-endpoint = <&pmic_glink_con1_hs>;
690aa1a8ff2SEmmanuel Vadot};
691aa1a8ff2SEmmanuel Vadot
692f126890aSEmmanuel Vadot&usb_sec {
693f126890aSEmmanuel Vadot	status = "okay";
694f126890aSEmmanuel Vadot};
695f126890aSEmmanuel Vadot
696f126890aSEmmanuel Vadot&usb_sec_dwc3 {
697f126890aSEmmanuel Vadot	dr_mode = "host";
698f126890aSEmmanuel Vadot};
699f126890aSEmmanuel Vadot
700f126890aSEmmanuel Vadot&wifi {
701f126890aSEmmanuel Vadot	memory-region = <&wlan_mem>;
702f126890aSEmmanuel Vadot
703f126890aSEmmanuel Vadot	vdd-0.8-cx-mx-supply = <&vreg_l1e_0p75>;
704f126890aSEmmanuel Vadot	vdd-1.8-xo-supply = <&vreg_l7a_1p8>;
705f126890aSEmmanuel Vadot	vdd-1.3-rfa-supply = <&vreg_l9a_1p3>;
706f126890aSEmmanuel Vadot	vdd-3.3-ch0-supply = <&vreg_l11c_3p3>;
707f126890aSEmmanuel Vadot	vdd-3.3-ch1-supply = <&vreg_l10c_3p3>;
708f126890aSEmmanuel Vadot
709f126890aSEmmanuel Vadot	status = "okay";
710f126890aSEmmanuel Vadot};
711f126890aSEmmanuel Vadot
712f126890aSEmmanuel Vadot&xo_board_clk {
713f126890aSEmmanuel Vadot	clock-frequency = <38400000>;
714f126890aSEmmanuel Vadot};
715f126890aSEmmanuel Vadot
716f126890aSEmmanuel Vadot/* PINCTRL */
717f126890aSEmmanuel Vadot
718f126890aSEmmanuel Vadot&pmc8180c_gpios {
719f126890aSEmmanuel Vadot	bl_pwm_default: bl-pwm-default-state {
720f126890aSEmmanuel Vadot		en-pins {
721f126890aSEmmanuel Vadot			pins = "gpio8";
722f126890aSEmmanuel Vadot			function = "normal";
723f126890aSEmmanuel Vadot		};
724f126890aSEmmanuel Vadot
725f126890aSEmmanuel Vadot		pwm-pins {
726f126890aSEmmanuel Vadot			pins = "gpio10";
727f126890aSEmmanuel Vadot			function = "func1";
728f126890aSEmmanuel Vadot		};
729f126890aSEmmanuel Vadot	};
730f126890aSEmmanuel Vadot};
731f126890aSEmmanuel Vadot
732f126890aSEmmanuel Vadot&tlmm {
733f126890aSEmmanuel Vadot	gpio-reserved-ranges = <0 4>, <47 4>, <126 4>;
734f126890aSEmmanuel Vadot
735f126890aSEmmanuel Vadot	aux_i2c_active_state: aux-i2c-active-state {
736f126890aSEmmanuel Vadot		pins = "gpio98", "gpio99";
737f126890aSEmmanuel Vadot		function = "qup7";
738f126890aSEmmanuel Vadot
739f126890aSEmmanuel Vadot		bias-disable;
740f126890aSEmmanuel Vadot		drive-strength = <16>;
741f126890aSEmmanuel Vadot	};
742f126890aSEmmanuel Vadot
743f126890aSEmmanuel Vadot	edp_hpd_active: epd-hpd-active-state {
744f126890aSEmmanuel Vadot		pins = "gpio10";
745f126890aSEmmanuel Vadot		function = "edp_hot";
746f126890aSEmmanuel Vadot	};
747f126890aSEmmanuel Vadot
748f126890aSEmmanuel Vadot	hall_int_active_state: hall-int-active-state {
749f126890aSEmmanuel Vadot		pins = "gpio121";
750f126890aSEmmanuel Vadot		function = "gpio";
751f126890aSEmmanuel Vadot
752f126890aSEmmanuel Vadot		bias-disable;
753f126890aSEmmanuel Vadot	};
754f126890aSEmmanuel Vadot
755f126890aSEmmanuel Vadot	kb_int_active_state: kb-int-active-state {
756f126890aSEmmanuel Vadot		int-n-pins {
757f126890aSEmmanuel Vadot			pins = "gpio37";
758f126890aSEmmanuel Vadot			function = "gpio";
759f126890aSEmmanuel Vadot
760f126890aSEmmanuel Vadot			bias-pull-up;
761f126890aSEmmanuel Vadot		};
762f126890aSEmmanuel Vadot
763f126890aSEmmanuel Vadot		kp-disable-pins {
764f126890aSEmmanuel Vadot			pins = "gpio135";
765f126890aSEmmanuel Vadot			function = "gpio";
766f126890aSEmmanuel Vadot
767f126890aSEmmanuel Vadot			output-high;
768f126890aSEmmanuel Vadot		};
769f126890aSEmmanuel Vadot	};
770f126890aSEmmanuel Vadot
771f126890aSEmmanuel Vadot	kb_tp_3v3_en_active_state: kb-tp-3v3-en-active-state {
772f126890aSEmmanuel Vadot		pins = "gpio4";
773f126890aSEmmanuel Vadot		function = "gpio";
774f126890aSEmmanuel Vadot
775f126890aSEmmanuel Vadot		bias-disable;
776f126890aSEmmanuel Vadot	};
777f126890aSEmmanuel Vadot
778f126890aSEmmanuel Vadot	pcie2_default_state: pcie2-default-state {
779f126890aSEmmanuel Vadot		clkreq-pins {
780f126890aSEmmanuel Vadot			pins = "gpio176";
781f126890aSEmmanuel Vadot			function = "pci_e2";
782f126890aSEmmanuel Vadot			bias-pull-up;
783f126890aSEmmanuel Vadot		};
784f126890aSEmmanuel Vadot
785f126890aSEmmanuel Vadot		reset-n-pins {
786f126890aSEmmanuel Vadot			pins = "gpio175";
787f126890aSEmmanuel Vadot			function = "gpio";
788f126890aSEmmanuel Vadot
789f126890aSEmmanuel Vadot			drive-strength = <2>;
790f126890aSEmmanuel Vadot			output-low;
791f126890aSEmmanuel Vadot			bias-pull-down;
792f126890aSEmmanuel Vadot		};
793f126890aSEmmanuel Vadot
794f126890aSEmmanuel Vadot		wake-n-pins {
795f126890aSEmmanuel Vadot			pins = "gpio177";
796f126890aSEmmanuel Vadot			function = "gpio";
797f126890aSEmmanuel Vadot
798f126890aSEmmanuel Vadot			drive-strength = <2>;
799f126890aSEmmanuel Vadot			bias-pull-up;
800f126890aSEmmanuel Vadot		};
801f126890aSEmmanuel Vadot	};
802f126890aSEmmanuel Vadot
803aa1a8ff2SEmmanuel Vadot	usbprim_sbu_default: usbprim-sbu-state {
804aa1a8ff2SEmmanuel Vadot		oe-n-pins {
805aa1a8ff2SEmmanuel Vadot			pins = "gpio152";
806aa1a8ff2SEmmanuel Vadot			function = "gpio";
807aa1a8ff2SEmmanuel Vadot			bias-disable;
808aa1a8ff2SEmmanuel Vadot			drive-strength = <16>;
809aa1a8ff2SEmmanuel Vadot			output-high;
810aa1a8ff2SEmmanuel Vadot		};
811aa1a8ff2SEmmanuel Vadot
812aa1a8ff2SEmmanuel Vadot		sel-pins {
813aa1a8ff2SEmmanuel Vadot			pins = "gpio100";
814aa1a8ff2SEmmanuel Vadot			function = "gpio";
815aa1a8ff2SEmmanuel Vadot			bias-disable;
816aa1a8ff2SEmmanuel Vadot			drive-strength = <16>;
817aa1a8ff2SEmmanuel Vadot		};
818aa1a8ff2SEmmanuel Vadot	};
819aa1a8ff2SEmmanuel Vadot
820aa1a8ff2SEmmanuel Vadot	usbsec_sbu_default: usbsec-sbu-state {
821aa1a8ff2SEmmanuel Vadot		oe-n-pins {
822aa1a8ff2SEmmanuel Vadot			pins = "gpio188";
823aa1a8ff2SEmmanuel Vadot			function = "gpio";
824aa1a8ff2SEmmanuel Vadot			bias-disable;
825aa1a8ff2SEmmanuel Vadot			drive-strength = <16>;
826aa1a8ff2SEmmanuel Vadot			output-high;
827aa1a8ff2SEmmanuel Vadot		};
828aa1a8ff2SEmmanuel Vadot
829aa1a8ff2SEmmanuel Vadot		sel-pins {
830aa1a8ff2SEmmanuel Vadot			pins = "gpio187";
831aa1a8ff2SEmmanuel Vadot			function = "gpio";
832aa1a8ff2SEmmanuel Vadot			bias-disable;
833aa1a8ff2SEmmanuel Vadot			drive-strength = <16>;
834aa1a8ff2SEmmanuel Vadot		};
835aa1a8ff2SEmmanuel Vadot	};
836aa1a8ff2SEmmanuel Vadot
837f126890aSEmmanuel Vadot	tp_int_active_state: tp-int-active-state {
838f126890aSEmmanuel Vadot		tp-int-pins {
839f126890aSEmmanuel Vadot			pins = "gpio24";
840f126890aSEmmanuel Vadot			function = "gpio";
841f126890aSEmmanuel Vadot
842f126890aSEmmanuel Vadot			bias-disable;
843f126890aSEmmanuel Vadot		};
844f126890aSEmmanuel Vadot
845f126890aSEmmanuel Vadot		tp-close-n-pins {
846f126890aSEmmanuel Vadot			pins = "gpio116";
847f126890aSEmmanuel Vadot			function = "gpio";
848f126890aSEmmanuel Vadot
849f126890aSEmmanuel Vadot			bias-disable;
850f126890aSEmmanuel Vadot		};
851f126890aSEmmanuel Vadot	};
852f126890aSEmmanuel Vadot
853f126890aSEmmanuel Vadot	ts_active_state: ts-active-state {
854f126890aSEmmanuel Vadot		int-n-pins {
855f126890aSEmmanuel Vadot			pins = "gpio122";
856f126890aSEmmanuel Vadot			function = "gpio";
857f126890aSEmmanuel Vadot
858f126890aSEmmanuel Vadot			bias-disable;
859f126890aSEmmanuel Vadot		};
860f126890aSEmmanuel Vadot
861f126890aSEmmanuel Vadot		reset-n-pins {
862f126890aSEmmanuel Vadot			pins = "gpio54";
863f126890aSEmmanuel Vadot			function = "gpio";
864f126890aSEmmanuel Vadot
865f126890aSEmmanuel Vadot			output-high;
866f126890aSEmmanuel Vadot		};
867f126890aSEmmanuel Vadot	};
868f126890aSEmmanuel Vadot
869f126890aSEmmanuel Vadot	ts_i2c_active_state: ts-i2c-active-state {
870f126890aSEmmanuel Vadot		pins = "gpio114", "gpio115";
871f126890aSEmmanuel Vadot		function = "qup1";
872f126890aSEmmanuel Vadot
873f126890aSEmmanuel Vadot		/* External pull up */
874f126890aSEmmanuel Vadot		bias-disable;
875f126890aSEmmanuel Vadot		drive-strength = <2>;
876f126890aSEmmanuel Vadot	};
877f126890aSEmmanuel Vadot
878f126890aSEmmanuel Vadot	uart13_state: uart13-state {
879f126890aSEmmanuel Vadot		cts-pins {
880f126890aSEmmanuel Vadot			pins = "gpio43";
881f126890aSEmmanuel Vadot			function = "qup13";
882f126890aSEmmanuel Vadot			bias-pull-down;
883f126890aSEmmanuel Vadot		};
884f126890aSEmmanuel Vadot
885f126890aSEmmanuel Vadot		rts-tx-pins {
886f126890aSEmmanuel Vadot			pins = "gpio44", "gpio45";
887f126890aSEmmanuel Vadot			function = "qup13";
888f126890aSEmmanuel Vadot			drive-strength = <2>;
889f126890aSEmmanuel Vadot			bias-disable;
890f126890aSEmmanuel Vadot		};
891f126890aSEmmanuel Vadot
892f126890aSEmmanuel Vadot		rx-pins {
893f126890aSEmmanuel Vadot			pins = "gpio46";
894f126890aSEmmanuel Vadot			function = "qup13";
895f126890aSEmmanuel Vadot			bias-pull-up;
896f126890aSEmmanuel Vadot		};
897f126890aSEmmanuel Vadot	};
898f126890aSEmmanuel Vadot};
899