1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2023, Linaro Limited
4 */
5
6/dts-v1/;
7
8#include "sm4250.dtsi"
9
10/ {
11	model = "Qualcomm Technologies, Inc. QRB4210 RB2";
12	compatible = "qcom,qrb4210-rb2", "qcom,qrb4210", "qcom,sm4250";
13
14	aliases {
15		serial0 = &uart4;
16	};
17
18	chosen {
19		stdout-path = "serial0:115200n8";
20	};
21
22	vph_pwr: vph-pwr-regulator {
23		compatible = "regulator-fixed";
24		regulator-name = "vph_pwr";
25		regulator-min-microvolt = <3700000>;
26		regulator-max-microvolt = <3700000>;
27
28		regulator-always-on;
29		regulator-boot-on;
30	};
31};
32
33&qupv3_id_0 {
34	status = "okay";
35};
36
37&rpm_requests {
38	regulators {
39		compatible = "qcom,rpm-pm6125-regulators";
40
41		vdd-s1-supply = <&vph_pwr>;
42		vdd-s2-supply = <&vph_pwr>;
43		vdd-s3-supply = <&vph_pwr>;
44		vdd-s4-supply = <&vph_pwr>;
45		vdd-s5-supply = <&vph_pwr>;
46		vdd-s6-supply = <&vph_pwr>;
47		vdd-s7-supply = <&vph_pwr>;
48		vdd-s8-supply = <&vph_pwr>;
49		vdd-s9-supply = <&vph_pwr>;
50		vdd-s10-supply = <&vph_pwr>;
51
52		vdd-l1-l7-l17-l18-supply = <&vreg_s6a_1p352>;
53		vdd-l2-l3-l4-supply = <&vreg_s6a_1p352>;
54		vdd-l5-l15-l19-l20-l21-l22-supply = <&vph_pwr>;
55		vdd-l6-l8-supply = <&vreg_s5a_0p848>;
56		vdd-l9-l11-supply = <&vreg_s7a_2p04>;
57		vdd-l10-l13-l14-supply = <&vreg_s7a_2p04>;
58		vdd-l12-l16-supply = <&vreg_s7a_2p04>;
59		vdd-l23-l24-supply = <&vph_pwr>;
60
61		vreg_s5a_0p848: s5 {
62			regulator-min-microvolt = <920000>;
63			regulator-max-microvolt = <1128000>;
64		};
65
66		vreg_s6a_1p352: s6 {
67			regulator-min-microvolt = <304000>;
68			regulator-max-microvolt = <1456000>;
69		};
70
71		vreg_s7a_2p04: s7 {
72			regulator-min-microvolt = <1280000>;
73			regulator-max-microvolt = <2080000>;
74		};
75
76		vreg_l1a_1p0: l1 {
77			regulator-min-microvolt = <952000>;
78			regulator-max-microvolt = <1152000>;
79		};
80
81		vreg_l4a_0p9: l4 {
82			regulator-min-microvolt = <488000>;
83			regulator-max-microvolt = <1000000>;
84		};
85
86		vreg_l5a_2p96: l5 {
87			regulator-min-microvolt = <1648000>;
88			regulator-max-microvolt = <3056000>;
89		};
90
91		vreg_l6a_0p6: l6 {
92			regulator-min-microvolt = <576000>;
93			regulator-max-microvolt = <656000>;
94		};
95
96		vreg_l7a_1p256: l7 {
97			regulator-min-microvolt = <1200000>;
98			regulator-max-microvolt = <1304000>;
99		};
100
101		vreg_l8a_0p664: l8 {
102			regulator-min-microvolt = <400000>;
103			regulator-max-microvolt = <728000>;
104		};
105
106		vreg_l9a_1p8: l9 {
107			regulator-min-microvolt = <1800000>;
108			regulator-max-microvolt = <2000000>;
109		};
110
111		vreg_l10a_1p8: l10 {
112			regulator-min-microvolt = <1704000>;
113			regulator-max-microvolt = <1904000>;
114		};
115
116		vreg_l11a_1p8: l11 {
117			regulator-min-microvolt = <1704000>;
118			regulator-max-microvolt = <1952000>;
119		};
120
121		vreg_l12a_1p8: l12 {
122			regulator-min-microvolt = <1624000>;
123			regulator-max-microvolt = <1984000>;
124		};
125
126		vreg_l13a_1p8: l13 {
127			regulator-min-microvolt = <1504000>;
128			regulator-max-microvolt = <1952000>;
129		};
130
131		vreg_l14a_1p8: l14 {
132			regulator-min-microvolt = <1704000>;
133			regulator-max-microvolt = <1904000>;
134		};
135
136		vreg_l15a_3p128: l15 {
137			regulator-min-microvolt = <2920000>;
138			regulator-max-microvolt = <3232000>;
139		};
140
141		vreg_l16a_1p3: l16 {
142			regulator-min-microvolt = <1704000>;
143			regulator-max-microvolt = <1904000>;
144		};
145
146		vreg_l17a_1p3: l17 {
147			regulator-min-microvolt = <1152000>;
148			regulator-max-microvolt = <1384000>;
149		};
150
151		vreg_l18a_1p232: l18 {
152			regulator-min-microvolt = <1104000>;
153			regulator-max-microvolt = <1312000>;
154		};
155
156		vreg_l19a_1p8: l19 {
157			regulator-min-microvolt = <1624000>;
158			regulator-max-microvolt = <3304000>;
159		};
160
161		vreg_l20a_1p8: l20 {
162			regulator-min-microvolt = <1624000>;
163			regulator-max-microvolt = <3304000>;
164		};
165
166		vreg_l21a_2p704: l21 {
167			regulator-min-microvolt = <2400000>;
168			regulator-max-microvolt = <3600000>;
169		};
170
171		vreg_l22a_2p96: l22 {
172			regulator-min-microvolt = <2952000>;
173			regulator-max-microvolt = <3304000>;
174			regulator-system-load = <100000>;
175			regulator-allow-set-load;
176		};
177
178		vreg_l23a_3p3: l23 {
179			regulator-min-microvolt = <3200000>;
180			regulator-max-microvolt = <3400000>;
181		};
182
183		vreg_l24a_2p96: l24 {
184			regulator-min-microvolt = <2704000>;
185			regulator-max-microvolt = <3600000>;
186			regulator-system-load = <100000>;
187			regulator-allow-set-load;
188		};
189	};
190};
191
192&sdhc_1 {
193	vmmc-supply = <&vreg_l24a_2p96>;
194	vqmmc-supply = <&vreg_l11a_1p8>;
195	no-sdio;
196	non-removable;
197
198	status = "okay";
199};
200
201&sdhc_2 {
202	cd-gpios = <&tlmm 88 GPIO_ACTIVE_HIGH>; /* card detect gpio */
203	vmmc-supply = <&vreg_l22a_2p96>;
204	vqmmc-supply = <&vreg_l5a_2p96>;
205	no-sdio;
206
207	status = "okay";
208};
209
210&sleep_clk {
211	clock-frequency = <32000>;
212};
213
214&tlmm {
215	gpio-reserved-ranges = <37 5>, <43 2>, <47 1>,
216			       <49 1>, <52 1>, <54 1>,
217			       <56 3>, <61 2>, <64 1>,
218			       <68 1>, <72 8>, <96 1>;
219};
220
221&uart4 {
222	status = "okay";
223};
224
225&xo_board {
226	clock-frequency = <19200000>;
227};
228