xref: /linux/scripts/dtc/include-prefixes/arm/qcom/qcom-sdx55-t55.dts (revision 724ba6751532055db75992fc6ae21c3e322e94a7)
1*724ba675SRob Herring// SPDX-License-Identifier: BSD-3-Clause
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Copyright (c) 2021, Linaro Ltd.
4*724ba675SRob Herring */
5*724ba675SRob Herring
6*724ba675SRob Herring/dts-v1/;
7*724ba675SRob Herring
8*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h>
9*724ba675SRob Herring#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
10*724ba675SRob Herring#include "qcom-sdx55.dtsi"
11*724ba675SRob Herring#include "qcom-pmx55.dtsi"
12*724ba675SRob Herring
13*724ba675SRob Herring/ {
14*724ba675SRob Herring	model = "Thundercomm T55 Development Kit";
15*724ba675SRob Herring	compatible = "qcom,sdx55-t55", "qcom,sdx55";
16*724ba675SRob Herring	qcom,board-id = <0xb010008 0x4>;
17*724ba675SRob Herring
18*724ba675SRob Herring	aliases {
19*724ba675SRob Herring		serial0 = &blsp1_uart3;
20*724ba675SRob Herring	};
21*724ba675SRob Herring
22*724ba675SRob Herring	chosen {
23*724ba675SRob Herring		stdout-path = "serial0:115200n8";
24*724ba675SRob Herring	};
25*724ba675SRob Herring
26*724ba675SRob Herring	reserved-memory {
27*724ba675SRob Herring		#address-cells = <1>;
28*724ba675SRob Herring		#size-cells = <1>;
29*724ba675SRob Herring		ranges;
30*724ba675SRob Herring
31*724ba675SRob Herring		mpss_debug_mem: memory@8ef00000 {
32*724ba675SRob Herring			no-map;
33*724ba675SRob Herring			reg = <0x8ef00000 0x800000>;
34*724ba675SRob Herring		};
35*724ba675SRob Herring
36*724ba675SRob Herring		ipa_fw_mem: memory@8fced000 {
37*724ba675SRob Herring			no-map;
38*724ba675SRob Herring			reg = <0x8fced000 0x10000>;
39*724ba675SRob Herring		};
40*724ba675SRob Herring
41*724ba675SRob Herring		mpss_adsp_mem: memory@90800000 {
42*724ba675SRob Herring			no-map;
43*724ba675SRob Herring			reg = <0x90800000 0xf800000>;
44*724ba675SRob Herring		};
45*724ba675SRob Herring	};
46*724ba675SRob Herring
47*724ba675SRob Herring	vph_pwr: vph-pwr-regulator {
48*724ba675SRob Herring		compatible = "regulator-fixed";
49*724ba675SRob Herring		regulator-name = "vph_pwr";
50*724ba675SRob Herring		regulator-min-microvolt = <3700000>;
51*724ba675SRob Herring		regulator-max-microvolt = <3700000>;
52*724ba675SRob Herring	};
53*724ba675SRob Herring
54*724ba675SRob Herring	vreg_bob_3p3: pmx55-bob {
55*724ba675SRob Herring		compatible = "regulator-fixed";
56*724ba675SRob Herring		regulator-name = "vreg_bob_3p3";
57*724ba675SRob Herring		regulator-min-microvolt = <3300000>;
58*724ba675SRob Herring		regulator-max-microvolt = <3300000>;
59*724ba675SRob Herring
60*724ba675SRob Herring		regulator-always-on;
61*724ba675SRob Herring		regulator-boot-on;
62*724ba675SRob Herring
63*724ba675SRob Herring		vin-supply = <&vph_pwr>;
64*724ba675SRob Herring	};
65*724ba675SRob Herring
66*724ba675SRob Herring	vreg_s7e_mx_0p752: pmx55-s7e {
67*724ba675SRob Herring		compatible = "regulator-fixed";
68*724ba675SRob Herring		regulator-name = "vreg_s7e_mx_0p752";
69*724ba675SRob Herring		regulator-min-microvolt = <752000>;
70*724ba675SRob Herring		regulator-max-microvolt = <752000>;
71*724ba675SRob Herring
72*724ba675SRob Herring		vin-supply = <&vph_pwr>;
73*724ba675SRob Herring	};
74*724ba675SRob Herring
75*724ba675SRob Herring	vreg_sd_vdd: sd-vdd {
76*724ba675SRob Herring		compatible = "regulator-fixed";
77*724ba675SRob Herring		regulator-name = "vreg_sd_vdd";
78*724ba675SRob Herring		regulator-min-microvolt = <2950000>;
79*724ba675SRob Herring		regulator-max-microvolt = <2950000>;
80*724ba675SRob Herring
81*724ba675SRob Herring		vin-supply = <&vreg_vddpx_2>;
82*724ba675SRob Herring	};
83*724ba675SRob Herring
84*724ba675SRob Herring	vreg_vddpx_2: vddpx-2 {
85*724ba675SRob Herring		compatible = "regulator-gpio";
86*724ba675SRob Herring		regulator-name = "vreg_vddpx_2";
87*724ba675SRob Herring		regulator-min-microvolt = <1800000>;
88*724ba675SRob Herring		regulator-max-microvolt = <2850000>;
89*724ba675SRob Herring		enable-gpios = <&tlmm 98 GPIO_ACTIVE_HIGH>;
90*724ba675SRob Herring		gpios = <&tlmm 100 GPIO_ACTIVE_HIGH>;
91*724ba675SRob Herring		states = <1800000 0>, <2850000 1>;
92*724ba675SRob Herring		startup-delay-us = <200000>;
93*724ba675SRob Herring		enable-active-high;
94*724ba675SRob Herring		regulator-boot-on;
95*724ba675SRob Herring
96*724ba675SRob Herring		vin-supply = <&vph_pwr>;
97*724ba675SRob Herring	};
98*724ba675SRob Herring};
99*724ba675SRob Herring
100*724ba675SRob Herring&apps_rsc {
101*724ba675SRob Herring	regulators-0 {
102*724ba675SRob Herring		compatible = "qcom,pmx55-rpmh-regulators";
103*724ba675SRob Herring		qcom,pmic-id = "e";
104*724ba675SRob Herring
105*724ba675SRob Herring		vdd-s1-supply = <&vph_pwr>;
106*724ba675SRob Herring		vdd-s2-supply = <&vph_pwr>;
107*724ba675SRob Herring		vdd-s3-supply = <&vph_pwr>;
108*724ba675SRob Herring		vdd-s4-supply = <&vph_pwr>;
109*724ba675SRob Herring		vdd-s5-supply = <&vph_pwr>;
110*724ba675SRob Herring		vdd-s6-supply = <&vph_pwr>;
111*724ba675SRob Herring		vdd-s7-supply = <&vph_pwr>;
112*724ba675SRob Herring		vdd-l1-l2-supply = <&vreg_s2e_1p224>;
113*724ba675SRob Herring		vdd-l3-l9-supply = <&vreg_s3e_0p824>;
114*724ba675SRob Herring		vdd-l4-l12-supply = <&vreg_s4e_1p904>;
115*724ba675SRob Herring		vdd-l5-l6-supply = <&vreg_s4e_1p904>;
116*724ba675SRob Herring		vdd-l7-l8-supply = <&vreg_s3e_0p824>;
117*724ba675SRob Herring		vdd-l10-l11-l13-supply = <&vreg_bob_3p3>;
118*724ba675SRob Herring		vdd-l14-supply = <&vreg_s7e_mx_0p752>;
119*724ba675SRob Herring		vdd-l15-supply = <&vreg_s2e_1p224>;
120*724ba675SRob Herring		vdd-l16-supply = <&vreg_s4e_1p904>;
121*724ba675SRob Herring
122*724ba675SRob Herring		vreg_s2e_1p224: smps2 {
123*724ba675SRob Herring			regulator-min-microvolt = <1280000>;
124*724ba675SRob Herring			regulator-max-microvolt = <1400000>;
125*724ba675SRob Herring		};
126*724ba675SRob Herring
127*724ba675SRob Herring		vreg_s3e_0p824: smps3 {
128*724ba675SRob Herring			regulator-min-microvolt = <800000>;
129*724ba675SRob Herring			regulator-max-microvolt = <1000000>;
130*724ba675SRob Herring		};
131*724ba675SRob Herring
132*724ba675SRob Herring		vreg_s4e_1p904: smps4 {
133*724ba675SRob Herring			regulator-min-microvolt = <1800000>;
134*724ba675SRob Herring			regulator-max-microvolt = <1960000>;
135*724ba675SRob Herring		};
136*724ba675SRob Herring
137*724ba675SRob Herring		vreg_l1e_bb_1p2: ldo1 {
138*724ba675SRob Herring			regulator-min-microvolt = <1200000>;
139*724ba675SRob Herring			regulator-max-microvolt = <1200000>;
140*724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
141*724ba675SRob Herring		};
142*724ba675SRob Herring
143*724ba675SRob Herring		ldo2 {
144*724ba675SRob Herring			regulator-min-microvolt = <1128000>;
145*724ba675SRob Herring			regulator-max-microvolt = <1128000>;
146*724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
147*724ba675SRob Herring		};
148*724ba675SRob Herring
149*724ba675SRob Herring		ldo3 {
150*724ba675SRob Herring			regulator-min-microvolt = <800000>;
151*724ba675SRob Herring			regulator-max-microvolt = <800000>;
152*724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
153*724ba675SRob Herring		};
154*724ba675SRob Herring
155*724ba675SRob Herring		vreg_l4e_bb_0p875: ldo4 {
156*724ba675SRob Herring			regulator-min-microvolt = <872000>;
157*724ba675SRob Herring			regulator-max-microvolt = <872000>;
158*724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
159*724ba675SRob Herring		};
160*724ba675SRob Herring
161*724ba675SRob Herring		vreg_l5e_bb_1p7: ldo5 {
162*724ba675SRob Herring			regulator-min-microvolt = <1704000>;
163*724ba675SRob Herring			regulator-max-microvolt = <1900000>;
164*724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
165*724ba675SRob Herring		};
166*724ba675SRob Herring
167*724ba675SRob Herring		ldo6 {
168*724ba675SRob Herring			regulator-min-microvolt = <1800000>;
169*724ba675SRob Herring			regulator-max-microvolt = <1800000>;
170*724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
171*724ba675SRob Herring		};
172*724ba675SRob Herring
173*724ba675SRob Herring		ldo7 {
174*724ba675SRob Herring			regulator-min-microvolt = <480000>;
175*724ba675SRob Herring			regulator-max-microvolt = <900000>;
176*724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
177*724ba675SRob Herring		};
178*724ba675SRob Herring
179*724ba675SRob Herring		ldo8 {
180*724ba675SRob Herring			regulator-min-microvolt = <480000>;
181*724ba675SRob Herring			regulator-max-microvolt = <900000>;
182*724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
183*724ba675SRob Herring		};
184*724ba675SRob Herring
185*724ba675SRob Herring		ldo9 {
186*724ba675SRob Herring			regulator-min-microvolt = <800000>;
187*724ba675SRob Herring			regulator-max-microvolt = <800000>;
188*724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
189*724ba675SRob Herring		};
190*724ba675SRob Herring
191*724ba675SRob Herring		vreg_l10e_3p1: ldo10 {
192*724ba675SRob Herring			regulator-min-microvolt = <3088000>;
193*724ba675SRob Herring			regulator-max-microvolt = <3088000>;
194*724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
195*724ba675SRob Herring		};
196*724ba675SRob Herring
197*724ba675SRob Herring		ldo11 {
198*724ba675SRob Herring			regulator-min-microvolt = <1704000>;
199*724ba675SRob Herring			regulator-max-microvolt = <2928000>;
200*724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
201*724ba675SRob Herring		};
202*724ba675SRob Herring
203*724ba675SRob Herring		ldo12 {
204*724ba675SRob Herring			regulator-min-microvolt = <1200000>;
205*724ba675SRob Herring			regulator-max-microvolt = <1200000>;
206*724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
207*724ba675SRob Herring		};
208*724ba675SRob Herring
209*724ba675SRob Herring		ldo13 {
210*724ba675SRob Herring			regulator-min-microvolt = <1704000>;
211*724ba675SRob Herring			regulator-max-microvolt = <2928000>;
212*724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
213*724ba675SRob Herring		};
214*724ba675SRob Herring
215*724ba675SRob Herring		ldo14 {
216*724ba675SRob Herring			regulator-min-microvolt = <600000>;
217*724ba675SRob Herring			regulator-max-microvolt = <800000>;
218*724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
219*724ba675SRob Herring		};
220*724ba675SRob Herring
221*724ba675SRob Herring		ldo15 {
222*724ba675SRob Herring			regulator-min-microvolt = <1200000>;
223*724ba675SRob Herring			regulator-max-microvolt = <1200000>;
224*724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
225*724ba675SRob Herring		};
226*724ba675SRob Herring
227*724ba675SRob Herring		ldo16 {
228*724ba675SRob Herring			regulator-min-microvolt = <1704000>;
229*724ba675SRob Herring			regulator-max-microvolt = <1904000>;
230*724ba675SRob Herring			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
231*724ba675SRob Herring		};
232*724ba675SRob Herring	};
233*724ba675SRob Herring};
234*724ba675SRob Herring
235*724ba675SRob Herring&blsp1_uart3 {
236*724ba675SRob Herring	status = "okay";
237*724ba675SRob Herring};
238*724ba675SRob Herring
239*724ba675SRob Herring&ipa {
240*724ba675SRob Herring	qcom,gsi-loader = "self";
241*724ba675SRob Herring	memory-region = <&ipa_fw_mem>;
242*724ba675SRob Herring	status = "okay";
243*724ba675SRob Herring};
244*724ba675SRob Herring
245*724ba675SRob Herring&pcie_phy {
246*724ba675SRob Herring	vdda-phy-supply = <&vreg_l1e_bb_1p2>;
247*724ba675SRob Herring	vdda-pll-supply = <&vreg_l4e_bb_0p875>;
248*724ba675SRob Herring
249*724ba675SRob Herring	status = "okay";
250*724ba675SRob Herring};
251*724ba675SRob Herring
252*724ba675SRob Herring&pcie_rc {
253*724ba675SRob Herring	perst-gpios = <&tlmm 57 GPIO_ACTIVE_LOW>;
254*724ba675SRob Herring	wake-gpios = <&tlmm 53 GPIO_ACTIVE_HIGH>;
255*724ba675SRob Herring
256*724ba675SRob Herring	pinctrl-0 = <&pcie_default>;
257*724ba675SRob Herring	pinctrl-names = "default";
258*724ba675SRob Herring
259*724ba675SRob Herring	status = "okay";
260*724ba675SRob Herring};
261*724ba675SRob Herring
262*724ba675SRob Herring&qpic_bam {
263*724ba675SRob Herring	status = "okay";
264*724ba675SRob Herring};
265*724ba675SRob Herring
266*724ba675SRob Herring&qpic_nand {
267*724ba675SRob Herring	status = "okay";
268*724ba675SRob Herring
269*724ba675SRob Herring	nand@0 {
270*724ba675SRob Herring		reg = <0>;
271*724ba675SRob Herring
272*724ba675SRob Herring		nand-ecc-strength = <8>;
273*724ba675SRob Herring		nand-ecc-step-size = <512>;
274*724ba675SRob Herring		nand-bus-width = <8>;
275*724ba675SRob Herring		/* efs2 partition is secured */
276*724ba675SRob Herring		secure-regions = /bits/ 64 <0x500000 0xb00000>;
277*724ba675SRob Herring	};
278*724ba675SRob Herring};
279*724ba675SRob Herring
280*724ba675SRob Herring&remoteproc_mpss {
281*724ba675SRob Herring	memory-region = <&mpss_adsp_mem>;
282*724ba675SRob Herring	status = "okay";
283*724ba675SRob Herring};
284*724ba675SRob Herring
285*724ba675SRob Herring&tlmm {
286*724ba675SRob Herring	pcie_default: pcie-default-state {
287*724ba675SRob Herring		clkreq-pins {
288*724ba675SRob Herring			pins = "gpio56";
289*724ba675SRob Herring			function = "pcie_clkreq";
290*724ba675SRob Herring			drive-strength = <2>;
291*724ba675SRob Herring			bias-pull-up;
292*724ba675SRob Herring		};
293*724ba675SRob Herring
294*724ba675SRob Herring		perst-pins {
295*724ba675SRob Herring			pins = "gpio57";
296*724ba675SRob Herring			function = "gpio";
297*724ba675SRob Herring			drive-strength = <2>;
298*724ba675SRob Herring			bias-pull-down;
299*724ba675SRob Herring		};
300*724ba675SRob Herring
301*724ba675SRob Herring		wake-pins {
302*724ba675SRob Herring		       pins = "gpio53";
303*724ba675SRob Herring		       function = "gpio";
304*724ba675SRob Herring		       drive-strength = <2>;
305*724ba675SRob Herring		       bias-pull-up;
306*724ba675SRob Herring	       };
307*724ba675SRob Herring	};
308*724ba675SRob Herring};
309*724ba675SRob Herring
310*724ba675SRob Herring&usb_hsphy {
311*724ba675SRob Herring	vdda-pll-supply = <&vreg_l4e_bb_0p875>;
312*724ba675SRob Herring	vdda33-supply = <&vreg_l10e_3p1>;
313*724ba675SRob Herring	vdda18-supply = <&vreg_l5e_bb_1p7>;
314*724ba675SRob Herring
315*724ba675SRob Herring	status = "okay";
316*724ba675SRob Herring};
317*724ba675SRob Herring
318*724ba675SRob Herring&usb_qmpphy {
319*724ba675SRob Herring	vdda-phy-supply = <&vreg_l4e_bb_0p875>;
320*724ba675SRob Herring	vdda-pll-supply = <&vreg_l1e_bb_1p2>;
321*724ba675SRob Herring
322*724ba675SRob Herring	status = "okay";
323*724ba675SRob Herring};
324*724ba675SRob Herring
325*724ba675SRob Herring&usb {
326*724ba675SRob Herring	status = "okay";
327*724ba675SRob Herring};
328*724ba675SRob Herring
329*724ba675SRob Herring&usb_dwc3 {
330*724ba675SRob Herring	dr_mode = "peripheral";
331*724ba675SRob Herring};
332