Commit | Line | Data |
---|---|---|
61e55e56 SK |
1 | /* |
2 | * Copyright (c) 2014-2016, The Linux Foundation. All rights reserved. | |
3 | * | |
4 | * This program is free software; you can redistribute it and/or modify | |
5 | * it under the terms of the GNU General Public License version 2 and | |
6 | * only version 2 as published by the Free Software Foundation. | |
7 | * | |
8 | * This program is distributed in the hope that it will be useful, | |
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 | * GNU General Public License for more details. | |
12 | */ | |
13 | ||
14 | #include "msm8996.dtsi" | |
50784e61 | 15 | #include "pm8994.dtsi" |
1e39255e | 16 | #include "pmi8994.dtsi" |
69713756 | 17 | #include "apq8096-db820c-pins.dtsi" |
50784e61 | 18 | #include "apq8096-db820c-pmic-pins.dtsi" |
3a521539 SK |
19 | #include <dt-bindings/input/input.h> |
20 | #include <dt-bindings/gpio/gpio.h> | |
61e55e56 SK |
21 | |
22 | / { | |
23 | aliases { | |
24 | serial0 = &blsp2_uart1; | |
79f734dc | 25 | serial1 = &blsp2_uart2; |
75b6f7b7 | 26 | i2c0 = &blsp1_i2c2; |
4fe5d83a | 27 | i2c1 = &blsp2_i2c1; |
d3bb7138 | 28 | i2c2 = &blsp2_i2c0; |
a133f63a | 29 | spi0 = &blsp1_spi0; |
74578565 | 30 | spi1 = &blsp2_spi5; |
61e55e56 SK |
31 | }; |
32 | ||
33 | chosen { | |
34 | stdout-path = "serial0:115200n8"; | |
35 | }; | |
36 | ||
37 | soc { | |
38 | serial@75b0000 { | |
39 | label = "LS-UART1"; | |
40 | status = "okay"; | |
41 | pinctrl-names = "default", "sleep"; | |
42 | pinctrl-0 = <&blsp2_uart1_2pins_default>; | |
43 | pinctrl-1 = <&blsp2_uart1_2pins_sleep>; | |
44 | }; | |
79f734dc SK |
45 | |
46 | serial@75b1000 { | |
47 | label = "LS-UART0"; | |
48 | status = "okay"; | |
49 | pinctrl-names = "default", "sleep"; | |
50 | pinctrl-0 = <&blsp2_uart2_4pins_default>; | |
51 | pinctrl-1 = <&blsp2_uart2_4pins_sleep>; | |
52 | }; | |
75b6f7b7 | 53 | |
d8bcaabe | 54 | i2c@7577000 { |
75b6f7b7 SK |
55 | /* On Low speed expansion */ |
56 | label = "LS-I2C0"; | |
57 | status = "okay"; | |
58 | }; | |
59 | ||
d8bcaabe | 60 | i2c@75b6000 { |
4fe5d83a SK |
61 | /* On Low speed expansion */ |
62 | label = "LS-I2C1"; | |
63 | status = "okay"; | |
64 | }; | |
d3bb7138 | 65 | |
d8bcaabe | 66 | spi@7575000 { |
a133f63a SK |
67 | /* On Low speed expansion */ |
68 | label = "LS-SPI0"; | |
69 | status = "okay"; | |
70 | }; | |
71 | ||
d8bcaabe | 72 | i2c@75b5000 { |
d3bb7138 SK |
73 | /* On High speed expansion */ |
74 | label = "HS-I2C2"; | |
75 | status = "okay"; | |
76 | }; | |
74578565 | 77 | |
d8bcaabe | 78 | spi@75ba000{ |
74578565 SK |
79 | /* On High speed expansion */ |
80 | label = "HS-SPI1"; | |
81 | status = "okay"; | |
82 | }; | |
69713756 SK |
83 | |
84 | sdhci@74a4900 { | |
85 | /* External SD card */ | |
86 | pinctrl-names = "default", "sleep"; | |
87 | pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>; | |
88 | pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>; | |
89 | cd-gpios = <&msmgpio 38 0x1>; | |
90 | status = "okay"; | |
91 | }; | |
6785fa95 | 92 | |
12c67fe6 VG |
93 | phy@34000 { |
94 | status = "okay"; | |
95 | }; | |
96 | ||
42bd0544 VG |
97 | phy@7410000 { |
98 | status = "okay"; | |
99 | }; | |
100 | ||
6785fa95 VG |
101 | phy@7411000 { |
102 | status = "okay"; | |
103 | }; | |
104 | ||
105 | phy@7412000 { | |
106 | status = "okay"; | |
107 | }; | |
1e39255e VG |
108 | |
109 | usb@6a00000 { | |
110 | status = "okay"; | |
111 | ||
112 | dwc3@6a00000 { | |
113 | extcon = <&usb3_id>; | |
114 | dr_mode = "otg"; | |
115 | }; | |
116 | }; | |
117 | ||
118 | usb3_id: usb3-id { | |
119 | compatible = "linux,extcon-usb-gpio"; | |
120 | id-gpio = <&pm8994_gpios 22 GPIO_ACTIVE_HIGH>; | |
121 | pinctrl-names = "default"; | |
122 | pinctrl-0 = <&usb3_vbus_det_gpio>; | |
123 | }; | |
124 | ||
125 | usb@7600000 { | |
126 | status = "okay"; | |
127 | ||
128 | dwc3@7600000 { | |
129 | extcon = <&usb2_id>; | |
130 | dr_mode = "otg"; | |
131 | maximum-speed = "high-speed"; | |
132 | }; | |
133 | }; | |
134 | ||
135 | usb2_id: usb2-id { | |
136 | compatible = "linux,extcon-usb-gpio"; | |
137 | id-gpio = <&pmi8994_gpios 6 GPIO_ACTIVE_HIGH>; | |
138 | pinctrl-names = "default"; | |
139 | pinctrl-0 = <&usb2_vbus_det_gpio>; | |
140 | }; | |
2ea93bab SK |
141 | |
142 | agnoc@0 { | |
143 | qcom,pcie@00600000 { | |
144 | perst-gpio = <&msmgpio 35 GPIO_ACTIVE_LOW>; | |
145 | }; | |
146 | ||
147 | qcom,pcie@00608000 { | |
148 | status = "okay"; | |
149 | perst-gpio = <&msmgpio 130 GPIO_ACTIVE_LOW>; | |
150 | }; | |
151 | ||
152 | qcom,pcie@00610000 { | |
153 | status = "okay"; | |
154 | perst-gpio = <&msmgpio 114 GPIO_ACTIVE_LOW>; | |
155 | }; | |
156 | }; | |
61e55e56 | 157 | }; |
3a521539 SK |
158 | |
159 | ||
160 | gpio_keys { | |
161 | compatible = "gpio-keys"; | |
162 | #address-cells = <1>; | |
163 | #size-cells = <0>; | |
164 | autorepeat; | |
165 | ||
166 | pinctrl-names = "default"; | |
167 | pinctrl-0 = <&volume_up_gpio>; | |
168 | ||
169 | button@0 { | |
170 | label = "Volume Up"; | |
171 | linux,code = <KEY_VOLUMEUP>; | |
172 | gpios = <&pm8994_gpios 2 GPIO_ACTIVE_LOW>; | |
173 | }; | |
174 | }; | |
660a9763 RN |
175 | |
176 | rpm-glink { | |
177 | rpm_requests { | |
178 | pm8994-regulators { | |
179 | vdd_l1-supply = <&pm8994_s3>; | |
180 | vdd_l2_l26_l28-supply = <&pm8994_s3>; | |
181 | vdd_l3_l11-supply = <&pm8994_s3>; | |
182 | vdd_l4_l27_l31-supply = <&pm8994_s3>; | |
183 | vdd_l5_l7-supply = <&pm8994_s5>; | |
184 | vdd_l14_l15-supply = <&pm8994_s5>; | |
185 | vdd_l20_l21-supply = <&pm8994_s5>; | |
186 | vdd_l25-supply = <&pm8994_s3>; | |
187 | ||
188 | s3 { | |
189 | regulator-min-microvolt = <1300000>; | |
190 | regulator-max-microvolt = <1300000>; | |
191 | }; | |
82fa2878 SK |
192 | |
193 | /** | |
194 | * 1.8v required on LS expansion | |
195 | * for mezzanine boards | |
196 | */ | |
660a9763 RN |
197 | s4 { |
198 | regulator-min-microvolt = <1800000>; | |
199 | regulator-max-microvolt = <1800000>; | |
82fa2878 | 200 | regulator-always-on; |
660a9763 RN |
201 | }; |
202 | s5 { | |
203 | regulator-min-microvolt = <2150000>; | |
204 | regulator-max-microvolt = <2150000>; | |
205 | }; | |
206 | s7 { | |
207 | regulator-min-microvolt = <800000>; | |
208 | regulator-max-microvolt = <800000>; | |
209 | }; | |
210 | ||
211 | l1 { | |
212 | regulator-min-microvolt = <1000000>; | |
213 | regulator-max-microvolt = <1000000>; | |
214 | }; | |
215 | l2 { | |
216 | regulator-min-microvolt = <1250000>; | |
217 | regulator-max-microvolt = <1250000>; | |
218 | }; | |
219 | l3 { | |
220 | regulator-min-microvolt = <850000>; | |
221 | regulator-max-microvolt = <850000>; | |
222 | }; | |
223 | l4 { | |
224 | regulator-min-microvolt = <1225000>; | |
225 | regulator-max-microvolt = <1225000>; | |
226 | }; | |
227 | l6 { | |
228 | regulator-min-microvolt = <1200000>; | |
229 | regulator-max-microvolt = <1200000>; | |
230 | }; | |
231 | l8 { | |
232 | regulator-min-microvolt = <1800000>; | |
233 | regulator-max-microvolt = <1800000>; | |
234 | }; | |
235 | l9 { | |
236 | regulator-min-microvolt = <1800000>; | |
237 | regulator-max-microvolt = <1800000>; | |
238 | }; | |
239 | l10 { | |
240 | regulator-min-microvolt = <1800000>; | |
241 | regulator-max-microvolt = <1800000>; | |
242 | }; | |
243 | l11 { | |
244 | regulator-min-microvolt = <1150000>; | |
245 | regulator-max-microvolt = <1150000>; | |
246 | }; | |
247 | l12 { | |
248 | regulator-min-microvolt = <1800000>; | |
249 | regulator-max-microvolt = <1800000>; | |
250 | }; | |
251 | l13 { | |
252 | regulator-min-microvolt = <1800000>; | |
253 | regulator-max-microvolt = <2950000>; | |
254 | }; | |
255 | l14 { | |
256 | regulator-min-microvolt = <1800000>; | |
257 | regulator-max-microvolt = <1800000>; | |
258 | }; | |
259 | l15 { | |
260 | regulator-min-microvolt = <1800000>; | |
261 | regulator-max-microvolt = <1800000>; | |
262 | }; | |
263 | l16 { | |
264 | regulator-min-microvolt = <2700000>; | |
265 | regulator-max-microvolt = <2700000>; | |
266 | }; | |
267 | l17 { | |
268 | regulator-min-microvolt = <2500000>; | |
269 | regulator-max-microvolt = <2500000>; | |
270 | }; | |
271 | l18 { | |
272 | regulator-min-microvolt = <2700000>; | |
273 | regulator-max-microvolt = <2900000>; | |
274 | }; | |
275 | l19 { | |
276 | regulator-min-microvolt = <3000000>; | |
277 | regulator-max-microvolt = <3000000>; | |
278 | }; | |
279 | l20 { | |
280 | regulator-min-microvolt = <2950000>; | |
281 | regulator-max-microvolt = <2950000>; | |
282 | regulator-allow-set-load; | |
283 | }; | |
284 | l21 { | |
285 | regulator-min-microvolt = <2950000>; | |
286 | regulator-max-microvolt = <2950000>; | |
287 | }; | |
288 | l22 { | |
289 | regulator-min-microvolt = <3300000>; | |
290 | regulator-max-microvolt = <3300000>; | |
291 | }; | |
292 | l23 { | |
293 | regulator-min-microvolt = <2800000>; | |
294 | regulator-max-microvolt = <2800000>; | |
295 | }; | |
296 | l24 { | |
297 | regulator-min-microvolt = <3075000>; | |
298 | regulator-max-microvolt = <3075000>; | |
299 | }; | |
300 | l25 { | |
301 | regulator-min-microvolt = <1200000>; | |
302 | regulator-max-microvolt = <1200000>; | |
303 | regulator-allow-set-load; | |
304 | }; | |
305 | l27 { | |
306 | regulator-min-microvolt = <1000000>; | |
307 | regulator-max-microvolt = <1000000>; | |
308 | }; | |
309 | l28 { | |
310 | regulator-min-microvolt = <925000>; | |
311 | regulator-max-microvolt = <925000>; | |
312 | regulator-allow-set-load; | |
313 | }; | |
314 | l29 { | |
315 | regulator-min-microvolt = <2800000>; | |
316 | regulator-max-microvolt = <2800000>; | |
317 | }; | |
318 | l30 { | |
319 | regulator-min-microvolt = <1800000>; | |
320 | regulator-max-microvolt = <1800000>; | |
321 | }; | |
322 | l32 { | |
323 | regulator-min-microvolt = <1800000>; | |
324 | regulator-max-microvolt = <1800000>; | |
325 | }; | |
326 | }; | |
327 | }; | |
328 | }; | |
61e55e56 | 329 | }; |