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