xref: /freebsd/sys/contrib/device-tree/src/arm/qcom/qcom-msm8960-samsung-expressatt.dts (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
1// SPDX-License-Identifier: GPL-2.0
2#include <dt-bindings/input/input.h>
3#include <dt-bindings/reset/qcom,gcc-msm8960.h>
4
5#include "qcom-msm8960.dtsi"
6#include "pm8921.dtsi"
7
8/ {
9	model = "Samsung Galaxy Express SGH-I437";
10	compatible = "samsung,expressatt", "qcom,msm8960";
11	chassis-type = "handset";
12
13	aliases {
14		serial0 = &gsbi5_serial;
15		mmc0 = &sdcc1; /* SDCC1 eMMC slot */
16		mmc1 = &sdcc3; /* SDCC3 SD card slot */
17	};
18
19	chosen {
20		stdout-path = "serial0:115200n8";
21	};
22};
23
24&gsbi5 {
25	qcom,mode = <GSBI_PROT_I2C_UART>;
26	status = "okay";
27};
28
29&gsbi5_serial {
30	status = "okay";
31};
32
33&sdcc1 {
34	vmmc-supply = <&pm8921_l5>;
35	status = "okay";
36};
37
38&sdcc3 {
39	vmmc-supply = <&pm8921_l6>;
40	vqmmc-supply = <&pm8921_l7>;
41	status = "okay";
42};
43
44&gsbi1 {
45	qcom,mode = <GSBI_PROT_SPI>;
46	pinctrl-0 = <&spi1_default>;
47	pinctrl-names = "default";
48	status = "okay";
49};
50
51&gsbi1_spi {
52	status = "okay";
53};
54
55&msmgpio {
56	spi1_default: spi1-default-state {
57		mosi-pins {
58			pins = "gpio6";
59			function = "gsbi1";
60			drive-strength = <12>;
61			bias-disable;
62		};
63
64		miso-pins {
65			pins = "gpio7";
66			function = "gsbi1";
67			drive-strength = <12>;
68			bias-disable;
69		};
70
71		cs-pins {
72			pins = "gpio8";
73			function = "gsbi1";
74			drive-strength = <12>;
75			bias-disable;
76			output-low;
77		};
78
79		clk-pins {
80			pins = "gpio9";
81			function = "gsbi1";
82			drive-strength = <12>;
83			bias-disable;
84		};
85	};
86};
87
88&pm8921 {
89	interrupts-extended = <&msmgpio 104 IRQ_TYPE_LEVEL_LOW>;
90};
91
92&rpm {
93	regulators {
94		compatible = "qcom,rpm-pm8921-regulators";
95		vin_lvs1_3_6-supply = <&pm8921_s4>;
96		vin_lvs2-supply = <&pm8921_s4>;
97		vin_lvs4_5_7-supply = <&pm8921_s4>;
98		vdd_ncp-supply = <&pm8921_l6>;
99		vdd_l1_l2_l12_l18-supply = <&pm8921_s4>;
100		vdd_l21_l23_l29-supply = <&pm8921_s8>;
101		vdd_l24-supply = <&pm8921_s1>;
102		vdd_l25-supply = <&pm8921_s1>;
103		vdd_l27-supply = <&pm8921_s7>;
104		vdd_l28-supply = <&pm8921_s7>;
105
106		/* Buck SMPS */
107		pm8921_s1: s1 {
108			regulator-always-on;
109			regulator-min-microvolt = <1225000>;
110			regulator-max-microvolt = <1225000>;
111			qcom,switch-mode-frequency = <3200000>;
112			bias-pull-down;
113		};
114
115		pm8921_s2: s2 {
116			regulator-min-microvolt = <1300000>;
117			regulator-max-microvolt = <1300000>;
118			qcom,switch-mode-frequency = <1600000>;
119			bias-pull-down;
120		};
121
122		pm8921_s3: s3 {
123			regulator-min-microvolt = <500000>;
124			regulator-max-microvolt = <1150000>;
125			qcom,switch-mode-frequency = <4800000>;
126			bias-pull-down;
127		};
128
129		pm8921_s4: s4 {
130			regulator-always-on;
131			regulator-min-microvolt = <1800000>;
132			regulator-max-microvolt = <1800000>;
133			qcom,switch-mode-frequency = <1600000>;
134			bias-pull-down;
135			qcom,force-mode = <QCOM_RPM_FORCE_MODE_AUTO>;
136		};
137
138		pm8921_s7: s7 {
139			regulator-min-microvolt = <1150000>;
140			regulator-max-microvolt = <1150000>;
141			qcom,switch-mode-frequency = <3200000>;
142			bias-pull-down;
143		};
144
145		pm8921_s8: s8 {
146			regulator-always-on;
147			regulator-min-microvolt = <2050000>;
148			regulator-max-microvolt = <2050000>;
149			qcom,switch-mode-frequency = <1600000>;
150			bias-pull-down;
151		};
152
153		/* PMOS LDO */
154		pm8921_l1: l1 {
155			regulator-always-on;
156			regulator-min-microvolt = <1050000>;
157			regulator-max-microvolt = <1050000>;
158			bias-pull-down;
159		};
160
161		pm8921_l2: l2 {
162			regulator-min-microvolt = <1200000>;
163			regulator-max-microvolt = <1200000>;
164			bias-pull-down;
165		};
166
167		pm8921_l3: l3 {
168			regulator-min-microvolt = <3075000>;
169			regulator-max-microvolt = <3300000>;
170			bias-pull-down;
171		};
172
173		pm8921_l4: l4 {
174			regulator-always-on;
175			regulator-min-microvolt = <1800000>;
176			regulator-max-microvolt = <1800000>;
177			bias-pull-down;
178		};
179
180		pm8921_l5: l5 {
181			regulator-min-microvolt = <2950000>;
182			regulator-max-microvolt = <2950000>;
183			bias-pull-down;
184		};
185
186		pm8921_l6: l6 {
187			regulator-min-microvolt = <2950000>;
188			regulator-max-microvolt = <2950000>;
189			bias-pull-down;
190		};
191
192		pm8921_l7: l7 {
193			regulator-always-on;
194			regulator-min-microvolt = <1850000>;
195			regulator-max-microvolt = <2950000>;
196			bias-pull-down;
197		};
198
199		pm8921_l8: l8 {
200			regulator-min-microvolt = <3000000>;
201			regulator-max-microvolt = <3100000>;
202			bias-pull-down;
203		};
204
205		pm8921_l9: l9 {
206			regulator-min-microvolt = <2850000>;
207			regulator-max-microvolt = <2850000>;
208			bias-pull-down;
209		};
210
211		pm8921_l10: l10 {
212			regulator-min-microvolt = <3000000>;
213			regulator-max-microvolt = <3000000>;
214			bias-pull-down;
215		};
216
217		pm8921_l11: l11 {
218			regulator-min-microvolt = <2800000>;
219			regulator-max-microvolt = <3300000>;
220			bias-pull-down;
221		};
222
223		pm8921_l12: l12 {
224			regulator-min-microvolt = <1200000>;
225			regulator-max-microvolt = <1200000>;
226			bias-pull-down;
227		};
228
229		pm8921_l14: l14 {
230			regulator-min-microvolt = <1800000>;
231			regulator-max-microvolt = <1800000>;
232			bias-pull-down;
233		};
234
235		pm8921_l15: l15 {
236			regulator-min-microvolt = <1800000>;
237			regulator-max-microvolt = <2950000>;
238			bias-pull-down;
239		};
240
241		pm8921_l16: l16 {
242			regulator-min-microvolt = <2800000>;
243			regulator-max-microvolt = <3000000>;
244			bias-pull-down;
245		};
246
247		pm8921_l17: l17 {
248			regulator-min-microvolt = <1800000>;
249			regulator-max-microvolt = <3300000>;
250			bias-pull-down;
251		};
252
253		pm8921_l18: l18 {
254			regulator-min-microvolt = <1200000>;
255			regulator-max-microvolt = <1500000>;
256			bias-pull-down;
257		};
258
259		pm8921_l21: l21 {
260			regulator-min-microvolt = <1900000>;
261			regulator-max-microvolt = <1900000>;
262			bias-pull-down;
263		};
264
265		pm8921_l22: l22 {
266			regulator-min-microvolt = <2750000>;
267			regulator-max-microvolt = <2750000>;
268			bias-pull-down;
269		};
270
271		pm8921_l23: l23 {
272			regulator-always-on;
273			regulator-min-microvolt = <1800000>;
274			regulator-max-microvolt = <1800000>;
275			bias-pull-down;
276		};
277
278		pm8921_l24: l24 {
279			regulator-min-microvolt = <750000>;
280			regulator-max-microvolt = <1150000>;
281			bias-pull-down;
282		};
283
284		pm8921_l25: l25 {
285			regulator-always-on;
286			regulator-min-microvolt = <1225000>;
287			regulator-max-microvolt = <1225000>;
288			bias-pull-down;
289		};
290
291		/* Low Voltage Switch */
292		pm8921_lvs1: lvs1 {
293			bias-pull-down;
294		};
295
296		pm8921_lvs2: lvs2 {
297			bias-pull-down;
298		};
299
300		pm8921_lvs3: lvs3 {
301			bias-pull-down;
302		};
303
304		pm8921_lvs4: lvs4 {
305			bias-pull-down;
306		};
307
308		pm8921_lvs5: lvs5 {
309			bias-pull-down;
310		};
311
312		pm8921_lvs6: lvs6 {
313			bias-pull-down;
314		};
315
316		pm8921_lvs7: lvs7 {
317			bias-pull-down;
318		};
319
320		pm8921_ncp: ncp {
321			regulator-min-microvolt = <1800000>;
322			regulator-max-microvolt = <1800000>;
323			qcom,switch-mode-frequency = <1600000>;
324		};
325	};
326};
327
328&usb_hs1_phy {
329	v3p3-supply = <&pm8921_l3>;
330	v1p8-supply = <&pm8921_l4>;
331};
332
333&usb1 {
334	dr_mode = "otg";
335	status = "okay";
336};
337