xref: /linux/scripts/dtc/include-prefixes/arm/qcom/qcom-mdm9615-wp8548.dtsi (revision 06d07429858317ded2db7986113a9e0129cd599b)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0+ OR MIT
2724ba675SRob Herring/*
3724ba675SRob Herring * Device Tree Source for Sierra Wireless WP8548 Module
4724ba675SRob Herring *
5724ba675SRob Herring * Copyright (C) 2016 BayLibre, SAS.
6724ba675SRob Herring * Author : Neil Armstrong <narmstrong@baylibre.com>
7724ba675SRob Herring */
8724ba675SRob Herring
9724ba675SRob Herring#include "qcom-mdm9615.dtsi"
10e9297150SDmitry Baryshkov#include "pm8018.dtsi"
11724ba675SRob Herring
12724ba675SRob Herring/ {
13724ba675SRob Herring	model = "Sierra Wireless WP8548 Module";
14724ba675SRob Herring	compatible = "swir,wp8548", "qcom,mdm9615";
15724ba675SRob Herring
16724ba675SRob Herring	memory@48000000 {
17724ba675SRob Herring		device_type = "memory";
18724ba675SRob Herring		reg = <0x48000000 0x7F00000>;
19724ba675SRob Herring	};
20724ba675SRob Herring};
21724ba675SRob Herring
22724ba675SRob Herring&msmgpio {
23724ba675SRob Herring	pinctrl-0 = <&reset_out_pins>;
24724ba675SRob Herring	pinctrl-names = "default";
25724ba675SRob Herring
26724ba675SRob Herring	gsbi3_pins: gsbi3-state {
27724ba675SRob Herring		gsbi3-pins {
28724ba675SRob Herring			pins = "gpio8", "gpio9", "gpio10", "gpio11";
29724ba675SRob Herring			function = "gsbi3";
30724ba675SRob Herring			drive-strength = <8>;
31724ba675SRob Herring			bias-disable;
32724ba675SRob Herring		};
33724ba675SRob Herring	};
34724ba675SRob Herring
35724ba675SRob Herring	gsbi4_pins: gsbi4-state {
36724ba675SRob Herring		gsbi4-pins {
37724ba675SRob Herring			pins = "gpio12", "gpio13", "gpio14", "gpio15";
38724ba675SRob Herring			function = "gsbi4";
39724ba675SRob Herring			drive-strength = <8>;
40724ba675SRob Herring			bias-disable;
41724ba675SRob Herring		};
42724ba675SRob Herring	};
43724ba675SRob Herring
44724ba675SRob Herring	gsbi5_i2c_pins: gsbi5-i2c-state {
45724ba675SRob Herring		sda-pins {
46724ba675SRob Herring			pins = "gpio16";
47724ba675SRob Herring			function = "gsbi5_i2c";
48724ba675SRob Herring			drive-strength = <8>;
49724ba675SRob Herring			bias-disable;
50724ba675SRob Herring		};
51724ba675SRob Herring
52724ba675SRob Herring		scl-pins {
53724ba675SRob Herring			pins = "gpio17";
54724ba675SRob Herring			function = "gsbi5_i2c";
55724ba675SRob Herring			drive-strength = <2>;
56724ba675SRob Herring			bias-disable;
57724ba675SRob Herring		};
58724ba675SRob Herring	};
59724ba675SRob Herring
60724ba675SRob Herring	gsbi5_uart_pins: gsbi5-uart-state {
61724ba675SRob Herring		gsbi5-uart-pins {
62724ba675SRob Herring			pins = "gpio18", "gpio19";
63724ba675SRob Herring			function = "gsbi5_uart";
64724ba675SRob Herring			drive-strength = <8>;
65724ba675SRob Herring			bias-disable;
66724ba675SRob Herring		};
67724ba675SRob Herring	};
68724ba675SRob Herring
69724ba675SRob Herring	reset_out_pins: reset-out-state {
70724ba675SRob Herring		reset-out-pins {
71724ba675SRob Herring			pins = "gpio66";
72724ba675SRob Herring			function = "gpio";
73724ba675SRob Herring			drive-strength = <2>;
74724ba675SRob Herring			bias-pull-up;
75724ba675SRob Herring			output-high;
76724ba675SRob Herring		};
77724ba675SRob Herring	};
78724ba675SRob Herring};
79724ba675SRob Herring
807661e1e7SDmitry Baryshkov&pm8018 {
817661e1e7SDmitry Baryshkov	interrupts-extended = <&intc GIC_PPI 226 IRQ_TYPE_LEVEL_HIGH>;
827661e1e7SDmitry Baryshkov};
837661e1e7SDmitry Baryshkov
840e4688cdSDmitry Baryshkov&pm8018_gpio {
85724ba675SRob Herring	usb_vbus_5v_pins: usb-vbus-5v-state {
86724ba675SRob Herring		pins = "gpio4";
87724ba675SRob Herring		function = "normal";
88724ba675SRob Herring		output-high;
89724ba675SRob Herring		bias-disable;
90724ba675SRob Herring		qcom,drive-strength = <1>;
91724ba675SRob Herring		power-source = <2>;
92724ba675SRob Herring	};
93724ba675SRob Herring};
94724ba675SRob Herring
95724ba675SRob Herring&gsbi3 {
96724ba675SRob Herring	status = "okay";
97724ba675SRob Herring	qcom,mode = <GSBI_PROT_SPI>;
98724ba675SRob Herring};
99724ba675SRob Herring
100724ba675SRob Herring&gsbi3_spi {
101724ba675SRob Herring	status = "okay";
102724ba675SRob Herring	pinctrl-0 = <&gsbi3_pins>;
103724ba675SRob Herring	pinctrl-names = "default";
104724ba675SRob Herring	assigned-clocks = <&gcc GSBI3_QUP_CLK>;
105724ba675SRob Herring	assigned-clock-rates = <24000000>;
106724ba675SRob Herring};
107724ba675SRob Herring
108724ba675SRob Herring&gsbi4 {
109724ba675SRob Herring	status = "okay";
110724ba675SRob Herring	qcom,mode = <GSBI_PROT_UART_W_FC>;
111724ba675SRob Herring};
112724ba675SRob Herring
113724ba675SRob Herring&gsbi4_serial {
114724ba675SRob Herring	status = "okay";
115724ba675SRob Herring	pinctrl-0 = <&gsbi4_pins>;
116724ba675SRob Herring	pinctrl-names = "default";
117724ba675SRob Herring};
118724ba675SRob Herring
119724ba675SRob Herring&gsbi5 {
120724ba675SRob Herring	status = "okay";
121724ba675SRob Herring	qcom,mode = <GSBI_PROT_I2C_UART>;
122724ba675SRob Herring};
123724ba675SRob Herring
124724ba675SRob Herring&gsbi5_i2c {
125724ba675SRob Herring	status = "okay";
126724ba675SRob Herring	clock-frequency = <200000>;
127724ba675SRob Herring	pinctrl-0 = <&gsbi5_i2c_pins>;
128724ba675SRob Herring	pinctrl-names = "default";
129724ba675SRob Herring};
130724ba675SRob Herring
131724ba675SRob Herring&gsbi5_serial {
132724ba675SRob Herring	status = "okay";
133724ba675SRob Herring	pinctrl-0 = <&gsbi5_uart_pins>;
134724ba675SRob Herring	pinctrl-names = "default";
135724ba675SRob Herring};
136724ba675SRob Herring
137*8299cc4bSDmitry Baryshkov&rpm {
138*8299cc4bSDmitry Baryshkov	regulators {
139*8299cc4bSDmitry Baryshkov		compatible = "qcom,rpm-pm8018-regulators";
140*8299cc4bSDmitry Baryshkov
141*8299cc4bSDmitry Baryshkov		vin_lvs1-supply = <&pm8018_s3>;
142*8299cc4bSDmitry Baryshkov
143*8299cc4bSDmitry Baryshkov		vdd_l7-supply = <&pm8018_s4>;
144*8299cc4bSDmitry Baryshkov		vdd_l8-supply = <&pm8018_s3>;
145*8299cc4bSDmitry Baryshkov		vdd_l9_l10_l11_l12-supply = <&pm8018_s5>;
146*8299cc4bSDmitry Baryshkov
147*8299cc4bSDmitry Baryshkov		/* Buck SMPS */
148*8299cc4bSDmitry Baryshkov		pm8018_s1: s1 {
149*8299cc4bSDmitry Baryshkov			regulator-min-microvolt = <500000>;
150*8299cc4bSDmitry Baryshkov			regulator-max-microvolt = <1150000>;
151*8299cc4bSDmitry Baryshkov			qcom,switch-mode-frequency = <1600000>;
152*8299cc4bSDmitry Baryshkov			bias-pull-down;
153*8299cc4bSDmitry Baryshkov		};
154*8299cc4bSDmitry Baryshkov
155*8299cc4bSDmitry Baryshkov		pm8018_s2: s2 {
156*8299cc4bSDmitry Baryshkov			regulator-min-microvolt = <1225000>;
157*8299cc4bSDmitry Baryshkov			regulator-max-microvolt = <1300000>;
158*8299cc4bSDmitry Baryshkov			qcom,switch-mode-frequency = <1600000>;
159*8299cc4bSDmitry Baryshkov			bias-pull-down;
160*8299cc4bSDmitry Baryshkov		};
161*8299cc4bSDmitry Baryshkov
162*8299cc4bSDmitry Baryshkov		pm8018_s3: s3 {
163*8299cc4bSDmitry Baryshkov			regulator-always-on;
164*8299cc4bSDmitry Baryshkov			regulator-min-microvolt = <1800000>;
165*8299cc4bSDmitry Baryshkov			regulator-max-microvolt = <1800000>;
166*8299cc4bSDmitry Baryshkov			qcom,switch-mode-frequency = <1600000>;
167*8299cc4bSDmitry Baryshkov			bias-pull-down;
168*8299cc4bSDmitry Baryshkov		};
169*8299cc4bSDmitry Baryshkov
170*8299cc4bSDmitry Baryshkov		pm8018_s4: s4 {
171*8299cc4bSDmitry Baryshkov			regulator-min-microvolt = <2100000>;
172*8299cc4bSDmitry Baryshkov			regulator-max-microvolt = <2200000>;
173*8299cc4bSDmitry Baryshkov			qcom,switch-mode-frequency = <1600000>;
174*8299cc4bSDmitry Baryshkov			bias-pull-down;
175*8299cc4bSDmitry Baryshkov		};
176*8299cc4bSDmitry Baryshkov
177*8299cc4bSDmitry Baryshkov		pm8018_s5: s5 {
178*8299cc4bSDmitry Baryshkov			regulator-always-on;
179*8299cc4bSDmitry Baryshkov			regulator-min-microvolt = <1350000>;
180*8299cc4bSDmitry Baryshkov			regulator-max-microvolt = <1350000>;
181*8299cc4bSDmitry Baryshkov			qcom,switch-mode-frequency = <1600000>;
182*8299cc4bSDmitry Baryshkov			bias-pull-down;
183*8299cc4bSDmitry Baryshkov		};
184*8299cc4bSDmitry Baryshkov
185*8299cc4bSDmitry Baryshkov		/* PMOS LDO */
186*8299cc4bSDmitry Baryshkov		pm8018_l2: l2 {
187*8299cc4bSDmitry Baryshkov			regulator-always-on;
188*8299cc4bSDmitry Baryshkov			regulator-min-microvolt = <1800000>;
189*8299cc4bSDmitry Baryshkov			regulator-max-microvolt = <1800000>;
190*8299cc4bSDmitry Baryshkov			bias-pull-down;
191*8299cc4bSDmitry Baryshkov		};
192*8299cc4bSDmitry Baryshkov
193*8299cc4bSDmitry Baryshkov		pm8018_l3: l3 {
194*8299cc4bSDmitry Baryshkov			regulator-always-on;
195*8299cc4bSDmitry Baryshkov			regulator-min-microvolt = <1800000>;
196*8299cc4bSDmitry Baryshkov			regulator-max-microvolt = <1800000>;
197*8299cc4bSDmitry Baryshkov			bias-pull-down;
198*8299cc4bSDmitry Baryshkov		};
199*8299cc4bSDmitry Baryshkov
200*8299cc4bSDmitry Baryshkov		pm8018_l4: l4 {
201*8299cc4bSDmitry Baryshkov			regulator-min-microvolt = <3300000>;
202*8299cc4bSDmitry Baryshkov			regulator-max-microvolt = <3300000>;
203*8299cc4bSDmitry Baryshkov			bias-pull-down;
204*8299cc4bSDmitry Baryshkov		};
205*8299cc4bSDmitry Baryshkov
206*8299cc4bSDmitry Baryshkov		pm8018_l5: l5 {
207*8299cc4bSDmitry Baryshkov			regulator-min-microvolt = <2850000>;
208*8299cc4bSDmitry Baryshkov			regulator-max-microvolt = <2850000>;
209*8299cc4bSDmitry Baryshkov			bias-pull-down;
210*8299cc4bSDmitry Baryshkov		};
211*8299cc4bSDmitry Baryshkov
212*8299cc4bSDmitry Baryshkov		pm8018_l6: l6 {
213*8299cc4bSDmitry Baryshkov			regulator-min-microvolt = <1800000>;
214*8299cc4bSDmitry Baryshkov			regulator-max-microvolt = <2850000>;
215*8299cc4bSDmitry Baryshkov			bias-pull-down;
216*8299cc4bSDmitry Baryshkov		};
217*8299cc4bSDmitry Baryshkov
218*8299cc4bSDmitry Baryshkov		pm8018_l7: l7 {
219*8299cc4bSDmitry Baryshkov			regulator-min-microvolt = <1850000>;
220*8299cc4bSDmitry Baryshkov			regulator-max-microvolt = <1900000>;
221*8299cc4bSDmitry Baryshkov			bias-pull-down;
222*8299cc4bSDmitry Baryshkov		};
223*8299cc4bSDmitry Baryshkov
224*8299cc4bSDmitry Baryshkov		pm8018_l8: l8 {
225*8299cc4bSDmitry Baryshkov			regulator-min-microvolt = <1200000>;
226*8299cc4bSDmitry Baryshkov			regulator-max-microvolt = <1200000>;
227*8299cc4bSDmitry Baryshkov			bias-pull-down;
228*8299cc4bSDmitry Baryshkov		};
229*8299cc4bSDmitry Baryshkov
230*8299cc4bSDmitry Baryshkov		pm8018_l9: l9 {
231*8299cc4bSDmitry Baryshkov			regulator-min-microvolt = <750000>;
232*8299cc4bSDmitry Baryshkov			regulator-max-microvolt = <1150000>;
233*8299cc4bSDmitry Baryshkov			bias-pull-down;
234*8299cc4bSDmitry Baryshkov		};
235*8299cc4bSDmitry Baryshkov
236*8299cc4bSDmitry Baryshkov		pm8018_l10: l10 {
237*8299cc4bSDmitry Baryshkov			regulator-min-microvolt = <1050000>;
238*8299cc4bSDmitry Baryshkov			regulator-max-microvolt = <1050000>;
239*8299cc4bSDmitry Baryshkov			bias-pull-down;
240*8299cc4bSDmitry Baryshkov		};
241*8299cc4bSDmitry Baryshkov
242*8299cc4bSDmitry Baryshkov		pm8018_l11: l11 {
243*8299cc4bSDmitry Baryshkov			regulator-min-microvolt = <1050000>;
244*8299cc4bSDmitry Baryshkov			regulator-max-microvolt = <1050000>;
245*8299cc4bSDmitry Baryshkov			bias-pull-down;
246*8299cc4bSDmitry Baryshkov		};
247*8299cc4bSDmitry Baryshkov
248*8299cc4bSDmitry Baryshkov		pm8018_l12: l12 {
249*8299cc4bSDmitry Baryshkov			regulator-min-microvolt = <1050000>;
250*8299cc4bSDmitry Baryshkov			regulator-max-microvolt = <1050000>;
251*8299cc4bSDmitry Baryshkov			bias-pull-down;
252*8299cc4bSDmitry Baryshkov		};
253*8299cc4bSDmitry Baryshkov
254*8299cc4bSDmitry Baryshkov		pm8018_l13: l13 {
255*8299cc4bSDmitry Baryshkov			regulator-min-microvolt = <1850000>;
256*8299cc4bSDmitry Baryshkov			regulator-max-microvolt = <2950000>;
257*8299cc4bSDmitry Baryshkov			bias-pull-down;
258*8299cc4bSDmitry Baryshkov		};
259*8299cc4bSDmitry Baryshkov
260*8299cc4bSDmitry Baryshkov		pm8018_l14: l14 {
261*8299cc4bSDmitry Baryshkov			regulator-min-microvolt = <2850000>;
262*8299cc4bSDmitry Baryshkov			regulator-max-microvolt = <2850000>;
263*8299cc4bSDmitry Baryshkov			bias-pull-down;
264*8299cc4bSDmitry Baryshkov		};
265*8299cc4bSDmitry Baryshkov
266*8299cc4bSDmitry Baryshkov		/* Low Voltage Switch */
267*8299cc4bSDmitry Baryshkov		pm8018_lvs1: lvs1 {
268*8299cc4bSDmitry Baryshkov			bias-pull-down;
269*8299cc4bSDmitry Baryshkov		};
270*8299cc4bSDmitry Baryshkov	};
271*8299cc4bSDmitry Baryshkov};
272*8299cc4bSDmitry Baryshkov
273724ba675SRob Herring&sdcc1 {
274724ba675SRob Herring	status = "okay";
275724ba675SRob Herring};
276