2 * Copyright (c) 2015, 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 "msm8916.dtsi"
15 #include "pm8916.dtsi"
16 #include "apq8016-sbc-soc-pins.dtsi"
17 #include "apq8016-sbc-pmic-pins.dtsi"
21 serial0 = &blsp1_uart2;
22 serial1 = &blsp1_uart1;
32 stdout-path = "serial0";
43 pinctrl-names = "default", "sleep";
44 pinctrl-0 = <&blsp1_uart1_default>;
45 pinctrl-1 = <&blsp1_uart1_sleep>;
51 pinctrl-names = "default", "sleep";
52 pinctrl-0 = <&blsp1_uart2_default>;
53 pinctrl-1 = <&blsp1_uart2_sleep>;
57 /* On Low speed expansion */
63 /* On High speed expansion */
69 /* On Low speed expansion */
75 /* On High speed expansion */
81 /* On Low speed expansion */
87 pinctrl-names = "default";
88 pinctrl-0 = <&msmgpio_leds>,
92 compatible = "gpio-leds";
95 label = "apq8016-sbc:green:user1";
96 gpios = <&msmgpio 21 GPIO_ACTIVE_HIGH>;
97 linux,default-trigger = "heartbeat";
98 default-state = "off";
102 label = "apq8016-sbc:green:user2";
103 gpios = <&msmgpio 120 GPIO_ACTIVE_HIGH>;
104 linux,default-trigger = "mmc0";
105 default-state = "off";
109 label = "apq8016-sbc:green:user3";
110 gpios = <&pm8916_gpios 1 GPIO_ACTIVE_HIGH>;
111 linux,default-trigger = "mmc1";
112 default-state = "off";
116 label = "apq8016-sbc:green:user4";
117 gpios = <&pm8916_gpios 2 GPIO_ACTIVE_HIGH>;
118 linux,default-trigger = "none";
119 default-state = "off";
123 label = "apq8016-sbc:yellow:wlan";
124 gpios = <&pm8916_mpps 2 GPIO_ACTIVE_HIGH>;
125 linux,default-trigger = "wlan";
126 default-state = "off";
130 label = "apq8016-sbc:blue:bt";
131 gpios = <&pm8916_mpps 3 GPIO_ACTIVE_HIGH>;
132 linux,default-trigger = "bt";
133 default-state = "off";
138 vmmc-supply = <&pm8916_l8>;
139 vqmmc-supply = <&pm8916_l5>;
141 pinctrl-names = "default", "sleep";
142 pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
143 pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
148 vmmc-supply = <&pm8916_l11>;
149 vqmmc-supply = <&pm8916_l12>;
151 pinctrl-names = "default", "sleep";
152 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
153 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
155 cd-gpios = <&msmgpio 38 0x1>;
160 extcon = <&usb_id>, <&usb_id>;
169 v1p8-supply = <&pm8916_l7>;
170 v3p3-supply = <&pm8916_l13>;
171 vddcx-supply = <&pm8916_s1>;
172 extcon = <&usb_id>, <&usb_id>;
175 switch-gpio = <&pm8916_gpios 4 GPIO_ACTIVE_HIGH>;
176 pinctrl-names = "default";
177 pinctrl-0 = <&usb_sw_sel_pm>;
186 compatible = "smsc,usb3503";
187 reset-gpios = <&pm8916_gpios 3 GPIO_ACTIVE_LOW>;
192 compatible = "linux,extcon-usb-gpio";
193 id-gpio = <&msmgpio 121 GPIO_ACTIVE_HIGH>;
194 pinctrl-names = "default";
195 pinctrl-0 = <&usb_id_default>;
199 &smd_rpm_regulators {
200 vdd_l1_l2_l3-supply = <&pm8916_s3>;
201 vdd_l5-supply = <&pm8916_s3>;
202 vdd_l4_l5_l6-supply = <&pm8916_s4>;
203 vdd_l7-supply = <&pm8916_s4>;
206 regulator-min-microvolt = <375000>;
207 regulator-max-microvolt = <1562000>;
211 regulator-min-microvolt = <375000>;
212 regulator-max-microvolt = <1562000>;
216 regulator-min-microvolt = <1800000>;
217 regulator-max-microvolt = <1800000>;
224 regulator-min-microvolt = <375000>;
225 regulator-max-microvolt = <1525000>;
229 regulator-min-microvolt = <375000>;
230 regulator-max-microvolt = <1525000>;
234 regulator-min-microvolt = <375000>;
235 regulator-max-microvolt = <1525000>;
239 regulator-min-microvolt = <1750000>;
240 regulator-max-microvolt = <3337000>;
244 regulator-min-microvolt = <1750000>;
245 regulator-max-microvolt = <3337000>;
249 regulator-min-microvolt = <1750000>;
250 regulator-max-microvolt = <3337000>;
254 regulator-min-microvolt = <1750000>;
255 regulator-max-microvolt = <3337000>;
259 regulator-min-microvolt = <1750000>;
260 regulator-max-microvolt = <3337000>;
264 regulator-min-microvolt = <1750000>;
265 regulator-max-microvolt = <3337000>;
269 regulator-min-microvolt = <1750000>;
270 regulator-max-microvolt = <3337000>;
274 regulator-min-microvolt = <1750000>;
275 regulator-max-microvolt = <3337000>;
279 regulator-min-microvolt = <1750000>;
280 regulator-max-microvolt = <3337000>;
284 regulator-min-microvolt = <1750000>;
285 regulator-max-microvolt = <3337000>;
289 regulator-min-microvolt = <1750000>;
290 regulator-max-microvolt = <3337000>;
294 * 1.8v required on LS expansion
295 * for mezzanine boards
298 regulator-min-microvolt = <1750000>;
299 regulator-max-microvolt = <3337000>;
304 regulator-min-microvolt = <1750000>;
305 regulator-max-microvolt = <3337000>;
309 regulator-min-microvolt = <1750000>;
310 regulator-max-microvolt = <3337000>;
314 regulator-min-microvolt = <1750000>;
315 regulator-max-microvolt = <3337000>;