2 * Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
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.
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.
14 #include "msm8996.dtsi"
15 #include "pm8994.dtsi"
16 #include "pmi8994.dtsi"
17 #include "apq8096-db820c-pins.dtsi"
18 #include "apq8096-db820c-pmic-pins.dtsi"
19 #include <dt-bindings/input/input.h>
20 #include <dt-bindings/gpio/gpio.h>
24 serial0 = &blsp2_uart1;
25 serial1 = &blsp2_uart2;
26 serial2 = &blsp1_uart1;
35 stdout-path = "serial0:115200n8";
40 compatible = "fixed-clock";
42 clock-frequency = <32768>;
43 clock-output-names = "divclk4";
45 pinctrl-names = "default";
46 pinctrl-0 = <&divclk4_pin_a>;
54 pinctrl-names = "default", "sleep";
55 pinctrl-0 = <&blsp1_uart1_default>;
56 pinctrl-1 = <&blsp1_uart1_sleep>;
59 compatible = "qcom,qca6174-bt";
61 /* bt_disable_n gpio */
62 enable-gpios = <&pm8994_gpios 19 GPIO_ACTIVE_HIGH>;
71 pinctrl-names = "default", "sleep";
72 pinctrl-0 = <&blsp2_uart1_2pins_default>;
73 pinctrl-1 = <&blsp2_uart1_2pins_sleep>;
79 pinctrl-names = "default", "sleep";
80 pinctrl-0 = <&blsp2_uart2_4pins_default>;
81 pinctrl-1 = <&blsp2_uart2_4pins_sleep>;
85 /* On Low speed expansion */
91 /* On Low speed expansion */
97 /* On Low speed expansion */
103 /* On High speed expansion */
109 /* On High speed expansion */
115 /* External SD card */
116 pinctrl-names = "default", "sleep";
117 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
118 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
119 cd-gpios = <&msmgpio 38 0x1>;
120 vmmc-supply = <&pm8994_l21>;
121 vqmmc-supply = <&pm8994_l13>;
159 compatible = "linux,extcon-usb-gpio";
160 id-gpio = <&pm8994_gpios 22 GPIO_ACTIVE_HIGH>;
161 pinctrl-names = "default";
162 pinctrl-0 = <&usb3_vbus_det_gpio>;
171 maximum-speed = "high-speed";
176 compatible = "linux,extcon-usb-gpio";
177 id-gpio = <&pmi8994_gpios 6 GPIO_ACTIVE_HIGH>;
178 pinctrl-names = "default";
179 pinctrl-0 = <&usb2_vbus_det_gpio>;
182 wlan_en: wlan-en-1-8v {
183 pinctrl-names = "default";
184 pinctrl-0 = <&wlan_en_gpios>;
185 compatible = "regulator-fixed";
186 regulator-name = "wlan-en-regulator";
187 regulator-min-microvolt = <1800000>;
188 regulator-max-microvolt = <1800000>;
190 gpio = <&pm8994_gpios 8 0>;
192 /* WLAN card specific delay */
193 startup-delay-us = <70000>;
200 perst-gpio = <&msmgpio 35 GPIO_ACTIVE_LOW>;
201 vddpe-3v3-supply = <&wlan_en>;
206 perst-gpio = <&msmgpio 130 GPIO_ACTIVE_LOW>;
211 perst-gpio = <&msmgpio 114 GPIO_ACTIVE_LOW>;
218 compatible = "gpio-keys";
219 #address-cells = <1>;
223 pinctrl-names = "default";
224 pinctrl-0 = <&volume_up_gpio>;
228 linux,code = <KEY_VOLUMEUP>;
229 gpios = <&pm8994_gpios 2 GPIO_ACTIVE_LOW>;
236 vdd_l1-supply = <&pm8994_s3>;
237 vdd_l2_l26_l28-supply = <&pm8994_s3>;
238 vdd_l3_l11-supply = <&pm8994_s3>;
239 vdd_l4_l27_l31-supply = <&pm8994_s3>;
240 vdd_l5_l7-supply = <&pm8994_s5>;
241 vdd_l14_l15-supply = <&pm8994_s5>;
242 vdd_l20_l21-supply = <&pm8994_s5>;
243 vdd_l25-supply = <&pm8994_s3>;
246 regulator-min-microvolt = <1300000>;
247 regulator-max-microvolt = <1300000>;
251 * 1.8v required on LS expansion
252 * for mezzanine boards
255 regulator-min-microvolt = <1800000>;
256 regulator-max-microvolt = <1800000>;
260 regulator-min-microvolt = <2150000>;
261 regulator-max-microvolt = <2150000>;
264 regulator-min-microvolt = <800000>;
265 regulator-max-microvolt = <800000>;
269 regulator-min-microvolt = <1000000>;
270 regulator-max-microvolt = <1000000>;
273 regulator-min-microvolt = <1250000>;
274 regulator-max-microvolt = <1250000>;
277 regulator-min-microvolt = <850000>;
278 regulator-max-microvolt = <850000>;
281 regulator-min-microvolt = <1225000>;
282 regulator-max-microvolt = <1225000>;
285 regulator-min-microvolt = <1200000>;
286 regulator-max-microvolt = <1200000>;
289 regulator-min-microvolt = <1800000>;
290 regulator-max-microvolt = <1800000>;
293 regulator-min-microvolt = <1800000>;
294 regulator-max-microvolt = <1800000>;
297 regulator-min-microvolt = <1800000>;
298 regulator-max-microvolt = <1800000>;
301 regulator-min-microvolt = <1150000>;
302 regulator-max-microvolt = <1150000>;
305 regulator-min-microvolt = <1800000>;
306 regulator-max-microvolt = <1800000>;
309 regulator-min-microvolt = <1800000>;
310 regulator-max-microvolt = <2950000>;
313 regulator-min-microvolt = <1800000>;
314 regulator-max-microvolt = <1800000>;
317 regulator-min-microvolt = <1800000>;
318 regulator-max-microvolt = <1800000>;
321 regulator-min-microvolt = <2700000>;
322 regulator-max-microvolt = <2700000>;
325 regulator-min-microvolt = <2500000>;
326 regulator-max-microvolt = <2500000>;
329 regulator-min-microvolt = <2700000>;
330 regulator-max-microvolt = <2900000>;
333 regulator-min-microvolt = <3000000>;
334 regulator-max-microvolt = <3000000>;
337 regulator-min-microvolt = <2950000>;
338 regulator-max-microvolt = <2950000>;
339 regulator-allow-set-load;
342 regulator-min-microvolt = <2950000>;
343 regulator-max-microvolt = <2950000>;
346 regulator-min-microvolt = <3300000>;
347 regulator-max-microvolt = <3300000>;
350 regulator-min-microvolt = <2800000>;
351 regulator-max-microvolt = <2800000>;
354 regulator-min-microvolt = <3075000>;
355 regulator-max-microvolt = <3075000>;
358 regulator-min-microvolt = <1200000>;
359 regulator-max-microvolt = <1200000>;
360 regulator-allow-set-load;
363 regulator-min-microvolt = <1000000>;
364 regulator-max-microvolt = <1000000>;
367 regulator-min-microvolt = <925000>;
368 regulator-max-microvolt = <925000>;
369 regulator-allow-set-load;
372 regulator-min-microvolt = <2800000>;
373 regulator-max-microvolt = <2800000>;
376 regulator-min-microvolt = <1800000>;
377 regulator-max-microvolt = <1800000>;
380 regulator-min-microvolt = <1800000>;
381 regulator-max-microvolt = <1800000>;