xref: /linux/scripts/dtc/include-prefixes/arm/qcom/qcom-sdx65-mtp.dts (revision 06d07429858317ded2db7986113a9e0129cd599b)
1724ba675SRob Herring// SPDX-License-Identifier: BSD-3-Clause
2724ba675SRob Herring/*
3724ba675SRob Herring * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
4724ba675SRob Herring */
5724ba675SRob Herring/dts-v1/;
6724ba675SRob Herring
74d8b5d71SLuca Weiss/* PM7250B is configured to use SID2/3 */
84d8b5d71SLuca Weiss#define PM7250B_SID 2
94d8b5d71SLuca Weiss#define PM7250B_SID1 3
104d8b5d71SLuca Weiss
11724ba675SRob Herring#include "qcom-sdx65.dtsi"
12724ba675SRob Herring#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
13724ba675SRob Herring#include <arm64/qcom/pmk8350.dtsi>
14f636d6c3SRohit Agarwal#include <arm64/qcom/pm7250b.dtsi>
15*455a4c46SDmitry Baryshkov#include "pmx65.dtsi"
16724ba675SRob Herring
17724ba675SRob Herring/ {
18724ba675SRob Herring	model = "Qualcomm Technologies, Inc. SDX65 MTP";
19724ba675SRob Herring	compatible = "qcom,sdx65-mtp", "qcom,sdx65";
20724ba675SRob Herring	qcom,board-id = <0x2010008 0x302>;
21724ba675SRob Herring
22724ba675SRob Herring	aliases {
23724ba675SRob Herring		serial0 = &blsp1_uart3;
24724ba675SRob Herring	};
25724ba675SRob Herring
26724ba675SRob Herring	chosen {
27724ba675SRob Herring		stdout-path = "serial0:115200n8";
28724ba675SRob Herring	};
29724ba675SRob Herring
30724ba675SRob Herring	reserved-memory {
31724ba675SRob Herring		#address-cells = <1>;
32724ba675SRob Herring		#size-cells = <1>;
33724ba675SRob Herring		ranges;
34724ba675SRob Herring
35724ba675SRob Herring		mpss_dsm: memory@8c400000 {
36724ba675SRob Herring			no-map;
37724ba675SRob Herring			reg = <0x8c400000 0x3200000>;
38724ba675SRob Herring		};
39724ba675SRob Herring
40724ba675SRob Herring		ipa_fw_mem: memory@8fced000 {
41724ba675SRob Herring			no-map;
42724ba675SRob Herring			reg = <0x8fced000 0x10000>;
43724ba675SRob Herring		};
44724ba675SRob Herring
45724ba675SRob Herring		mpss_adsp_mem: memory@90800000 {
46724ba675SRob Herring			no-map;
47724ba675SRob Herring			reg = <0x90800000 0x10000000>;
48724ba675SRob Herring		};
49724ba675SRob Herring	};
50724ba675SRob Herring
51724ba675SRob Herring	vph_pwr: vph-pwr-regulator {
52724ba675SRob Herring		compatible = "regulator-fixed";
53724ba675SRob Herring		regulator-name = "vph_pwr";
54724ba675SRob Herring		regulator-min-microvolt = <3700000>;
55724ba675SRob Herring		regulator-max-microvolt = <3700000>;
56724ba675SRob Herring	};
57724ba675SRob Herring
58724ba675SRob Herring	vreg_bob_3p3: pmx65_bob {
59724ba675SRob Herring		compatible = "regulator-fixed";
60724ba675SRob Herring		regulator-name = "vreg_bob_3p3";
61724ba675SRob Herring		regulator-min-microvolt = <3300000>;
62724ba675SRob Herring		regulator-max-microvolt = <3300000>;
63724ba675SRob Herring
64724ba675SRob Herring		regulator-always-on;
65724ba675SRob Herring		regulator-boot-on;
66724ba675SRob Herring
67724ba675SRob Herring		vin-supply = <&vph_pwr>;
68724ba675SRob Herring	};
69724ba675SRob Herring};
70724ba675SRob Herring
71724ba675SRob Herring&apps_rsc {
72724ba675SRob Herring	regulators-0 {
73724ba675SRob Herring		compatible = "qcom,pmx65-rpmh-regulators";
74724ba675SRob Herring		qcom,pmic-id = "b";
75724ba675SRob Herring
76724ba675SRob Herring		vdd-s1-supply = <&vph_pwr>;
77724ba675SRob Herring		vdd-s2-supply = <&vph_pwr>;
78724ba675SRob Herring		vdd-s3-supply = <&vph_pwr>;
79724ba675SRob Herring		vdd-s4-supply = <&vph_pwr>;
80724ba675SRob Herring		vdd-s5-supply = <&vph_pwr>;
81724ba675SRob Herring		vdd-s6-supply = <&vph_pwr>;
82724ba675SRob Herring		vdd-s7-supply = <&vph_pwr>;
83724ba675SRob Herring		vdd-s8-supply = <&vph_pwr>;
84724ba675SRob Herring		vdd-l1-supply = <&vreg_s2b_1p224>;
85724ba675SRob Herring		vdd-l2-l18-supply = <&vreg_s2b_1p224>;
86724ba675SRob Herring		vdd-l3-supply = <&vreg_s8b_0p824>;
87724ba675SRob Herring		vdd-l4-supply = <&vreg_s7b_0p936>;
88724ba675SRob Herring		vdd-l5-l6-l16-supply = <&vreg_s4b_1p824>;
89724ba675SRob Herring		vdd-l7-supply = <&vreg_s3b_0p776>;
90724ba675SRob Herring		vdd-l8-l9-supply = <&vreg_s8b_0p824>;
91724ba675SRob Herring		vdd-l10-supply = <&vreg_bob_3p3>;
92724ba675SRob Herring		vdd-l11-l13-supply = <&vreg_bob_3p3>;
93724ba675SRob Herring		vdd-l12-supply = <&vreg_s2b_1p224>;
94724ba675SRob Herring		vdd-l14-supply = <&vreg_s3b_0p776>;
95724ba675SRob Herring		vdd-l15-supply = <&vreg_s2b_1p224>;
96724ba675SRob Herring		vdd-l17-supply = <&vreg_s8b_0p824>;
97724ba675SRob Herring		vdd-l19-supply = <&vreg_s3b_0p776>;
98724ba675SRob Herring		vdd-l20-supply = <&vreg_s7b_0p936>;
99724ba675SRob Herring		vdd-l21-supply = <&vreg_s7b_0p936>;
100724ba675SRob Herring
101724ba675SRob Herring		vreg_s2b_1p224: smps2 {
102724ba675SRob Herring			regulator-min-microvolt = <1200000>;
103724ba675SRob Herring			regulator-max-microvolt = <1400000>;
104724ba675SRob Herring		};
105724ba675SRob Herring
106724ba675SRob Herring		vreg_s3b_0p776: smps3 {
107724ba675SRob Herring			regulator-min-microvolt = <500000>;
108724ba675SRob Herring			regulator-max-microvolt = <1040000>;
109724ba675SRob Herring		};
110724ba675SRob Herring
111724ba675SRob Herring		vreg_s4b_1p824: smps4 {
112724ba675SRob Herring			regulator-min-microvolt = <1800000>;
113724ba675SRob Herring			regulator-max-microvolt = <2024000>;
114724ba675SRob Herring		};
115724ba675SRob Herring
116724ba675SRob Herring		vreg_s7b_0p936: smps7 {
117724ba675SRob Herring			regulator-min-microvolt = <500000>;
118724ba675SRob Herring			regulator-max-microvolt = <1040000>;
119724ba675SRob Herring		};
120724ba675SRob Herring
121724ba675SRob Herring		vreg_s8b_0p824: smps8 {
122724ba675SRob Herring			regulator-min-microvolt = <304000>;
123724ba675SRob Herring			regulator-max-microvolt = <1300000>;
124724ba675SRob Herring		};
125724ba675SRob Herring
126724ba675SRob Herring		vreg_l1b_1p2: ldo1 {
127724ba675SRob Herring			regulator-min-microvolt = <1200000>;
128724ba675SRob Herring			regulator-max-microvolt = <1200000>;
129724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
130724ba675SRob Herring		};
131724ba675SRob Herring
132724ba675SRob Herring		ldo2 {
133724ba675SRob Herring			regulator-min-microvolt = <1128000>;
134724ba675SRob Herring			regulator-max-microvolt = <1128000>;
135724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
136724ba675SRob Herring		};
137724ba675SRob Herring
138724ba675SRob Herring		ldo3 {
139724ba675SRob Herring			regulator-min-microvolt = <300000>;
140724ba675SRob Herring			regulator-max-microvolt = <960000>;
141724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
142724ba675SRob Herring		};
143724ba675SRob Herring
144724ba675SRob Herring		vreg_l4b_0p88: ldo4 {
145724ba675SRob Herring			regulator-min-microvolt = <880000>;
146724ba675SRob Herring			regulator-max-microvolt = <912000>;
147724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
148724ba675SRob Herring		};
149724ba675SRob Herring
150724ba675SRob Herring		vreg_l5b_1p8: ldo5 {
151724ba675SRob Herring			regulator-min-microvolt = <1800000>;
152724ba675SRob Herring			regulator-max-microvolt = <1800000>;
153724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
154724ba675SRob Herring		};
155724ba675SRob Herring
156724ba675SRob Herring		ldo6 {
157724ba675SRob Herring			regulator-min-microvolt = <1800000>;
158724ba675SRob Herring			regulator-max-microvolt = <1800000>;
159724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
160724ba675SRob Herring		};
161724ba675SRob Herring
162724ba675SRob Herring		ldo7 {
163724ba675SRob Herring			regulator-min-microvolt = <752000>;
164724ba675SRob Herring			regulator-max-microvolt = <752000>;
165724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
166724ba675SRob Herring		};
167724ba675SRob Herring
168724ba675SRob Herring		ldo8 {
169724ba675SRob Herring			regulator-min-microvolt = <800000>;
170724ba675SRob Herring			regulator-max-microvolt = <800000>;
171724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
172724ba675SRob Herring		};
173724ba675SRob Herring
174724ba675SRob Herring		ldo9 {
175724ba675SRob Herring			regulator-min-microvolt = <800000>;
176724ba675SRob Herring			regulator-max-microvolt = <800000>;
177724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
178724ba675SRob Herring		};
179724ba675SRob Herring
180724ba675SRob Herring		vreg_l10b_3p08: ldo10 {
181724ba675SRob Herring			regulator-min-microvolt = <3088000>;
182724ba675SRob Herring			regulator-max-microvolt = <3088000>;
183724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
184724ba675SRob Herring		};
185724ba675SRob Herring
186724ba675SRob Herring		ldo11 {
187724ba675SRob Herring			regulator-min-microvolt = <1704000>;
188724ba675SRob Herring			regulator-max-microvolt = <2928000>;
189724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
190724ba675SRob Herring		};
191724ba675SRob Herring
192724ba675SRob Herring		ldo12 {
193724ba675SRob Herring			regulator-min-microvolt = <1200000>;
194724ba675SRob Herring			regulator-max-microvolt = <1200000>;
195724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
196724ba675SRob Herring		};
197724ba675SRob Herring
198724ba675SRob Herring		ldo13 {
199724ba675SRob Herring			regulator-min-microvolt = <1704000>;
200724ba675SRob Herring			regulator-max-microvolt = <2928000>;
201724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
202724ba675SRob Herring		};
203724ba675SRob Herring
204724ba675SRob Herring		ldo14 {
205724ba675SRob Herring			regulator-min-microvolt = <600000>;
206724ba675SRob Herring			regulator-max-microvolt = <800000>;
207724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
208724ba675SRob Herring		};
209724ba675SRob Herring
210724ba675SRob Herring		ldo15 {
211724ba675SRob Herring			regulator-min-microvolt = <1200000>;
212724ba675SRob Herring			regulator-max-microvolt = <1200000>;
213724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
214724ba675SRob Herring		};
215724ba675SRob Herring
216724ba675SRob Herring		ldo16 {
217724ba675SRob Herring			regulator-min-microvolt = <1776000>;
218724ba675SRob Herring			regulator-max-microvolt = <1776000>;
219724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
220724ba675SRob Herring		};
221724ba675SRob Herring
222724ba675SRob Herring		ldo17 {
223724ba675SRob Herring			regulator-min-microvolt = <300000>;
224724ba675SRob Herring			regulator-max-microvolt = <960000>;
225724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
226724ba675SRob Herring		};
227724ba675SRob Herring
228724ba675SRob Herring		ldo19 {
229724ba675SRob Herring			regulator-min-microvolt = <752000>;
230724ba675SRob Herring			regulator-max-microvolt = <752000>;
231724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
232724ba675SRob Herring		};
233724ba675SRob Herring
234724ba675SRob Herring		ldo20 {
235724ba675SRob Herring			regulator-min-microvolt = <912000>;
236724ba675SRob Herring			regulator-max-microvolt = <912000>;
237724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
238724ba675SRob Herring		};
239724ba675SRob Herring
240724ba675SRob Herring		ldo21 {
241724ba675SRob Herring			regulator-min-microvolt = <912000>;
242724ba675SRob Herring			regulator-max-microvolt = <912000>;
243724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
244724ba675SRob Herring		};
245724ba675SRob Herring	};
246724ba675SRob Herring};
247724ba675SRob Herring
248724ba675SRob Herring&blsp1_uart3 {
249724ba675SRob Herring	status = "okay";
250724ba675SRob Herring};
251724ba675SRob Herring
252724ba675SRob Herring&ipa {
253724ba675SRob Herring	qcom,gsi-loader = "skip";
254724ba675SRob Herring	status = "okay";
255724ba675SRob Herring};
256724ba675SRob Herring
257724ba675SRob Herring&pcie_ep {
258724ba675SRob Herring	pinctrl-0 = <&pcie_ep_clkreq_default
259724ba675SRob Herring		     &pcie_ep_perst_default
260724ba675SRob Herring		     &pcie_ep_wake_default>;
261724ba675SRob Herring	pinctrl-names = "default";
262724ba675SRob Herring
263724ba675SRob Herring	reset-gpios = <&tlmm 57 GPIO_ACTIVE_LOW>;
264724ba675SRob Herring	wake-gpios = <&tlmm 53 GPIO_ACTIVE_LOW>;
265724ba675SRob Herring
266724ba675SRob Herring	status = "okay";
267724ba675SRob Herring};
268724ba675SRob Herring
269724ba675SRob Herring&pcie_phy {
270724ba675SRob Herring	vdda-phy-supply = <&vreg_l1b_1p2>;
271724ba675SRob Herring	vdda-pll-supply = <&vreg_l4b_0p88>;
272724ba675SRob Herring
273724ba675SRob Herring	status = "okay";
274724ba675SRob Herring};
275724ba675SRob Herring
276724ba675SRob Herring&qpic_bam {
277724ba675SRob Herring	status = "okay";
278724ba675SRob Herring};
279724ba675SRob Herring
280724ba675SRob Herring&qpic_nand {
281724ba675SRob Herring	status = "okay";
282724ba675SRob Herring
283724ba675SRob Herring	nand@0 {
284724ba675SRob Herring		reg = <0>;
285724ba675SRob Herring
286724ba675SRob Herring		nand-ecc-strength = <4>;
287724ba675SRob Herring		nand-ecc-step-size = <512>;
288724ba675SRob Herring		nand-bus-width = <8>;
289724ba675SRob Herring		/* ico and efs2 partitions are secured */
290724ba675SRob Herring		secure-regions = /bits/ 64 <0x500000 0x500000
291724ba675SRob Herring					    0xa00000 0xb00000>;
292724ba675SRob Herring	};
293724ba675SRob Herring};
294724ba675SRob Herring
295724ba675SRob Herring&remoteproc_mpss {
296724ba675SRob Herring	memory-region = <&mpss_adsp_mem>;
297724ba675SRob Herring	status = "okay";
298724ba675SRob Herring};
299724ba675SRob Herring
300724ba675SRob Herring&tlmm {
301724ba675SRob Herring	pcie_ep_clkreq_default: pcie-ep-clkreq-default-state {
302724ba675SRob Herring		pins = "gpio56";
303724ba675SRob Herring		function = "pcie_clkreq";
304724ba675SRob Herring		drive-strength = <2>;
305724ba675SRob Herring		bias-disable;
306724ba675SRob Herring	};
307724ba675SRob Herring
308724ba675SRob Herring	pcie_ep_perst_default: pcie-ep-perst-default-state {
309724ba675SRob Herring		pins = "gpio57";
310724ba675SRob Herring		function = "gpio";
311724ba675SRob Herring		drive-strength = <2>;
312724ba675SRob Herring		bias-pull-down;
313724ba675SRob Herring	};
314724ba675SRob Herring
315724ba675SRob Herring	pcie_ep_wake_default: pcie-ep-wake-default-state {
316724ba675SRob Herring		pins = "gpio53";
317724ba675SRob Herring		function = "gpio";
318724ba675SRob Herring		drive-strength = <2>;
319724ba675SRob Herring		bias-disable;
320724ba675SRob Herring	};
321724ba675SRob Herring};
322724ba675SRob Herring
323724ba675SRob Herring&usb {
324724ba675SRob Herring	status = "okay";
325724ba675SRob Herring};
326724ba675SRob Herring
327724ba675SRob Herring&usb_dwc3 {
328724ba675SRob Herring	dr_mode = "peripheral";
329724ba675SRob Herring};
330724ba675SRob Herring
331724ba675SRob Herring&usb_hsphy {
332724ba675SRob Herring	vdda-pll-supply = <&vreg_l4b_0p88>;
333724ba675SRob Herring	vdda33-supply = <&vreg_l10b_3p08>;
334724ba675SRob Herring	vdda18-supply = <&vreg_l5b_1p8>;
335724ba675SRob Herring	status = "okay";
336724ba675SRob Herring};
337724ba675SRob Herring
338724ba675SRob Herring&usb_qmpphy {
339724ba675SRob Herring	vdda-phy-supply = <&vreg_l4b_0p88>;
340724ba675SRob Herring	vdda-pll-supply = <&vreg_l1b_1p2>;
341724ba675SRob Herring	status = "okay";
342724ba675SRob Herring};
343