xref: /freebsd-src/sys/contrib/device-tree/src/arm64/qcom/sc7180-acer-aspire1.dts (revision 7d0873ebb83b19ba1e8a89e679470d885efe12e3)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: BSD-3-Clause
2f126890aSEmmanuel Vadot
3f126890aSEmmanuel Vadot/dts-v1/;
4f126890aSEmmanuel Vadot
5f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
68d13bc63SEmmanuel Vadot#include <dt-bindings/sound/qcom,q6asm.h>
7f126890aSEmmanuel Vadot#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
8f126890aSEmmanuel Vadot
9f126890aSEmmanuel Vadot#include "sc7180.dtsi"
10f126890aSEmmanuel Vadot
11f126890aSEmmanuel Vadot#include "pm6150.dtsi"
12f126890aSEmmanuel Vadot#include "pm6150l.dtsi"
13f126890aSEmmanuel Vadot
14f126890aSEmmanuel Vadot/delete-node/ &tz_mem;
15f126890aSEmmanuel Vadot/delete-node/ &ipa_fw_mem;
16f126890aSEmmanuel Vadot
17f126890aSEmmanuel Vadot/ {
18f126890aSEmmanuel Vadot	model = "Acer Aspire 1";
19f126890aSEmmanuel Vadot	compatible = "acer,aspire1", "qcom,sc7180";
20f126890aSEmmanuel Vadot	chassis-type = "laptop";
21f126890aSEmmanuel Vadot
22f126890aSEmmanuel Vadot	aliases {
23f126890aSEmmanuel Vadot		bluetooth0 = &bluetooth;
24f126890aSEmmanuel Vadot		hsuart0 = &uart3;
25f126890aSEmmanuel Vadot		serial0 = &uart8;
26f126890aSEmmanuel Vadot		wifi0 = &wifi;
27f126890aSEmmanuel Vadot	};
28f126890aSEmmanuel Vadot
29f126890aSEmmanuel Vadot	chosen {
30f126890aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
31f126890aSEmmanuel Vadot	};
32f126890aSEmmanuel Vadot
33f126890aSEmmanuel Vadot	reserved-memory {
34f126890aSEmmanuel Vadot		zap_mem: zap-shader@80840000 {
35f126890aSEmmanuel Vadot			reg = <0x0 0x80840000 0 0x2000>;
36f126890aSEmmanuel Vadot			no-map;
37f126890aSEmmanuel Vadot		};
38f126890aSEmmanuel Vadot
39f126890aSEmmanuel Vadot		venus_mem: venus@85b00000 {
40f126890aSEmmanuel Vadot			reg = <0x0 0x85b00000 0 0x500000>;
41f126890aSEmmanuel Vadot			no-map;
42f126890aSEmmanuel Vadot		};
43f126890aSEmmanuel Vadot
44f126890aSEmmanuel Vadot		mpss_mem: mpss@86000000 {
45f126890aSEmmanuel Vadot			reg = <0x0 0x86000000 0x0 0x2000000>;
46f126890aSEmmanuel Vadot			no-map;
47f126890aSEmmanuel Vadot		};
48f126890aSEmmanuel Vadot
49f126890aSEmmanuel Vadot		adsp_mem: adsp@8e400000 {
50f126890aSEmmanuel Vadot			reg = <0x0 0x8e400000 0x0 0x2800000>;
51f126890aSEmmanuel Vadot			no-map;
52f126890aSEmmanuel Vadot		};
53f126890aSEmmanuel Vadot
54f126890aSEmmanuel Vadot		wlan_mem: wlan@93900000 {
55f126890aSEmmanuel Vadot			reg = <0x0 0x93900000 0x0 0x200000>;
56f126890aSEmmanuel Vadot			no-map;
57f126890aSEmmanuel Vadot		};
58f126890aSEmmanuel Vadot	};
59f126890aSEmmanuel Vadot
60f126890aSEmmanuel Vadot	max98357a: audio-codec {
61f126890aSEmmanuel Vadot		compatible = "maxim,max98357a";
62f126890aSEmmanuel Vadot		sdmode-gpios = <&tlmm 23 GPIO_ACTIVE_HIGH>;
63f126890aSEmmanuel Vadot
64f126890aSEmmanuel Vadot		pinctrl-0 = <&amp_sd_mode_default>;
65f126890aSEmmanuel Vadot		pinctrl-names = "default";
66f126890aSEmmanuel Vadot
67f126890aSEmmanuel Vadot		#sound-dai-cells = <0>;
68f126890aSEmmanuel Vadot	};
69f126890aSEmmanuel Vadot
70f126890aSEmmanuel Vadot	backlight: backlight {
71f126890aSEmmanuel Vadot		compatible = "pwm-backlight";
72f126890aSEmmanuel Vadot		pwms = <&sn65dsi86_bridge 1000000>;
73f126890aSEmmanuel Vadot		enable-gpios = <&tlmm 10 GPIO_ACTIVE_HIGH>;
74f126890aSEmmanuel Vadot
75f126890aSEmmanuel Vadot		pinctrl-0 = <&soc_bkoff_default>;
76f126890aSEmmanuel Vadot		pinctrl-names = "default";
77f126890aSEmmanuel Vadot	};
78f126890aSEmmanuel Vadot
79f126890aSEmmanuel Vadot	reg_brij_1p2: bridge-1p2-regulator {
80f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
81f126890aSEmmanuel Vadot		regulator-name = "brij_1p2";
82f126890aSEmmanuel Vadot		regulator-min-microvolt = <1200000>;
83f126890aSEmmanuel Vadot		regulator-max-microvolt = <1200000>;
84f126890aSEmmanuel Vadot
85f126890aSEmmanuel Vadot		gpio = <&tlmm 19 GPIO_ACTIVE_HIGH>;
86f126890aSEmmanuel Vadot		enable-active-high;
87f126890aSEmmanuel Vadot
88f126890aSEmmanuel Vadot		pinctrl-0 = <&reg_edp_1p2_en_default>;
89f126890aSEmmanuel Vadot		pinctrl-names = "default";
90f126890aSEmmanuel Vadot	};
91f126890aSEmmanuel Vadot
92f126890aSEmmanuel Vadot	reg_brij_1p8: bridge-regulator {
93f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
94f126890aSEmmanuel Vadot		regulator-name = "brij_1p8";
95f126890aSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
96f126890aSEmmanuel Vadot		regulator-max-microvolt = <1800000>;
97f126890aSEmmanuel Vadot
98f126890aSEmmanuel Vadot		vin-supply = <&vreg_l8c_1p8>;
99f126890aSEmmanuel Vadot
100f126890aSEmmanuel Vadot		gpio = <&tlmm 20 GPIO_ACTIVE_HIGH>;
101f126890aSEmmanuel Vadot		enable-active-high;
102f126890aSEmmanuel Vadot
103f126890aSEmmanuel Vadot		pinctrl-0 = <&reg_edp_1p8_en_default>;
104f126890aSEmmanuel Vadot		pinctrl-names = "default";
105f126890aSEmmanuel Vadot	};
106f126890aSEmmanuel Vadot
107f126890aSEmmanuel Vadot	reg_codec_3p3: codec-regulator {
108f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
109f126890aSEmmanuel Vadot		regulator-name = "codec_3p3";
110f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
111f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
112f126890aSEmmanuel Vadot
113f126890aSEmmanuel Vadot		gpio = <&tlmm 83 GPIO_ACTIVE_HIGH>;
114f126890aSEmmanuel Vadot		enable-active-high;
115f126890aSEmmanuel Vadot
116f126890aSEmmanuel Vadot		pinctrl-0 = <&reg_audio_en_default>;
117f126890aSEmmanuel Vadot		pinctrl-names = "default";
118f126890aSEmmanuel Vadot	};
119f126890aSEmmanuel Vadot
120f126890aSEmmanuel Vadot	reg_lcm_3p3: panel-regulator {
121f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
122f126890aSEmmanuel Vadot		regulator-name = "lcm_3p3";
123f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
124f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
125f126890aSEmmanuel Vadot
126f126890aSEmmanuel Vadot		gpio = <&tlmm 26 GPIO_ACTIVE_HIGH>;
127f126890aSEmmanuel Vadot		enable-active-high;
128f126890aSEmmanuel Vadot
129f126890aSEmmanuel Vadot		pinctrl-0 = <&reg_lcm_en_default>;
130f126890aSEmmanuel Vadot		pinctrl-names = "default";
131f126890aSEmmanuel Vadot	};
132f126890aSEmmanuel Vadot
1338d13bc63SEmmanuel Vadot	sound: sound {
1348d13bc63SEmmanuel Vadot		compatible = "qcom,sc7180-qdsp6-sndcard";
1358d13bc63SEmmanuel Vadot		pinctrl-0 = <&pri_mi2s_active>, <&pri_mi2s_mclk_active>, <&ter_mi2s_active>;
1368d13bc63SEmmanuel Vadot		pinctrl-names = "default";
1378d13bc63SEmmanuel Vadot		model = "Acer-Aspire-1";
1388d13bc63SEmmanuel Vadot
1398d13bc63SEmmanuel Vadot		audio-routing =
1408d13bc63SEmmanuel Vadot			"Headphone Jack", "HPOL",
1418d13bc63SEmmanuel Vadot			"Headphone Jack", "HPOR";
1428d13bc63SEmmanuel Vadot
1438d13bc63SEmmanuel Vadot		multimedia1-dai-link {
1448d13bc63SEmmanuel Vadot			link-name = "MultiMedia1";
1458d13bc63SEmmanuel Vadot
1468d13bc63SEmmanuel Vadot			cpu {
1478d13bc63SEmmanuel Vadot				sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>;
1488d13bc63SEmmanuel Vadot			};
1498d13bc63SEmmanuel Vadot		};
1508d13bc63SEmmanuel Vadot
1518d13bc63SEmmanuel Vadot		multimedia2-dai-link {
1528d13bc63SEmmanuel Vadot			link-name = "MultiMedia2";
1538d13bc63SEmmanuel Vadot
1548d13bc63SEmmanuel Vadot			cpu {
1558d13bc63SEmmanuel Vadot				sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA2>;
1568d13bc63SEmmanuel Vadot			};
1578d13bc63SEmmanuel Vadot		};
1588d13bc63SEmmanuel Vadot
1598d13bc63SEmmanuel Vadot		multimedia3-dai-link {
1608d13bc63SEmmanuel Vadot			link-name = "MultiMedia3";
1618d13bc63SEmmanuel Vadot
1628d13bc63SEmmanuel Vadot			cpu {
1638d13bc63SEmmanuel Vadot				sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>;
1648d13bc63SEmmanuel Vadot			};
1658d13bc63SEmmanuel Vadot		};
1668d13bc63SEmmanuel Vadot
1678d13bc63SEmmanuel Vadot		multimedia4-dai-link {
1688d13bc63SEmmanuel Vadot			link-name = "MultiMedia4";
1698d13bc63SEmmanuel Vadot
1708d13bc63SEmmanuel Vadot			cpu {
1718d13bc63SEmmanuel Vadot				sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA4>;
1728d13bc63SEmmanuel Vadot			};
1738d13bc63SEmmanuel Vadot		};
1748d13bc63SEmmanuel Vadot
1758d13bc63SEmmanuel Vadot		primary-rx-dai-link {
1768d13bc63SEmmanuel Vadot			link-name = "Primary MI2S Playback";
1778d13bc63SEmmanuel Vadot
1788d13bc63SEmmanuel Vadot			cpu {
1798d13bc63SEmmanuel Vadot				sound-dai = <&q6afedai PRIMARY_MI2S_RX>;
1808d13bc63SEmmanuel Vadot			};
1818d13bc63SEmmanuel Vadot
1828d13bc63SEmmanuel Vadot			platform {
1838d13bc63SEmmanuel Vadot				sound-dai = <&q6routing>;
1848d13bc63SEmmanuel Vadot			};
1858d13bc63SEmmanuel Vadot
1868d13bc63SEmmanuel Vadot			codec {
1878d13bc63SEmmanuel Vadot				sound-dai = <&alc5682 0>;
1888d13bc63SEmmanuel Vadot			};
1898d13bc63SEmmanuel Vadot		};
1908d13bc63SEmmanuel Vadot
1918d13bc63SEmmanuel Vadot		primary-tx-dai-link {
1928d13bc63SEmmanuel Vadot			link-name = "Primary MI2S Capture";
1938d13bc63SEmmanuel Vadot
1948d13bc63SEmmanuel Vadot			cpu {
1958d13bc63SEmmanuel Vadot				sound-dai = <&q6afedai PRIMARY_MI2S_TX>;
1968d13bc63SEmmanuel Vadot			};
1978d13bc63SEmmanuel Vadot
1988d13bc63SEmmanuel Vadot			platform {
1998d13bc63SEmmanuel Vadot				sound-dai = <&q6routing>;
2008d13bc63SEmmanuel Vadot			};
2018d13bc63SEmmanuel Vadot
2028d13bc63SEmmanuel Vadot			codec {
2038d13bc63SEmmanuel Vadot				sound-dai = <&alc5682 0>;
2048d13bc63SEmmanuel Vadot			};
2058d13bc63SEmmanuel Vadot		};
2068d13bc63SEmmanuel Vadot
2078d13bc63SEmmanuel Vadot		tertiary-rx-dai-link {
2088d13bc63SEmmanuel Vadot			link-name = "Tertiary MI2S Playback";
2098d13bc63SEmmanuel Vadot
2108d13bc63SEmmanuel Vadot			cpu {
2118d13bc63SEmmanuel Vadot				sound-dai = <&q6afedai TERTIARY_MI2S_RX>;
2128d13bc63SEmmanuel Vadot			};
2138d13bc63SEmmanuel Vadot
2148d13bc63SEmmanuel Vadot			platform {
2158d13bc63SEmmanuel Vadot				sound-dai = <&q6routing>;
2168d13bc63SEmmanuel Vadot			};
2178d13bc63SEmmanuel Vadot
2188d13bc63SEmmanuel Vadot			codec {
2198d13bc63SEmmanuel Vadot				sound-dai = <&max98357a>;
2208d13bc63SEmmanuel Vadot			};
2218d13bc63SEmmanuel Vadot		};
2228d13bc63SEmmanuel Vadot
2238d13bc63SEmmanuel Vadot		displayport-rx-dai-link {
2248d13bc63SEmmanuel Vadot			link-name = "DisplayPort Playback";
2258d13bc63SEmmanuel Vadot
2268d13bc63SEmmanuel Vadot			cpu {
2278d13bc63SEmmanuel Vadot				sound-dai = <&q6afedai DISPLAY_PORT_RX>;
2288d13bc63SEmmanuel Vadot			};
2298d13bc63SEmmanuel Vadot
2308d13bc63SEmmanuel Vadot			platform {
2318d13bc63SEmmanuel Vadot				sound-dai = <&q6routing>;
2328d13bc63SEmmanuel Vadot			};
2338d13bc63SEmmanuel Vadot
2348d13bc63SEmmanuel Vadot			codec {
2358d13bc63SEmmanuel Vadot				sound-dai = <&mdss_dp>;
2368d13bc63SEmmanuel Vadot			};
2378d13bc63SEmmanuel Vadot		};
2388d13bc63SEmmanuel Vadot	};
2398d13bc63SEmmanuel Vadot
240f126890aSEmmanuel Vadot	reg_tp_3p3: touchpad-regulator {
241f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
242f126890aSEmmanuel Vadot		regulator-name = "tp_3p3";
243f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
244f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
245f126890aSEmmanuel Vadot
246f126890aSEmmanuel Vadot		gpio = <&tlmm 25 GPIO_ACTIVE_HIGH>;
247f126890aSEmmanuel Vadot		enable-active-high;
248f126890aSEmmanuel Vadot
249f126890aSEmmanuel Vadot		pinctrl-0 = <&reg_tp_en_default>;
250f126890aSEmmanuel Vadot		pinctrl-names = "default";
251f126890aSEmmanuel Vadot	};
252f126890aSEmmanuel Vadot};
253f126890aSEmmanuel Vadot
254f126890aSEmmanuel Vadot&i2c2 {
255f126890aSEmmanuel Vadot	clock-frequency = <400000>;
256f126890aSEmmanuel Vadot	status = "okay";
257f126890aSEmmanuel Vadot
258*7d0873ebSEmmanuel Vadot	embedded-controller@76 {
259*7d0873ebSEmmanuel Vadot		compatible = "acer,aspire1-ec";
260*7d0873ebSEmmanuel Vadot		reg = <0x76>;
261*7d0873ebSEmmanuel Vadot
262*7d0873ebSEmmanuel Vadot		interrupts-extended = <&tlmm 30 IRQ_TYPE_LEVEL_LOW>;
263*7d0873ebSEmmanuel Vadot
264*7d0873ebSEmmanuel Vadot		pinctrl-0 = <&ec_int_default>;
265*7d0873ebSEmmanuel Vadot		pinctrl-names = "default";
266*7d0873ebSEmmanuel Vadot
267*7d0873ebSEmmanuel Vadot		connector {
268*7d0873ebSEmmanuel Vadot			compatible = "usb-c-connector";
269*7d0873ebSEmmanuel Vadot
270*7d0873ebSEmmanuel Vadot			port {
271*7d0873ebSEmmanuel Vadot				ec_dp_in: endpoint {
272*7d0873ebSEmmanuel Vadot					remote-endpoint = <&mdss_dp_out>;
273*7d0873ebSEmmanuel Vadot				};
274*7d0873ebSEmmanuel Vadot			};
275*7d0873ebSEmmanuel Vadot		};
276*7d0873ebSEmmanuel Vadot	};
277f126890aSEmmanuel Vadot};
278f126890aSEmmanuel Vadot
279f126890aSEmmanuel Vadot&i2c4 {
280f126890aSEmmanuel Vadot	clock-frequency = <400000>;
281f126890aSEmmanuel Vadot	status = "okay";
282f126890aSEmmanuel Vadot
283f126890aSEmmanuel Vadot	/*
284f126890aSEmmanuel Vadot	 * NOTE: DSDT defines two possible touchpads, other one is
285f126890aSEmmanuel Vadot	 *
286f126890aSEmmanuel Vadot	 * reg = <0x15>;
287f126890aSEmmanuel Vadot	 * hid-descr-addr = <0x1>;
288f126890aSEmmanuel Vadot	 */
289f126890aSEmmanuel Vadot
290f126890aSEmmanuel Vadot	touchpad@2c {
291f126890aSEmmanuel Vadot		compatible = "hid-over-i2c";
292f126890aSEmmanuel Vadot		reg = <0x2c>;
293f126890aSEmmanuel Vadot		hid-descr-addr = <0x20>;
294f126890aSEmmanuel Vadot
295f126890aSEmmanuel Vadot		vdd-supply = <&reg_tp_3p3>;
296f126890aSEmmanuel Vadot
297f126890aSEmmanuel Vadot		interrupts-extended = <&tlmm 94 IRQ_TYPE_LEVEL_LOW>;
298f126890aSEmmanuel Vadot
299f126890aSEmmanuel Vadot		pinctrl-0 = <&hid_touchpad_default>;
300f126890aSEmmanuel Vadot		pinctrl-names = "default";
301f126890aSEmmanuel Vadot
302f126890aSEmmanuel Vadot		wakeup-source;
303f126890aSEmmanuel Vadot	};
304f126890aSEmmanuel Vadot
305f126890aSEmmanuel Vadot	keyboard@3a {
306f126890aSEmmanuel Vadot		compatible = "hid-over-i2c";
307f126890aSEmmanuel Vadot		reg = <0x3a>;
308f126890aSEmmanuel Vadot		hid-descr-addr = <0x1>;
309f126890aSEmmanuel Vadot
310f126890aSEmmanuel Vadot		interrupts-extended = <&tlmm 33 IRQ_TYPE_LEVEL_LOW>;
311f126890aSEmmanuel Vadot
312f126890aSEmmanuel Vadot		pinctrl-0 = <&hid_keyboard_default>;
313f126890aSEmmanuel Vadot		pinctrl-names = "default";
314f126890aSEmmanuel Vadot
315f126890aSEmmanuel Vadot		wakeup-source;
316f126890aSEmmanuel Vadot	};
317f126890aSEmmanuel Vadot};
318f126890aSEmmanuel Vadot
319f126890aSEmmanuel Vadot&i2c9 {
320f126890aSEmmanuel Vadot	clock-frequency = <400000>;
321f126890aSEmmanuel Vadot	status = "okay";
322f126890aSEmmanuel Vadot
323f126890aSEmmanuel Vadot	alc5682: codec@1a {
324f126890aSEmmanuel Vadot		compatible = "realtek,rt5682i";
325f126890aSEmmanuel Vadot		reg = <0x1a>;
326f126890aSEmmanuel Vadot
327f126890aSEmmanuel Vadot		#sound-dai-cells = <1>;
328f126890aSEmmanuel Vadot
329f126890aSEmmanuel Vadot		interrupt-parent = <&tlmm>;
330f126890aSEmmanuel Vadot		interrupts = <28 IRQ_TYPE_EDGE_BOTH>;
331f126890aSEmmanuel Vadot
332f126890aSEmmanuel Vadot		pinctrl-0 = <&codec_irq_default>;
333f126890aSEmmanuel Vadot		pinctrl-names = "default";
334f126890aSEmmanuel Vadot
335f126890aSEmmanuel Vadot		AVDD-supply = <&vreg_l15a_1p8>;
336f126890aSEmmanuel Vadot		MICVDD-supply = <&reg_codec_3p3>;
337f126890aSEmmanuel Vadot		VBAT-supply = <&reg_codec_3p3>;
3388d13bc63SEmmanuel Vadot		DBVDD-supply = <&vreg_l15a_1p8>;
3398d13bc63SEmmanuel Vadot		LDO1-IN-supply = <&vreg_l15a_1p8>;
340f126890aSEmmanuel Vadot
3418d13bc63SEmmanuel Vadot		/*
3428d13bc63SEmmanuel Vadot		 * NOTE: The board has a path from this codec to the
3438d13bc63SEmmanuel Vadot		 * DMIC microphones in the lid, however some of the option
3448d13bc63SEmmanuel Vadot		 * resistors are absent and the microphones are connected
3458d13bc63SEmmanuel Vadot		 * to the SoC instead.
3468d13bc63SEmmanuel Vadot		 *
3478d13bc63SEmmanuel Vadot		 * If the resistors were to be changed by the user to
3488d13bc63SEmmanuel Vadot		 * connect the codec, the following could be used:
3498d13bc63SEmmanuel Vadot		 *
3508d13bc63SEmmanuel Vadot		 * realtek,dmic1-data-pin = <1>;
3518d13bc63SEmmanuel Vadot		 * realtek,dmic1-clk-pin = <1>;
3528d13bc63SEmmanuel Vadot		 */
3538d13bc63SEmmanuel Vadot
354f126890aSEmmanuel Vadot		realtek,jd-src = <1>;
355f126890aSEmmanuel Vadot	};
356f126890aSEmmanuel Vadot};
357f126890aSEmmanuel Vadot
358f126890aSEmmanuel Vadot&i2c10 {
359f126890aSEmmanuel Vadot	clock-frequency = <400000>;
360f126890aSEmmanuel Vadot	status = "okay";
361f126890aSEmmanuel Vadot
362f126890aSEmmanuel Vadot	sn65dsi86_bridge: bridge@2c {
363f126890aSEmmanuel Vadot		compatible = "ti,sn65dsi86";
364f126890aSEmmanuel Vadot		reg = <0x2c>;
365f126890aSEmmanuel Vadot		gpio-controller;
366f126890aSEmmanuel Vadot		#gpio-cells = <2>;
367f126890aSEmmanuel Vadot		#pwm-cells = <1>;
368f126890aSEmmanuel Vadot
369f126890aSEmmanuel Vadot		interrupt-parent = <&tlmm>;
370f126890aSEmmanuel Vadot		interrupts = <11 IRQ_TYPE_LEVEL_HIGH>;
371f126890aSEmmanuel Vadot
372f126890aSEmmanuel Vadot		enable-gpios = <&tlmm 51 GPIO_ACTIVE_HIGH>;
373f126890aSEmmanuel Vadot		suspend-gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
374f126890aSEmmanuel Vadot
375f126890aSEmmanuel Vadot		pinctrl-0 = <&bridge_en_default>,
376f126890aSEmmanuel Vadot			    <&edp_bridge_irq_default>,
377f126890aSEmmanuel Vadot			    <&bridge_suspend_default>;
378f126890aSEmmanuel Vadot		pinctrl-names = "default";
379f126890aSEmmanuel Vadot
380f126890aSEmmanuel Vadot		vpll-supply = <&reg_brij_1p8>;
381f126890aSEmmanuel Vadot		vccio-supply = <&reg_brij_1p8>;
382f126890aSEmmanuel Vadot		vcca-supply = <&reg_brij_1p2>;
383f126890aSEmmanuel Vadot		vcc-supply = <&reg_brij_1p2>;
384f126890aSEmmanuel Vadot
385f126890aSEmmanuel Vadot		clocks = <&rpmhcc RPMH_LN_BB_CLK3>;
386f126890aSEmmanuel Vadot		clock-names = "refclk";
387f126890aSEmmanuel Vadot
388f126890aSEmmanuel Vadot		ports {
389f126890aSEmmanuel Vadot			#address-cells = <1>;
390f126890aSEmmanuel Vadot			#size-cells = <0>;
391f126890aSEmmanuel Vadot
392f126890aSEmmanuel Vadot			port@0 {
393f126890aSEmmanuel Vadot				reg = <0>;
394f126890aSEmmanuel Vadot
395f126890aSEmmanuel Vadot				sn65dsi86_in: endpoint {
396f126890aSEmmanuel Vadot					remote-endpoint = <&mdss_dsi0_out>;
397f126890aSEmmanuel Vadot				};
398f126890aSEmmanuel Vadot			};
399f126890aSEmmanuel Vadot
400f126890aSEmmanuel Vadot			port@1 {
401f126890aSEmmanuel Vadot				reg = <1>;
402f126890aSEmmanuel Vadot
403f126890aSEmmanuel Vadot				sn65dsi86_out: endpoint {
404f126890aSEmmanuel Vadot					data-lanes = <0 1>;
405f126890aSEmmanuel Vadot					remote-endpoint = <&panel_in_edp>;
406f126890aSEmmanuel Vadot				};
407f126890aSEmmanuel Vadot			};
408f126890aSEmmanuel Vadot		};
409f126890aSEmmanuel Vadot
410f126890aSEmmanuel Vadot		aux-bus {
411f126890aSEmmanuel Vadot			panel: panel {
412f126890aSEmmanuel Vadot				compatible = "edp-panel";
413f126890aSEmmanuel Vadot				power-supply = <&reg_lcm_3p3>;
414f126890aSEmmanuel Vadot				backlight = <&backlight>;
415f126890aSEmmanuel Vadot				hpd-absent-delay-ms = <200>;
416f126890aSEmmanuel Vadot
417f126890aSEmmanuel Vadot				port {
418f126890aSEmmanuel Vadot					panel_in_edp: endpoint {
419f126890aSEmmanuel Vadot						remote-endpoint = <&sn65dsi86_out>;
420f126890aSEmmanuel Vadot					};
421f126890aSEmmanuel Vadot				};
422f126890aSEmmanuel Vadot			};
423f126890aSEmmanuel Vadot		};
424f126890aSEmmanuel Vadot	};
425f126890aSEmmanuel Vadot};
426f126890aSEmmanuel Vadot
427f126890aSEmmanuel Vadot&gpu {
428f126890aSEmmanuel Vadot	status = "okay";
429f126890aSEmmanuel Vadot
430f126890aSEmmanuel Vadot	zap-shader {
431f126890aSEmmanuel Vadot		memory-region = <&zap_mem>;
432f126890aSEmmanuel Vadot		firmware-name = "qcom/sc7180/acer/aspire1/qcdxkmsuc7180.mbn";
433f126890aSEmmanuel Vadot	};
434f126890aSEmmanuel Vadot};
435f126890aSEmmanuel Vadot
436f126890aSEmmanuel Vadot&mdss {
437f126890aSEmmanuel Vadot	status = "okay";
438f126890aSEmmanuel Vadot};
439f126890aSEmmanuel Vadot
440*7d0873ebSEmmanuel Vadot&mdss_dp {
441*7d0873ebSEmmanuel Vadot	data-lanes = <0 1>;
442*7d0873ebSEmmanuel Vadot
443*7d0873ebSEmmanuel Vadot	vdda-1p2-supply = <&vreg_l3c_1p2>;
444*7d0873ebSEmmanuel Vadot	vdda-0p9-supply = <&vreg_l4a_0p8>;
445*7d0873ebSEmmanuel Vadot
446*7d0873ebSEmmanuel Vadot	status = "okay";
447*7d0873ebSEmmanuel Vadot};
448*7d0873ebSEmmanuel Vadot
449*7d0873ebSEmmanuel Vadot&mdss_dp_out {
450*7d0873ebSEmmanuel Vadot	remote-endpoint = <&ec_dp_in>;
451*7d0873ebSEmmanuel Vadot};
452*7d0873ebSEmmanuel Vadot
453f126890aSEmmanuel Vadot&mdss_dsi0 {
454f126890aSEmmanuel Vadot	vdda-supply = <&vreg_l3c_1p2>;
455f126890aSEmmanuel Vadot	status = "okay";
456f126890aSEmmanuel Vadot};
457f126890aSEmmanuel Vadot
458f126890aSEmmanuel Vadot&mdss_dsi0_out {
459f126890aSEmmanuel Vadot	remote-endpoint = <&sn65dsi86_in>;
460f126890aSEmmanuel Vadot	data-lanes = <0 1 2 3>;
461f126890aSEmmanuel Vadot};
462f126890aSEmmanuel Vadot
463f126890aSEmmanuel Vadot&mdss_dsi0_phy {
464f126890aSEmmanuel Vadot	vdds-supply = <&vreg_l4a_0p8>;
465f126890aSEmmanuel Vadot	status = "okay";
466f126890aSEmmanuel Vadot};
467f126890aSEmmanuel Vadot
468f126890aSEmmanuel Vadot&pm6150_adc {
469aa1a8ff2SEmmanuel Vadot	channel@4e {
470f126890aSEmmanuel Vadot		reg = <ADC5_AMUX_THM2_100K_PU>;
471f126890aSEmmanuel Vadot		qcom,ratiometric;
472f126890aSEmmanuel Vadot		qcom,hw-settle-time = <200>;
473aa1a8ff2SEmmanuel Vadot		label = "thermistor";
474f126890aSEmmanuel Vadot	};
475f126890aSEmmanuel Vadot
476aa1a8ff2SEmmanuel Vadot	channel@4f {
477f126890aSEmmanuel Vadot		reg = <ADC5_AMUX_THM3_100K_PU>;
478f126890aSEmmanuel Vadot		qcom,ratiometric;
479f126890aSEmmanuel Vadot		qcom,hw-settle-time = <200>;
480aa1a8ff2SEmmanuel Vadot		label = "charger_thermistor";
481f126890aSEmmanuel Vadot	};
482f126890aSEmmanuel Vadot};
483f126890aSEmmanuel Vadot
484f126890aSEmmanuel Vadot&pm6150_adc_tm {
485f126890aSEmmanuel Vadot	status = "okay";
486f126890aSEmmanuel Vadot
487f126890aSEmmanuel Vadot	charger-thermistor@0 {
488f126890aSEmmanuel Vadot		reg = <0>;
489f126890aSEmmanuel Vadot		io-channels = <&pm6150_adc ADC5_AMUX_THM3_100K_PU>;
490f126890aSEmmanuel Vadot		qcom,ratiometric;
491f126890aSEmmanuel Vadot		qcom,hw-settle-time-us = <200>;
492f126890aSEmmanuel Vadot	};
493f126890aSEmmanuel Vadot
494f126890aSEmmanuel Vadot	thermistor@1 {
495f126890aSEmmanuel Vadot		reg = <1>;
496f126890aSEmmanuel Vadot		io-channels = <&pm6150_adc ADC5_AMUX_THM2_100K_PU>;
497f126890aSEmmanuel Vadot		qcom,ratiometric;
498f126890aSEmmanuel Vadot		qcom,hw-settle-time-us = <200>;
499f126890aSEmmanuel Vadot	};
500f126890aSEmmanuel Vadot};
501f126890aSEmmanuel Vadot
502f126890aSEmmanuel Vadot&pm6150_pon {
503f126890aSEmmanuel Vadot	status = "disabled";
504f126890aSEmmanuel Vadot};
505f126890aSEmmanuel Vadot
5068d13bc63SEmmanuel Vadot&pm6150_rtc {
5078d13bc63SEmmanuel Vadot	status = "okay";
5088d13bc63SEmmanuel Vadot};
5098d13bc63SEmmanuel Vadot
5108d13bc63SEmmanuel Vadot&q6afedai {
5118d13bc63SEmmanuel Vadot	dai@16 {
5128d13bc63SEmmanuel Vadot		reg = <PRIMARY_MI2S_RX>;
5138d13bc63SEmmanuel Vadot		qcom,sd-lines = <1>;
5148d13bc63SEmmanuel Vadot	};
5158d13bc63SEmmanuel Vadot
5168d13bc63SEmmanuel Vadot	dai@17 {
5178d13bc63SEmmanuel Vadot		reg = <PRIMARY_MI2S_TX>;
5188d13bc63SEmmanuel Vadot		qcom,sd-lines = <0>;
5198d13bc63SEmmanuel Vadot	};
5208d13bc63SEmmanuel Vadot
5218d13bc63SEmmanuel Vadot	dai@20 {
5228d13bc63SEmmanuel Vadot		reg = <TERTIARY_MI2S_RX>;
5238d13bc63SEmmanuel Vadot		qcom,sd-lines = <0>;
5248d13bc63SEmmanuel Vadot	};
5258d13bc63SEmmanuel Vadot
5268d13bc63SEmmanuel Vadot	dai@104 {
5278d13bc63SEmmanuel Vadot		reg = <DISPLAY_PORT_RX>;
5288d13bc63SEmmanuel Vadot	};
5298d13bc63SEmmanuel Vadot};
5308d13bc63SEmmanuel Vadot
5318d13bc63SEmmanuel Vadot&q6asmdai {
5328d13bc63SEmmanuel Vadot	dai@0 {
5338d13bc63SEmmanuel Vadot		reg = <0>;
5348d13bc63SEmmanuel Vadot	};
5358d13bc63SEmmanuel Vadot
5368d13bc63SEmmanuel Vadot	dai@1 {
5378d13bc63SEmmanuel Vadot		reg = <1>;
5388d13bc63SEmmanuel Vadot	};
5398d13bc63SEmmanuel Vadot
5408d13bc63SEmmanuel Vadot	dai@2 {
5418d13bc63SEmmanuel Vadot		reg = <2>;
5428d13bc63SEmmanuel Vadot	};
5438d13bc63SEmmanuel Vadot
5448d13bc63SEmmanuel Vadot	dai@3 {
5458d13bc63SEmmanuel Vadot		reg = <3>;
5468d13bc63SEmmanuel Vadot	};
5478d13bc63SEmmanuel Vadot};
5488d13bc63SEmmanuel Vadot
549f126890aSEmmanuel Vadot&qupv3_id_0 {
550f126890aSEmmanuel Vadot	status = "okay";
551f126890aSEmmanuel Vadot};
552f126890aSEmmanuel Vadot
553f126890aSEmmanuel Vadot&qupv3_id_1 {
554f126890aSEmmanuel Vadot	status = "okay";
555f126890aSEmmanuel Vadot};
556f126890aSEmmanuel Vadot
5578d13bc63SEmmanuel Vadot&remoteproc_adsp {
5588d13bc63SEmmanuel Vadot	memory-region = <&adsp_mem>;
5598d13bc63SEmmanuel Vadot	firmware-name = "qcom/sc7180/acer/aspire1/qcadsp7180.mbn";
5608d13bc63SEmmanuel Vadot	status = "okay";
5618d13bc63SEmmanuel Vadot};
5628d13bc63SEmmanuel Vadot
563f126890aSEmmanuel Vadot&remoteproc_mpss {
564f126890aSEmmanuel Vadot	firmware-name = "qcom/sc7180/acer/aspire1/qcmpss7180_nm.mbn";
565f126890aSEmmanuel Vadot	status = "okay";
566f126890aSEmmanuel Vadot};
567f126890aSEmmanuel Vadot
568f126890aSEmmanuel Vadot&sdhc_1 {
569f126890aSEmmanuel Vadot	pinctrl-0 = <&sdc1_default>;
570f126890aSEmmanuel Vadot	pinctrl-1 = <&sdc1_sleep>;
571f126890aSEmmanuel Vadot	pinctrl-names = "default", "sleep";
572f126890aSEmmanuel Vadot	vmmc-supply = <&vreg_l19a_2p9>;
573f126890aSEmmanuel Vadot	vqmmc-supply = <&vreg_l12a_1p8>;
574f126890aSEmmanuel Vadot
575f126890aSEmmanuel Vadot	status = "okay";
576f126890aSEmmanuel Vadot};
577f126890aSEmmanuel Vadot
578f126890aSEmmanuel Vadot&uart3 {
579f126890aSEmmanuel Vadot	/delete-property/interrupts;
580f126890aSEmmanuel Vadot	interrupts-extended = <&intc GIC_SPI 604 IRQ_TYPE_LEVEL_HIGH>,
581f126890aSEmmanuel Vadot			      <&tlmm 41 IRQ_TYPE_EDGE_FALLING>;
582f126890aSEmmanuel Vadot
583f126890aSEmmanuel Vadot	pinctrl-1 = <&qup_uart3_sleep>;
584f126890aSEmmanuel Vadot	pinctrl-names = "default", "sleep";
585f126890aSEmmanuel Vadot
586f126890aSEmmanuel Vadot	status = "okay";
587f126890aSEmmanuel Vadot
588f126890aSEmmanuel Vadot	bluetooth: bluetooth {
589f126890aSEmmanuel Vadot		compatible = "qcom,wcn3991-bt";
590f126890aSEmmanuel Vadot		vddio-supply = <&vreg_l10a_1p8>;
591f126890aSEmmanuel Vadot		vddxo-supply = <&vreg_l1c_1p8>;
592f126890aSEmmanuel Vadot		vddrf-supply = <&vreg_l2c_1p3>;
593f126890aSEmmanuel Vadot		vddch0-supply = <&vreg_l10c_3p3>;
594f126890aSEmmanuel Vadot		max-speed = <3200000>;
595f126890aSEmmanuel Vadot	};
596f126890aSEmmanuel Vadot};
597f126890aSEmmanuel Vadot
598f126890aSEmmanuel Vadot&uart8 {
599f126890aSEmmanuel Vadot	status = "okay";
600f126890aSEmmanuel Vadot};
601f126890aSEmmanuel Vadot
602f126890aSEmmanuel Vadot&usb_1 {
603f126890aSEmmanuel Vadot	status = "okay";
604f126890aSEmmanuel Vadot};
605f126890aSEmmanuel Vadot
606f126890aSEmmanuel Vadot&usb_1_dwc3 {
607f126890aSEmmanuel Vadot	dr_mode = "host";
608f126890aSEmmanuel Vadot	#address-cells = <1>;
609f126890aSEmmanuel Vadot	#size-cells = <0>;
610f126890aSEmmanuel Vadot
611f126890aSEmmanuel Vadot	usb_hub_2_x: hub@1 {
612f126890aSEmmanuel Vadot		compatible = "usbbda,5411";
613f126890aSEmmanuel Vadot		reg = <1>;
614f126890aSEmmanuel Vadot		peer-hub = <&usb_hub_3_x>;
615f126890aSEmmanuel Vadot	};
616f126890aSEmmanuel Vadot
617f126890aSEmmanuel Vadot	usb_hub_3_x: hub@2 {
618f126890aSEmmanuel Vadot		compatible = "usbbda,411";
619f126890aSEmmanuel Vadot		reg = <2>;
620f126890aSEmmanuel Vadot		peer-hub = <&usb_hub_2_x>;
621f126890aSEmmanuel Vadot	};
622f126890aSEmmanuel Vadot};
623f126890aSEmmanuel Vadot
624f126890aSEmmanuel Vadot&usb_1_hsphy {
625f126890aSEmmanuel Vadot	vdd-supply = <&vreg_l4a_0p8>;
626f126890aSEmmanuel Vadot	vdda-pll-supply = <&vreg_l11a_1p8>;
627f126890aSEmmanuel Vadot	vdda-phy-dpdm-supply = <&vreg_l17a_3p0>;
628f126890aSEmmanuel Vadot	qcom,imp-res-offset-value = <8>;
629f126890aSEmmanuel Vadot	qcom,preemphasis-level = <QUSB2_V2_PREEMPHASIS_15_PERCENT>;
630f126890aSEmmanuel Vadot	qcom,preemphasis-width = <QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT>;
631f126890aSEmmanuel Vadot	qcom,bias-ctrl-value = <0x22>;
632f126890aSEmmanuel Vadot	qcom,charge-ctrl-value = <3>;
633f126890aSEmmanuel Vadot	qcom,hsdisc-trim-value = <0>;
634f126890aSEmmanuel Vadot
635f126890aSEmmanuel Vadot	status = "okay";
636f126890aSEmmanuel Vadot};
637f126890aSEmmanuel Vadot
638f126890aSEmmanuel Vadot&usb_1_qmpphy {
639f126890aSEmmanuel Vadot	vdda-phy-supply = <&vreg_l3c_1p2>;
640f126890aSEmmanuel Vadot	vdda-pll-supply = <&vreg_l4a_0p8>;
641f126890aSEmmanuel Vadot
642f126890aSEmmanuel Vadot	status = "okay";
643f126890aSEmmanuel Vadot};
644f126890aSEmmanuel Vadot
645f126890aSEmmanuel Vadot&venus {
646f126890aSEmmanuel Vadot	firmware-name = "qcom/sc7180/acer/aspire1/qcvss7180.mbn";
647f126890aSEmmanuel Vadot};
648f126890aSEmmanuel Vadot
649f126890aSEmmanuel Vadot&wifi {
650f126890aSEmmanuel Vadot	vdd-0.8-cx-mx-supply = <&vreg_l9a_0p6>;
651f126890aSEmmanuel Vadot	vdd-1.8-xo-supply = <&vreg_l1c_1p8>;
652f126890aSEmmanuel Vadot	vdd-1.3-rfa-supply = <&vreg_l2c_1p3>;
653f126890aSEmmanuel Vadot	vdd-3.3-ch0-supply = <&vreg_l10c_3p3>;
654f126890aSEmmanuel Vadot	vdd-3.3-ch1-supply = <&vreg_l11c_3p3>;
655f126890aSEmmanuel Vadot
656f126890aSEmmanuel Vadot	status = "okay";
657f126890aSEmmanuel Vadot};
658f126890aSEmmanuel Vadot
659f126890aSEmmanuel Vadot&apps_rsc {
660f126890aSEmmanuel Vadot	regulators-0 {
661f126890aSEmmanuel Vadot		compatible = "qcom,pm6150-rpmh-regulators";
662f126890aSEmmanuel Vadot		qcom,pmic-id = "a";
663f126890aSEmmanuel Vadot
664f126890aSEmmanuel Vadot		vreg_s1a_1p1: smps1 {
665f126890aSEmmanuel Vadot			regulator-min-microvolt = <1128000>;
666f126890aSEmmanuel Vadot			regulator-max-microvolt = <1128000>;
667f126890aSEmmanuel Vadot		};
668f126890aSEmmanuel Vadot
669f126890aSEmmanuel Vadot		vreg_l4a_0p8: ldo4 {
670f126890aSEmmanuel Vadot			regulator-min-microvolt = <824000>;
671f126890aSEmmanuel Vadot			regulator-max-microvolt = <928000>;
672f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
673f126890aSEmmanuel Vadot		};
674f126890aSEmmanuel Vadot
675f126890aSEmmanuel Vadot		vreg_l9a_0p6: ldo9 {
676f126890aSEmmanuel Vadot			regulator-min-microvolt = <488000>;
677f126890aSEmmanuel Vadot			regulator-max-microvolt = <800000>;
678f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
679f126890aSEmmanuel Vadot		};
680f126890aSEmmanuel Vadot
681f126890aSEmmanuel Vadot		vreg_l10a_1p8: ldo10 {
682f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
683f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
684f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
685f126890aSEmmanuel Vadot			regulator-always-on;
686f126890aSEmmanuel Vadot			regulator-boot-on;
687f126890aSEmmanuel Vadot		};
688f126890aSEmmanuel Vadot
689f126890aSEmmanuel Vadot		vreg_l11a_1p8: ldo11 {
690f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
691f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
692f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
693f126890aSEmmanuel Vadot		};
694f126890aSEmmanuel Vadot
695f126890aSEmmanuel Vadot		vreg_l12a_1p8: ldo12 {
696f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
697f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
698f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
699f126890aSEmmanuel Vadot		};
700f126890aSEmmanuel Vadot
701f126890aSEmmanuel Vadot		vreg_l13a_1p8: ldo13 {
702f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
703f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
704f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
705f126890aSEmmanuel Vadot		};
706f126890aSEmmanuel Vadot
707f126890aSEmmanuel Vadot		vreg_l14a_1p8: ldo14 {
708f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
709f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
710f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
711f126890aSEmmanuel Vadot		};
712f126890aSEmmanuel Vadot
713f126890aSEmmanuel Vadot		vreg_l15a_1p8: ldo15 {
714f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
715f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
716f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
717f126890aSEmmanuel Vadot		};
718f126890aSEmmanuel Vadot
719f126890aSEmmanuel Vadot		vreg_l16a_2p7: ldo16 {
720f126890aSEmmanuel Vadot			regulator-min-microvolt = <2496000>;
721f126890aSEmmanuel Vadot			regulator-max-microvolt = <3304000>;
722f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
723f126890aSEmmanuel Vadot		};
724f126890aSEmmanuel Vadot
725f126890aSEmmanuel Vadot		vreg_l17a_3p0: ldo17 {
726f126890aSEmmanuel Vadot			regulator-min-microvolt = <2920000>;
727f126890aSEmmanuel Vadot			regulator-max-microvolt = <3232000>;
728f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
729f126890aSEmmanuel Vadot		};
730f126890aSEmmanuel Vadot
731f126890aSEmmanuel Vadot		vreg_l18a_2p8: ldo18 {
732f126890aSEmmanuel Vadot			regulator-min-microvolt = <2496000>;
733f126890aSEmmanuel Vadot			regulator-max-microvolt = <3304000>;
734f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
735f126890aSEmmanuel Vadot		};
736f126890aSEmmanuel Vadot
737f126890aSEmmanuel Vadot		vreg_l19a_2p9: ldo19 {
738f126890aSEmmanuel Vadot			regulator-min-microvolt = <2960000>;
739f126890aSEmmanuel Vadot			regulator-max-microvolt = <2960000>;
740f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
741f126890aSEmmanuel Vadot		};
742f126890aSEmmanuel Vadot	};
743f126890aSEmmanuel Vadot
744f126890aSEmmanuel Vadot	regulators-1 {
745f126890aSEmmanuel Vadot		compatible = "qcom,pm6150l-rpmh-regulators";
746f126890aSEmmanuel Vadot		qcom,pmic-id = "c";
747f126890aSEmmanuel Vadot
748f126890aSEmmanuel Vadot		vreg_s8c_1p3: smps8 {
749f126890aSEmmanuel Vadot			regulator-min-microvolt = <1120000>;
750f126890aSEmmanuel Vadot			regulator-max-microvolt = <1408000>;
751f126890aSEmmanuel Vadot		};
752f126890aSEmmanuel Vadot
753f126890aSEmmanuel Vadot		vreg_l1c_1p8: ldo1 {
754f126890aSEmmanuel Vadot			regulator-min-microvolt = <1616000>;
755f126890aSEmmanuel Vadot			regulator-max-microvolt = <1984000>;
756f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
757f126890aSEmmanuel Vadot		};
758f126890aSEmmanuel Vadot
759f126890aSEmmanuel Vadot		vreg_l2c_1p3: ldo2 {
760f126890aSEmmanuel Vadot			regulator-min-microvolt = <1168000>;
761f126890aSEmmanuel Vadot			regulator-max-microvolt = <1304000>;
762f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
763f126890aSEmmanuel Vadot		};
764f126890aSEmmanuel Vadot
765f126890aSEmmanuel Vadot		vreg_l3c_1p2: ldo3 {
766f126890aSEmmanuel Vadot			regulator-min-microvolt = <1144000>;
767f126890aSEmmanuel Vadot			regulator-max-microvolt = <1304000>;
768f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
769f126890aSEmmanuel Vadot		};
770f126890aSEmmanuel Vadot
771f126890aSEmmanuel Vadot		vreg_l4c_1p8: ldo4 {
772f126890aSEmmanuel Vadot			regulator-min-microvolt = <1648000>;
773f126890aSEmmanuel Vadot			regulator-max-microvolt = <3304000>;
774f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
775f126890aSEmmanuel Vadot		};
776f126890aSEmmanuel Vadot
777f126890aSEmmanuel Vadot		vreg_l5c_1p8: ldo5 {
778f126890aSEmmanuel Vadot			regulator-min-microvolt = <1648000>;
779f126890aSEmmanuel Vadot			regulator-max-microvolt = <3304000>;
780f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
781f126890aSEmmanuel Vadot		};
782f126890aSEmmanuel Vadot
783f126890aSEmmanuel Vadot		vreg_l6c_2p9: ldo6 {
784f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
785f126890aSEmmanuel Vadot			regulator-max-microvolt = <2950000>;
786f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
787f126890aSEmmanuel Vadot		};
788f126890aSEmmanuel Vadot
789f126890aSEmmanuel Vadot		vreg_l7c_3p0: ldo7 {
790f126890aSEmmanuel Vadot			regulator-min-microvolt = <3000000>;
791f126890aSEmmanuel Vadot			regulator-max-microvolt = <3312000>;
792f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
793f126890aSEmmanuel Vadot		};
794f126890aSEmmanuel Vadot
795f126890aSEmmanuel Vadot		vreg_l8c_1p8: ldo8 {
796f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
797f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
798f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
799f126890aSEmmanuel Vadot		};
800f126890aSEmmanuel Vadot
801f126890aSEmmanuel Vadot		vreg_l9c_2p9: ldo9 {
802f126890aSEmmanuel Vadot			regulator-min-microvolt = <2952000>;
803f126890aSEmmanuel Vadot			regulator-max-microvolt = <2952000>;
804f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
805f126890aSEmmanuel Vadot		};
806f126890aSEmmanuel Vadot
807f126890aSEmmanuel Vadot		vreg_l10c_3p3: ldo10 {
808f126890aSEmmanuel Vadot			regulator-min-microvolt = <3000000>;
809f126890aSEmmanuel Vadot			regulator-max-microvolt = <3400000>;
810f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
811f126890aSEmmanuel Vadot		};
812f126890aSEmmanuel Vadot
813f126890aSEmmanuel Vadot		vreg_l11c_3p3: ldo11 {
814f126890aSEmmanuel Vadot			regulator-min-microvolt = <3000000>;
815f126890aSEmmanuel Vadot			regulator-max-microvolt = <3400000>;
816f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
817f126890aSEmmanuel Vadot		};
818f126890aSEmmanuel Vadot
819f126890aSEmmanuel Vadot		vreg_bob: bob {
820f126890aSEmmanuel Vadot			regulator-min-microvolt = <3008000>;
821f126890aSEmmanuel Vadot			regulator-max-microvolt = <3960000>;
822f126890aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;
823f126890aSEmmanuel Vadot		};
824f126890aSEmmanuel Vadot	};
825f126890aSEmmanuel Vadot};
826f126890aSEmmanuel Vadot
827f126890aSEmmanuel Vadot&qup_i2c2_default {
828f126890aSEmmanuel Vadot	drive-strength = <2>;
829f126890aSEmmanuel Vadot
830f126890aSEmmanuel Vadot	/* Has external pullup */
831f126890aSEmmanuel Vadot	bias-disable;
832f126890aSEmmanuel Vadot};
833f126890aSEmmanuel Vadot
834f126890aSEmmanuel Vadot&qup_i2c4_default {
835f126890aSEmmanuel Vadot	drive-strength = <2>;
836f126890aSEmmanuel Vadot
837f126890aSEmmanuel Vadot	/* Has external pullup */
838f126890aSEmmanuel Vadot	bias-disable;
839f126890aSEmmanuel Vadot};
840f126890aSEmmanuel Vadot
841f126890aSEmmanuel Vadot&qup_i2c9_default {
842f126890aSEmmanuel Vadot	drive-strength = <2>;
843f126890aSEmmanuel Vadot
844f126890aSEmmanuel Vadot	/* Has external pullup */
845f126890aSEmmanuel Vadot	bias-disable;
846f126890aSEmmanuel Vadot};
847f126890aSEmmanuel Vadot
848f126890aSEmmanuel Vadot&qup_i2c10_default {
849f126890aSEmmanuel Vadot	drive-strength = <2>;
850f126890aSEmmanuel Vadot
851f126890aSEmmanuel Vadot	/* Has external pullup */
852f126890aSEmmanuel Vadot	bias-disable;
853f126890aSEmmanuel Vadot};
854f126890aSEmmanuel Vadot
855f126890aSEmmanuel Vadot&tlmm {
856f126890aSEmmanuel Vadot	/*
857f126890aSEmmanuel Vadot	 * The TZ seem to protect those because some boards can have
858f126890aSEmmanuel Vadot	 * fingerprint sensor connected to this range. Not connected
859f126890aSEmmanuel Vadot	 * on this board
860f126890aSEmmanuel Vadot	 */
861f126890aSEmmanuel Vadot	gpio-reserved-ranges = <58 5>;
862f126890aSEmmanuel Vadot
863f126890aSEmmanuel Vadot	amp_sd_mode_default: amp-sd-mode-deault-state {
864f126890aSEmmanuel Vadot		pins = "gpio23";
865f126890aSEmmanuel Vadot		function = "gpio";
866f126890aSEmmanuel Vadot		drive-strength = <16>;
867f126890aSEmmanuel Vadot		bias-disable;
868f126890aSEmmanuel Vadot	};
869f126890aSEmmanuel Vadot
870f126890aSEmmanuel Vadot	bridge_en_default: bridge-en-default-state {
871f126890aSEmmanuel Vadot		pins = "gpio51";
872f126890aSEmmanuel Vadot		function = "gpio";
873f126890aSEmmanuel Vadot		drive-strength = <16>;
874f126890aSEmmanuel Vadot		bias-disable;
875f126890aSEmmanuel Vadot	};
876f126890aSEmmanuel Vadot
877f126890aSEmmanuel Vadot	bridge_suspend_default: bridge-suspend-default-state {
878f126890aSEmmanuel Vadot		pins = "gpio22";
879f126890aSEmmanuel Vadot		function = "gpio";
880f126890aSEmmanuel Vadot		drive-strength = <16>;
881f126890aSEmmanuel Vadot		bias-pull-up;
882f126890aSEmmanuel Vadot	};
883f126890aSEmmanuel Vadot
884f126890aSEmmanuel Vadot	codec_irq_default: codec-irq-deault-state {
885f126890aSEmmanuel Vadot		pins = "gpio28";
886f126890aSEmmanuel Vadot		function = "gpio";
887f126890aSEmmanuel Vadot		drive-strength = <2>;
888f126890aSEmmanuel Vadot		bias-disable;
889f126890aSEmmanuel Vadot	};
890f126890aSEmmanuel Vadot
891*7d0873ebSEmmanuel Vadot	ec_int_default: ec-int-default-state {
892*7d0873ebSEmmanuel Vadot		pins = "gpio30";
893*7d0873ebSEmmanuel Vadot		function = "gpio";
894*7d0873ebSEmmanuel Vadot		drive-strength = <2>;
895*7d0873ebSEmmanuel Vadot		bias-disable;
896*7d0873ebSEmmanuel Vadot	};
897*7d0873ebSEmmanuel Vadot
898f126890aSEmmanuel Vadot	edp_bridge_irq_default: edp-bridge-irq-default-state {
899f126890aSEmmanuel Vadot		pins = "gpio11";
900f126890aSEmmanuel Vadot		function = "gpio";
901f126890aSEmmanuel Vadot		drive-strength = <2>;
902f126890aSEmmanuel Vadot		bias-pull-down;
903f126890aSEmmanuel Vadot	};
904f126890aSEmmanuel Vadot
905f126890aSEmmanuel Vadot	hid_keyboard_default: hid-keyboard-default-state {
906f126890aSEmmanuel Vadot		pins = "gpio33";
907f126890aSEmmanuel Vadot		function = "gpio";
908f126890aSEmmanuel Vadot		drive-strength = <2>;
909f126890aSEmmanuel Vadot		bias-disable;
910f126890aSEmmanuel Vadot	};
911f126890aSEmmanuel Vadot
912f126890aSEmmanuel Vadot	hid_touchpad_default: hid-touchpad-default-state {
913f126890aSEmmanuel Vadot		pins = "gpio94";
914f126890aSEmmanuel Vadot		function = "gpio";
915f126890aSEmmanuel Vadot		drive-strength = <2>;
916f126890aSEmmanuel Vadot		bias-disable;
917f126890aSEmmanuel Vadot	};
918f126890aSEmmanuel Vadot
919f126890aSEmmanuel Vadot	qup_uart3_sleep: qup-uart3-sleep-state {
920f126890aSEmmanuel Vadot		cts-pins {
921f126890aSEmmanuel Vadot			/*
922f126890aSEmmanuel Vadot			 * Configure a pull-down on CTS to match the pull of
923f126890aSEmmanuel Vadot			 * the Bluetooth module.
924f126890aSEmmanuel Vadot			 */
925f126890aSEmmanuel Vadot			pins = "gpio38";
926f126890aSEmmanuel Vadot			function = "gpio";
927f126890aSEmmanuel Vadot			bias-pull-down;
928f126890aSEmmanuel Vadot		};
929f126890aSEmmanuel Vadot
930f126890aSEmmanuel Vadot		rts-pins {
931f126890aSEmmanuel Vadot			/*
932f126890aSEmmanuel Vadot			 * Configure pull-down on RTS. As RTS is active low
933f126890aSEmmanuel Vadot			 * signal, pull it low to indicate the BT SoC that it
934f126890aSEmmanuel Vadot			 * can wakeup the system anytime from suspend state by
935f126890aSEmmanuel Vadot			 * pulling RX low (by sending wakeup bytes).
936f126890aSEmmanuel Vadot			 */
937f126890aSEmmanuel Vadot			pins = "gpio39";
938f126890aSEmmanuel Vadot			function = "gpio";
939f126890aSEmmanuel Vadot			bias-pull-down;
940f126890aSEmmanuel Vadot		};
941f126890aSEmmanuel Vadot
942f126890aSEmmanuel Vadot		tx-pins {
943f126890aSEmmanuel Vadot			/*
944f126890aSEmmanuel Vadot			 * Configure pull-up on TX when it isn't actively driven
945f126890aSEmmanuel Vadot			 * to prevent BT SoC from receiving garbage during sleep.
946f126890aSEmmanuel Vadot			 */
947f126890aSEmmanuel Vadot			pins = "gpio40";
948f126890aSEmmanuel Vadot			function = "gpio";
949f126890aSEmmanuel Vadot			bias-pull-up;
950f126890aSEmmanuel Vadot		};
951f126890aSEmmanuel Vadot
952f126890aSEmmanuel Vadot		rx-pins {
953f126890aSEmmanuel Vadot			/*
954f126890aSEmmanuel Vadot			 * Configure a pull-up on RX. This is needed to avoid
955f126890aSEmmanuel Vadot			 * garbage data when the TX pin of the Bluetooth module
956f126890aSEmmanuel Vadot			 * is floating which may cause spurious wakeups.
957f126890aSEmmanuel Vadot			 */
958f126890aSEmmanuel Vadot			pins = "gpio41";
959f126890aSEmmanuel Vadot			function = "gpio";
960f126890aSEmmanuel Vadot			bias-pull-up;
961f126890aSEmmanuel Vadot		};
962f126890aSEmmanuel Vadot	};
963f126890aSEmmanuel Vadot
964f126890aSEmmanuel Vadot	reg_edp_1p2_en_default: reg-edp-1p2-en-deault-state {
965f126890aSEmmanuel Vadot		pins = "gpio19";
966f126890aSEmmanuel Vadot		function = "gpio";
967f126890aSEmmanuel Vadot		drive-strength = <16>;
968f126890aSEmmanuel Vadot		bias-disable;
969f126890aSEmmanuel Vadot	};
970f126890aSEmmanuel Vadot
971f126890aSEmmanuel Vadot	reg_edp_1p8_en_default: reg-edp-1p8-en-deault-state {
972f126890aSEmmanuel Vadot		pins = "gpio20";
973f126890aSEmmanuel Vadot		function = "gpio";
974f126890aSEmmanuel Vadot		drive-strength = <16>;
975f126890aSEmmanuel Vadot		bias-disable;
976f126890aSEmmanuel Vadot	};
977f126890aSEmmanuel Vadot
978f126890aSEmmanuel Vadot	reg_lcm_en_default: reg-lcm-en-deault-state {
979f126890aSEmmanuel Vadot		pins = "gpio26";
980f126890aSEmmanuel Vadot		function = "gpio";
981f126890aSEmmanuel Vadot		drive-strength = <16>;
982f126890aSEmmanuel Vadot		bias-disable;
983f126890aSEmmanuel Vadot	};
984f126890aSEmmanuel Vadot
985f126890aSEmmanuel Vadot	reg_audio_en_default: reg-audio-en-deault-state {
986f126890aSEmmanuel Vadot		pins = "gpio83";
987f126890aSEmmanuel Vadot		function = "gpio";
988f126890aSEmmanuel Vadot		drive-strength = <2>;
989f126890aSEmmanuel Vadot		bias-disable;
990f126890aSEmmanuel Vadot	};
991f126890aSEmmanuel Vadot
992f126890aSEmmanuel Vadot	reg_tp_en_default: reg-tp-en-deault-state {
993f126890aSEmmanuel Vadot		pins = "gpio25";
994f126890aSEmmanuel Vadot		function = "gpio";
995f126890aSEmmanuel Vadot		drive-strength = <2>;
996f126890aSEmmanuel Vadot		bias-disable;
997f126890aSEmmanuel Vadot	};
998f126890aSEmmanuel Vadot
999f126890aSEmmanuel Vadot	soc_bkoff_default: soc-bkoff-deault-state {
1000f126890aSEmmanuel Vadot		pins = "gpio10";
1001f126890aSEmmanuel Vadot		function = "gpio";
1002f126890aSEmmanuel Vadot		drive-strength = <16>;
1003f126890aSEmmanuel Vadot		bias-disable;
1004f126890aSEmmanuel Vadot	};
1005f126890aSEmmanuel Vadot
1006f126890aSEmmanuel Vadot	sdc1_default: sdc1-default-state {
1007f126890aSEmmanuel Vadot		clk-pins {
1008f126890aSEmmanuel Vadot			pins = "sdc1_clk";
1009f126890aSEmmanuel Vadot			drive-strength = <16>;
1010f126890aSEmmanuel Vadot			bias-disable;
1011f126890aSEmmanuel Vadot		};
1012f126890aSEmmanuel Vadot
1013f126890aSEmmanuel Vadot		cmd-pins {
1014f126890aSEmmanuel Vadot			pins = "sdc1_cmd";
1015f126890aSEmmanuel Vadot			drive-strength = <16>;
1016f126890aSEmmanuel Vadot			bias-pull-up;
1017f126890aSEmmanuel Vadot		};
1018f126890aSEmmanuel Vadot
1019f126890aSEmmanuel Vadot		data-pins {
1020f126890aSEmmanuel Vadot			pins = "sdc1_data";
1021f126890aSEmmanuel Vadot			drive-strength = <16>;
1022f126890aSEmmanuel Vadot			bias-pull-up;
1023f126890aSEmmanuel Vadot		};
1024f126890aSEmmanuel Vadot
1025f126890aSEmmanuel Vadot		rclk-pins {
1026f126890aSEmmanuel Vadot			pins = "sdc1_rclk";
1027f126890aSEmmanuel Vadot			bias-pull-down;
1028f126890aSEmmanuel Vadot		};
1029f126890aSEmmanuel Vadot	};
1030f126890aSEmmanuel Vadot
1031f126890aSEmmanuel Vadot	sdc1_sleep: sdc1-sleep-state {
1032f126890aSEmmanuel Vadot		clk-pins {
1033f126890aSEmmanuel Vadot			pins = "sdc1_clk";
1034f126890aSEmmanuel Vadot			drive-strength = <2>;
1035f126890aSEmmanuel Vadot			bias-disable;
1036f126890aSEmmanuel Vadot		};
1037f126890aSEmmanuel Vadot
1038f126890aSEmmanuel Vadot		cmd-pins {
1039f126890aSEmmanuel Vadot			pins = "sdc1_cmd";
1040f126890aSEmmanuel Vadot			drive-strength = <2>;
1041f126890aSEmmanuel Vadot			bias-pull-up;
1042f126890aSEmmanuel Vadot		};
1043f126890aSEmmanuel Vadot
1044f126890aSEmmanuel Vadot		data-pins {
1045f126890aSEmmanuel Vadot			pins = "sdc1_data";
1046f126890aSEmmanuel Vadot			drive-strength = <2>;
1047f126890aSEmmanuel Vadot			bias-pull-up;
1048f126890aSEmmanuel Vadot		};
1049f126890aSEmmanuel Vadot
1050f126890aSEmmanuel Vadot		rclk-pins {
1051f126890aSEmmanuel Vadot			pins = "sdc1_rclk";
1052f126890aSEmmanuel Vadot			bias-pull-down;
1053f126890aSEmmanuel Vadot		};
1054f126890aSEmmanuel Vadot	};
1055f126890aSEmmanuel Vadot};
1056