xref: /freebsd-src/sys/contrib/device-tree/src/arm64/qcom/sc8180x-primus.dts (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
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 {
468d13bc63SEmmanuel 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 {
740e8011faSEmmanuel Vadot						remote-endpoint = <&usb_prim_dwc3_hs>;
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 {
1090e8011faSEmmanuel Vadot						remote-endpoint = <&usb_sec_dwc3_hs>;
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
226*b2d2a78aSEmmanuel Vadot	vreg_usb2_host_en: regulator-usb2-host-en {
227*b2d2a78aSEmmanuel Vadot		compatible = "regulator-fixed";
228*b2d2a78aSEmmanuel Vadot		regulator-name = "usb2_host_en";
229*b2d2a78aSEmmanuel Vadot
230*b2d2a78aSEmmanuel Vadot		regulator-min-microvolt = <5000000>;
231*b2d2a78aSEmmanuel Vadot		regulator-max-microvolt = <5000000>;
232*b2d2a78aSEmmanuel Vadot
233*b2d2a78aSEmmanuel Vadot		gpio = <&pmc8180_1_gpios 9 GPIO_ACTIVE_HIGH>;
234*b2d2a78aSEmmanuel Vadot		enable-active-high;
235*b2d2a78aSEmmanuel Vadot
236*b2d2a78aSEmmanuel Vadot		regulator-always-on;
237*b2d2a78aSEmmanuel Vadot	};
238*b2d2a78aSEmmanuel Vadot
239*b2d2a78aSEmmanuel Vadot	vreg_usb3_host_en: regulator-usb3-host-en {
240*b2d2a78aSEmmanuel Vadot		compatible = "regulator-fixed";
241*b2d2a78aSEmmanuel Vadot		regulator-name = "usb3_host_en";
242*b2d2a78aSEmmanuel Vadot
243*b2d2a78aSEmmanuel Vadot		regulator-min-microvolt = <5000000>;
244*b2d2a78aSEmmanuel Vadot		regulator-max-microvolt = <5000000>;
245*b2d2a78aSEmmanuel Vadot
246*b2d2a78aSEmmanuel Vadot		gpio = <&pmc8180_2_gpios 9 GPIO_ACTIVE_HIGH>;
247*b2d2a78aSEmmanuel Vadot		enable-active-high;
248*b2d2a78aSEmmanuel Vadot
249*b2d2a78aSEmmanuel Vadot		regulator-always-on;
250*b2d2a78aSEmmanuel Vadot	};
251*b2d2a78aSEmmanuel Vadot
252aa1a8ff2SEmmanuel Vadot	usbprim-sbu-mux {
253aa1a8ff2SEmmanuel Vadot		compatible = "pericom,pi3usb102", "gpio-sbu-mux";
254aa1a8ff2SEmmanuel Vadot
255aa1a8ff2SEmmanuel Vadot		enable-gpios = <&tlmm 152 GPIO_ACTIVE_LOW>;
256aa1a8ff2SEmmanuel Vadot		select-gpios = <&tlmm 100 GPIO_ACTIVE_HIGH>;
257aa1a8ff2SEmmanuel Vadot
258aa1a8ff2SEmmanuel Vadot		pinctrl-names = "default";
259aa1a8ff2SEmmanuel Vadot		pinctrl-0 = <&usbprim_sbu_default>;
260aa1a8ff2SEmmanuel Vadot
261aa1a8ff2SEmmanuel Vadot		mode-switch;
262aa1a8ff2SEmmanuel Vadot		orientation-switch;
263aa1a8ff2SEmmanuel Vadot
264aa1a8ff2SEmmanuel Vadot		port {
265aa1a8ff2SEmmanuel Vadot			usbprim_sbu_mux: endpoint {
266aa1a8ff2SEmmanuel Vadot				remote-endpoint = <&pmic_glink_con0_sbu>;
267aa1a8ff2SEmmanuel Vadot			};
268aa1a8ff2SEmmanuel Vadot		};
269aa1a8ff2SEmmanuel Vadot	};
270aa1a8ff2SEmmanuel Vadot
271aa1a8ff2SEmmanuel Vadot	usbsec-sbu-mux {
272aa1a8ff2SEmmanuel Vadot		compatible = "pericom,pi3usb102", "gpio-sbu-mux";
273aa1a8ff2SEmmanuel Vadot
274aa1a8ff2SEmmanuel Vadot		enable-gpios = <&tlmm 188 GPIO_ACTIVE_LOW>;
275aa1a8ff2SEmmanuel Vadot		select-gpios = <&tlmm 187 GPIO_ACTIVE_HIGH>;
276aa1a8ff2SEmmanuel Vadot
277aa1a8ff2SEmmanuel Vadot		pinctrl-names = "default";
278aa1a8ff2SEmmanuel Vadot		pinctrl-0 = <&usbsec_sbu_default>;
279aa1a8ff2SEmmanuel Vadot
280aa1a8ff2SEmmanuel Vadot		mode-switch;
281aa1a8ff2SEmmanuel Vadot		orientation-switch;
282aa1a8ff2SEmmanuel Vadot
283aa1a8ff2SEmmanuel Vadot		port {
284aa1a8ff2SEmmanuel Vadot			usbsec_sbu_mux: endpoint {
285aa1a8ff2SEmmanuel Vadot				remote-endpoint = <&pmic_glink_con1_sbu>;
286aa1a8ff2SEmmanuel Vadot			};
287aa1a8ff2SEmmanuel Vadot		};
288aa1a8ff2SEmmanuel Vadot	};
289f126890aSEmmanuel Vadot};
290f126890aSEmmanuel Vadot
291f126890aSEmmanuel Vadot&apps_rsc {
292f126890aSEmmanuel Vadot	regulators-0 {
293f126890aSEmmanuel Vadot		compatible = "qcom,pmc8180-rpmh-regulators";
294f126890aSEmmanuel Vadot		qcom,pmic-id = "a";
295f126890aSEmmanuel Vadot
296f126890aSEmmanuel Vadot		vdd-s5-supply = <&vph_pwr>;
297f126890aSEmmanuel Vadot		vdd-l7-l12-l14-l15-supply = <&vreg_s5a_2p0>;
298f126890aSEmmanuel Vadot
299f126890aSEmmanuel Vadot		vreg_s5a_2p0: smps5 {
300f126890aSEmmanuel Vadot			regulator-min-microvolt = <2040000>;
301f126890aSEmmanuel Vadot			regulator-max-microvolt = <2100000>;
302f126890aSEmmanuel Vadot		};
303f126890aSEmmanuel Vadot
304f126890aSEmmanuel Vadot		vreg_l7a_1p8: ldo7 {
305f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
306f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
307f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
308f126890aSEmmanuel Vadot		};
309f126890aSEmmanuel Vadot
310f126890aSEmmanuel Vadot		vreg_l9a_1p3: ldo9 {
311f126890aSEmmanuel Vadot			regulator-min-microvolt = <1296000>;
312f126890aSEmmanuel Vadot			regulator-max-microvolt = <1304000>;
313f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
314f126890aSEmmanuel Vadot		};
315f126890aSEmmanuel Vadot
316f126890aSEmmanuel Vadot		vreg_l12a_1p8: ldo12 {
317f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
318f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
319f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
320f126890aSEmmanuel Vadot		};
321f126890aSEmmanuel Vadot	};
322f126890aSEmmanuel Vadot
323f126890aSEmmanuel Vadot	regulators-1 {
324f126890aSEmmanuel Vadot		compatible = "qcom,pmc8180c-rpmh-regulators";
325f126890aSEmmanuel Vadot		qcom,pmic-id = "c";
326f126890aSEmmanuel Vadot
327f126890aSEmmanuel Vadot		vdd-s6-supply = <&vph_pwr>;
328f126890aSEmmanuel Vadot		vdd-s8-supply = <&vph_pwr>;
329f126890aSEmmanuel Vadot		vdd-l2-l3-supply = <&vreg_s6c_1p35>;
330f126890aSEmmanuel Vadot		vdd-bob-supply = <&vph_pwr>;
331f126890aSEmmanuel Vadot
332f126890aSEmmanuel Vadot		vreg_s6c_1p35: smps6 {
333f126890aSEmmanuel Vadot			regulator-min-microvolt = <1350000>;
334f126890aSEmmanuel Vadot			regulator-max-microvolt = <1372000>;
335f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
336f126890aSEmmanuel Vadot		};
337f126890aSEmmanuel Vadot
338f126890aSEmmanuel Vadot		vreg_s8c_1p8: smps8 {
339f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
340f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
341f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
342f126890aSEmmanuel Vadot			regulator-always-on;
343f126890aSEmmanuel Vadot		};
344f126890aSEmmanuel Vadot
345f126890aSEmmanuel Vadot		vreg_l3c_1p2: ldo3 {
346f126890aSEmmanuel Vadot			regulator-min-microvolt = <1200000>;
347f126890aSEmmanuel Vadot			regulator-max-microvolt = <1200000>;
348f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
349f126890aSEmmanuel Vadot		};
350f126890aSEmmanuel Vadot
351f126890aSEmmanuel Vadot		vreg_l4c_3p3: ldo4 {
352f126890aSEmmanuel Vadot			regulator-min-microvolt = <3008000>;
353f126890aSEmmanuel Vadot			regulator-max-microvolt = <3008000>;
354f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
355f126890aSEmmanuel Vadot		};
356f126890aSEmmanuel Vadot
357f126890aSEmmanuel Vadot		vreg_l10c_3p3: ldo10 {
358f126890aSEmmanuel Vadot			regulator-min-microvolt = <3000000>;
359f126890aSEmmanuel Vadot			regulator-max-microvolt = <3312000>;
360f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
361f126890aSEmmanuel Vadot		};
362f126890aSEmmanuel Vadot
363f126890aSEmmanuel Vadot		vreg_l11c_3p3: ldo11 {
364f126890aSEmmanuel Vadot			regulator-min-microvolt = <3296000>;
365f126890aSEmmanuel Vadot			regulator-max-microvolt = <3304000>;
366f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
367f126890aSEmmanuel Vadot		};
368f126890aSEmmanuel Vadot
369f126890aSEmmanuel Vadot		vreg_bob: bob {
370f126890aSEmmanuel Vadot			regulator-min-microvolt = <3296000>;
371f126890aSEmmanuel Vadot			regulator-max-microvolt = <3350000>;
372f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
373f126890aSEmmanuel Vadot		};
374f126890aSEmmanuel Vadot	};
375f126890aSEmmanuel Vadot
376f126890aSEmmanuel Vadot	regulators-2 {
377f126890aSEmmanuel Vadot		compatible = "qcom,pmc8180-rpmh-regulators";
378f126890aSEmmanuel Vadot		qcom,pmic-id = "e";
379f126890aSEmmanuel Vadot
380f126890aSEmmanuel Vadot		vdd-s4-supply = <&vph_pwr>;
381f126890aSEmmanuel Vadot		vdd-s5-supply = <&vph_pwr>;
382f126890aSEmmanuel Vadot		vdd-l2-l10-supply = <&vreg_bob>;
383f126890aSEmmanuel Vadot		vdd-l3-l4-l5-l18-supply = <&vreg_s4e_0p98>;
384f126890aSEmmanuel Vadot		vdd-l7-l12-l14-l15-supply = <&vreg_s5e_2p05>;
385f126890aSEmmanuel Vadot		vdd-l13-l16-l17-supply = <&vreg_bob>;
386f126890aSEmmanuel Vadot
387f126890aSEmmanuel Vadot		vreg_s4e_0p98: smps4 {
388f126890aSEmmanuel Vadot			regulator-min-microvolt = <992000>;
389f126890aSEmmanuel Vadot			regulator-max-microvolt = <992000>;
390f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
391f126890aSEmmanuel Vadot		};
392f126890aSEmmanuel Vadot
393f126890aSEmmanuel Vadot		vreg_s5e_2p05: smps5 {
394f126890aSEmmanuel Vadot			regulator-min-microvolt = <2040000>;
395f126890aSEmmanuel Vadot			regulator-max-microvolt = <2040000>;
396f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
397f126890aSEmmanuel Vadot		};
398f126890aSEmmanuel Vadot
399f126890aSEmmanuel Vadot		vreg_l1e_0p75: ldo1 {
400f126890aSEmmanuel Vadot			regulator-min-microvolt = <752000>;
401f126890aSEmmanuel Vadot			regulator-max-microvolt = <752000>;
402f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
403f126890aSEmmanuel Vadot		};
404f126890aSEmmanuel Vadot
405f126890aSEmmanuel Vadot		vreg_l5e_0p88: ldo5 {
406f126890aSEmmanuel Vadot			regulator-min-microvolt = <880000>;
407f126890aSEmmanuel Vadot			regulator-max-microvolt = <880000>;
408f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
409f126890aSEmmanuel Vadot		};
410f126890aSEmmanuel Vadot
411f126890aSEmmanuel Vadot		vreg_l7e_1p8: ldo7 {
412f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
413f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
414f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
4158d13bc63SEmmanuel Vadot			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
4168d13bc63SEmmanuel Vadot						   RPMH_REGULATOR_MODE_HPM>;
4178d13bc63SEmmanuel Vadot			regulator-allow-set-load;
418f126890aSEmmanuel Vadot		};
419f126890aSEmmanuel Vadot
420f126890aSEmmanuel Vadot		vreg_l10e_2p9: ldo10 {
421f126890aSEmmanuel Vadot			regulator-min-microvolt = <2904000>;
422f126890aSEmmanuel Vadot			regulator-max-microvolt = <2904000>;
423f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
4248d13bc63SEmmanuel Vadot			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
4258d13bc63SEmmanuel Vadot						   RPMH_REGULATOR_MODE_HPM>;
4268d13bc63SEmmanuel Vadot			regulator-allow-set-load;
427f126890aSEmmanuel Vadot		};
428f126890aSEmmanuel Vadot
429f126890aSEmmanuel Vadot		vreg_l12e: ldo12 {
430f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
431f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
432f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
433f126890aSEmmanuel Vadot		};
434f126890aSEmmanuel Vadot
435f126890aSEmmanuel Vadot		vreg_l16e_3p0: ldo16 {
436f126890aSEmmanuel Vadot			regulator-min-microvolt = <3072000>;
437f126890aSEmmanuel Vadot			regulator-max-microvolt = <3072000>;
438f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
439f126890aSEmmanuel Vadot		};
440f126890aSEmmanuel Vadot	};
441f126890aSEmmanuel Vadot};
442f126890aSEmmanuel Vadot
443f126890aSEmmanuel Vadot&gpu {
444f126890aSEmmanuel Vadot	status = "okay";
445f126890aSEmmanuel Vadot
446f126890aSEmmanuel Vadot	zap-shader {
447f126890aSEmmanuel Vadot		memory-region = <&gpu_mem>;
448f126890aSEmmanuel Vadot		firmware-name = "qcom/sc8180x/qcdxkmsuc8180.mbn";
449f126890aSEmmanuel Vadot	};
450f126890aSEmmanuel Vadot};
451f126890aSEmmanuel Vadot
452f126890aSEmmanuel Vadot&i2c1 {
453f126890aSEmmanuel Vadot	clock-frequency = <100000>;
454f126890aSEmmanuel Vadot
455f126890aSEmmanuel Vadot	pinctrl-names = "default";
456f126890aSEmmanuel Vadot	pinctrl-0 = <&ts_i2c_active_state>;
457f126890aSEmmanuel Vadot
458f126890aSEmmanuel Vadot	status = "okay";
459f126890aSEmmanuel Vadot
460f126890aSEmmanuel Vadot	touchscreen@10 {
461f126890aSEmmanuel Vadot		compatible = "hid-over-i2c";
462f126890aSEmmanuel Vadot		reg = <0x10>;
463f126890aSEmmanuel Vadot		hid-descr-addr = <0x1>;
464f126890aSEmmanuel Vadot
465f126890aSEmmanuel Vadot		vdd-supply = <&vreg_l4c_3p3>;
466f126890aSEmmanuel Vadot		vddl-supply = <&vreg_l12e>;
467f126890aSEmmanuel Vadot
468f126890aSEmmanuel Vadot		post-power-on-delay-ms = <20>;
469f126890aSEmmanuel Vadot
470f126890aSEmmanuel Vadot		interrupts-extended = <&tlmm 122 IRQ_TYPE_LEVEL_LOW>;
471f126890aSEmmanuel Vadot
472f126890aSEmmanuel Vadot		pinctrl-names = "default";
473f126890aSEmmanuel Vadot		pinctrl-0 = <&ts_active_state>;
474f126890aSEmmanuel Vadot	};
475f126890aSEmmanuel Vadot};
476f126890aSEmmanuel Vadot
477f126890aSEmmanuel Vadot&i2c7 {
478f126890aSEmmanuel Vadot	clock-frequency = <100000>;
479f126890aSEmmanuel Vadot
480f126890aSEmmanuel Vadot	pinctrl-names = "default";
481f126890aSEmmanuel Vadot	pinctrl-0 = <&aux_i2c_active_state>;
482f126890aSEmmanuel Vadot
483f126890aSEmmanuel Vadot	status = "okay";
484f126890aSEmmanuel Vadot
485f126890aSEmmanuel Vadot	touchpad@15 {
486f126890aSEmmanuel Vadot		compatible = "hid-over-i2c";
487f126890aSEmmanuel Vadot		reg = <0x15>;
488f126890aSEmmanuel Vadot		hid-descr-addr = <0x1>;
489f126890aSEmmanuel Vadot
490f126890aSEmmanuel Vadot		interrupts-extended = <&tlmm 24 IRQ_TYPE_LEVEL_LOW>;
491f126890aSEmmanuel Vadot
492f126890aSEmmanuel Vadot		pinctrl-names = "default";
493f126890aSEmmanuel Vadot		pinctrl-0 = <&tp_int_active_state>;
494f126890aSEmmanuel Vadot
495f126890aSEmmanuel Vadot		vdd-supply = <&vdd_kb_tp_3v3>;
496f126890aSEmmanuel Vadot	};
497f126890aSEmmanuel Vadot
498f126890aSEmmanuel Vadot	keyboard@3a {
499f126890aSEmmanuel Vadot		compatible = "hid-over-i2c";
500f126890aSEmmanuel Vadot		reg = <0x3a>;
501f126890aSEmmanuel Vadot		hid-descr-addr = <0x1>;
502f126890aSEmmanuel Vadot		interrupts-extended = <&tlmm 37 IRQ_TYPE_LEVEL_LOW>;
503f126890aSEmmanuel Vadot
504f126890aSEmmanuel Vadot		pinctrl-names = "default";
505f126890aSEmmanuel Vadot		pinctrl-0 = <&kb_int_active_state>;
506f126890aSEmmanuel Vadot
507f126890aSEmmanuel Vadot		vdd-supply = <&vdd_kb_tp_3v3>;
508f126890aSEmmanuel Vadot	};
509f126890aSEmmanuel Vadot};
510f126890aSEmmanuel Vadot
511f126890aSEmmanuel Vadot&mdss {
512f126890aSEmmanuel Vadot	status = "okay";
513f126890aSEmmanuel Vadot};
514f126890aSEmmanuel Vadot
515aa1a8ff2SEmmanuel Vadot&mdss_dp0 {
516aa1a8ff2SEmmanuel Vadot	status = "okay";
517aa1a8ff2SEmmanuel Vadot};
518aa1a8ff2SEmmanuel Vadot
519aa1a8ff2SEmmanuel Vadot&mdss_dp0_out {
520aa1a8ff2SEmmanuel Vadot	data-lanes = <0 1>;
521aa1a8ff2SEmmanuel Vadot	remote-endpoint = <&usb_prim_qmpphy_dp_in>;
522aa1a8ff2SEmmanuel Vadot};
523aa1a8ff2SEmmanuel Vadot
524aa1a8ff2SEmmanuel Vadot&mdss_dp1 {
525aa1a8ff2SEmmanuel Vadot	status = "okay";
526aa1a8ff2SEmmanuel Vadot};
527aa1a8ff2SEmmanuel Vadot
528aa1a8ff2SEmmanuel Vadot&mdss_dp1_out {
529aa1a8ff2SEmmanuel Vadot	data-lanes = <0 1>;
530aa1a8ff2SEmmanuel Vadot	remote-endpoint = <&usb_sec_qmpphy_dp_in>;
531aa1a8ff2SEmmanuel Vadot};
532aa1a8ff2SEmmanuel Vadot
533f126890aSEmmanuel Vadot&mdss_edp {
534f126890aSEmmanuel Vadot	data-lanes = <0 1 2 3>;
535f126890aSEmmanuel Vadot
536f126890aSEmmanuel Vadot	pinctrl-names = "default";
537f126890aSEmmanuel Vadot	pinctrl-0 = <&edp_hpd_active>;
538f126890aSEmmanuel Vadot
539f126890aSEmmanuel Vadot	status = "okay";
540f126890aSEmmanuel Vadot
541f126890aSEmmanuel Vadot	aux-bus {
542f126890aSEmmanuel Vadot		panel {
543f126890aSEmmanuel Vadot			compatible = "edp-panel";
544f126890aSEmmanuel Vadot
545f126890aSEmmanuel Vadot			backlight = <&backlight>;
546f126890aSEmmanuel Vadot
547f126890aSEmmanuel Vadot			port {
548f126890aSEmmanuel Vadot				auo_b133han05_in: endpoint {
549f126890aSEmmanuel Vadot					remote-endpoint = <&mdss_edp_out>;
550f126890aSEmmanuel Vadot				};
551f126890aSEmmanuel Vadot			};
552f126890aSEmmanuel Vadot		};
553f126890aSEmmanuel Vadot	};
554f126890aSEmmanuel Vadot
555f126890aSEmmanuel Vadot	ports {
556f126890aSEmmanuel Vadot		port@1 {
557f126890aSEmmanuel Vadot			reg = <1>;
558f126890aSEmmanuel Vadot			mdss_edp_out: endpoint {
559f126890aSEmmanuel Vadot				remote-endpoint = <&auo_b133han05_in>;
560f126890aSEmmanuel Vadot			};
561f126890aSEmmanuel Vadot		};
562f126890aSEmmanuel Vadot	};
563f126890aSEmmanuel Vadot};
564f126890aSEmmanuel Vadot
565f126890aSEmmanuel Vadot&pcie1 {
5668d13bc63SEmmanuel Vadot	perst-gpios = <&tlmm 175 GPIO_ACTIVE_LOW>;
5678d13bc63SEmmanuel Vadot	wake-gpios = <&tlmm 177 GPIO_ACTIVE_HIGH>;
568f126890aSEmmanuel Vadot	pinctrl-names = "default";
569f126890aSEmmanuel Vadot	pinctrl-0 = <&pcie2_default_state>;
570f126890aSEmmanuel Vadot
571f126890aSEmmanuel Vadot	status = "okay";
572f126890aSEmmanuel Vadot};
573f126890aSEmmanuel Vadot
574f126890aSEmmanuel Vadot&pcie1_phy {
575f126890aSEmmanuel Vadot	vdda-phy-supply = <&vreg_l5e_0p88>;
576f126890aSEmmanuel Vadot	vdda-pll-supply = <&vreg_l3c_1p2>;
577f126890aSEmmanuel Vadot
578f126890aSEmmanuel Vadot	status = "okay";
579f126890aSEmmanuel Vadot};
580f126890aSEmmanuel Vadot
581*b2d2a78aSEmmanuel Vadot&pmc8180_pwrkey {
582*b2d2a78aSEmmanuel Vadot	status = "okay";
583*b2d2a78aSEmmanuel Vadot};
584*b2d2a78aSEmmanuel Vadot
585f126890aSEmmanuel Vadot&pmc8180c_lpg {
586f126890aSEmmanuel Vadot	status = "okay";
587f126890aSEmmanuel Vadot};
588f126890aSEmmanuel Vadot
589f126890aSEmmanuel Vadot&qupv3_id_0 {
590f126890aSEmmanuel Vadot	status = "okay";
591f126890aSEmmanuel Vadot};
592f126890aSEmmanuel Vadot
593f126890aSEmmanuel Vadot&qupv3_id_1 {
594f126890aSEmmanuel Vadot	status = "okay";
595f126890aSEmmanuel Vadot};
596f126890aSEmmanuel Vadot
597f126890aSEmmanuel Vadot&qupv3_id_2 {
598f126890aSEmmanuel Vadot	status = "okay";
599f126890aSEmmanuel Vadot};
600f126890aSEmmanuel Vadot
601f126890aSEmmanuel Vadot&remoteproc_adsp {
602f126890aSEmmanuel Vadot	memory-region = <&adsp_mem>;
603f126890aSEmmanuel Vadot	firmware-name = "qcom/sc8180x/qcadsp8180.mbn";
604f126890aSEmmanuel Vadot
605f126890aSEmmanuel Vadot	status = "okay";
606f126890aSEmmanuel Vadot};
607f126890aSEmmanuel Vadot
608f126890aSEmmanuel Vadot&remoteproc_mpss {
609f126890aSEmmanuel Vadot	memory-region = <&mpss_mem>;
610f126890aSEmmanuel Vadot	firmware-name = "qcom/sc8180x/qcmpss8180.mbn";
611f126890aSEmmanuel Vadot
612f126890aSEmmanuel Vadot	status = "okay";
613f126890aSEmmanuel Vadot};
614f126890aSEmmanuel Vadot
615f126890aSEmmanuel Vadot&uart12 {
616f126890aSEmmanuel Vadot	compatible = "qcom,geni-debug-uart";
617f126890aSEmmanuel Vadot	status = "okay";
618f126890aSEmmanuel Vadot};
619f126890aSEmmanuel Vadot
620f126890aSEmmanuel Vadot&uart13 {
621f126890aSEmmanuel Vadot	pinctrl-names = "default";
622f126890aSEmmanuel Vadot	pinctrl-0 = <&uart13_state>;
623f126890aSEmmanuel Vadot
624f126890aSEmmanuel Vadot	status = "okay";
625f126890aSEmmanuel Vadot
626f126890aSEmmanuel Vadot	bluetooth {
627f126890aSEmmanuel Vadot		compatible = "qcom,wcn3998-bt";
628f126890aSEmmanuel Vadot
629f126890aSEmmanuel Vadot		vddio-supply = <&vreg_s4a_1p8>;
630f126890aSEmmanuel Vadot		vddxo-supply = <&vreg_l7a_1p8>;
631f126890aSEmmanuel Vadot		vddrf-supply = <&vreg_l9a_1p3>;
632f126890aSEmmanuel Vadot		vddch0-supply = <&vreg_l11c_3p3>;
633f126890aSEmmanuel Vadot		max-speed = <3200000>;
634f126890aSEmmanuel Vadot	};
635f126890aSEmmanuel Vadot};
636f126890aSEmmanuel Vadot
637f126890aSEmmanuel Vadot&ufs_mem_hc {
638f126890aSEmmanuel Vadot	reset-gpios = <&tlmm 190 GPIO_ACTIVE_LOW>;
639f126890aSEmmanuel Vadot
640f126890aSEmmanuel Vadot	vcc-supply = <&vreg_l10e_2p9>;
641f126890aSEmmanuel Vadot	vcc-max-microamp = <155000>;
642f126890aSEmmanuel Vadot
643f126890aSEmmanuel Vadot	vccq2-supply = <&vreg_l7e_1p8>;
644f126890aSEmmanuel Vadot	vccq2-max-microamp = <425000>;
645f126890aSEmmanuel Vadot
646f126890aSEmmanuel Vadot	status = "okay";
647f126890aSEmmanuel Vadot};
648f126890aSEmmanuel Vadot
649f126890aSEmmanuel Vadot&ufs_mem_phy {
650f126890aSEmmanuel Vadot	vdda-phy-supply = <&vreg_l5e_0p88>;
651f126890aSEmmanuel Vadot	vdda-pll-supply = <&vreg_l3c_1p2>;
652f126890aSEmmanuel Vadot
653f126890aSEmmanuel Vadot	status = "okay";
654f126890aSEmmanuel Vadot};
655f126890aSEmmanuel Vadot
656*b2d2a78aSEmmanuel Vadot&usb_mp {
657*b2d2a78aSEmmanuel Vadot	status = "okay";
658*b2d2a78aSEmmanuel Vadot};
659*b2d2a78aSEmmanuel Vadot
660*b2d2a78aSEmmanuel Vadot&usb_mp_hsphy0 {
661*b2d2a78aSEmmanuel Vadot	vdda-pll-supply = <&vreg_l5e_0p88>;
662*b2d2a78aSEmmanuel Vadot	vdda18-supply = <&vreg_l12a_1p8>;
663*b2d2a78aSEmmanuel Vadot	vdda33-supply = <&vreg_l16e_3p0>;
664*b2d2a78aSEmmanuel Vadot
665*b2d2a78aSEmmanuel Vadot	status = "okay";
666*b2d2a78aSEmmanuel Vadot};
667*b2d2a78aSEmmanuel Vadot
668*b2d2a78aSEmmanuel Vadot&usb_mp_hsphy1 {
669*b2d2a78aSEmmanuel Vadot	vdda-pll-supply = <&vreg_l5e_0p88>;
670*b2d2a78aSEmmanuel Vadot	vdda18-supply = <&vreg_l12a_1p8>;
671*b2d2a78aSEmmanuel Vadot	vdda33-supply = <&vreg_l16e_3p0>;
672*b2d2a78aSEmmanuel Vadot
673*b2d2a78aSEmmanuel Vadot	status = "okay";
674*b2d2a78aSEmmanuel Vadot};
675*b2d2a78aSEmmanuel Vadot
676*b2d2a78aSEmmanuel Vadot&usb_mp_qmpphy0 {
677*b2d2a78aSEmmanuel Vadot	vdda-phy-supply = <&vreg_l3c_1p2>;
678*b2d2a78aSEmmanuel Vadot	vdda-pll-supply = <&vreg_l5e_0p88>;
679*b2d2a78aSEmmanuel Vadot
680*b2d2a78aSEmmanuel Vadot	status = "okay";
681*b2d2a78aSEmmanuel Vadot};
682*b2d2a78aSEmmanuel Vadot
683*b2d2a78aSEmmanuel Vadot&usb_mp_qmpphy1 {
684*b2d2a78aSEmmanuel Vadot	vdda-phy-supply = <&vreg_l3c_1p2>;
685*b2d2a78aSEmmanuel Vadot	vdda-pll-supply = <&vreg_l5e_0p88>;
686*b2d2a78aSEmmanuel Vadot
687*b2d2a78aSEmmanuel Vadot	status = "okay";
688*b2d2a78aSEmmanuel Vadot};
689*b2d2a78aSEmmanuel Vadot
690f126890aSEmmanuel Vadot&usb_prim_hsphy {
691f126890aSEmmanuel Vadot	vdda-pll-supply = <&vreg_l5e_0p88>;
692f126890aSEmmanuel Vadot	vdda18-supply = <&vreg_l12a_1p8>;
693f126890aSEmmanuel Vadot	vdda33-supply = <&vreg_l16e_3p0>;
694f126890aSEmmanuel Vadot
695f126890aSEmmanuel Vadot	status = "okay";
696f126890aSEmmanuel Vadot};
697f126890aSEmmanuel Vadot
698f126890aSEmmanuel Vadot&usb_prim_qmpphy {
699f126890aSEmmanuel Vadot	vdda-phy-supply = <&vreg_l3c_1p2>;
700f126890aSEmmanuel Vadot	vdda-pll-supply = <&vreg_l5e_0p88>;
701f126890aSEmmanuel Vadot
702aa1a8ff2SEmmanuel Vadot	orientation-switch;
703aa1a8ff2SEmmanuel Vadot
704f126890aSEmmanuel Vadot	status = "okay";
705f126890aSEmmanuel Vadot};
706f126890aSEmmanuel Vadot
707f126890aSEmmanuel Vadot&usb_prim {
708f126890aSEmmanuel Vadot	status = "okay";
709f126890aSEmmanuel Vadot};
710f126890aSEmmanuel Vadot
711f126890aSEmmanuel Vadot&usb_prim_dwc3 {
712f126890aSEmmanuel Vadot	dr_mode = "host";
713f126890aSEmmanuel Vadot};
714f126890aSEmmanuel Vadot
7150e8011faSEmmanuel Vadot&usb_prim_dwc3_hs {
7160e8011faSEmmanuel Vadot	remote-endpoint = <&pmic_glink_con0_hs>;
7170e8011faSEmmanuel Vadot};
7180e8011faSEmmanuel Vadot
719aa1a8ff2SEmmanuel Vadot&usb_prim_qmpphy_dp_in {
720aa1a8ff2SEmmanuel Vadot	remote-endpoint = <&mdss_dp0_out>;
721aa1a8ff2SEmmanuel Vadot};
722aa1a8ff2SEmmanuel Vadot
723aa1a8ff2SEmmanuel Vadot&usb_prim_qmpphy_out {
724aa1a8ff2SEmmanuel Vadot	remote-endpoint = <&pmic_glink_con0_ss>;
725aa1a8ff2SEmmanuel Vadot};
726aa1a8ff2SEmmanuel Vadot
727f126890aSEmmanuel Vadot&usb_sec_hsphy {
728f126890aSEmmanuel Vadot	vdda-pll-supply = <&vreg_l5e_0p88>;
729f126890aSEmmanuel Vadot	vdda18-supply = <&vreg_l12a_1p8>;
730f126890aSEmmanuel Vadot	vdda33-supply = <&vreg_l16e_3p0>;
731f126890aSEmmanuel Vadot
732f126890aSEmmanuel Vadot	status = "okay";
733f126890aSEmmanuel Vadot};
734f126890aSEmmanuel Vadot
735f126890aSEmmanuel Vadot&usb_sec_qmpphy {
736f126890aSEmmanuel Vadot	vdda-phy-supply = <&vreg_l3c_1p2>;
737f126890aSEmmanuel Vadot	vdda-pll-supply = <&vreg_l5e_0p88>;
738f126890aSEmmanuel Vadot
739aa1a8ff2SEmmanuel Vadot	orientation-switch;
740aa1a8ff2SEmmanuel Vadot
741f126890aSEmmanuel Vadot	status = "okay";
742f126890aSEmmanuel Vadot};
743f126890aSEmmanuel Vadot
744aa1a8ff2SEmmanuel Vadot&usb_sec_qmpphy_dp_in {
745aa1a8ff2SEmmanuel Vadot	remote-endpoint = <&mdss_dp1_out>;
746aa1a8ff2SEmmanuel Vadot};
747aa1a8ff2SEmmanuel Vadot
748aa1a8ff2SEmmanuel Vadot&usb_sec_qmpphy_out {
749aa1a8ff2SEmmanuel Vadot	remote-endpoint = <&pmic_glink_con1_ss>;
750aa1a8ff2SEmmanuel Vadot};
751aa1a8ff2SEmmanuel Vadot
752f126890aSEmmanuel Vadot&usb_sec {
753f126890aSEmmanuel Vadot	status = "okay";
754f126890aSEmmanuel Vadot};
755f126890aSEmmanuel Vadot
756f126890aSEmmanuel Vadot&usb_sec_dwc3 {
757f126890aSEmmanuel Vadot	dr_mode = "host";
758f126890aSEmmanuel Vadot};
759f126890aSEmmanuel Vadot
7600e8011faSEmmanuel Vadot&usb_sec_dwc3_hs {
7610e8011faSEmmanuel Vadot	remote-endpoint = <&pmic_glink_con1_hs>;
7620e8011faSEmmanuel Vadot};
7630e8011faSEmmanuel Vadot
764f126890aSEmmanuel Vadot&wifi {
765f126890aSEmmanuel Vadot	memory-region = <&wlan_mem>;
766f126890aSEmmanuel Vadot
767f126890aSEmmanuel Vadot	vdd-0.8-cx-mx-supply = <&vreg_l1e_0p75>;
768f126890aSEmmanuel Vadot	vdd-1.8-xo-supply = <&vreg_l7a_1p8>;
769f126890aSEmmanuel Vadot	vdd-1.3-rfa-supply = <&vreg_l9a_1p3>;
770f126890aSEmmanuel Vadot	vdd-3.3-ch0-supply = <&vreg_l11c_3p3>;
771f126890aSEmmanuel Vadot	vdd-3.3-ch1-supply = <&vreg_l10c_3p3>;
772f126890aSEmmanuel Vadot
773f126890aSEmmanuel Vadot	status = "okay";
774f126890aSEmmanuel Vadot};
775f126890aSEmmanuel Vadot
776f126890aSEmmanuel Vadot&xo_board_clk {
777f126890aSEmmanuel Vadot	clock-frequency = <38400000>;
778f126890aSEmmanuel Vadot};
779f126890aSEmmanuel Vadot
780f126890aSEmmanuel Vadot/* PINCTRL */
781f126890aSEmmanuel Vadot
782f126890aSEmmanuel Vadot&pmc8180c_gpios {
783f126890aSEmmanuel Vadot	bl_pwm_default: bl-pwm-default-state {
784f126890aSEmmanuel Vadot		en-pins {
785f126890aSEmmanuel Vadot			pins = "gpio8";
786f126890aSEmmanuel Vadot			function = "normal";
787f126890aSEmmanuel Vadot		};
788f126890aSEmmanuel Vadot
789f126890aSEmmanuel Vadot		pwm-pins {
790f126890aSEmmanuel Vadot			pins = "gpio10";
791f126890aSEmmanuel Vadot			function = "func1";
792f126890aSEmmanuel Vadot		};
793f126890aSEmmanuel Vadot	};
794f126890aSEmmanuel Vadot};
795f126890aSEmmanuel Vadot
796f126890aSEmmanuel Vadot&tlmm {
797f126890aSEmmanuel Vadot	gpio-reserved-ranges = <0 4>, <47 4>, <126 4>;
798f126890aSEmmanuel Vadot
799f126890aSEmmanuel Vadot	aux_i2c_active_state: aux-i2c-active-state {
800f126890aSEmmanuel Vadot		pins = "gpio98", "gpio99";
801f126890aSEmmanuel Vadot		function = "qup7";
802f126890aSEmmanuel Vadot
803f126890aSEmmanuel Vadot		bias-disable;
804f126890aSEmmanuel Vadot		drive-strength = <16>;
805f126890aSEmmanuel Vadot	};
806f126890aSEmmanuel Vadot
807f126890aSEmmanuel Vadot	edp_hpd_active: epd-hpd-active-state {
808f126890aSEmmanuel Vadot		pins = "gpio10";
809f126890aSEmmanuel Vadot		function = "edp_hot";
810f126890aSEmmanuel Vadot	};
811f126890aSEmmanuel Vadot
812f126890aSEmmanuel Vadot	hall_int_active_state: hall-int-active-state {
813f126890aSEmmanuel Vadot		pins = "gpio121";
814f126890aSEmmanuel Vadot		function = "gpio";
815f126890aSEmmanuel Vadot
816f126890aSEmmanuel Vadot		bias-disable;
817f126890aSEmmanuel Vadot	};
818f126890aSEmmanuel Vadot
819f126890aSEmmanuel Vadot	kb_int_active_state: kb-int-active-state {
820f126890aSEmmanuel Vadot		int-n-pins {
821f126890aSEmmanuel Vadot			pins = "gpio37";
822f126890aSEmmanuel Vadot			function = "gpio";
823f126890aSEmmanuel Vadot
824f126890aSEmmanuel Vadot			bias-pull-up;
825f126890aSEmmanuel Vadot		};
826f126890aSEmmanuel Vadot
827f126890aSEmmanuel Vadot		kp-disable-pins {
828f126890aSEmmanuel Vadot			pins = "gpio135";
829f126890aSEmmanuel Vadot			function = "gpio";
830f126890aSEmmanuel Vadot
831f126890aSEmmanuel Vadot			output-high;
832f126890aSEmmanuel Vadot		};
833f126890aSEmmanuel Vadot	};
834f126890aSEmmanuel Vadot
835f126890aSEmmanuel Vadot	kb_tp_3v3_en_active_state: kb-tp-3v3-en-active-state {
836f126890aSEmmanuel Vadot		pins = "gpio4";
837f126890aSEmmanuel Vadot		function = "gpio";
838f126890aSEmmanuel Vadot
839f126890aSEmmanuel Vadot		bias-disable;
840f126890aSEmmanuel Vadot	};
841f126890aSEmmanuel Vadot
842f126890aSEmmanuel Vadot	pcie2_default_state: pcie2-default-state {
843f126890aSEmmanuel Vadot		clkreq-pins {
844f126890aSEmmanuel Vadot			pins = "gpio176";
845f126890aSEmmanuel Vadot			function = "pci_e2";
846f126890aSEmmanuel Vadot			bias-pull-up;
847f126890aSEmmanuel Vadot		};
848f126890aSEmmanuel Vadot
849f126890aSEmmanuel Vadot		reset-n-pins {
850f126890aSEmmanuel Vadot			pins = "gpio175";
851f126890aSEmmanuel Vadot			function = "gpio";
852f126890aSEmmanuel Vadot
853f126890aSEmmanuel Vadot			drive-strength = <2>;
854f126890aSEmmanuel Vadot			output-low;
855f126890aSEmmanuel Vadot			bias-pull-down;
856f126890aSEmmanuel Vadot		};
857f126890aSEmmanuel Vadot
858f126890aSEmmanuel Vadot		wake-n-pins {
859f126890aSEmmanuel Vadot			pins = "gpio177";
860f126890aSEmmanuel Vadot			function = "gpio";
861f126890aSEmmanuel Vadot
862f126890aSEmmanuel Vadot			drive-strength = <2>;
863f126890aSEmmanuel Vadot			bias-pull-up;
864f126890aSEmmanuel Vadot		};
865f126890aSEmmanuel Vadot	};
866f126890aSEmmanuel Vadot
867aa1a8ff2SEmmanuel Vadot	usbprim_sbu_default: usbprim-sbu-state {
868aa1a8ff2SEmmanuel Vadot		oe-n-pins {
869aa1a8ff2SEmmanuel Vadot			pins = "gpio152";
870aa1a8ff2SEmmanuel Vadot			function = "gpio";
871aa1a8ff2SEmmanuel Vadot			bias-disable;
872aa1a8ff2SEmmanuel Vadot			drive-strength = <16>;
873aa1a8ff2SEmmanuel Vadot			output-high;
874aa1a8ff2SEmmanuel Vadot		};
875aa1a8ff2SEmmanuel Vadot
876aa1a8ff2SEmmanuel Vadot		sel-pins {
877aa1a8ff2SEmmanuel Vadot			pins = "gpio100";
878aa1a8ff2SEmmanuel Vadot			function = "gpio";
879aa1a8ff2SEmmanuel Vadot			bias-disable;
880aa1a8ff2SEmmanuel Vadot			drive-strength = <16>;
881aa1a8ff2SEmmanuel Vadot		};
882aa1a8ff2SEmmanuel Vadot	};
883aa1a8ff2SEmmanuel Vadot
884aa1a8ff2SEmmanuel Vadot	usbsec_sbu_default: usbsec-sbu-state {
885aa1a8ff2SEmmanuel Vadot		oe-n-pins {
886aa1a8ff2SEmmanuel Vadot			pins = "gpio188";
887aa1a8ff2SEmmanuel Vadot			function = "gpio";
888aa1a8ff2SEmmanuel Vadot			bias-disable;
889aa1a8ff2SEmmanuel Vadot			drive-strength = <16>;
890aa1a8ff2SEmmanuel Vadot			output-high;
891aa1a8ff2SEmmanuel Vadot		};
892aa1a8ff2SEmmanuel Vadot
893aa1a8ff2SEmmanuel Vadot		sel-pins {
894aa1a8ff2SEmmanuel Vadot			pins = "gpio187";
895aa1a8ff2SEmmanuel Vadot			function = "gpio";
896aa1a8ff2SEmmanuel Vadot			bias-disable;
897aa1a8ff2SEmmanuel Vadot			drive-strength = <16>;
898aa1a8ff2SEmmanuel Vadot		};
899aa1a8ff2SEmmanuel Vadot	};
900aa1a8ff2SEmmanuel Vadot
901f126890aSEmmanuel Vadot	tp_int_active_state: tp-int-active-state {
902f126890aSEmmanuel Vadot		tp-int-pins {
903f126890aSEmmanuel Vadot			pins = "gpio24";
904f126890aSEmmanuel Vadot			function = "gpio";
905f126890aSEmmanuel Vadot
906f126890aSEmmanuel Vadot			bias-disable;
907f126890aSEmmanuel Vadot		};
908f126890aSEmmanuel Vadot
909f126890aSEmmanuel Vadot		tp-close-n-pins {
910f126890aSEmmanuel Vadot			pins = "gpio116";
911f126890aSEmmanuel Vadot			function = "gpio";
912f126890aSEmmanuel Vadot
913f126890aSEmmanuel Vadot			bias-disable;
914f126890aSEmmanuel Vadot		};
915f126890aSEmmanuel Vadot	};
916f126890aSEmmanuel Vadot
917f126890aSEmmanuel Vadot	ts_active_state: ts-active-state {
918f126890aSEmmanuel Vadot		int-n-pins {
919f126890aSEmmanuel Vadot			pins = "gpio122";
920f126890aSEmmanuel Vadot			function = "gpio";
921f126890aSEmmanuel Vadot
922f126890aSEmmanuel Vadot			bias-disable;
923f126890aSEmmanuel Vadot		};
924f126890aSEmmanuel Vadot
925f126890aSEmmanuel Vadot		reset-n-pins {
926f126890aSEmmanuel Vadot			pins = "gpio54";
927f126890aSEmmanuel Vadot			function = "gpio";
928f126890aSEmmanuel Vadot
929f126890aSEmmanuel Vadot			output-high;
930f126890aSEmmanuel Vadot		};
931f126890aSEmmanuel Vadot	};
932f126890aSEmmanuel Vadot
933f126890aSEmmanuel Vadot	ts_i2c_active_state: ts-i2c-active-state {
934f126890aSEmmanuel Vadot		pins = "gpio114", "gpio115";
935f126890aSEmmanuel Vadot		function = "qup1";
936f126890aSEmmanuel Vadot
937f126890aSEmmanuel Vadot		/* External pull up */
938f126890aSEmmanuel Vadot		bias-disable;
939f126890aSEmmanuel Vadot		drive-strength = <2>;
940f126890aSEmmanuel Vadot	};
941f126890aSEmmanuel Vadot
942f126890aSEmmanuel Vadot	uart13_state: uart13-state {
943f126890aSEmmanuel Vadot		cts-pins {
944f126890aSEmmanuel Vadot			pins = "gpio43";
945f126890aSEmmanuel Vadot			function = "qup13";
946f126890aSEmmanuel Vadot			bias-pull-down;
947f126890aSEmmanuel Vadot		};
948f126890aSEmmanuel Vadot
949f126890aSEmmanuel Vadot		rts-tx-pins {
950f126890aSEmmanuel Vadot			pins = "gpio44", "gpio45";
951f126890aSEmmanuel Vadot			function = "qup13";
952f126890aSEmmanuel Vadot			drive-strength = <2>;
953f126890aSEmmanuel Vadot			bias-disable;
954f126890aSEmmanuel Vadot		};
955f126890aSEmmanuel Vadot
956f126890aSEmmanuel Vadot		rx-pins {
957f126890aSEmmanuel Vadot			pins = "gpio46";
958f126890aSEmmanuel Vadot			function = "qup13";
959f126890aSEmmanuel Vadot			bias-pull-up;
960f126890aSEmmanuel Vadot		};
961f126890aSEmmanuel Vadot	};
962f126890aSEmmanuel Vadot};
963