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