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"
18 #include <dt-bindings/sound/apq8016-lpass.h>
22 serial0 = &blsp1_uart2;
23 serial1 = &blsp1_uart1;
33 stdout-path = "serial0";
44 pinctrl-names = "default", "sleep";
45 pinctrl-0 = <&blsp1_uart1_default>;
46 pinctrl-1 = <&blsp1_uart1_sleep>;
52 pinctrl-names = "default", "sleep";
53 pinctrl-0 = <&blsp1_uart2_default>;
54 pinctrl-1 = <&blsp1_uart2_sleep>;
58 /* On Low speed expansion */
64 /* On High speed expansion */
68 adv_bridge: bridge@39 {
71 compatible = "adi,adv7533";
74 interrupt-parent = <&msmgpio>;
79 pd-gpios = <&msmgpio 32 0>;
81 avdd-supply = <&pm8916_l6>;
82 v1p2-supply = <&pm8916_l6>;
83 v3p3-supply = <&pm8916_l17>;
85 pinctrl-names = "default","sleep";
86 pinctrl-0 = <&adv7533_int_active &adv7533_switch_active>;
87 pinctrl-1 = <&adv7533_int_suspend &adv7533_switch_suspend>;
95 adv7533_in: endpoint {
96 remote-endpoint = <&dsi0_out>;
102 adv7533_out: endpoint {
103 remote-endpoint = <&hdmi_con>;
111 /* On Low speed expansion */
117 /* On High speed expansion */
123 /* On Low speed expansion */
129 pinctrl-names = "default";
130 pinctrl-0 = <&msmgpio_leds>,
131 <&pm8916_gpios_leds>,
134 compatible = "gpio-leds";
137 label = "apq8016-sbc:green:user1";
138 gpios = <&msmgpio 21 GPIO_ACTIVE_HIGH>;
139 linux,default-trigger = "heartbeat";
140 default-state = "off";
144 label = "apq8016-sbc:green:user2";
145 gpios = <&msmgpio 120 GPIO_ACTIVE_HIGH>;
146 linux,default-trigger = "mmc0";
147 default-state = "off";
151 label = "apq8016-sbc:green:user3";
152 gpios = <&pm8916_gpios 1 GPIO_ACTIVE_HIGH>;
153 linux,default-trigger = "mmc1";
154 default-state = "off";
158 label = "apq8016-sbc:green:user4";
159 gpios = <&pm8916_gpios 2 GPIO_ACTIVE_HIGH>;
160 linux,default-trigger = "none";
161 default-state = "off";
165 label = "apq8016-sbc:yellow:wlan";
166 gpios = <&pm8916_mpps 2 GPIO_ACTIVE_HIGH>;
167 linux,default-trigger = "wlan";
168 default-state = "off";
172 label = "apq8016-sbc:blue:bt";
173 gpios = <&pm8916_mpps 3 GPIO_ACTIVE_HIGH>;
174 linux,default-trigger = "bt";
175 default-state = "off";
180 vmmc-supply = <&pm8916_l8>;
181 vqmmc-supply = <&pm8916_l5>;
183 pinctrl-names = "default", "sleep";
184 pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
185 pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
190 vmmc-supply = <&pm8916_l11>;
191 vqmmc-supply = <&pm8916_l12>;
193 pinctrl-names = "default", "sleep";
194 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
195 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
197 cd-gpios = <&msmgpio 38 0x1>;
202 extcon = <&usb_id>, <&usb_id>;
211 v1p8-supply = <&pm8916_l7>;
212 v3p3-supply = <&pm8916_l13>;
213 vddcx-supply = <&pm8916_s1>;
214 extcon = <&usb_id>, <&usb_id>;
217 switch-gpio = <&pm8916_gpios 4 GPIO_ACTIVE_HIGH>;
218 pinctrl-names = "default";
219 pinctrl-0 = <&usb_sw_sel_pm>;
236 vdda-supply = <&pm8916_l2>;
237 vddio-supply = <&pm8916_l6>;
242 remote-endpoint = <&adv7533_in>;
243 data-lanes = <0 1 2 3>;
252 vddio-supply = <&pm8916_l6>;
262 playback - Primary MI2S
266 playback - secondary MI2S
276 compatible = "qcom,apq8016-sbc-sndcard";
277 reg = <0x07702000 0x4>, <0x07702004 0x4>;
278 reg-names = "mic-iomux", "spkr-iomux";
281 pinctrl-0 = <&cdc_pdm_lines_act &ext_sec_tlmm_lines_act &ext_mclk_tlmm_lines_act>;
282 pinctrl-1 = <&cdc_pdm_lines_sus &ext_sec_tlmm_lines_sus &ext_mclk_tlmm_lines_sus>;
283 pinctrl-names = "default", "sleep";
284 qcom,model = "DB410c";
286 "AMIC2", "MIC BIAS Internal2",
287 "AMIC3", "MIC BIAS External1";
289 internal-codec-playback-dai-link@0 { /* I2S - Internal codec */
292 sound-dai = <&lpass MI2S_PRIMARY>;
295 sound-dai = <&lpass_codec 0>, <&wcd_codec 0>;
299 internal-codec-capture-dai-link@0 { /* I2S - Internal codec */
300 link-name = "WCD-Capture";
302 sound-dai = <&lpass MI2S_TERTIARY>;
305 sound-dai = <&lpass_codec 1>, <&wcd_codec 1>;
312 compatible = "smsc,usb3503";
313 reset-gpios = <&pm8916_gpios 3 GPIO_ACTIVE_LOW>;
318 compatible = "linux,extcon-usb-gpio";
319 id-gpio = <&msmgpio 121 GPIO_ACTIVE_HIGH>;
320 pinctrl-names = "default";
321 pinctrl-0 = <&usb_id_default>;
325 compatible = "hdmi-connector";
330 remote-endpoint = <&adv7533_out>;
338 clocks = <&gcc GCC_CODEC_DIGCODEC_CLK>;
339 clock-names = "mclk";
342 &smd_rpm_regulators {
343 vdd_l1_l2_l3-supply = <&pm8916_s3>;
344 vdd_l5-supply = <&pm8916_s3>;
345 vdd_l4_l5_l6-supply = <&pm8916_s4>;
346 vdd_l7-supply = <&pm8916_s4>;
349 regulator-min-microvolt = <375000>;
350 regulator-max-microvolt = <1562000>;
354 regulator-min-microvolt = <375000>;
355 regulator-max-microvolt = <1562000>;
359 regulator-min-microvolt = <1800000>;
360 regulator-max-microvolt = <1800000>;
367 regulator-min-microvolt = <375000>;
368 regulator-max-microvolt = <1525000>;
372 regulator-min-microvolt = <1200000>;
373 regulator-max-microvolt = <1200000>;
377 regulator-min-microvolt = <375000>;
378 regulator-max-microvolt = <1525000>;
382 regulator-min-microvolt = <1750000>;
383 regulator-max-microvolt = <3337000>;
387 regulator-min-microvolt = <1750000>;
388 regulator-max-microvolt = <3337000>;
392 regulator-min-microvolt = <1800000>;
393 regulator-max-microvolt = <1800000>;
397 regulator-min-microvolt = <1750000>;
398 regulator-max-microvolt = <3337000>;
402 regulator-min-microvolt = <1750000>;
403 regulator-max-microvolt = <3337000>;
407 regulator-min-microvolt = <1750000>;
408 regulator-max-microvolt = <3337000>;
412 regulator-min-microvolt = <1750000>;
413 regulator-max-microvolt = <3337000>;
417 regulator-min-microvolt = <1750000>;
418 regulator-max-microvolt = <3337000>;
422 regulator-min-microvolt = <1750000>;
423 regulator-max-microvolt = <3337000>;
427 regulator-min-microvolt = <1750000>;
428 regulator-max-microvolt = <3337000>;
432 regulator-min-microvolt = <1750000>;
433 regulator-max-microvolt = <3337000>;
437 * 1.8v required on LS expansion
438 * for mezzanine boards
441 regulator-min-microvolt = <1750000>;
442 regulator-max-microvolt = <3337000>;
447 regulator-min-microvolt = <1750000>;
448 regulator-max-microvolt = <3337000>;
452 regulator-min-microvolt = <3300000>;
453 regulator-max-microvolt = <3300000>;
457 regulator-min-microvolt = <1750000>;
458 regulator-max-microvolt = <3337000>;