1// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
2/*
3 * Copyright (c) 2021, Iskren Chernev <iskren.chernev@gmail.com>
4 */
5
6/dts-v1/;
7
8#include "sm4250.dtsi"
9
10/ {
11	model = "OnePlus Nord N100";
12	compatible = "oneplus,billie2", "qcom,sm4250";
13
14	/* required for bootloader to select correct board */
15	qcom,msm-id = <0x1a1 0x10000 0x1bc 0x10000>;
16	qcom,board-id = <0x1000b 0x00>;
17
18	aliases {
19	};
20
21	chosen {
22		#address-cells = <2>;
23		#size-cells = <2>;
24		ranges;
25
26		stdout-path = "framebuffer0";
27
28		framebuffer0: framebuffer@9d400000 {
29			compatible = "simple-framebuffer";
30			reg = <0 0x5c000000 0 (1600 * 720 * 4)>;
31			width = <720>;
32			height = <1600>;
33			stride = <(720 * 4)>;
34			format = "a8r8g8b8";
35		};
36	};
37};
38
39&reserved_memory {
40	bootloader_log_mem: memory@5fff7000 {
41		reg = <0x0 0x5fff7000 0x0 0x8000>;
42		no-map;
43	};
44
45	ramoops@cbe00000 {
46		compatible = "ramoops";
47		reg = <0x0 0xcbe00000 0x0 0x400000>;
48		record-size = <0x40000>;
49		pmsg-size = <0x200000>;
50		console-size = <0x40000>;
51		ftrace-size = <0x40000>;
52	};
53
54	param_mem: memory@cc200000 {
55		reg = <0x0 0xcc200000 0x0 0x100000>;
56		no-map;
57	};
58
59	mtp_mem: memory@cc300000 {
60		reg = <0x00 0xcc300000 0x00 0xb00000>;
61		no-map;
62	};
63};
64
65&rpm_requests {
66	regulators-0 {
67		compatible = "qcom,rpm-pm6125-regulators";
68
69		vreg_s6a: s6 {
70			regulator-min-microvolt = <320000>;
71			regulator-max-microvolt = <1456000>;
72		};
73
74		vreg_s7a: s7 {
75			regulator-min-microvolt = <1280000>;
76			regulator-max-microvolt = <2040000>;
77		};
78
79		vreg_s8a: s8 {
80			regulator-min-microvolt = <1064000>;
81			regulator-max-microvolt = <1304000>;
82		};
83
84		vreg_l1a: l1 {
85			regulator-min-microvolt = <952000>;
86			regulator-max-microvolt = <1152000>;
87		};
88
89		vreg_l4a: l4 {
90			regulator-min-microvolt = <488000>;
91			regulator-max-microvolt = <1000000>;
92		};
93
94		vreg_l5a: l5 {
95			regulator-min-microvolt = <1648000>;
96			regulator-max-microvolt = <3056000>;
97		};
98
99		vreg_l6a: l6 {
100			regulator-min-microvolt = <576000>;
101			regulator-max-microvolt = <656000>;
102		};
103
104		vreg_l7a: l7 {
105			regulator-min-microvolt = <1200000>;
106			regulator-max-microvolt = <1304000>;
107		};
108
109		vreg_l8a: l8 {
110			regulator-min-microvolt = <400000>;
111			regulator-max-microvolt = <728000>;
112		};
113
114		vreg_l9a: l9 {
115			regulator-min-microvolt = <1800000>;
116			regulator-max-microvolt = <2000000>;
117		};
118
119		vreg_l10a: l10 {
120			regulator-min-microvolt = <1704000>;
121			regulator-max-microvolt = <1904000>;
122		};
123
124		vreg_l11a: l11 {
125			regulator-min-microvolt = <1704000>;
126			regulator-max-microvolt = <1952000>;
127		};
128
129		vreg_l12a: l12 {
130			regulator-min-microvolt = <1624000>;
131			regulator-max-microvolt = <1984000>;
132		};
133
134		vreg_l13a: l13 {
135			regulator-min-microvolt = <1504000>;
136			regulator-max-microvolt = <1952000>;
137		};
138
139		vreg_l14a: l14 {
140			regulator-min-microvolt = <1704000>;
141			regulator-max-microvolt = <1904000>;
142		};
143
144		vreg_l15a: l15 {
145			regulator-min-microvolt = <2920000>;
146			regulator-max-microvolt = <3232000>;
147		};
148
149		vreg_l16a: l16 {
150			regulator-min-microvolt = <1704000>;
151			regulator-max-microvolt = <1904000>;
152		};
153
154		vreg_l17a: l17 {
155			regulator-min-microvolt = <1152000>;
156			regulator-max-microvolt = <1304000>;
157		};
158
159		vreg_l18a: l18 {
160			regulator-min-microvolt = <1104000>;
161			regulator-max-microvolt = <1304000>;
162		};
163
164		vreg_l19a: l19 {
165			regulator-min-microvolt = <1624000>;
166			regulator-max-microvolt = <3304000>;
167		};
168
169		vreg_l20a: l20 {
170			regulator-min-microvolt = <1624000>;
171			regulator-max-microvolt = <3304000>;
172		};
173
174		vreg_l21a: l21 {
175			regulator-min-microvolt = <2400000>;
176			regulator-max-microvolt = <3544000>;
177		};
178
179		vreg_l22a: l22 {
180			regulator-min-microvolt = <2952000>;
181			regulator-max-microvolt = <3304000>;
182		};
183
184		vreg_l23a: l23 {
185			regulator-min-microvolt = <3296000>;
186			regulator-max-microvolt = <3304000>;
187		};
188
189		vreg_l24a: l24 {
190			regulator-min-microvolt = <2704000>;
191			regulator-max-microvolt = <3544000>;
192		};
193	};
194};
195
196&sleep_clk {
197	clock-frequency = <32764>;
198};
199
200&sdhc_2 {
201	vmmc-supply = <&vreg_l22a>;
202	vqmmc-supply = <&vreg_l5a>;
203
204	cd-gpios = <&tlmm 88 GPIO_ACTIVE_HIGH>;
205
206	status = "okay";
207};
208
209&tlmm {
210	gpio-reserved-ranges = <14 4>;
211};
212
213&ufs_mem_hc {
214	vcc-supply = <&vreg_l24a>;
215	vcc-max-microamp = <600000>;
216	vccq2-supply = <&vreg_l11a>;
217	vccq2-max-microamp = <600000>;
218	status = "okay";
219};
220
221&ufs_mem_phy {
222	vdda-phy-supply = <&vreg_l4a>;
223	vdda-pll-supply = <&vreg_l12a>;
224	vddp-ref-clk-supply = <&vreg_l18a>;
225	status = "okay";
226};
227
228&usb_1 {
229	status = "okay";
230};
231
232&usb_1_hsphy {
233	vdd-supply = <&vreg_l4a>;
234	vdda-pll-supply = <&vreg_l12a>;
235	vdda-phy-dpdm-supply = <&vreg_l15a>;
236	status = "okay";
237};
238
239&xo_board {
240	clock-frequency = <19200000>;
241};
242