1d0a6ce59SKonrad Dybcio// SPDX-License-Identifier: BSD-3-Clause
2d0a6ce59SKonrad Dybcio/*
3d0a6ce59SKonrad Dybcio * Copyright (c) 2021, Konrad Dybcio <konrad.dybcio@somainline.org>
4d0a6ce59SKonrad Dybcio */
5d0a6ce59SKonrad Dybcio
6d0a6ce59SKonrad Dybcio/dts-v1/;
7d0a6ce59SKonrad Dybcio
8d0a6ce59SKonrad Dybcio#include <dt-bindings/gpio/gpio.h>
97a740ec3SKonrad Dybcio#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
10d0a6ce59SKonrad Dybcio#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
11d0a6ce59SKonrad Dybcio#include "sm8150.dtsi"
12d0a6ce59SKonrad Dybcio#include "pm8150.dtsi"
13d0a6ce59SKonrad Dybcio#include "pm8150b.dtsi"
14d0a6ce59SKonrad Dybcio#include "pm8150l.dtsi"
15d0a6ce59SKonrad Dybcio
16d0a6ce59SKonrad Dybcio/delete-node/ &cdsp_mem;
17d0a6ce59SKonrad Dybcio/delete-node/ &gpu_mem;
18d0a6ce59SKonrad Dybcio/delete-node/ &ipa_fw_mem;
19d0a6ce59SKonrad Dybcio/delete-node/ &ipa_gsi_mem;
20d0a6ce59SKonrad Dybcio/delete-node/ &mpss_mem;
21d0a6ce59SKonrad Dybcio/delete-node/ &slpi_mem;
22d0a6ce59SKonrad Dybcio/delete-node/ &spss_mem;
23d0a6ce59SKonrad Dybcio/delete-node/ &venus_mem;
24d0a6ce59SKonrad Dybcio
25d0a6ce59SKonrad Dybcio/ {
26d0a6ce59SKonrad Dybcio	qcom,msm-id = <339 0x20000>; /* SM8150 v2 */
27d0a6ce59SKonrad Dybcio	qcom,board-id = <8 0>;
28d0a6ce59SKonrad Dybcio
29d0a6ce59SKonrad Dybcio	chosen {
30d0a6ce59SKonrad Dybcio		#address-cells = <2>;
31d0a6ce59SKonrad Dybcio		#size-cells = <2>;
32d0a6ce59SKonrad Dybcio		ranges;
33d0a6ce59SKonrad Dybcio
34d0a6ce59SKonrad Dybcio		framebuffer: framebuffer@9c000000 {
35d0a6ce59SKonrad Dybcio			compatible = "simple-framebuffer";
36d0a6ce59SKonrad Dybcio			reg = <0 0x9c000000 0 0x2300000>;
37be8de06dSMarijn Suijten			/* Griffin BL initializes in 2.5k mode, not 4k */
38be8de06dSMarijn Suijten			width = <1096>;
39be8de06dSMarijn Suijten			height = <2560>;
40be8de06dSMarijn Suijten			stride = <(1096 * 4)>;
41d0a6ce59SKonrad Dybcio			format = "a8r8g8b8";
42d0a6ce59SKonrad Dybcio			/*
43d0a6ce59SKonrad Dybcio			 * That's (going to be) a lot of clocks, but it's necessary due
44d0a6ce59SKonrad Dybcio			 * to unused clk cleanup & no panel driver yet (& no dispcc either)..
45d0a6ce59SKonrad Dybcio			 */
46d0a6ce59SKonrad Dybcio			clocks = <&gcc GCC_DISP_HF_AXI_CLK>,
47d0a6ce59SKonrad Dybcio				 <&gcc GCC_DISP_SF_AXI_CLK>;
48d0a6ce59SKonrad Dybcio		};
49d0a6ce59SKonrad Dybcio	};
50d0a6ce59SKonrad Dybcio
510ead2d17SKonrad Dybcio	gpio-keys {
520ead2d17SKonrad Dybcio		compatible = "gpio-keys";
530ead2d17SKonrad Dybcio
540ead2d17SKonrad Dybcio		pinctrl-names = "default";
550ead2d17SKonrad Dybcio		pinctrl-0 = <&focus_n &snapshot_n &vol_down_n>;
560ead2d17SKonrad Dybcio
570ead2d17SKonrad Dybcio		key-camera-focus {
580ead2d17SKonrad Dybcio			label = "Camera Focus";
590ead2d17SKonrad Dybcio			linux,code = <KEY_CAMERA_FOCUS>;
600ead2d17SKonrad Dybcio			gpios = <&pm8150b_gpios 2 GPIO_ACTIVE_LOW>;
610ead2d17SKonrad Dybcio			debounce-interval = <15>;
620ead2d17SKonrad Dybcio			linux,can-disable;
63b26d6622SKrzysztof Kozlowski			wakeup-source;
640ead2d17SKonrad Dybcio		};
650ead2d17SKonrad Dybcio
660ead2d17SKonrad Dybcio		key-camera-snapshot {
670ead2d17SKonrad Dybcio			label = "Camera Snapshot";
680ead2d17SKonrad Dybcio			linux,code = <KEY_CAMERA>;
690ead2d17SKonrad Dybcio			gpios = <&pm8150b_gpios 1 GPIO_ACTIVE_LOW>;
700ead2d17SKonrad Dybcio			debounce-interval = <15>;
710ead2d17SKonrad Dybcio			linux,can-disable;
72b26d6622SKrzysztof Kozlowski			wakeup-source;
730ead2d17SKonrad Dybcio		};
740ead2d17SKonrad Dybcio
750ead2d17SKonrad Dybcio		key-vol-down {
760ead2d17SKonrad Dybcio			label = "Volume Down";
770ead2d17SKonrad Dybcio			linux,code = <KEY_VOLUMEDOWN>;
780ead2d17SKonrad Dybcio			gpios = <&pm8150_gpios 1 GPIO_ACTIVE_LOW>;
790ead2d17SKonrad Dybcio			debounce-interval = <15>;
800ead2d17SKonrad Dybcio			linux,can-disable;
81b26d6622SKrzysztof Kozlowski			wakeup-source;
820ead2d17SKonrad Dybcio		};
830ead2d17SKonrad Dybcio	};
840ead2d17SKonrad Dybcio
857a740ec3SKonrad Dybcio	cam0_vdig_vreg: cam0-vdig-regulator {
867a740ec3SKonrad Dybcio		compatible = "regulator-fixed";
877a740ec3SKonrad Dybcio		regulator-name = "camera0_vdig_vreg";
887a740ec3SKonrad Dybcio		gpio = <&tlmm 22 GPIO_ACTIVE_HIGH>;
897a740ec3SKonrad Dybcio		enable-active-high;
907a740ec3SKonrad Dybcio
917a740ec3SKonrad Dybcio		pinctrl-0 = <&main_cam_pwr_en>;
927a740ec3SKonrad Dybcio		pinctrl-names = "default";
937a740ec3SKonrad Dybcio	};
947a740ec3SKonrad Dybcio
957a740ec3SKonrad Dybcio	cam1_vdig_vreg: cam1-vdig-regulator {
967a740ec3SKonrad Dybcio		compatible = "regulator-fixed";
977a740ec3SKonrad Dybcio		regulator-name = "camera1_vdig_vreg";
987a740ec3SKonrad Dybcio		gpio = <&tlmm 79 GPIO_ACTIVE_HIGH>;
997a740ec3SKonrad Dybcio		enable-active-high;
1007a740ec3SKonrad Dybcio
1017a740ec3SKonrad Dybcio		pinctrl-0 = <&sub_cam_pwr_en>;
1027a740ec3SKonrad Dybcio		pinctrl-names = "default";
1037a740ec3SKonrad Dybcio	};
1047a740ec3SKonrad Dybcio
1057a740ec3SKonrad Dybcio	cam2_vdig_vreg: cam2-vdig-regulator {
1067a740ec3SKonrad Dybcio		compatible = "regulator-fixed";
1077a740ec3SKonrad Dybcio		regulator-name = "camera2_vdig_vreg";
1087a740ec3SKonrad Dybcio		gpio = <&tlmm 25 GPIO_ACTIVE_HIGH>;
1097a740ec3SKonrad Dybcio		enable-active-high;
1107a740ec3SKonrad Dybcio
1117a740ec3SKonrad Dybcio		pinctrl-0 = <&chat_cam_pwr_en>;
1127a740ec3SKonrad Dybcio		pinctrl-names = "default";
1137a740ec3SKonrad Dybcio	};
1147a740ec3SKonrad Dybcio
1157a740ec3SKonrad Dybcio	cam3_vdig_vreg: cam3-vdig-regulator {
1167a740ec3SKonrad Dybcio		compatible = "regulator-fixed";
1177a740ec3SKonrad Dybcio		regulator-name = "camera3_vdig_vreg";
1187a740ec3SKonrad Dybcio		gpio = <&pm8150_gpios 7 GPIO_ACTIVE_HIGH>;
1197a740ec3SKonrad Dybcio		enable-active-high;
1207a740ec3SKonrad Dybcio
1217a740ec3SKonrad Dybcio		pinctrl-0 = <&supwc_pwr_en>;
1227a740ec3SKonrad Dybcio		pinctrl-names = "default";
1237a740ec3SKonrad Dybcio	};
1247a740ec3SKonrad Dybcio
1257a740ec3SKonrad Dybcio	cam_vmdr_vreg: cam-vmdr-regulator {
1267a740ec3SKonrad Dybcio		compatible = "regulator-fixed";
1277a740ec3SKonrad Dybcio		regulator-name = "camera_vmdr_vreg";
1287a740ec3SKonrad Dybcio		gpio = <&pm8150l_gpios 3 GPIO_ACTIVE_HIGH>;
1297a740ec3SKonrad Dybcio		enable-active-high;
1307a740ec3SKonrad Dybcio
1317a740ec3SKonrad Dybcio		pinctrl-0 = <&main_cam_pwr_vmdr_en>;
1327a740ec3SKonrad Dybcio		pinctrl-names = "default";
1337a740ec3SKonrad Dybcio	};
1347a740ec3SKonrad Dybcio
1357a740ec3SKonrad Dybcio	rgbcir_vreg: rgbcir-regulator {
1367a740ec3SKonrad Dybcio		compatible = "regulator-fixed";
1377a740ec3SKonrad Dybcio		regulator-name = "rgbcir_vreg";
1387a740ec3SKonrad Dybcio		gpio = <&tlmm 29 GPIO_ACTIVE_HIGH>;
1397a740ec3SKonrad Dybcio		enable-active-high;
1407a740ec3SKonrad Dybcio
1417a740ec3SKonrad Dybcio		pinctrl-0 = <&rgbc_ir_pwr_en>;
1427a740ec3SKonrad Dybcio		pinctrl-names = "default";
1437a740ec3SKonrad Dybcio	};
1447a740ec3SKonrad Dybcio
145d0a6ce59SKonrad Dybcio	vph_pwr: vph-pwr-regulator {
146d0a6ce59SKonrad Dybcio		compatible = "regulator-fixed";
147d0a6ce59SKonrad Dybcio		regulator-name = "vph_pwr";
148d0a6ce59SKonrad Dybcio		regulator-min-microvolt = <3700000>;
149d0a6ce59SKonrad Dybcio		regulator-max-microvolt = <3700000>;
150d0a6ce59SKonrad Dybcio	};
151d0a6ce59SKonrad Dybcio
152d0a6ce59SKonrad Dybcio	/*
153d0a6ce59SKonrad Dybcio	 * Apparently RPMh does not provide support for PM8150 S4 because it
154d0a6ce59SKonrad Dybcio	 * is always-on; model it as a fixed regulator.
155d0a6ce59SKonrad Dybcio	 */
156d0a6ce59SKonrad Dybcio	vreg_s4a_1p8: pm8150-s4 {
157d0a6ce59SKonrad Dybcio		compatible = "regulator-fixed";
158d0a6ce59SKonrad Dybcio		regulator-name = "vreg_s4a_1p8";
159d0a6ce59SKonrad Dybcio
160d0a6ce59SKonrad Dybcio		regulator-min-microvolt = <1800000>;
161d0a6ce59SKonrad Dybcio		regulator-max-microvolt = <1800000>;
162d0a6ce59SKonrad Dybcio
163d0a6ce59SKonrad Dybcio		regulator-always-on;
164d0a6ce59SKonrad Dybcio		regulator-boot-on;
165d0a6ce59SKonrad Dybcio
166d0a6ce59SKonrad Dybcio		vin-supply = <&vph_pwr>;
167d0a6ce59SKonrad Dybcio	};
168d0a6ce59SKonrad Dybcio
169d0a6ce59SKonrad Dybcio	reserved-memory {
170d0a6ce59SKonrad Dybcio		mpss_mem: memory@8dc00000 {
171d0a6ce59SKonrad Dybcio			reg = <0x0 0x8dc00000 0x0 0x9600000>;
172d0a6ce59SKonrad Dybcio			no-map;
173d0a6ce59SKonrad Dybcio		};
174d0a6ce59SKonrad Dybcio
175d0a6ce59SKonrad Dybcio		venus_mem: memory@97200000 {
176d0a6ce59SKonrad Dybcio			reg = <0x0 0x97200000 0x0 0x500000>;
177d0a6ce59SKonrad Dybcio			no-map;
178d0a6ce59SKonrad Dybcio		};
179d0a6ce59SKonrad Dybcio
180d0a6ce59SKonrad Dybcio		slpi_mem: memory@97700000 {
181d0a6ce59SKonrad Dybcio			reg = <0x0 0x97700000 0x0 0x1400000>;
182d0a6ce59SKonrad Dybcio			no-map;
183d0a6ce59SKonrad Dybcio		};
184d0a6ce59SKonrad Dybcio
185d0a6ce59SKonrad Dybcio		ipa_fw_mem: memory@98b00000 {
186d0a6ce59SKonrad Dybcio			reg = <0x0 0x98b00000 0x0 0x10000>;
187d0a6ce59SKonrad Dybcio			no-map;
188d0a6ce59SKonrad Dybcio		};
189d0a6ce59SKonrad Dybcio
190d0a6ce59SKonrad Dybcio		ipa_gsi_mem: memory@98b10000 {
191d0a6ce59SKonrad Dybcio			reg = <0x0 0x98b10000 0x0 0x5000>;
192d0a6ce59SKonrad Dybcio			no-map;
193d0a6ce59SKonrad Dybcio		};
194d0a6ce59SKonrad Dybcio
195d0a6ce59SKonrad Dybcio		gpu_mem: memory@98b15000 {
196d0a6ce59SKonrad Dybcio			reg = <0x0 0x98b15000 0x0 0x2000>;
197d0a6ce59SKonrad Dybcio			no-map;
198d0a6ce59SKonrad Dybcio		};
199d0a6ce59SKonrad Dybcio
200d0a6ce59SKonrad Dybcio		spss_mem: memory@98c00000 {
201d0a6ce59SKonrad Dybcio			reg = <0x0 0x98c00000 0x0 0x100000>;
202d0a6ce59SKonrad Dybcio			no-map;
203d0a6ce59SKonrad Dybcio		};
204d0a6ce59SKonrad Dybcio
205d0a6ce59SKonrad Dybcio		cdsp_mem: memory@98d00000 {
206d0a6ce59SKonrad Dybcio			reg = <0x0 0x98d00000 0x0 0x1400000>;
207d0a6ce59SKonrad Dybcio			no-map;
208d0a6ce59SKonrad Dybcio		};
209d0a6ce59SKonrad Dybcio
210d0a6ce59SKonrad Dybcio		cont_splash_mem: memory@9c000000 {
211d0a6ce59SKonrad Dybcio			reg = <0x0 0x9c000000 0x0 0x2400000>;
212d0a6ce59SKonrad Dybcio			no-map;
213d0a6ce59SKonrad Dybcio		};
214d0a6ce59SKonrad Dybcio
215d0a6ce59SKonrad Dybcio		cdsp_sec_mem: memory@a4c00000 {
216d0a6ce59SKonrad Dybcio			reg = <0x0 0xa4c00000 0x0 0x3c00000>;
217d0a6ce59SKonrad Dybcio			no-map;
218d0a6ce59SKonrad Dybcio		};
219d0a6ce59SKonrad Dybcio
220d0a6ce59SKonrad Dybcio		ramoops@ffc00000 {
221d0a6ce59SKonrad Dybcio			compatible = "ramoops";
222d0a6ce59SKonrad Dybcio			reg = <0x0 0xffc00000 0x0 0x100000>;
223d0a6ce59SKonrad Dybcio			record-size = <0x1000>;
224d0a6ce59SKonrad Dybcio			console-size = <0x40000>;
225*4e6b942fSKrzysztof Kozlowski			pmsg-size = <0x20000>;
226d0a6ce59SKonrad Dybcio			ecc-size = <16>;
227d0a6ce59SKonrad Dybcio			no-map;
228d0a6ce59SKonrad Dybcio		};
229d0a6ce59SKonrad Dybcio	};
230d0a6ce59SKonrad Dybcio};
231d0a6ce59SKonrad Dybcio
232d0a6ce59SKonrad Dybcio&adsp_mem {
233d0a6ce59SKonrad Dybcio	reg = <0x0 0x8be00000 0x0 0x1e00000>;
234d0a6ce59SKonrad Dybcio};
235d0a6ce59SKonrad Dybcio
236d0a6ce59SKonrad Dybcio&apps_rsc {
2375a88bb61SKrzysztof Kozlowski	regulators-0 {
238d0a6ce59SKonrad Dybcio		compatible = "qcom,pm8150-rpmh-regulators";
239d0a6ce59SKonrad Dybcio		qcom,pmic-id = "a";
240d0a6ce59SKonrad Dybcio
241d0a6ce59SKonrad Dybcio		vdd-s1-supply = <&vph_pwr>;
242d0a6ce59SKonrad Dybcio		vdd-s2-supply = <&vph_pwr>;
243d0a6ce59SKonrad Dybcio		vdd-s3-supply = <&vph_pwr>;
244d0a6ce59SKonrad Dybcio		vdd-s4-supply = <&vph_pwr>;
245d0a6ce59SKonrad Dybcio		vdd-s5-supply = <&vph_pwr>;
246d0a6ce59SKonrad Dybcio		vdd-s6-supply = <&vph_pwr>;
247d0a6ce59SKonrad Dybcio		vdd-s7-supply = <&vph_pwr>;
248d0a6ce59SKonrad Dybcio		vdd-s8-supply = <&vph_pwr>;
249d0a6ce59SKonrad Dybcio		vdd-s9-supply = <&vph_pwr>;
250d0a6ce59SKonrad Dybcio		vdd-s10-supply = <&vph_pwr>;
251d0a6ce59SKonrad Dybcio
252d0a6ce59SKonrad Dybcio		vdd-l1-l8-l11-supply = <&vreg_s6a_0p9>;
253d0a6ce59SKonrad Dybcio		vdd-l2-l10-supply = <&vreg_bob>;
254d0a6ce59SKonrad Dybcio		vdd-l3-l4-l5-l18-supply = <&vreg_s6a_0p9>;
255d0a6ce59SKonrad Dybcio		vdd-l6-l9-supply = <&vreg_s8c_1p3>;
256d0a6ce59SKonrad Dybcio		vdd-l7-l12-l14-l15-supply = <&vreg_s5a_1p9>;
257d0a6ce59SKonrad Dybcio		vdd-l13-l16-l17-supply = <&vreg_bob>;
258d0a6ce59SKonrad Dybcio
259d0a6ce59SKonrad Dybcio		vreg_s2a_0p6: smps2 {
260d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <600000>;
261d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <600000>;
262d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
263d0a6ce59SKonrad Dybcio		};
264d0a6ce59SKonrad Dybcio
265d0a6ce59SKonrad Dybcio		vreg_s5a_1p9: smps5 {
266d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <1904000>;
267d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <2040000>;
268d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
269d0a6ce59SKonrad Dybcio		};
270d0a6ce59SKonrad Dybcio
271d0a6ce59SKonrad Dybcio		vreg_s6a_0p9: smps6 {
272d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <920000>;
273d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <1128000>;
274d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
275d0a6ce59SKonrad Dybcio		};
276d0a6ce59SKonrad Dybcio
277d0a6ce59SKonrad Dybcio		vreg_l1a_0p75: ldo1 {
278d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <752000>;
279d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <752000>;
280d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
281d0a6ce59SKonrad Dybcio		};
282d0a6ce59SKonrad Dybcio
283d0a6ce59SKonrad Dybcio		vreg_l2a_3p1: ldo2 {
284d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <3072000>;
285d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <3072000>;
286d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
287d0a6ce59SKonrad Dybcio		};
288d0a6ce59SKonrad Dybcio
289d0a6ce59SKonrad Dybcio		vreg_l3a_0p8: ldo3 {
290d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <480000>;
291d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <932000>;
292d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
293d0a6ce59SKonrad Dybcio		};
294d0a6ce59SKonrad Dybcio
295d0a6ce59SKonrad Dybcio		vreg_l5a_0p875: ldo5 {
296d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <880000>;
297d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <880000>;
298d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
299d0a6ce59SKonrad Dybcio		};
300d0a6ce59SKonrad Dybcio
301d0a6ce59SKonrad Dybcio		vreg_l6a_1p2: ldo6 {
302d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <1200000>;
303d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <1200000>;
304d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
305d0a6ce59SKonrad Dybcio		};
306d0a6ce59SKonrad Dybcio
307d0a6ce59SKonrad Dybcio		vreg_l7a_1p8: ldo7 {
308d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <1800000>;
309d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <1800000>;
310d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
311d0a6ce59SKonrad Dybcio		};
312d0a6ce59SKonrad Dybcio
313d0a6ce59SKonrad Dybcio		vreg_l9a_1p2: ldo9 {
314d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <1200000>;
315d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <1200000>;
316d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
317d0a6ce59SKonrad Dybcio		};
318d0a6ce59SKonrad Dybcio
319d0a6ce59SKonrad Dybcio		vreg_l10a_2p5: ldo10 {
320d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <2504000>;
321d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <2960000>;
322d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
323d0a6ce59SKonrad Dybcio		};
324d0a6ce59SKonrad Dybcio
325d0a6ce59SKonrad Dybcio		vreg_l11a_0p8: ldo11 {
326d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <800000>;
327d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <800000>;
328d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
329d0a6ce59SKonrad Dybcio		};
330d0a6ce59SKonrad Dybcio
331d0a6ce59SKonrad Dybcio		vreg_l12a_1p8: ldo12 {
332d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <1800000>;
333d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <1800000>;
334d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
335d0a6ce59SKonrad Dybcio		};
336d0a6ce59SKonrad Dybcio
337d0a6ce59SKonrad Dybcio		/* L13 is unused. */
338d0a6ce59SKonrad Dybcio
339d0a6ce59SKonrad Dybcio		vreg_l14a_1p8: ldo14 {
340d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <1800000>;
341d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <1800000>;
342d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
343d0a6ce59SKonrad Dybcio		};
344d0a6ce59SKonrad Dybcio
345d0a6ce59SKonrad Dybcio		vreg_l15a_1p7: ldo15 {
346d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <1704000>;
347d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <1704000>;
348d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
349d0a6ce59SKonrad Dybcio		};
350d0a6ce59SKonrad Dybcio
351d0a6ce59SKonrad Dybcio		vreg_l16a_2p7: ldo16 {
352d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <2704000>;
353d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <2960000>;
354d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
355d0a6ce59SKonrad Dybcio		};
356d0a6ce59SKonrad Dybcio
357d0a6ce59SKonrad Dybcio		vreg_l17a_3p0: ldo17 {
358d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <2856000>;
359d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <3008000>;
360d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
361d0a6ce59SKonrad Dybcio		};
362d0a6ce59SKonrad Dybcio
363d0a6ce59SKonrad Dybcio		vreg_l18a_0p8: ldo18 {
364d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <880000>;
365d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <912000>;
366d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
367d0a6ce59SKonrad Dybcio		};
368d0a6ce59SKonrad Dybcio	};
369d0a6ce59SKonrad Dybcio
3705a88bb61SKrzysztof Kozlowski	regulators-1 {
371d0a6ce59SKonrad Dybcio		compatible = "qcom,pm8150l-rpmh-regulators";
372d0a6ce59SKonrad Dybcio		qcom,pmic-id = "c";
373d0a6ce59SKonrad Dybcio
374d0a6ce59SKonrad Dybcio		vdd-s1-supply = <&vph_pwr>;
375d0a6ce59SKonrad Dybcio		vdd-s2-supply = <&vph_pwr>;
376d0a6ce59SKonrad Dybcio		vdd-s3-supply = <&vph_pwr>;
377d0a6ce59SKonrad Dybcio		vdd-s4-supply = <&vph_pwr>;
378d0a6ce59SKonrad Dybcio		vdd-s5-supply = <&vph_pwr>;
379d0a6ce59SKonrad Dybcio		vdd-s6-supply = <&vph_pwr>;
380d0a6ce59SKonrad Dybcio		vdd-s7-supply = <&vph_pwr>;
381d0a6ce59SKonrad Dybcio		vdd-s8-supply = <&vph_pwr>;
382d0a6ce59SKonrad Dybcio
383d0a6ce59SKonrad Dybcio		vdd-l1-l8-supply = <&vreg_s4a_1p8>;
384d0a6ce59SKonrad Dybcio		vdd-l2-l3-supply = <&vreg_s8c_1p3>;
385d0a6ce59SKonrad Dybcio		vdd-l4-l5-l6-supply = <&vreg_bob>;
386d0a6ce59SKonrad Dybcio		vdd-l7-l11-supply = <&vreg_bob>;
387d0a6ce59SKonrad Dybcio		vdd-l9-l10-supply = <&vreg_bob>;
388d0a6ce59SKonrad Dybcio
389d0a6ce59SKonrad Dybcio		vdd-bob-supply = <&vph_pwr>;
390d0a6ce59SKonrad Dybcio		vdd-flash-supply = <&vreg_bob>;
391d0a6ce59SKonrad Dybcio		vdd-rgb-supply = <&vreg_bob>;
392d0a6ce59SKonrad Dybcio
393d0a6ce59SKonrad Dybcio		vreg_bob: bob {
394d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <3350000>;
395d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <4000000>;
396d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;
397d0a6ce59SKonrad Dybcio			regulator-allow-bypass;
398d0a6ce59SKonrad Dybcio		};
399d0a6ce59SKonrad Dybcio
400d0a6ce59SKonrad Dybcio		vreg_s1c_1p1: smps1 {
401d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <1128000>;
402d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <1128000>;
403d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
404d0a6ce59SKonrad Dybcio		};
405d0a6ce59SKonrad Dybcio
406d0a6ce59SKonrad Dybcio		vreg_s8c_1p3: smps8 {
407d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <1352000>;
408d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <1352000>;
409d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
410d0a6ce59SKonrad Dybcio		};
411d0a6ce59SKonrad Dybcio
412d0a6ce59SKonrad Dybcio		vreg_l1c_1p8: ldo1 {
413d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <1800000>;
414d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <1800000>;
415d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
416d0a6ce59SKonrad Dybcio		};
417d0a6ce59SKonrad Dybcio
418d0a6ce59SKonrad Dybcio		vreg_l2c_1p3: ldo2 {
419d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <1304000>;
420d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <1304000>;
421d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
422d0a6ce59SKonrad Dybcio		};
423d0a6ce59SKonrad Dybcio
424d0a6ce59SKonrad Dybcio		vreg_l3c_1p2: ldo3 {
425d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <1200000>;
426d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <1200000>;
427d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
428d0a6ce59SKonrad Dybcio		};
429d0a6ce59SKonrad Dybcio
430d0a6ce59SKonrad Dybcio		vreg_l4c_1p8: ldo4 {
431d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <1704000>;
432d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <2928000>;
433d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
434d0a6ce59SKonrad Dybcio		};
435d0a6ce59SKonrad Dybcio
436d0a6ce59SKonrad Dybcio		vreg_l5c_1p8: ldo5 {
437d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <1704000>;
438d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <2928000>;
439d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
440d0a6ce59SKonrad Dybcio		};
441d0a6ce59SKonrad Dybcio
442d0a6ce59SKonrad Dybcio		vreg_l6c_2p9: ldo6 {
443d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <1800000>;
444d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <2960000>;
445d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
446d0a6ce59SKonrad Dybcio			regulator-allow-set-load;
44725f08f02SJohan Hovold			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
448aa30e786SDouglas Anderson						   RPMH_REGULATOR_MODE_HPM>;
449d0a6ce59SKonrad Dybcio		};
450d0a6ce59SKonrad Dybcio
451d0a6ce59SKonrad Dybcio		vreg_l7c_3p0: ldo7 {
452d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <2856000>;
453d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <3104000>;
454d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
455d0a6ce59SKonrad Dybcio		};
456d0a6ce59SKonrad Dybcio
457d0a6ce59SKonrad Dybcio		vreg_l8c_1p8: ldo8 {
458d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <1800000>;
459d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <1800000>;
460d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
461d0a6ce59SKonrad Dybcio		};
462d0a6ce59SKonrad Dybcio
463d0a6ce59SKonrad Dybcio		vreg_l9c_2p9: ldo9 {
464d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <2704000>;
465d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <2960000>;
466d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
467d0a6ce59SKonrad Dybcio			regulator-allow-set-load;
46825f08f02SJohan Hovold			regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
469aa30e786SDouglas Anderson						   RPMH_REGULATOR_MODE_HPM>;
470d0a6ce59SKonrad Dybcio		};
471d0a6ce59SKonrad Dybcio
472d0a6ce59SKonrad Dybcio		vreg_l10c_3p3: ldo10 {
473d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <3000000>;
474d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <3312000>;
475d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
476d0a6ce59SKonrad Dybcio		};
477d0a6ce59SKonrad Dybcio
478d0a6ce59SKonrad Dybcio		vreg_l11c_3p3: ldo11 {
479d0a6ce59SKonrad Dybcio			regulator-min-microvolt = <3000000>;
480d0a6ce59SKonrad Dybcio			regulator-max-microvolt = <3312000>;
481d0a6ce59SKonrad Dybcio			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
482d0a6ce59SKonrad Dybcio		};
483d0a6ce59SKonrad Dybcio	};
484d0a6ce59SKonrad Dybcio
485d0a6ce59SKonrad Dybcio	/* PM8009 is not present on these boards, even if downstream sources suggest so. */
486d0a6ce59SKonrad Dybcio};
487d0a6ce59SKonrad Dybcio
488d0a6ce59SKonrad Dybcio&i2c4 {
489d0a6ce59SKonrad Dybcio	status = "okay";
490d0a6ce59SKonrad Dybcio
491d0a6ce59SKonrad Dybcio	/* Qcom SMB1355 @ c */
492d0a6ce59SKonrad Dybcio	/* Qcom SMB1390 @ 10 */
493d0a6ce59SKonrad Dybcio	/* Qcom FSA4480 USB-C audio switch @ 43 */
4946cef82a8SKonrad Dybcio
4956cef82a8SKonrad Dybcio	nfc@28 {
4966cef82a8SKonrad Dybcio		compatible = "nxp,nxp-nci-i2c";
4976cef82a8SKonrad Dybcio		reg = <0x28>;
4986cef82a8SKonrad Dybcio
4996cef82a8SKonrad Dybcio		interrupt-parent = <&tlmm>;
5006cef82a8SKonrad Dybcio		interrupts = <47 IRQ_TYPE_EDGE_RISING>;
5016cef82a8SKonrad Dybcio
5026cef82a8SKonrad Dybcio		enable-gpios = <&tlmm 41 GPIO_ACTIVE_HIGH>;
5036cef82a8SKonrad Dybcio		firmware-gpios = <&tlmm 48 GPIO_ACTIVE_HIGH>;
5046cef82a8SKonrad Dybcio	};
505d0a6ce59SKonrad Dybcio};
506d0a6ce59SKonrad Dybcio
507d0a6ce59SKonrad Dybcio&i2c7 {
508d0a6ce59SKonrad Dybcio	status = "okay";
509d0a6ce59SKonrad Dybcio
510d0a6ce59SKonrad Dybcio	/* AMS TCS3490 RGB+IR color sensor @ 72 */
511d0a6ce59SKonrad Dybcio};
512d0a6ce59SKonrad Dybcio
513d0a6ce59SKonrad Dybcio&i2c10 {
514d0a6ce59SKonrad Dybcio	status = "okay";
515d0a6ce59SKonrad Dybcio
516d0a6ce59SKonrad Dybcio	/* Samsung touchscreen @ 48 */
517d0a6ce59SKonrad Dybcio};
518d0a6ce59SKonrad Dybcio
5190ead2d17SKonrad Dybcio&pm8150_gpios {
52020fd55b2SKonrad Dybcio	gpio-line-names = "VOL_DOWN_N", /* GPIO_1 */
52120fd55b2SKonrad Dybcio			  "",
52220fd55b2SKonrad Dybcio			  "NC",
52320fd55b2SKonrad Dybcio			  "NC",
52420fd55b2SKonrad Dybcio			  "",
52520fd55b2SKonrad Dybcio			  "NC",
52620fd55b2SKonrad Dybcio			  "SUPWC_PWR_EN",
52720fd55b2SKonrad Dybcio			  "",
52820fd55b2SKonrad Dybcio			  "NC",
52920fd55b2SKonrad Dybcio			  "NC"; /* GPIO_10 */
53020fd55b2SKonrad Dybcio
5310ead2d17SKonrad Dybcio	vol_down_n: vol-down-n-state {
5320ead2d17SKonrad Dybcio		pins = "gpio1";
5330ead2d17SKonrad Dybcio		function = "normal";
5340ead2d17SKonrad Dybcio		power-source = <0>;
5350ead2d17SKonrad Dybcio		bias-pull-up;
5360ead2d17SKonrad Dybcio		input-enable;
5370ead2d17SKonrad Dybcio	};
5387a740ec3SKonrad Dybcio
5397a740ec3SKonrad Dybcio	supwc_pwr_en: supwc-pwr-en-state {
5407a740ec3SKonrad Dybcio		pins = "gpio7";
5417a740ec3SKonrad Dybcio		function = "normal";
5427a740ec3SKonrad Dybcio		qcom,drive-strength = <1>;
5437a740ec3SKonrad Dybcio		power-source = <1>;
5447a740ec3SKonrad Dybcio		drive-push-pull;
5457a740ec3SKonrad Dybcio		output-low;
5467a740ec3SKonrad Dybcio	};
5470ead2d17SKonrad Dybcio};
5480ead2d17SKonrad Dybcio
5490ead2d17SKonrad Dybcio&pm8150b_gpios {
55020fd55b2SKonrad Dybcio	gpio-line-names = "SNAPSHOT_N", /* GPIO_1 */
55120fd55b2SKonrad Dybcio			  "FOCUS_N",
55220fd55b2SKonrad Dybcio			  "NC",
55320fd55b2SKonrad Dybcio			  "NC",
55420fd55b2SKonrad Dybcio			  "RF_LCD_ID_EN",
55520fd55b2SKonrad Dybcio			  "NC",
55620fd55b2SKonrad Dybcio			  "TS_VDDH_EN",
55720fd55b2SKonrad Dybcio			  "LCD_ID",
55820fd55b2SKonrad Dybcio			  "",
55920fd55b2SKonrad Dybcio			  "NC", /* GPIO_10 */
56020fd55b2SKonrad Dybcio			  "NC",
56120fd55b2SKonrad Dybcio			  "RF_ID";
56220fd55b2SKonrad Dybcio
5630ead2d17SKonrad Dybcio	snapshot_n: snapshot-n-state {
5640ead2d17SKonrad Dybcio		pins = "gpio1";
5650ead2d17SKonrad Dybcio		function = "normal";
5660ead2d17SKonrad Dybcio		power-source = <0>;
5670ead2d17SKonrad Dybcio		bias-pull-up;
5680ead2d17SKonrad Dybcio		input-enable;
5690ead2d17SKonrad Dybcio	};
5700ead2d17SKonrad Dybcio
5710ead2d17SKonrad Dybcio	focus_n: focus-n-state {
5720ead2d17SKonrad Dybcio		pins = "gpio2";
5730ead2d17SKonrad Dybcio		function = "normal";
5740ead2d17SKonrad Dybcio		power-source = <0>;
5750ead2d17SKonrad Dybcio		bias-pull-up;
5760ead2d17SKonrad Dybcio		input-enable;
5770ead2d17SKonrad Dybcio	};
5780ead2d17SKonrad Dybcio};
5790ead2d17SKonrad Dybcio
58020fd55b2SKonrad Dybcio&pm8150l_gpios {
58120fd55b2SKonrad Dybcio	gpio-line-names = "TS_VDDIO_EN", /* GPIO_1 */
58220fd55b2SKonrad Dybcio			  "NC",
58320fd55b2SKonrad Dybcio			  "MAIN_CAM_PWR_VMDR_EN",
58420fd55b2SKonrad Dybcio			  "NC",
58520fd55b2SKonrad Dybcio			  "",
58620fd55b2SKonrad Dybcio			  "NC",
58720fd55b2SKonrad Dybcio			  "NC",
58820fd55b2SKonrad Dybcio			  "FP_LDO_EN",
58920fd55b2SKonrad Dybcio			  "NC",
59020fd55b2SKonrad Dybcio			  "NC", /* GPIO_10 */
59120fd55b2SKonrad Dybcio			  "NC",
59220fd55b2SKonrad Dybcio			  "NC";
5937a740ec3SKonrad Dybcio
5947a740ec3SKonrad Dybcio	main_cam_pwr_vmdr_en: main-cam-pwr-vmdr-en-state {
5957a740ec3SKonrad Dybcio		pins = "gpio3";
5967a740ec3SKonrad Dybcio		function = "normal";
5977a740ec3SKonrad Dybcio		qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
5987a740ec3SKonrad Dybcio		power-source = <0>;
5997a740ec3SKonrad Dybcio		drive-push-pull;
6007a740ec3SKonrad Dybcio		output-low;
6017a740ec3SKonrad Dybcio	};
60220fd55b2SKonrad Dybcio};
60320fd55b2SKonrad Dybcio
604d0a6ce59SKonrad Dybcio&pon_pwrkey {
605d0a6ce59SKonrad Dybcio	status = "okay";
606d0a6ce59SKonrad Dybcio};
607d0a6ce59SKonrad Dybcio
608632a35e2SMarijn Suijten&pon_resin {
609632a35e2SMarijn Suijten	linux,code = <KEY_VOLUMEUP>;
610632a35e2SMarijn Suijten	status = "okay";
611632a35e2SMarijn Suijten};
612632a35e2SMarijn Suijten
613d0a6ce59SKonrad Dybcio&qupv3_id_0 {
614d0a6ce59SKonrad Dybcio	status = "okay";
615d0a6ce59SKonrad Dybcio};
616d0a6ce59SKonrad Dybcio
617d0a6ce59SKonrad Dybcio&qupv3_id_1 {
618d0a6ce59SKonrad Dybcio	status = "okay";
619d0a6ce59SKonrad Dybcio};
620d0a6ce59SKonrad Dybcio
621644ab8bbSKonrad Dybcio&sdhc_2 {
622644ab8bbSKonrad Dybcio	vmmc-supply = <&vreg_l9c_2p9>;
623644ab8bbSKonrad Dybcio	vqmmc-supply = <&vreg_l6c_2p9>;
624644ab8bbSKonrad Dybcio	cd-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>;
625644ab8bbSKonrad Dybcio	bus-width = <4>;
626644ab8bbSKonrad Dybcio	no-sdio;
627644ab8bbSKonrad Dybcio	no-mmc;
628644ab8bbSKonrad Dybcio
629644ab8bbSKonrad Dybcio	status = "okay";
630644ab8bbSKonrad Dybcio};
631644ab8bbSKonrad Dybcio
632d0a6ce59SKonrad Dybcio&tlmm {
633d0a6ce59SKonrad Dybcio	gpio-reserved-ranges = <126 4>;
634b949d803SKonrad Dybcio	gpio-line-names = "NFC_ESE_SPI_MISO", /* GPIO_0 */
635b949d803SKonrad Dybcio			  "NFC_ESE_SPI_MOSI",
636b949d803SKonrad Dybcio			  "NFC_ESE_SPI_SCLK",
637b949d803SKonrad Dybcio			  "NFC_ESE_SPI_CS_N",
638b949d803SKonrad Dybcio			  "NC",
639b949d803SKonrad Dybcio			  "NC",
640b949d803SKonrad Dybcio			  "DISP_RESET_N",
641b949d803SKonrad Dybcio			  "DEBUG_GPIO0",
642b949d803SKonrad Dybcio			  "MDP_VSYNC_P",
643b949d803SKonrad Dybcio			  "TS_I2C_SDA",
644b949d803SKonrad Dybcio			  "TS_I2C_SCL", /* GPIO_10 */
645b949d803SKonrad Dybcio			  "CAM_SOF",
646b949d803SKonrad Dybcio			  "CAM2_RST_N",
647b949d803SKonrad Dybcio			  "CAM_MCLK0",
648b949d803SKonrad Dybcio			  "CAM_MCLK1",
649b949d803SKonrad Dybcio			  "CAM_MCLK2",
650b949d803SKonrad Dybcio			  "CAM_MCLK3",
651b949d803SKonrad Dybcio			  "CCI_I2C_SDA0",
652b949d803SKonrad Dybcio			  "CCI_I2C_SCL0",
653b949d803SKonrad Dybcio			  "CCI_I2C_SDA1",
654b949d803SKonrad Dybcio			  "CCI_I2C_SCL1", /* GPIO_20 */
655b949d803SKonrad Dybcio			  "NC",
656b949d803SKonrad Dybcio			  "MAIN_CAM_PWR_EN",
657b949d803SKonrad Dybcio			  "CAM3_RST_N",
658b949d803SKonrad Dybcio			  "NC",
659b949d803SKonrad Dybcio			  "CHAT_CAM_PWR_EN",
660b949d803SKonrad Dybcio			  "NC",
661b949d803SKonrad Dybcio			  "NC",
662b949d803SKonrad Dybcio			  "CAM0_RST_N",
663b949d803SKonrad Dybcio			  "RGBC_IR_PWR_EN",
664b949d803SKonrad Dybcio			  "CAM1_RST_N", /* GPIO_30 */
665b949d803SKonrad Dybcio			  "CCI_I2C_SDA2",
666b949d803SKonrad Dybcio			  "CCI_I2C_SCL2",
667b949d803SKonrad Dybcio			  "CCI_I2C_SDA3",
668b949d803SKonrad Dybcio			  "CCI_I2C_SCL3",
669b949d803SKonrad Dybcio			  "NC",
670b949d803SKonrad Dybcio			  "DEBUG_GPIO1",
671b949d803SKonrad Dybcio			  "RGBC_IR_INT",
672b949d803SKonrad Dybcio			  "USB_CC_DIR",
673b949d803SKonrad Dybcio			  "NC",
674b949d803SKonrad Dybcio			  "NC", /* GPIO_40 */
675b949d803SKonrad Dybcio			  "NFC_EN",
676b949d803SKonrad Dybcio			  "NFC_ESE_PWR_REQ",
677b949d803SKonrad Dybcio			  "BT_HCI_UART_CTS_N",
678b949d803SKonrad Dybcio			  "BT_HCI_UART_RFR_N",
679b949d803SKonrad Dybcio			  "BT_HCI_UART_TXD",
680b949d803SKonrad Dybcio			  "BT_HCI_UART_RXD",
681b949d803SKonrad Dybcio			  "NFC_IRQ",
682b949d803SKonrad Dybcio			  "NFC_DWL_REQ",
683b949d803SKonrad Dybcio			  "UIM2_DETECT_EN",
684b949d803SKonrad Dybcio			  "WLAN_SW_CTRL", /* GPIO_50 */
685b949d803SKonrad Dybcio			  "APPS_I2C_SDA",
686b949d803SKonrad Dybcio			  "APPS_I2C_SCL",
687b949d803SKonrad Dybcio			  "NC",
688b949d803SKonrad Dybcio			  "TS_RESET_N",
689b949d803SKonrad Dybcio			  "NC",
690b949d803SKonrad Dybcio			  "NC",
691b949d803SKonrad Dybcio			  "NC",
692b949d803SKonrad Dybcio			  "NC",
693b949d803SKonrad Dybcio			  "HW_ID_0",
694b949d803SKonrad Dybcio			  "NC", /* GPIO_60 */
695b949d803SKonrad Dybcio			  "QLINK_REQUEST",
696b949d803SKonrad Dybcio			  "QLINK_ENABLE",
697b949d803SKonrad Dybcio			  "WMSS_RESET_N",
698b949d803SKonrad Dybcio			  "SDM_GRFC_8",
699b949d803SKonrad Dybcio			  "WDOG_DISABLE",
700b949d803SKonrad Dybcio			  "NC",
701b949d803SKonrad Dybcio			  "NC",
702b949d803SKonrad Dybcio			  "PA_INDICATOR_OR",
703b949d803SKonrad Dybcio			  "MSS_LTE_COXM_TXD",
704b949d803SKonrad Dybcio			  "MSS_LTE_COXM_RXD", /* GPIO_70 */
705b949d803SKonrad Dybcio			  "SDM_RFFE0_DATA",
706b949d803SKonrad Dybcio			  "SDM_RFFE0_CLK",
707b949d803SKonrad Dybcio			  "SDM_RFFE1_DATA",
708b949d803SKonrad Dybcio			  "SDM_RFFE1_CLK",
709b949d803SKonrad Dybcio			  "SDM_RFFE2_DATA",
710b949d803SKonrad Dybcio			  "SDM_RFFE2_CLK",
711b949d803SKonrad Dybcio			  "SDM_RFFE3_DATA",
712b949d803SKonrad Dybcio			  "SDM_RFFE3_CLK",
713b949d803SKonrad Dybcio			  "SUB_CAM_PWR_EN",
714b949d803SKonrad Dybcio			  "FP_RESET_N", /* GPIO_80 */
715b949d803SKonrad Dybcio			  "NC",
716b949d803SKonrad Dybcio			  "NC",
717b949d803SKonrad Dybcio			  "NC",
718b949d803SKonrad Dybcio			  "NC",
719b949d803SKonrad Dybcio			  "DEBUG_UART_TX",
720b949d803SKonrad Dybcio			  "DEBUG_UART_RX",
721b949d803SKonrad Dybcio			  "DVDT_WRT_DET_AND",
722b949d803SKonrad Dybcio			  "NC",
723b949d803SKonrad Dybcio			  "NC",
724b949d803SKonrad Dybcio			  "NC", /* GPIO_90 */
725b949d803SKonrad Dybcio			  "NC",
726b949d803SKonrad Dybcio			  "NC",
727b949d803SKonrad Dybcio			  "NC",
728b949d803SKonrad Dybcio			  "NC",
729b949d803SKonrad Dybcio			  "UDON_SWITCH_SEL",
730b949d803SKonrad Dybcio			  "SD_CARD_DET_N",
731b949d803SKonrad Dybcio			  "NC",
732b949d803SKonrad Dybcio			  "CAMSENSOR_I2C_SDA",
733b949d803SKonrad Dybcio			  "CAMSENSOR_I2C_SCL",
734b949d803SKonrad Dybcio			  "USB_AUDIO_EN1", /* GPIO_100 */
735b949d803SKonrad Dybcio			  "DISP_ERR_FG",
736b949d803SKonrad Dybcio			  "NC",
737b949d803SKonrad Dybcio			  "NC",
738b949d803SKonrad Dybcio			  "NC",
739b949d803SKonrad Dybcio			  "UIM2_DATA",
740b949d803SKonrad Dybcio			  "UIM2_CLK",
741b949d803SKonrad Dybcio			  "UIM2_RESET",
742b949d803SKonrad Dybcio			  "UIM2_DET",
743b949d803SKonrad Dybcio			  "UIM1_DATA",
744b949d803SKonrad Dybcio			  "UIM1_CLK", /* GPIO_110 */
745b949d803SKonrad Dybcio			  "UIM1_RESET",
746b949d803SKonrad Dybcio			  "UIM1_PRESENT",
747b949d803SKonrad Dybcio			  "NFC_CLK_REQ",
748b949d803SKonrad Dybcio			  "SW_SERVICE",
749b949d803SKonrad Dybcio			  "NC",
750b949d803SKonrad Dybcio			  "RF_ID_EXTENSION",
751b949d803SKonrad Dybcio			  "ALS_PROX_INT_N",
752b949d803SKonrad Dybcio			  "FP_INT",
753b949d803SKonrad Dybcio			  "DVDT_WRT_DET_OR",
754b949d803SKonrad Dybcio			  "BAROMETER_INT", /* GPIO_120 */
755b949d803SKonrad Dybcio			  "ACC_COVER_OPEN",
756b949d803SKonrad Dybcio			  "TS_INT_N",
757b949d803SKonrad Dybcio			  "CODEC_INT1_N",
758b949d803SKonrad Dybcio			  "CODEC_INT2_N",
759b949d803SKonrad Dybcio			  "TX_GTR_THRES_IN",
760b949d803SKonrad Dybcio			  "FP_SPI_MISO",
761b949d803SKonrad Dybcio			  "FP_SPI_MOSI",
762b949d803SKonrad Dybcio			  "FP_SPI_SCLK",
763b949d803SKonrad Dybcio			  "FP_SPI_CS_N",
764b949d803SKonrad Dybcio			  "NC", /* GPIO_130 */
765b949d803SKonrad Dybcio			  "DVDT_ENABLE",
766b949d803SKonrad Dybcio			  "ACCEL_INT",
767b949d803SKonrad Dybcio			  "NC",
768b949d803SKonrad Dybcio			  "MAG_INT_N",
769b949d803SKonrad Dybcio			  "NC",
770b949d803SKonrad Dybcio			  "FORCED_USB_BOOT",
771b949d803SKonrad Dybcio			  "NC",
772b949d803SKonrad Dybcio			  "NC",
773b949d803SKonrad Dybcio			  "HW_ID_1",
774b949d803SKonrad Dybcio			  "NC", /* GPIO_140 */
775b949d803SKonrad Dybcio			  "NC",
776b949d803SKonrad Dybcio			  "NC",
777b949d803SKonrad Dybcio			  "CODEC_RST_N",
778b949d803SKonrad Dybcio			  "CDC_SPI_MISO",
779b949d803SKonrad Dybcio			  "CDC_SPI_MOSI",
780b949d803SKonrad Dybcio			  "CDC_SPI_SCLK",
781b949d803SKonrad Dybcio			  "CDC_SPI_CS_N",
782b949d803SKonrad Dybcio			  "NC",
783b949d803SKonrad Dybcio			  "LPASS_SLIMBUS_CLK",
784b949d803SKonrad Dybcio			  "LPASS_SLIMBUS_DATA0", /* GPIO_150 */
785b949d803SKonrad Dybcio			  "LPASS_SLIMBUS_DATA1",
786b949d803SKonrad Dybcio			  "USB_AUDIO_EN2",
787b949d803SKonrad Dybcio			  "BT_FM_SLIMBUS_DATA",
788b949d803SKonrad Dybcio			  "BT_FM_SLIMBUS_CLK",
789b949d803SKonrad Dybcio			  "COMPASS_I2C_SDA",
790b949d803SKonrad Dybcio			  "COMPASS_I2C_SCL",
791b949d803SKonrad Dybcio			  "SSC_SPI_1_MISO",
792b949d803SKonrad Dybcio			  "SSC_SPI_1_MOSI",
793b949d803SKonrad Dybcio			  "SSC_SPI_1_CLK",
794b949d803SKonrad Dybcio			  "SSC_SPI_1_CS_N", /* GPIO_160 */
795b949d803SKonrad Dybcio			  "SSC_SENSOR_I2C_SDA",
796b949d803SKonrad Dybcio			  "SSC_SENSOR_I2C_SCL",
797b949d803SKonrad Dybcio			  "NC",
798b949d803SKonrad Dybcio			  "NC",
799b949d803SKonrad Dybcio			  "NC",
800b949d803SKonrad Dybcio			  "NC",
801b949d803SKonrad Dybcio			  "SSC_UART_1_TX",
802b949d803SKonrad Dybcio			  "SSC_UART_1_RX",
803b949d803SKonrad Dybcio			  "WL_CMD_CLK_CHAIN0",
804b949d803SKonrad Dybcio			  "WL_CMD_DATA_CHAIN0", /* GPIO_170 */
805b949d803SKonrad Dybcio			  "WL_CMD_CLK_CHAIN1",
806b949d803SKonrad Dybcio			  "WL_CMD_DATA_CHAIN1",
807b949d803SKonrad Dybcio			  "WL_BT_COEX_CLK",
808b949d803SKonrad Dybcio			  "WL_BT_COEX_DATA";
8097a740ec3SKonrad Dybcio
8107a740ec3SKonrad Dybcio	main_cam_pwr_en: main-cam-pwr-en-state {
8117a740ec3SKonrad Dybcio		pins = "gpio22";
8127a740ec3SKonrad Dybcio		function = "gpio";
8137a740ec3SKonrad Dybcio		drive-strength = <2>;
8147a740ec3SKonrad Dybcio		bias-disable;
8157a740ec3SKonrad Dybcio		output-low;
8167a740ec3SKonrad Dybcio	};
8177a740ec3SKonrad Dybcio
8187a740ec3SKonrad Dybcio	chat_cam_pwr_en: chat-cam-pwr-en-state {
8197a740ec3SKonrad Dybcio		pins = "gpio25";
8207a740ec3SKonrad Dybcio		function = "gpio";
8217a740ec3SKonrad Dybcio		drive-strength = <2>;
8227a740ec3SKonrad Dybcio		bias-disable;
8237a740ec3SKonrad Dybcio		output-low;
8247a740ec3SKonrad Dybcio	};
8257a740ec3SKonrad Dybcio
8267a740ec3SKonrad Dybcio	rgbc_ir_pwr_en: rgbc-ir-pwr-en-state {
8277a740ec3SKonrad Dybcio		pins = "gpio29";
8287a740ec3SKonrad Dybcio		function = "gpio";
8297a740ec3SKonrad Dybcio		drive-strength = <2>;
8307a740ec3SKonrad Dybcio		bias-disable;
8317a740ec3SKonrad Dybcio		output-low;
8327a740ec3SKonrad Dybcio	};
8337a740ec3SKonrad Dybcio
8347a740ec3SKonrad Dybcio	sub_cam_pwr_en: sub-cam-pwr-en-state {
8357a740ec3SKonrad Dybcio		pins = "gpio79";
8367a740ec3SKonrad Dybcio		function = "gpio";
8377a740ec3SKonrad Dybcio		drive-strength = <2>;
8387a740ec3SKonrad Dybcio		bias-pull-down;
8397a740ec3SKonrad Dybcio	};
840d0a6ce59SKonrad Dybcio};
841d0a6ce59SKonrad Dybcio
842d0a6ce59SKonrad Dybcio&uart2 {
843d0a6ce59SKonrad Dybcio	status = "okay";
844d0a6ce59SKonrad Dybcio};
845d0a6ce59SKonrad Dybcio
846d0a6ce59SKonrad Dybcio/* BIG WARNING! DO NOT TOUCH UFS, YOUR DEVICE WILL DIE! */
847d0a6ce59SKonrad Dybcio&ufs_mem_hc { status = "disabled"; };
848d0a6ce59SKonrad Dybcio&ufs_mem_phy { status = "disabled"; };
849d0a6ce59SKonrad Dybcio
850d0a6ce59SKonrad Dybcio&usb_1 {
851d0a6ce59SKonrad Dybcio	status = "okay";
852d0a6ce59SKonrad Dybcio};
853d0a6ce59SKonrad Dybcio
854d0a6ce59SKonrad Dybcio&usb_1_dwc3 {
855d0a6ce59SKonrad Dybcio	dr_mode = "peripheral";
856d0a6ce59SKonrad Dybcio};
857d0a6ce59SKonrad Dybcio
858d0a6ce59SKonrad Dybcio&usb_1_hsphy {
859d0a6ce59SKonrad Dybcio	status = "okay";
860d0a6ce59SKonrad Dybcio	vdda-pll-supply = <&vreg_l5a_0p875>;
861d0a6ce59SKonrad Dybcio	vdda33-supply = <&vreg_l2a_3p1>;
862d0a6ce59SKonrad Dybcio	vdda18-supply = <&vreg_l12a_1p8>;
863d0a6ce59SKonrad Dybcio};
864d0a6ce59SKonrad Dybcio
865d0a6ce59SKonrad Dybcio&usb_1_qmpphy {
866d0a6ce59SKonrad Dybcio	status = "okay";
867d0a6ce59SKonrad Dybcio	vdda-phy-supply = <&vreg_l3c_1p2>;
868d0a6ce59SKonrad Dybcio	vdda-pll-supply = <&vreg_l18a_0p8>;
869d0a6ce59SKonrad Dybcio};
870