1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
4 * Copyright (c) 2020, Linaro Ltd.
5 */
6
7/dts-v1/;
8
9#include "qcom-sdx55.dtsi"
10#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
11#include <arm64/qcom/pm8150b.dtsi>
12#include "qcom-pmx55.dtsi"
13
14/ {
15	model = "Qualcomm Technologies, Inc. SDX55 MTP";
16	compatible = "qcom,sdx55-mtp", "qcom,sdx55";
17	qcom,board-id = <0x5010008 0x0>;
18
19	aliases {
20		serial0 = &blsp1_uart3;
21	};
22
23	chosen {
24		stdout-path = "serial0:115200n8";
25	};
26
27	reserved-memory {
28		#address-cells = <1>;
29		#size-cells = <1>;
30		ranges;
31
32		mpss_debug_mem: memory@8ef00000 {
33			no-map;
34			reg = <0x8ef00000 0x800000>;
35		};
36
37		ipa_fw_mem: memory@8fced000 {
38			no-map;
39			reg = <0x8fced000 0x10000>;
40		};
41
42		mpss_adsp_mem: memory@90c00000 {
43			no-map;
44			reg = <0x90c00000 0xd400000>;
45		};
46	};
47
48	vph_pwr: vph-pwr-regulator {
49		compatible = "regulator-fixed";
50		regulator-name = "vph_pwr";
51		regulator-min-microvolt = <3700000>;
52		regulator-max-microvolt = <3700000>;
53	};
54
55	vreg_bob_3p3: pmx55-bob {
56		compatible = "regulator-fixed";
57		regulator-name = "vreg_bob_3p3";
58		regulator-min-microvolt = <3300000>;
59		regulator-max-microvolt = <3300000>;
60
61		regulator-always-on;
62		regulator-boot-on;
63
64		vin-supply = <&vph_pwr>;
65	};
66
67	vreg_s7e_mx_0p752: pmx55-s7e {
68		compatible = "regulator-fixed";
69		regulator-name = "vreg_s7e_mx_0p752";
70		regulator-min-microvolt = <752000>;
71		regulator-max-microvolt = <752000>;
72
73		vin-supply = <&vph_pwr>;
74	};
75};
76
77&apps_rsc {
78	regulators-0 {
79		compatible = "qcom,pmx55-rpmh-regulators";
80		qcom,pmic-id = "e";
81
82		vdd-s1-supply = <&vph_pwr>;
83		vdd-s2-supply = <&vph_pwr>;
84		vdd-s3-supply = <&vph_pwr>;
85		vdd-s4-supply = <&vph_pwr>;
86		vdd-s5-supply = <&vph_pwr>;
87		vdd-s6-supply = <&vph_pwr>;
88		vdd-s7-supply = <&vph_pwr>;
89		vdd-l1-l2-supply = <&vreg_s2e_1p224>;
90		vdd-l3-l9-supply = <&vreg_s3e_0p824>;
91		vdd-l4-l12-supply = <&vreg_s4e_1p904>;
92		vdd-l5-l6-supply = <&vreg_s4e_1p904>;
93		vdd-l7-l8-supply = <&vreg_s3e_0p824>;
94		vdd-l10-l11-l13-supply = <&vreg_bob_3p3>;
95		vdd-l14-supply = <&vreg_s7e_mx_0p752>;
96		vdd-l15-supply = <&vreg_s2e_1p224>;
97		vdd-l16-supply = <&vreg_s4e_1p904>;
98
99		vreg_s2e_1p224: smps2 {
100			regulator-min-microvolt = <1280000>;
101			regulator-max-microvolt = <1400000>;
102		};
103
104		vreg_s3e_0p824: smps3 {
105			regulator-min-microvolt = <800000>;
106			regulator-max-microvolt = <1000000>;
107		};
108
109		vreg_s4e_1p904: smps4 {
110			regulator-min-microvolt = <1800000>;
111			regulator-max-microvolt = <1960000>;
112		};
113
114		vreg_l1e_bb_1p2: ldo1 {
115			regulator-min-microvolt = <1200000>;
116			regulator-max-microvolt = <1200000>;
117			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
118		};
119
120		ldo2 {
121			regulator-min-microvolt = <1128000>;
122			regulator-max-microvolt = <1128000>;
123			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
124		};
125
126		ldo3 {
127			regulator-min-microvolt = <800000>;
128			regulator-max-microvolt = <800000>;
129			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
130		};
131
132		vreg_l4e_bb_0p875: ldo4 {
133			regulator-min-microvolt = <872000>;
134			regulator-max-microvolt = <872000>;
135			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
136		};
137
138		vreg_l5e_bb_1p7: ldo5 {
139			regulator-min-microvolt = <1704000>;
140			regulator-max-microvolt = <1900000>;
141			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
142		};
143
144		ldo6 {
145			regulator-min-microvolt = <1800000>;
146			regulator-max-microvolt = <1800000>;
147			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
148		};
149
150		ldo7 {
151			regulator-min-microvolt = <480000>;
152			regulator-max-microvolt = <900000>;
153			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
154		};
155
156		ldo8 {
157			regulator-min-microvolt = <480000>;
158			regulator-max-microvolt = <900000>;
159			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
160		};
161
162		ldo9 {
163			regulator-min-microvolt = <800000>;
164			regulator-max-microvolt = <800000>;
165			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
166		};
167
168		vreg_l10e_3p1: ldo10 {
169			regulator-min-microvolt = <3088000>;
170			regulator-max-microvolt = <3088000>;
171			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
172		};
173
174		ldo11 {
175			regulator-min-microvolt = <1704000>;
176			regulator-max-microvolt = <2928000>;
177			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
178		};
179
180		ldo12 {
181			regulator-min-microvolt = <1200000>;
182			regulator-max-microvolt = <1200000>;
183			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
184		};
185
186		ldo13 {
187			regulator-min-microvolt = <1704000>;
188			regulator-max-microvolt = <2928000>;
189			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
190		};
191
192		ldo14 {
193			regulator-min-microvolt = <600000>;
194			regulator-max-microvolt = <800000>;
195			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
196		};
197
198		ldo15 {
199			regulator-min-microvolt = <1200000>;
200			regulator-max-microvolt = <1200000>;
201			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
202		};
203
204		ldo16 {
205			regulator-min-microvolt = <1704000>;
206			regulator-max-microvolt = <1904000>;
207			regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>;
208		};
209	};
210};
211
212&blsp1_uart3 {
213	status = "okay";
214};
215
216&qpic_bam {
217	status = "okay";
218};
219
220&qpic_nand {
221	status = "okay";
222
223	nand@0 {
224		reg = <0>;
225
226		nand-ecc-strength = <8>;
227		nand-ecc-step-size = <512>;
228		nand-bus-width = <8>;
229	};
230};
231
232&remoteproc_mpss {
233	memory-region = <&mpss_adsp_mem>;
234};
235
236&usb {
237	status = "okay";
238};
239
240&usb_dwc3 {
241	dr_mode = "peripheral";
242};
243
244&usb_hsphy {
245	status = "okay";
246	vdda-pll-supply = <&vreg_l4e_bb_0p875>;
247	vdda33-supply = <&vreg_l10e_3p1>;
248	vdda18-supply = <&vreg_l5e_bb_1p7>;
249};
250
251&usb_qmpphy {
252	status = "okay";
253	vdda-phy-supply = <&vreg_l4e_bb_0p875>;
254	vdda-pll-supply = <&vreg_l1e_bb_1p2>;
255};
256