xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/sdm630-sony-xperia-nile.dtsi (revision 8cc087a1eee9ec1ca9f7ac1e63ad51bdb5a682eb)
1c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: BSD-3-Clause
2c66ec88fSEmmanuel Vadot/*
3354d7675SEmmanuel Vadot * Copyright (c) 2020, Konrad Dybcio <konrad.dybcio@somainline.org>
4354d7675SEmmanuel Vadot * Copyright (c) 2020, AngeloGioacchino Del Regno
5354d7675SEmmanuel Vadot *                     <angelogioacchino.delregno@somainline.org>
6c66ec88fSEmmanuel Vadot */
7c66ec88fSEmmanuel Vadot
8c66ec88fSEmmanuel Vadot#include "pm660.dtsi"
9c66ec88fSEmmanuel Vadot#include "pm660l.dtsi"
10c66ec88fSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
11c66ec88fSEmmanuel Vadot#include <dt-bindings/input/input.h>
12c66ec88fSEmmanuel Vadot#include <dt-bindings/input/gpio-keys.h>
13c66ec88fSEmmanuel Vadot
14c66ec88fSEmmanuel Vadot/ {
15c66ec88fSEmmanuel Vadot	/* required for bootloader to select correct board */
16c66ec88fSEmmanuel Vadot	qcom,msm-id = <318 0>;
17c66ec88fSEmmanuel Vadot	qcom,board-id = <8 1>;
18c66ec88fSEmmanuel Vadot	qcom,pmic-id = <0x1001b 0x101011a 0x00 0x00 0x1001b 0x201011a 0x00 0x00>;
19c66ec88fSEmmanuel Vadot
20c66ec88fSEmmanuel Vadot	/* This part enables graphical output via bootloader-enabled display */
21c66ec88fSEmmanuel Vadot	chosen {
22c66ec88fSEmmanuel Vadot		bootargs = "earlycon=tty0 console=tty0";
23c66ec88fSEmmanuel Vadot
24c66ec88fSEmmanuel Vadot		#address-cells = <2>;
25c66ec88fSEmmanuel Vadot		#size-cells = <2>;
26c66ec88fSEmmanuel Vadot		ranges;
27c66ec88fSEmmanuel Vadot
28c66ec88fSEmmanuel Vadot		stdout-path = "framebuffer0";
29c66ec88fSEmmanuel Vadot
30c66ec88fSEmmanuel Vadot		framebuffer0: framebuffer@9d400000 {
31c66ec88fSEmmanuel Vadot			compatible = "simple-framebuffer";
32c66ec88fSEmmanuel Vadot			reg = <0 0x9d400000 0 (1920 * 1080 * 4)>;
33c66ec88fSEmmanuel Vadot			width = <1080>;
34c66ec88fSEmmanuel Vadot			height = <1920>;
35c66ec88fSEmmanuel Vadot			stride = <(1080 * 4)>;
36c66ec88fSEmmanuel Vadot			format = "a8r8g8b8";
37c66ec88fSEmmanuel Vadot			status= "okay";
38c66ec88fSEmmanuel Vadot		};
39c66ec88fSEmmanuel Vadot	};
40c66ec88fSEmmanuel Vadot
41354d7675SEmmanuel Vadot	board_vbat: vbat-regulator {
42354d7675SEmmanuel Vadot		compatible = "regulator-fixed";
43354d7675SEmmanuel Vadot		regulator-name = "VBAT";
44354d7675SEmmanuel Vadot
45354d7675SEmmanuel Vadot		regulator-min-microvolt = <4000000>;
46354d7675SEmmanuel Vadot		regulator-max-microvolt = <4000000>;
47354d7675SEmmanuel Vadot		regulator-always-on;
48354d7675SEmmanuel Vadot		regulator-boot-on;
49354d7675SEmmanuel Vadot	};
50354d7675SEmmanuel Vadot
51354d7675SEmmanuel Vadot	vph_pwr: vph-pwr-regulator {
52354d7675SEmmanuel Vadot		compatible = "regulator-fixed";
53354d7675SEmmanuel Vadot		regulator-name = "vph_pwr";
54354d7675SEmmanuel Vadot
55354d7675SEmmanuel Vadot		regulator-always-on;
56354d7675SEmmanuel Vadot		regulator-boot-on;
57354d7675SEmmanuel Vadot	};
58354d7675SEmmanuel Vadot
59354d7675SEmmanuel Vadot	cam_vdig_imx300_219_vreg: cam_vdig_imx300_219_vreg {
60354d7675SEmmanuel Vadot		compatible = "regulator-fixed";
61354d7675SEmmanuel Vadot		regulator-name = "cam_vdig_imx300_219_vreg";
62354d7675SEmmanuel Vadot		startup-delay-us = <0>;
63354d7675SEmmanuel Vadot		enable-active-high;
64354d7675SEmmanuel Vadot		gpio = <&tlmm 52 GPIO_ACTIVE_HIGH>;
65354d7675SEmmanuel Vadot		pinctrl-names = "default";
66354d7675SEmmanuel Vadot		pinctrl-0 = <&cam_vdig_default>;
67354d7675SEmmanuel Vadot	};
68354d7675SEmmanuel Vadot
69354d7675SEmmanuel Vadot	cam_vana_front_vreg: cam_vana_front_vreg {
70354d7675SEmmanuel Vadot		compatible = "regulator-fixed";
71354d7675SEmmanuel Vadot		regulator-name = "cam_vana_front_vreg";
72354d7675SEmmanuel Vadot		startup-delay-us = <0>;
73354d7675SEmmanuel Vadot		enable-active-high;
74354d7675SEmmanuel Vadot		gpio = <&tlmm 51 GPIO_ACTIVE_HIGH>;
75354d7675SEmmanuel Vadot		pinctrl-names = "default";
76354d7675SEmmanuel Vadot		pinctrl-0 = <&imx219_vana_default>;
77354d7675SEmmanuel Vadot	};
78354d7675SEmmanuel Vadot
79354d7675SEmmanuel Vadot	cam_vana_rear_vreg: cam_vana_rear_vreg {
80354d7675SEmmanuel Vadot		compatible = "regulator-fixed";
81354d7675SEmmanuel Vadot		regulator-name = "cam_vana_rear_vreg";
82354d7675SEmmanuel Vadot		startup-delay-us = <0>;
83354d7675SEmmanuel Vadot		enable-active-high;
84354d7675SEmmanuel Vadot		gpio = <&tlmm 50 GPIO_ACTIVE_HIGH>;
85354d7675SEmmanuel Vadot		regulator-always-on;
86354d7675SEmmanuel Vadot		pinctrl-names = "default";
87354d7675SEmmanuel Vadot		pinctrl-0 = <&imx300_vana_default>;
88354d7675SEmmanuel Vadot	};
89354d7675SEmmanuel Vadot
90c66ec88fSEmmanuel Vadot	gpio_keys {
91c66ec88fSEmmanuel Vadot		status = "okay";
92c66ec88fSEmmanuel Vadot		compatible = "gpio-keys";
93c66ec88fSEmmanuel Vadot		input-name = "gpio-keys";
94c66ec88fSEmmanuel Vadot		#address-cells = <1>;
95c66ec88fSEmmanuel Vadot		#size-cells = <0>;
96c66ec88fSEmmanuel Vadot
97c66ec88fSEmmanuel Vadot		camera_focus {
98c66ec88fSEmmanuel Vadot			label = "Camera Focus";
99c66ec88fSEmmanuel Vadot			gpios = <&tlmm 64 GPIO_ACTIVE_LOW>;
100c66ec88fSEmmanuel Vadot			linux,input-type = <1>;
101c66ec88fSEmmanuel Vadot			linux,code = <KEY_CAMERA_FOCUS>;
102c66ec88fSEmmanuel Vadot			debounce-interval = <15>;
103c66ec88fSEmmanuel Vadot		};
104c66ec88fSEmmanuel Vadot
105c66ec88fSEmmanuel Vadot		camera_snapshot {
106c66ec88fSEmmanuel Vadot			label = "Camera Snapshot";
107c66ec88fSEmmanuel Vadot			gpios = <&tlmm 113 GPIO_ACTIVE_LOW>;
108c66ec88fSEmmanuel Vadot			linux,input-type = <1>;
109c66ec88fSEmmanuel Vadot			linux,code = <KEY_CAMERA>;
110c66ec88fSEmmanuel Vadot			debounce-interval = <15>;
111c66ec88fSEmmanuel Vadot		};
112c66ec88fSEmmanuel Vadot
113c66ec88fSEmmanuel Vadot		vol_down {
114c66ec88fSEmmanuel Vadot			label = "Volume Down";
115c66ec88fSEmmanuel Vadot			gpios = <&pm660l_gpios 7 GPIO_ACTIVE_LOW>;
116c66ec88fSEmmanuel Vadot			linux,input-type = <1>;
117c66ec88fSEmmanuel Vadot			linux,code = <KEY_VOLUMEDOWN>;
118c66ec88fSEmmanuel Vadot			gpio-key,wakeup;
119c66ec88fSEmmanuel Vadot			debounce-interval = <15>;
120c66ec88fSEmmanuel Vadot		};
121c66ec88fSEmmanuel Vadot	};
122c66ec88fSEmmanuel Vadot
123c66ec88fSEmmanuel Vadot	reserved-memory {
124c66ec88fSEmmanuel Vadot		#address-cells = <2>;
125c66ec88fSEmmanuel Vadot		#size-cells = <2>;
126c66ec88fSEmmanuel Vadot		ranges;
127c66ec88fSEmmanuel Vadot
128c66ec88fSEmmanuel Vadot		ramoops@ffc00000 {
129c66ec88fSEmmanuel Vadot			compatible = "ramoops";
130c66ec88fSEmmanuel Vadot			reg = <0x0 0xffc00000 0x0 0x100000>;
131c66ec88fSEmmanuel Vadot			record-size = <0x10000>;
132c66ec88fSEmmanuel Vadot			console-size = <0x60000>;
133c66ec88fSEmmanuel Vadot			ftrace-size = <0x10000>;
134c66ec88fSEmmanuel Vadot			pmsg-size = <0x20000>;
135c66ec88fSEmmanuel Vadot			ecc-size = <16>;
136c66ec88fSEmmanuel Vadot			status = "okay";
137c66ec88fSEmmanuel Vadot		};
138c66ec88fSEmmanuel Vadot
139c66ec88fSEmmanuel Vadot		debug_region@ffb00000 {
140c66ec88fSEmmanuel Vadot			reg = <0x00 0xffb00000 0x00 0x100000>;
141c66ec88fSEmmanuel Vadot			no-map;
142c66ec88fSEmmanuel Vadot		};
143c66ec88fSEmmanuel Vadot
144c66ec88fSEmmanuel Vadot		removed_region@85800000 {
145c66ec88fSEmmanuel Vadot			reg = <0x00 0x85800000 0x00 0x3700000>;
146c66ec88fSEmmanuel Vadot			no-map;
147c66ec88fSEmmanuel Vadot		};
148c66ec88fSEmmanuel Vadot	};
149c66ec88fSEmmanuel Vadot
150354d7675SEmmanuel Vadot	/*
151354d7675SEmmanuel Vadot	 * Until we hook up type-c detection, we
152354d7675SEmmanuel Vadot	 * have to stick with this. But it works.
153354d7675SEmmanuel Vadot	 */
154354d7675SEmmanuel Vadot	extcon_usb: extcon-usb {
155354d7675SEmmanuel Vadot		compatible = "linux,extcon-usb-gpio";
156354d7675SEmmanuel Vadot		id-gpio = <&tlmm 58 GPIO_ACTIVE_HIGH>;
157354d7675SEmmanuel Vadot	};
158c66ec88fSEmmanuel Vadot};
159c66ec88fSEmmanuel Vadot
160354d7675SEmmanuel Vadot&adsp_pil {
161354d7675SEmmanuel Vadot	firmware-name = "adsp.mdt";
162c66ec88fSEmmanuel Vadot};
163c66ec88fSEmmanuel Vadot
164354d7675SEmmanuel Vadot&blsp_i2c1 {
165354d7675SEmmanuel Vadot	status = "okay";
166354d7675SEmmanuel Vadot
167354d7675SEmmanuel Vadot	touchscreen: synaptics-rmi4-i2c@70 {
168354d7675SEmmanuel Vadot		compatible = "syna,rmi4-i2c";
169354d7675SEmmanuel Vadot		reg = <0x70>;
170354d7675SEmmanuel Vadot		#address-cells = <1>;
171354d7675SEmmanuel Vadot		#size-cells = <0>;
172354d7675SEmmanuel Vadot		interrupts-extended = <&tlmm 45 0x2008>;
173354d7675SEmmanuel Vadot
174354d7675SEmmanuel Vadot		pinctrl-names = "default";
175354d7675SEmmanuel Vadot		pinctrl-0 = <&ts_int_active &ts_lcd_id_active>;
176354d7675SEmmanuel Vadot
177354d7675SEmmanuel Vadot		syna,reset-delay-ms = <200>;
178354d7675SEmmanuel Vadot		syna,startup-delay-ms = <220>;
179354d7675SEmmanuel Vadot
180354d7675SEmmanuel Vadot		rmi4-f01@1 {
181354d7675SEmmanuel Vadot			reg = <0x01>;
182354d7675SEmmanuel Vadot			syna,nosleep-mode = <1>;
183354d7675SEmmanuel Vadot		};
184354d7675SEmmanuel Vadot
185354d7675SEmmanuel Vadot		rmi4-f11@11 {
186354d7675SEmmanuel Vadot			reg = <0x11>;
187354d7675SEmmanuel Vadot			syna,sensor-type = <1>;
188354d7675SEmmanuel Vadot		};
189354d7675SEmmanuel Vadot	};
190354d7675SEmmanuel Vadot};
191354d7675SEmmanuel Vadot
192354d7675SEmmanuel Vadot&blsp_i2c2 {
193c66ec88fSEmmanuel Vadot	status = "okay";
194c66ec88fSEmmanuel Vadot
195c66ec88fSEmmanuel Vadot	/* SMB1351 charger */
196c66ec88fSEmmanuel Vadot};
197c66ec88fSEmmanuel Vadot
198c66ec88fSEmmanuel Vadot/* I2C3, 4, 5, 7 and 8 are disabled on this board. */
199c66ec88fSEmmanuel Vadot
200354d7675SEmmanuel Vadot&blsp_i2c6 {
201c66ec88fSEmmanuel Vadot	status = "okay";
202c66ec88fSEmmanuel Vadot
203c66ec88fSEmmanuel Vadot	/* NXP NFC */
204c66ec88fSEmmanuel Vadot};
205354d7675SEmmanuel Vadot
206354d7675SEmmanuel Vadot&blsp1_uart2 {
207354d7675SEmmanuel Vadot	status = "okay";
208354d7675SEmmanuel Vadot
209354d7675SEmmanuel Vadot	/* MSM serial console */
210c66ec88fSEmmanuel Vadot};
211354d7675SEmmanuel Vadot
212354d7675SEmmanuel Vadot&blsp2_uart1 {
213354d7675SEmmanuel Vadot	status = "okay";
214354d7675SEmmanuel Vadot
215354d7675SEmmanuel Vadot	/* HCI Bluetooth */
216354d7675SEmmanuel Vadot};
217354d7675SEmmanuel Vadot
218354d7675SEmmanuel Vadot&pon {
219354d7675SEmmanuel Vadot	volup {
220354d7675SEmmanuel Vadot		compatible = "qcom,pm8941-resin";
221354d7675SEmmanuel Vadot		interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>;
222354d7675SEmmanuel Vadot		debounce = <15625>;
223354d7675SEmmanuel Vadot		bias-pull-up;
224354d7675SEmmanuel Vadot		linux,code = <KEY_VOLUMEUP>;
225354d7675SEmmanuel Vadot	};
226354d7675SEmmanuel Vadot};
227354d7675SEmmanuel Vadot
228354d7675SEmmanuel Vadot&qusb2phy {
229354d7675SEmmanuel Vadot	status = "okay";
230354d7675SEmmanuel Vadot
231354d7675SEmmanuel Vadot	vdd-supply = <&vreg_l1b_0p925>;
232354d7675SEmmanuel Vadot	vdda-pll-supply = <&vreg_l10a_1p8>;
233354d7675SEmmanuel Vadot	vdda-phy-dpdm-supply = <&vreg_l7b_3p125>;
234354d7675SEmmanuel Vadot};
235354d7675SEmmanuel Vadot
236354d7675SEmmanuel Vadot&rpm_requests {
237354d7675SEmmanuel Vadot	pm660l-regulators {
238354d7675SEmmanuel Vadot		compatible = "qcom,rpm-pm660l-regulators";
239354d7675SEmmanuel Vadot
240354d7675SEmmanuel Vadot		vdd_s1-supply = <&vph_pwr>;
241354d7675SEmmanuel Vadot		vdd_s2-supply = <&vph_pwr>;
242354d7675SEmmanuel Vadot		vdd_s3_s4-supply = <&vph_pwr>;
243354d7675SEmmanuel Vadot		vdd_s5-supply = <&vph_pwr>;
244354d7675SEmmanuel Vadot		vdd_s6-supply = <&vph_pwr>;
245354d7675SEmmanuel Vadot
246354d7675SEmmanuel Vadot		vdd_l1_l9_l10-supply = <&vreg_s2b_1p05>;
247354d7675SEmmanuel Vadot		vdd_l2-supply = <&vreg_bob>;
248354d7675SEmmanuel Vadot		vdd_l3_l5_l7_l8-supply = <&vreg_bob>;
249354d7675SEmmanuel Vadot		vdd_l4_l6-supply = <&vreg_bob>;
250354d7675SEmmanuel Vadot		vdd_bob-supply = <&vph_pwr>;
251354d7675SEmmanuel Vadot
252354d7675SEmmanuel Vadot		vreg_s1b_1p125: s1 {
253354d7675SEmmanuel Vadot			regulator-min-microvolt = <1125000>;
254354d7675SEmmanuel Vadot			regulator-max-microvolt = <1125000>;
255354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <200>;
256354d7675SEmmanuel Vadot			regulator-ramp-delay = <0>;
257354d7675SEmmanuel Vadot		};
258354d7675SEmmanuel Vadot
259354d7675SEmmanuel Vadot		vreg_s2b_1p05: s2 {
260354d7675SEmmanuel Vadot			regulator-min-microvolt = <1050000>;
261354d7675SEmmanuel Vadot			regulator-max-microvolt = <1050000>;
262354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <200>;
263354d7675SEmmanuel Vadot			regulator-ramp-delay = <0>;
264354d7675SEmmanuel Vadot		};
265354d7675SEmmanuel Vadot
266354d7675SEmmanuel Vadot		/*
267354d7675SEmmanuel Vadot		 * At least on Nile's configuration, S3B/S4B (VDD_CX) and
268354d7675SEmmanuel Vadot		 * S5B (VDD_MX) are managed only through RPM Power Domains.
269354d7675SEmmanuel Vadot		 * Trying to set a voltage on the main supply will create
270354d7675SEmmanuel Vadot		 * havoc and freeze the SoC.
271354d7675SEmmanuel Vadot		 * In any case, reference voltages for these regulators are:
272354d7675SEmmanuel Vadot		 * S3B/S4B: 0.870V
273354d7675SEmmanuel Vadot		 * S5B: 0.915V
274354d7675SEmmanuel Vadot		 */
275354d7675SEmmanuel Vadot
276354d7675SEmmanuel Vadot		/* LDOs */
277354d7675SEmmanuel Vadot		vreg_l1b_0p925: l1 {
278354d7675SEmmanuel Vadot			regulator-min-microvolt = <920000>;
279354d7675SEmmanuel Vadot			regulator-max-microvolt = <928000>;
280354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <250>;
281354d7675SEmmanuel Vadot			regulator-ramp-delay = <0>;
282354d7675SEmmanuel Vadot			regulator-allow-set-load;
283354d7675SEmmanuel Vadot		};
284354d7675SEmmanuel Vadot
285354d7675SEmmanuel Vadot		vreg_l2b_2p95: l2 {
286354d7675SEmmanuel Vadot			/*
287354d7675SEmmanuel Vadot			 * This regulator supports 1.648 - 3.104V on this board
288354d7675SEmmanuel Vadot			 * but we set a max voltage of anything less than 2.7V
289354d7675SEmmanuel Vadot			 * to satisfy a condition in sdhci.c that will disable
290354d7675SEmmanuel Vadot			 * 3.3V SDHCI signaling, which happens to be not really
291354d7675SEmmanuel Vadot			 * supported on the Xperia Nile/Ganges platform.
292354d7675SEmmanuel Vadot			 */
293354d7675SEmmanuel Vadot			regulator-min-microvolt = <1648000>;
294354d7675SEmmanuel Vadot			regulator-max-microvolt = <2696000>;
295354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <250>;
296354d7675SEmmanuel Vadot			regulator-ramp-delay = <0>;
297354d7675SEmmanuel Vadot			regulator-allow-set-load;
298354d7675SEmmanuel Vadot		};
299354d7675SEmmanuel Vadot
300354d7675SEmmanuel Vadot		vreg_l3b_3p0: l3 {
301354d7675SEmmanuel Vadot			regulator-min-microvolt = <2800000>;
302354d7675SEmmanuel Vadot			regulator-max-microvolt = <2800000>;
303354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <250>;
304354d7675SEmmanuel Vadot			regulator-ramp-delay = <0>;
305354d7675SEmmanuel Vadot			regulator-min-microamp = <200>;
306354d7675SEmmanuel Vadot			regulator-max-microamp = <600000>;
307354d7675SEmmanuel Vadot			regulator-system-load = <100000>;
308354d7675SEmmanuel Vadot			regulator-allow-set-load;
309354d7675SEmmanuel Vadot		};
310354d7675SEmmanuel Vadot
311*8cc087a1SEmmanuel Vadot		vreg_l4b_2p95: l4 {
312354d7675SEmmanuel Vadot			regulator-min-microvolt = <2944000>;
313354d7675SEmmanuel Vadot			regulator-max-microvolt = <2952000>;
314354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <250>;
315354d7675SEmmanuel Vadot			regulator-ramp-delay = <0>;
316354d7675SEmmanuel Vadot
317354d7675SEmmanuel Vadot			regulator-min-microamp = <200>;
318354d7675SEmmanuel Vadot			regulator-max-microamp = <600000>;
319354d7675SEmmanuel Vadot			regulator-system-load = <570000>;
320354d7675SEmmanuel Vadot			regulator-allow-set-load;
321354d7675SEmmanuel Vadot		};
322354d7675SEmmanuel Vadot
323354d7675SEmmanuel Vadot		/*
324354d7675SEmmanuel Vadot		 * Downstream specifies a range of 1721-3600mV,
325354d7675SEmmanuel Vadot		 * but the only assigned consumers are SDHCI2 VMMC
326354d7675SEmmanuel Vadot		 * and Coresight QPDI that both request pinned 2.95V.
327354d7675SEmmanuel Vadot		 * Tighten the range to 1.8-3.328 (closest to 3.3) to
328354d7675SEmmanuel Vadot		 * make the mmc driver happy.
329354d7675SEmmanuel Vadot		 */
330*8cc087a1SEmmanuel Vadot		vreg_l5b_2p95: l5 {
331354d7675SEmmanuel Vadot			regulator-min-microvolt = <1800000>;
332354d7675SEmmanuel Vadot			regulator-max-microvolt = <3328000>;
333354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <250>;
334354d7675SEmmanuel Vadot			regulator-ramp-delay = <0>;
335354d7675SEmmanuel Vadot			regulator-allow-set-load;
336354d7675SEmmanuel Vadot			regulator-system-load = <800000>;
337354d7675SEmmanuel Vadot		};
338354d7675SEmmanuel Vadot
339354d7675SEmmanuel Vadot		vreg_l6b_3p3: l6 {
340354d7675SEmmanuel Vadot			regulator-min-microvolt = <1704000>;
341354d7675SEmmanuel Vadot			regulator-max-microvolt = <3312000>;
342354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <250>;
343354d7675SEmmanuel Vadot			regulator-ramp-delay = <0>;
344354d7675SEmmanuel Vadot		};
345354d7675SEmmanuel Vadot
346354d7675SEmmanuel Vadot		vreg_l7b_3p125: l7 {
347354d7675SEmmanuel Vadot			regulator-min-microvolt = <2704000>;
348354d7675SEmmanuel Vadot			regulator-max-microvolt = <3128000>;
349354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <250>;
350354d7675SEmmanuel Vadot			regulator-ramp-delay = <0>;
351354d7675SEmmanuel Vadot		};
352354d7675SEmmanuel Vadot
353354d7675SEmmanuel Vadot		vreg_l8b_3p3: l8 {
354354d7675SEmmanuel Vadot			regulator-min-microvolt = <2800000>;
355354d7675SEmmanuel Vadot			regulator-max-microvolt = <3400000>;
356354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <250>;
357354d7675SEmmanuel Vadot			regulator-ramp-delay = <0>;
358354d7675SEmmanuel Vadot		};
359354d7675SEmmanuel Vadot
360354d7675SEmmanuel Vadot		/* L9B (870mV) is currently unused */
361354d7675SEmmanuel Vadot		/* L10B (915mV) is currently unused */
362354d7675SEmmanuel Vadot
363354d7675SEmmanuel Vadot		vreg_bob: bob {
364354d7675SEmmanuel Vadot			regulator-min-microvolt = <3304000>;
365354d7675SEmmanuel Vadot			regulator-max-microvolt = <3624000>;
366354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <500>;
367354d7675SEmmanuel Vadot			regulator-ramp-delay = <0>;
368354d7675SEmmanuel Vadot		};
369354d7675SEmmanuel Vadot	};
370354d7675SEmmanuel Vadot
371354d7675SEmmanuel Vadot	pm660-regulators {
372354d7675SEmmanuel Vadot		compatible = "qcom,rpm-pm660-regulators";
373354d7675SEmmanuel Vadot
374354d7675SEmmanuel Vadot		vdd_s1-supply = <&vph_pwr>;
375354d7675SEmmanuel Vadot		vdd_s2-supply = <&vph_pwr>;
376354d7675SEmmanuel Vadot		vdd_s3-supply = <&vph_pwr>;
377354d7675SEmmanuel Vadot		vdd_s4-supply = <&vph_pwr>;
378354d7675SEmmanuel Vadot		vdd_s5-supply = <&vph_pwr>;
379354d7675SEmmanuel Vadot		vdd_s6-supply = <&vph_pwr>;
380354d7675SEmmanuel Vadot
381354d7675SEmmanuel Vadot		vdd_l1_l6_l7-supply = <&vreg_s5a_1p35>;
382354d7675SEmmanuel Vadot		vdd_l2_l3-supply = <&vreg_s2b_1p05>;
383354d7675SEmmanuel Vadot		vdd_l5-supply = <&vreg_s2b_1p05>;
384354d7675SEmmanuel Vadot		vdd_l8_l9_l10_l11_l12_l13_l14-supply = <&vreg_s4a_2p04>;
385354d7675SEmmanuel Vadot		vdd_l15_l16_l17_l18_l19-supply = <&vreg_bob>;
386354d7675SEmmanuel Vadot
387354d7675SEmmanuel Vadot		/*
388354d7675SEmmanuel Vadot		 * S1A (FTAPC0), S2A (FTAPC1), S3A (HFAPC1) are managed
389354d7675SEmmanuel Vadot		 * by the Core Power Reduction hardened (CPRh) and the
390354d7675SEmmanuel Vadot		 * Operating State Manager (OSM) HW automatically.
391354d7675SEmmanuel Vadot		 */
392354d7675SEmmanuel Vadot
393354d7675SEmmanuel Vadot		vreg_s4a_2p04: s4 {
394354d7675SEmmanuel Vadot			regulator-min-microvolt = <2040000>;
395354d7675SEmmanuel Vadot			regulator-max-microvolt = <2040000>;
396354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <200>;
397354d7675SEmmanuel Vadot			regulator-ramp-delay = <0>;
398354d7675SEmmanuel Vadot			regulator-always-on;
399354d7675SEmmanuel Vadot		};
400354d7675SEmmanuel Vadot
401354d7675SEmmanuel Vadot		vreg_s5a_1p35: s5 {
402354d7675SEmmanuel Vadot			regulator-min-microvolt = <1224000>;
403354d7675SEmmanuel Vadot			regulator-max-microvolt = <1350000>;
404354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <200>;
405354d7675SEmmanuel Vadot			regulator-ramp-delay = <0>;
406354d7675SEmmanuel Vadot		};
407354d7675SEmmanuel Vadot
408354d7675SEmmanuel Vadot		vreg_s6a_0p87: s6 {
409354d7675SEmmanuel Vadot			regulator-min-microvolt = <504000>;
410354d7675SEmmanuel Vadot			regulator-max-microvolt = <992000>;
411354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <150>;
412354d7675SEmmanuel Vadot			regulator-ramp-delay = <0>;
413354d7675SEmmanuel Vadot		};
414354d7675SEmmanuel Vadot
415354d7675SEmmanuel Vadot		/* LDOs */
416354d7675SEmmanuel Vadot		vreg_l1a_1p225: l1 {
417354d7675SEmmanuel Vadot			regulator-min-microvolt = <1226000>;
418354d7675SEmmanuel Vadot			regulator-max-microvolt = <1250000>;
419354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <250>;
420354d7675SEmmanuel Vadot			regulator-ramp-delay = <0>;
421354d7675SEmmanuel Vadot			regulator-allow-set-load;
422354d7675SEmmanuel Vadot		};
423354d7675SEmmanuel Vadot
424354d7675SEmmanuel Vadot		vreg_l2a_1p0: l2 {
425354d7675SEmmanuel Vadot			regulator-min-microvolt = <944000>;
426354d7675SEmmanuel Vadot			regulator-max-microvolt = <1008000>;
427354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <250>;
428354d7675SEmmanuel Vadot			regulator-ramp-delay = <0>;
429354d7675SEmmanuel Vadot		};
430354d7675SEmmanuel Vadot
431354d7675SEmmanuel Vadot		vreg_l3a_1p0: l3 {
432354d7675SEmmanuel Vadot			regulator-min-microvolt = <944000>;
433354d7675SEmmanuel Vadot			regulator-max-microvolt = <1008000>;
434354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <250>;
435354d7675SEmmanuel Vadot			regulator-ramp-delay = <0>;
436354d7675SEmmanuel Vadot		};
437354d7675SEmmanuel Vadot
438354d7675SEmmanuel Vadot		vreg_l5a_0p848: l5 {
439354d7675SEmmanuel Vadot			regulator-min-microvolt = <800000>;
440354d7675SEmmanuel Vadot			regulator-max-microvolt = <952000>;
441354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <250>;
442354d7675SEmmanuel Vadot			regulator-ramp-delay = <0>;
443354d7675SEmmanuel Vadot		};
444354d7675SEmmanuel Vadot
445354d7675SEmmanuel Vadot		vreg_l6a_1p3: l6 {
446354d7675SEmmanuel Vadot			regulator-min-microvolt = <1304000>;
447354d7675SEmmanuel Vadot			regulator-max-microvolt = <1368000>;
448354d7675SEmmanuel Vadot			regulator-allow-set-load;
449354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <250>;
450354d7675SEmmanuel Vadot			regulator-ramp-delay = <0>;
451354d7675SEmmanuel Vadot		};
452354d7675SEmmanuel Vadot
453354d7675SEmmanuel Vadot		vreg_l7a_1p2: l7 {
454354d7675SEmmanuel Vadot			regulator-min-microvolt = <1200000>;
455354d7675SEmmanuel Vadot			regulator-max-microvolt = <1200000>;
456354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <250>;
457354d7675SEmmanuel Vadot			regulator-ramp-delay = <0>;
458354d7675SEmmanuel Vadot		};
459354d7675SEmmanuel Vadot
460354d7675SEmmanuel Vadot		vreg_l8a_1p8: l8 {
461354d7675SEmmanuel Vadot			regulator-min-microvolt = <1800000>;
462354d7675SEmmanuel Vadot			regulator-max-microvolt = <1800000>;
463354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <250>;
464354d7675SEmmanuel Vadot			regulator-ramp-delay = <0>;
465354d7675SEmmanuel Vadot			regulator-system-load = <325000>;
466354d7675SEmmanuel Vadot			regulator-allow-set-load;
467354d7675SEmmanuel Vadot		};
468354d7675SEmmanuel Vadot
469354d7675SEmmanuel Vadot		vreg_l9a_1p8: l9 {
470354d7675SEmmanuel Vadot			regulator-min-microvolt = <1804000>;
471354d7675SEmmanuel Vadot			regulator-max-microvolt = <1896000>;
472354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <250>;
473354d7675SEmmanuel Vadot			regulator-ramp-delay = <0>;
474354d7675SEmmanuel Vadot			regulator-allow-set-load;
475354d7675SEmmanuel Vadot		};
476354d7675SEmmanuel Vadot
477354d7675SEmmanuel Vadot		vreg_l10a_1p8: l10 {
478354d7675SEmmanuel Vadot			regulator-min-microvolt = <1800000>;
479354d7675SEmmanuel Vadot			regulator-max-microvolt = <1944000>;
480354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <250>;
481354d7675SEmmanuel Vadot			regulator-ramp-delay = <0>;
482354d7675SEmmanuel Vadot			regulator-allow-set-load;
483354d7675SEmmanuel Vadot		};
484354d7675SEmmanuel Vadot
485354d7675SEmmanuel Vadot		vreg_l11a_1p8: l11 {
486354d7675SEmmanuel Vadot			regulator-min-microvolt = <1784000>;
487354d7675SEmmanuel Vadot			regulator-max-microvolt = <1944000>;
488354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <250>;
489354d7675SEmmanuel Vadot			regulator-ramp-delay = <0>;
490354d7675SEmmanuel Vadot		};
491354d7675SEmmanuel Vadot
492354d7675SEmmanuel Vadot		vreg_l12a_1p8: l12 {
493354d7675SEmmanuel Vadot			regulator-min-microvolt = <1800000>;
494354d7675SEmmanuel Vadot			regulator-max-microvolt = <1944000>;
495354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <250>;
496354d7675SEmmanuel Vadot			regulator-ramp-delay = <0>;
497354d7675SEmmanuel Vadot		};
498354d7675SEmmanuel Vadot
499354d7675SEmmanuel Vadot		/* This gives power to the LPDDR4: never turn it off! */
500354d7675SEmmanuel Vadot		vreg_l13a_1p8: l13 {
501354d7675SEmmanuel Vadot			regulator-min-microvolt = <1800000>;
502354d7675SEmmanuel Vadot			regulator-max-microvolt = <1944000>;
503354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <250>;
504354d7675SEmmanuel Vadot			regulator-ramp-delay = <0>;
505354d7675SEmmanuel Vadot			regulator-boot-on;
506354d7675SEmmanuel Vadot			regulator-always-on;
507354d7675SEmmanuel Vadot		};
508354d7675SEmmanuel Vadot
509354d7675SEmmanuel Vadot		vreg_l14a_1p8: l14 {
510354d7675SEmmanuel Vadot			regulator-min-microvolt = <1710000>;
511354d7675SEmmanuel Vadot			regulator-max-microvolt = <1904000>;
512354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <250>;
513354d7675SEmmanuel Vadot			regulator-ramp-delay = <0>;
514354d7675SEmmanuel Vadot		};
515354d7675SEmmanuel Vadot
516354d7675SEmmanuel Vadot		vreg_l15a_1p8: l15 {
517354d7675SEmmanuel Vadot			regulator-min-microvolt = <1648000>;
518354d7675SEmmanuel Vadot			regulator-max-microvolt = <2952000>;
519354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <250>;
520354d7675SEmmanuel Vadot			regulator-ramp-delay = <0>;
521354d7675SEmmanuel Vadot		};
522354d7675SEmmanuel Vadot
523354d7675SEmmanuel Vadot		/* L16A (2.70V) is unused */
524354d7675SEmmanuel Vadot
525354d7675SEmmanuel Vadot		vreg_l17a_1p8: l17 {
526354d7675SEmmanuel Vadot			regulator-min-microvolt = <1648000>;
527354d7675SEmmanuel Vadot			regulator-max-microvolt = <2952000>;
528354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <250>;
529354d7675SEmmanuel Vadot			regulator-ramp-delay = <0>;
530354d7675SEmmanuel Vadot		};
531354d7675SEmmanuel Vadot
532354d7675SEmmanuel Vadot		vreg_l18a_1v8: l18 {
533354d7675SEmmanuel Vadot			regulator-min-microvolt = <1800000>;
534354d7675SEmmanuel Vadot			regulator-max-microvolt = <1800000>;
535354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <250>;
536354d7675SEmmanuel Vadot			regulator-ramp-delay = <10>;
537354d7675SEmmanuel Vadot			regulator-min-microamp = <200>;
538354d7675SEmmanuel Vadot			regulator-max-microamp = <50000>;
539354d7675SEmmanuel Vadot			regulator-system-load = <10000>;
540354d7675SEmmanuel Vadot			regulator-allow-set-load;
541354d7675SEmmanuel Vadot		};
542354d7675SEmmanuel Vadot
543354d7675SEmmanuel Vadot		vreg_l19a_3p3: l19 {
544354d7675SEmmanuel Vadot			regulator-min-microvolt = <3312000>;
545354d7675SEmmanuel Vadot			regulator-max-microvolt = <3400000>;
546354d7675SEmmanuel Vadot			regulator-enable-ramp-delay = <250>;
547354d7675SEmmanuel Vadot			regulator-ramp-delay = <0>;
548354d7675SEmmanuel Vadot			regulator-allow-set-load;
549354d7675SEmmanuel Vadot		};
550354d7675SEmmanuel Vadot	};
551354d7675SEmmanuel Vadot};
552354d7675SEmmanuel Vadot
553354d7675SEmmanuel Vadot&sdhc_1 {
554354d7675SEmmanuel Vadot	status = "okay";
555354d7675SEmmanuel Vadot	supports-cqe;
556354d7675SEmmanuel Vadot
557354d7675SEmmanuel Vadot	/* SoMC Nile platform's eMMC doesn't support HS200 mode */
558354d7675SEmmanuel Vadot	mmc-ddr-1_8v;
559354d7675SEmmanuel Vadot	mmc-hs400-1_8v;
560354d7675SEmmanuel Vadot	mmc-hs400-enhanced-strobe;
561354d7675SEmmanuel Vadot
562*8cc087a1SEmmanuel Vadot	vmmc-supply = <&vreg_l4b_2p95>;
563354d7675SEmmanuel Vadot	vqmmc-supply = <&vreg_l8a_1p8>;
564354d7675SEmmanuel Vadot};
565354d7675SEmmanuel Vadot
566354d7675SEmmanuel Vadot&sdhc_2 {
567354d7675SEmmanuel Vadot	status = "okay";
568354d7675SEmmanuel Vadot
569*8cc087a1SEmmanuel Vadot	vmmc-supply = <&vreg_l5b_2p95>;
570354d7675SEmmanuel Vadot	vqmmc-supply = <&vreg_l2b_2p95>;
571354d7675SEmmanuel Vadot};
572354d7675SEmmanuel Vadot
573354d7675SEmmanuel Vadot&tlmm {
574354d7675SEmmanuel Vadot	gpio-reserved-ranges = <8 4>;
575354d7675SEmmanuel Vadot
576354d7675SEmmanuel Vadot	ts_int_active: ts-int-active {
577354d7675SEmmanuel Vadot		pins = "gpio45";
578354d7675SEmmanuel Vadot		drive-strength = <8>;
579354d7675SEmmanuel Vadot		bias-pull-up;
580354d7675SEmmanuel Vadot	};
581354d7675SEmmanuel Vadot
582354d7675SEmmanuel Vadot	ts_lcd_id_active: ts-lcd-id-active {
583354d7675SEmmanuel Vadot		pins = "gpio56";
584354d7675SEmmanuel Vadot		drive-strength = <8>;
585354d7675SEmmanuel Vadot		bias-disable;
586354d7675SEmmanuel Vadot	};
587354d7675SEmmanuel Vadot
588354d7675SEmmanuel Vadot	imx300_vana_default: imx300-vana-default {
589354d7675SEmmanuel Vadot		pins = "gpio50";
590354d7675SEmmanuel Vadot		function = "gpio";
591354d7675SEmmanuel Vadot		bias-disable;
592354d7675SEmmanuel Vadot		drive-strength = <2>;
593354d7675SEmmanuel Vadot	};
594354d7675SEmmanuel Vadot
595354d7675SEmmanuel Vadot	imx219_vana_default: imx219-vana-default {
596354d7675SEmmanuel Vadot		pins = "gpio51";
597354d7675SEmmanuel Vadot		function = "gpio";
598354d7675SEmmanuel Vadot		bias-disable;
599354d7675SEmmanuel Vadot		drive-strength = <2>;
600354d7675SEmmanuel Vadot	};
601354d7675SEmmanuel Vadot
602354d7675SEmmanuel Vadot	cam_vdig_default: cam-vdig-default {
603354d7675SEmmanuel Vadot		pins = "gpio52";
604354d7675SEmmanuel Vadot		function = "gpio";
605354d7675SEmmanuel Vadot		bias-disable;
606354d7675SEmmanuel Vadot		drive-strength = <2>;
607354d7675SEmmanuel Vadot	};
608354d7675SEmmanuel Vadot};
609354d7675SEmmanuel Vadot
610354d7675SEmmanuel Vadot&usb3 {
611354d7675SEmmanuel Vadot	status = "okay";
612354d7675SEmmanuel Vadot};
613354d7675SEmmanuel Vadot
614354d7675SEmmanuel Vadot&usb3_dwc3 {
615354d7675SEmmanuel Vadot	dr_mode = "peripheral";
616354d7675SEmmanuel Vadot	extcon = <&extcon_usb>;
617c66ec88fSEmmanuel Vadot};
618