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