xref: /linux/scripts/dtc/include-prefixes/arm/qcom/qcom-msm8960-samsung-expressatt.dts (revision 5c903b859aaced384c0cd01d515f3e43a115fd9e)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2724ba675SRob Herring#include <dt-bindings/input/input.h>
3*5c903b85SDmitry Baryshkov#include <dt-bindings/reset/qcom,gcc-msm8960.h>
4724ba675SRob Herring
5724ba675SRob Herring#include "qcom-msm8960.dtsi"
6*5c903b85SDmitry Baryshkov#include "pm8921.dtsi"
7724ba675SRob Herring
8724ba675SRob Herring/ {
9724ba675SRob Herring	model = "Samsung Galaxy Express SGH-I437";
10724ba675SRob Herring	compatible = "samsung,expressatt", "qcom,msm8960";
11724ba675SRob Herring	chassis-type = "handset";
12724ba675SRob Herring
13724ba675SRob Herring	aliases {
14724ba675SRob Herring		serial0 = &gsbi5_serial;
15724ba675SRob Herring		mmc0 = &sdcc1; /* SDCC1 eMMC slot */
16724ba675SRob Herring		mmc1 = &sdcc3; /* SDCC3 SD card slot */
17724ba675SRob Herring	};
18724ba675SRob Herring
19724ba675SRob Herring	chosen {
20724ba675SRob Herring		stdout-path = "serial0:115200n8";
21724ba675SRob Herring	};
22724ba675SRob Herring};
23724ba675SRob Herring
24724ba675SRob Herring&gsbi5 {
25724ba675SRob Herring	qcom,mode = <GSBI_PROT_I2C_UART>;
26724ba675SRob Herring	status = "okay";
27724ba675SRob Herring};
28724ba675SRob Herring
29724ba675SRob Herring&gsbi5_serial {
30724ba675SRob Herring	status = "okay";
31724ba675SRob Herring};
32724ba675SRob Herring
33724ba675SRob Herring&sdcc1 {
34724ba675SRob Herring	vmmc-supply = <&pm8921_l5>;
35724ba675SRob Herring	status = "okay";
36724ba675SRob Herring};
37724ba675SRob Herring
38724ba675SRob Herring&sdcc3 {
39724ba675SRob Herring	vmmc-supply = <&pm8921_l6>;
40724ba675SRob Herring	vqmmc-supply = <&pm8921_l7>;
41724ba675SRob Herring	status = "okay";
42724ba675SRob Herring};
43724ba675SRob Herring
44724ba675SRob Herring&gsbi1 {
45724ba675SRob Herring	qcom,mode = <GSBI_PROT_SPI>;
46724ba675SRob Herring	pinctrl-0 = <&spi1_default>;
47724ba675SRob Herring	pinctrl-names = "default";
48724ba675SRob Herring	status = "okay";
49724ba675SRob Herring};
50724ba675SRob Herring
51724ba675SRob Herring&gsbi1_spi {
52724ba675SRob Herring	status = "okay";
53724ba675SRob Herring};
54724ba675SRob Herring
55724ba675SRob Herring&msmgpio {
56724ba675SRob Herring	spi1_default: spi1-default-state {
57724ba675SRob Herring		mosi-pins {
58724ba675SRob Herring			pins = "gpio6";
59724ba675SRob Herring			function = "gsbi1";
60724ba675SRob Herring			drive-strength = <12>;
61724ba675SRob Herring			bias-disable;
62724ba675SRob Herring		};
63724ba675SRob Herring
64724ba675SRob Herring		miso-pins {
65724ba675SRob Herring			pins = "gpio7";
66724ba675SRob Herring			function = "gsbi1";
67724ba675SRob Herring			drive-strength = <12>;
68724ba675SRob Herring			bias-disable;
69724ba675SRob Herring		};
70724ba675SRob Herring
71724ba675SRob Herring		cs-pins {
72724ba675SRob Herring			pins = "gpio8";
73724ba675SRob Herring			function = "gsbi1";
74724ba675SRob Herring			drive-strength = <12>;
75724ba675SRob Herring			bias-disable;
76724ba675SRob Herring			output-low;
77724ba675SRob Herring		};
78724ba675SRob Herring
79724ba675SRob Herring		clk-pins {
80724ba675SRob Herring			pins = "gpio9";
81724ba675SRob Herring			function = "gsbi1";
82724ba675SRob Herring			drive-strength = <12>;
83724ba675SRob Herring			bias-disable;
84724ba675SRob Herring		};
85724ba675SRob Herring	};
86724ba675SRob Herring};
87724ba675SRob Herring
8831c4b741SDmitry Baryshkov&pm8921 {
8931c4b741SDmitry Baryshkov	interrupts-extended = <&msmgpio 104 IRQ_TYPE_LEVEL_LOW>;
9031c4b741SDmitry Baryshkov};
9131c4b741SDmitry Baryshkov
92724ba675SRob Herring&rpm {
93724ba675SRob Herring	regulators {
94724ba675SRob Herring		compatible = "qcom,rpm-pm8921-regulators";
95724ba675SRob Herring		vin_lvs1_3_6-supply = <&pm8921_s4>;
96724ba675SRob Herring		vin_lvs2-supply = <&pm8921_s4>;
97724ba675SRob Herring		vin_lvs4_5_7-supply = <&pm8921_s4>;
98724ba675SRob Herring		vdd_ncp-supply = <&pm8921_l6>;
99724ba675SRob Herring		vdd_l1_l2_l12_l18-supply = <&pm8921_s4>;
100724ba675SRob Herring		vdd_l21_l23_l29-supply = <&pm8921_s8>;
101724ba675SRob Herring		vdd_l24-supply = <&pm8921_s1>;
102724ba675SRob Herring		vdd_l25-supply = <&pm8921_s1>;
103724ba675SRob Herring		vdd_l27-supply = <&pm8921_s7>;
104724ba675SRob Herring		vdd_l28-supply = <&pm8921_s7>;
105724ba675SRob Herring
106724ba675SRob Herring		/* Buck SMPS */
107724ba675SRob Herring		pm8921_s1: s1 {
108724ba675SRob Herring			regulator-always-on;
109724ba675SRob Herring			regulator-min-microvolt = <1225000>;
110724ba675SRob Herring			regulator-max-microvolt = <1225000>;
111724ba675SRob Herring			qcom,switch-mode-frequency = <3200000>;
112724ba675SRob Herring			bias-pull-down;
113724ba675SRob Herring		};
114724ba675SRob Herring
115724ba675SRob Herring		pm8921_s2: s2 {
116724ba675SRob Herring			regulator-min-microvolt = <1300000>;
117724ba675SRob Herring			regulator-max-microvolt = <1300000>;
118724ba675SRob Herring			qcom,switch-mode-frequency = <1600000>;
119724ba675SRob Herring			bias-pull-down;
120724ba675SRob Herring		};
121724ba675SRob Herring
122724ba675SRob Herring		pm8921_s3: s3 {
123724ba675SRob Herring			regulator-min-microvolt = <500000>;
124724ba675SRob Herring			regulator-max-microvolt = <1150000>;
125724ba675SRob Herring			qcom,switch-mode-frequency = <4800000>;
126724ba675SRob Herring			bias-pull-down;
127724ba675SRob Herring		};
128724ba675SRob Herring
129724ba675SRob Herring		pm8921_s4: s4 {
130724ba675SRob Herring			regulator-always-on;
131724ba675SRob Herring			regulator-min-microvolt = <1800000>;
132724ba675SRob Herring			regulator-max-microvolt = <1800000>;
133724ba675SRob Herring			qcom,switch-mode-frequency = <1600000>;
134724ba675SRob Herring			bias-pull-down;
135724ba675SRob Herring			qcom,force-mode = <QCOM_RPM_FORCE_MODE_AUTO>;
136724ba675SRob Herring		};
137724ba675SRob Herring
138724ba675SRob Herring		pm8921_s7: s7 {
139724ba675SRob Herring			regulator-min-microvolt = <1150000>;
140724ba675SRob Herring			regulator-max-microvolt = <1150000>;
141724ba675SRob Herring			qcom,switch-mode-frequency = <3200000>;
142724ba675SRob Herring			bias-pull-down;
143724ba675SRob Herring		};
144724ba675SRob Herring
145724ba675SRob Herring		pm8921_s8: s8 {
146724ba675SRob Herring			regulator-always-on;
147724ba675SRob Herring			regulator-min-microvolt = <2050000>;
148724ba675SRob Herring			regulator-max-microvolt = <2050000>;
149724ba675SRob Herring			qcom,switch-mode-frequency = <1600000>;
150724ba675SRob Herring			bias-pull-down;
151724ba675SRob Herring		};
152724ba675SRob Herring
153724ba675SRob Herring		/* PMOS LDO */
154724ba675SRob Herring		pm8921_l1: l1 {
155724ba675SRob Herring			regulator-always-on;
156724ba675SRob Herring			regulator-min-microvolt = <1050000>;
157724ba675SRob Herring			regulator-max-microvolt = <1050000>;
158724ba675SRob Herring			bias-pull-down;
159724ba675SRob Herring		};
160724ba675SRob Herring
161724ba675SRob Herring		pm8921_l2: l2 {
162724ba675SRob Herring			regulator-min-microvolt = <1200000>;
163724ba675SRob Herring			regulator-max-microvolt = <1200000>;
164724ba675SRob Herring			bias-pull-down;
165724ba675SRob Herring		};
166724ba675SRob Herring
167724ba675SRob Herring		pm8921_l3: l3 {
168724ba675SRob Herring			regulator-min-microvolt = <3075000>;
169724ba675SRob Herring			regulator-max-microvolt = <3300000>;
170724ba675SRob Herring			bias-pull-down;
171724ba675SRob Herring		};
172724ba675SRob Herring
173724ba675SRob Herring		pm8921_l4: l4 {
174724ba675SRob Herring			regulator-always-on;
175724ba675SRob Herring			regulator-min-microvolt = <1800000>;
176724ba675SRob Herring			regulator-max-microvolt = <1800000>;
177724ba675SRob Herring			bias-pull-down;
178724ba675SRob Herring		};
179724ba675SRob Herring
180724ba675SRob Herring		pm8921_l5: l5 {
181724ba675SRob Herring			regulator-min-microvolt = <2950000>;
182724ba675SRob Herring			regulator-max-microvolt = <2950000>;
183724ba675SRob Herring			bias-pull-down;
184724ba675SRob Herring		};
185724ba675SRob Herring
186724ba675SRob Herring		pm8921_l6: l6 {
187724ba675SRob Herring			regulator-min-microvolt = <2950000>;
188724ba675SRob Herring			regulator-max-microvolt = <2950000>;
189724ba675SRob Herring			bias-pull-down;
190724ba675SRob Herring		};
191724ba675SRob Herring
192724ba675SRob Herring		pm8921_l7: l7 {
193724ba675SRob Herring			regulator-always-on;
194724ba675SRob Herring			regulator-min-microvolt = <1850000>;
195724ba675SRob Herring			regulator-max-microvolt = <2950000>;
196724ba675SRob Herring			bias-pull-down;
197724ba675SRob Herring		};
198724ba675SRob Herring
199724ba675SRob Herring		pm8921_l8: l8 {
200724ba675SRob Herring			regulator-min-microvolt = <3000000>;
201724ba675SRob Herring			regulator-max-microvolt = <3100000>;
202724ba675SRob Herring			bias-pull-down;
203724ba675SRob Herring		};
204724ba675SRob Herring
205724ba675SRob Herring		pm8921_l9: l9 {
206724ba675SRob Herring			regulator-min-microvolt = <2850000>;
207724ba675SRob Herring			regulator-max-microvolt = <2850000>;
208724ba675SRob Herring			bias-pull-down;
209724ba675SRob Herring		};
210724ba675SRob Herring
211724ba675SRob Herring		pm8921_l10: l10 {
212724ba675SRob Herring			regulator-min-microvolt = <3000000>;
213724ba675SRob Herring			regulator-max-microvolt = <3000000>;
214724ba675SRob Herring			bias-pull-down;
215724ba675SRob Herring		};
216724ba675SRob Herring
217724ba675SRob Herring		pm8921_l11: l11 {
218724ba675SRob Herring			regulator-min-microvolt = <2800000>;
219724ba675SRob Herring			regulator-max-microvolt = <3300000>;
220724ba675SRob Herring			bias-pull-down;
221724ba675SRob Herring		};
222724ba675SRob Herring
223724ba675SRob Herring		pm8921_l12: l12 {
224724ba675SRob Herring			regulator-min-microvolt = <1200000>;
225724ba675SRob Herring			regulator-max-microvolt = <1200000>;
226724ba675SRob Herring			bias-pull-down;
227724ba675SRob Herring		};
228724ba675SRob Herring
229724ba675SRob Herring		pm8921_l14: l14 {
230724ba675SRob Herring			regulator-min-microvolt = <1800000>;
231724ba675SRob Herring			regulator-max-microvolt = <1800000>;
232724ba675SRob Herring			bias-pull-down;
233724ba675SRob Herring		};
234724ba675SRob Herring
235724ba675SRob Herring		pm8921_l15: l15 {
236724ba675SRob Herring			regulator-min-microvolt = <1800000>;
237724ba675SRob Herring			regulator-max-microvolt = <2950000>;
238724ba675SRob Herring			bias-pull-down;
239724ba675SRob Herring		};
240724ba675SRob Herring
241724ba675SRob Herring		pm8921_l16: l16 {
242724ba675SRob Herring			regulator-min-microvolt = <2800000>;
243724ba675SRob Herring			regulator-max-microvolt = <3000000>;
244724ba675SRob Herring			bias-pull-down;
245724ba675SRob Herring		};
246724ba675SRob Herring
247724ba675SRob Herring		pm8921_l17: l17 {
248724ba675SRob Herring			regulator-min-microvolt = <1800000>;
249724ba675SRob Herring			regulator-max-microvolt = <3300000>;
250724ba675SRob Herring			bias-pull-down;
251724ba675SRob Herring		};
252724ba675SRob Herring
253724ba675SRob Herring		pm8921_l18: l18 {
254724ba675SRob Herring			regulator-min-microvolt = <1200000>;
255724ba675SRob Herring			regulator-max-microvolt = <1500000>;
256724ba675SRob Herring			bias-pull-down;
257724ba675SRob Herring		};
258724ba675SRob Herring
259724ba675SRob Herring		pm8921_l21: l21 {
260724ba675SRob Herring			regulator-min-microvolt = <1900000>;
261724ba675SRob Herring			regulator-max-microvolt = <1900000>;
262724ba675SRob Herring			bias-pull-down;
263724ba675SRob Herring		};
264724ba675SRob Herring
265724ba675SRob Herring		pm8921_l22: l22 {
266724ba675SRob Herring			regulator-min-microvolt = <2750000>;
267724ba675SRob Herring			regulator-max-microvolt = <2750000>;
268724ba675SRob Herring			bias-pull-down;
269724ba675SRob Herring		};
270724ba675SRob Herring
271724ba675SRob Herring		pm8921_l23: l23 {
272724ba675SRob Herring			regulator-always-on;
273724ba675SRob Herring			regulator-min-microvolt = <1800000>;
274724ba675SRob Herring			regulator-max-microvolt = <1800000>;
275724ba675SRob Herring			bias-pull-down;
276724ba675SRob Herring		};
277724ba675SRob Herring
278724ba675SRob Herring		pm8921_l24: l24 {
279724ba675SRob Herring			regulator-min-microvolt = <750000>;
280724ba675SRob Herring			regulator-max-microvolt = <1150000>;
281724ba675SRob Herring			bias-pull-down;
282724ba675SRob Herring		};
283724ba675SRob Herring
284724ba675SRob Herring		pm8921_l25: l25 {
285724ba675SRob Herring			regulator-always-on;
286724ba675SRob Herring			regulator-min-microvolt = <1225000>;
287724ba675SRob Herring			regulator-max-microvolt = <1225000>;
288724ba675SRob Herring			bias-pull-down;
289724ba675SRob Herring		};
290724ba675SRob Herring
291724ba675SRob Herring		/* Low Voltage Switch */
292724ba675SRob Herring		pm8921_lvs1: lvs1 {
293724ba675SRob Herring			bias-pull-down;
294724ba675SRob Herring		};
295724ba675SRob Herring
296724ba675SRob Herring		pm8921_lvs2: lvs2 {
297724ba675SRob Herring			bias-pull-down;
298724ba675SRob Herring		};
299724ba675SRob Herring
300724ba675SRob Herring		pm8921_lvs3: lvs3 {
301724ba675SRob Herring			bias-pull-down;
302724ba675SRob Herring		};
303724ba675SRob Herring
304724ba675SRob Herring		pm8921_lvs4: lvs4 {
305724ba675SRob Herring			bias-pull-down;
306724ba675SRob Herring		};
307724ba675SRob Herring
308724ba675SRob Herring		pm8921_lvs5: lvs5 {
309724ba675SRob Herring			bias-pull-down;
310724ba675SRob Herring		};
311724ba675SRob Herring
312724ba675SRob Herring		pm8921_lvs6: lvs6 {
313724ba675SRob Herring			bias-pull-down;
314724ba675SRob Herring		};
315724ba675SRob Herring
316724ba675SRob Herring		pm8921_lvs7: lvs7 {
317724ba675SRob Herring			bias-pull-down;
318724ba675SRob Herring		};
319724ba675SRob Herring
320724ba675SRob Herring		pm8921_ncp: ncp {
321724ba675SRob Herring			regulator-min-microvolt = <1800000>;
322724ba675SRob Herring			regulator-max-microvolt = <1800000>;
323724ba675SRob Herring			qcom,switch-mode-frequency = <1600000>;
324724ba675SRob Herring		};
325724ba675SRob Herring	};
326724ba675SRob Herring};
327724ba675SRob Herring
328724ba675SRob Herring&usb_hs1_phy {
329724ba675SRob Herring	v3p3-supply = <&pm8921_l3>;
330724ba675SRob Herring	v1p8-supply = <&pm8921_l4>;
331724ba675SRob Herring};
332724ba675SRob Herring
333724ba675SRob Herring&usb1 {
334724ba675SRob Herring	dr_mode = "otg";
335724ba675SRob Herring	status = "okay";
336724ba675SRob Herring};
337