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/gpio/gpio.h>
19 #include <dt-bindings/input/input.h>
20 #include <dt-bindings/sound/apq8016-lpass.h>
24 serial0 = &blsp1_uart2;
25 serial1 = &blsp1_uart1;
35 stdout-path = "serial0";
40 compatible = "ramoops";
41 reg = <0x0 0xbff00000 0x0 0x100000>;
43 record-size = <0x20000>;
44 console-size = <0x20000>;
45 ftrace-size = <0x20000>;
57 pinctrl-names = "default", "sleep";
58 pinctrl-0 = <&blsp1_uart1_default>;
59 pinctrl-1 = <&blsp1_uart1_sleep>;
65 pinctrl-names = "default", "sleep";
66 pinctrl-0 = <&blsp1_uart2_default>;
67 pinctrl-1 = <&blsp1_uart2_sleep>;
71 /* On Low speed expansion */
77 /* On High speed expansion */
81 adv_bridge: bridge@39 {
84 compatible = "adi,adv7533";
87 interrupt-parent = <&msmgpio>;
92 pd-gpios = <&msmgpio 32 0>;
94 avdd-supply = <&pm8916_l6>;
95 v1p2-supply = <&pm8916_l6>;
96 v3p3-supply = <&pm8916_l17>;
98 pinctrl-names = "default","sleep";
99 pinctrl-0 = <&adv7533_int_active &adv7533_switch_active>;
100 pinctrl-1 = <&adv7533_int_suspend &adv7533_switch_suspend>;
101 #sound-dai-cells = <1>;
104 #address-cells = <1>;
109 adv7533_in: endpoint {
110 remote-endpoint = <&dsi0_out>;
116 adv7533_out: endpoint {
117 remote-endpoint = <&hdmi_con>;
125 /* On Low speed expansion */
131 /* On High speed expansion */
137 /* On Low speed expansion */
143 pinctrl-names = "default";
144 pinctrl-0 = <&msmgpio_leds>,
145 <&pm8916_gpios_leds>,
148 compatible = "gpio-leds";
151 label = "apq8016-sbc:green:user1";
152 gpios = <&msmgpio 21 GPIO_ACTIVE_HIGH>;
153 linux,default-trigger = "heartbeat";
154 default-state = "off";
158 label = "apq8016-sbc:green:user2";
159 gpios = <&msmgpio 120 GPIO_ACTIVE_HIGH>;
160 linux,default-trigger = "mmc0";
161 default-state = "off";
165 label = "apq8016-sbc:green:user3";
166 gpios = <&pm8916_gpios 1 GPIO_ACTIVE_HIGH>;
167 linux,default-trigger = "mmc1";
168 default-state = "off";
172 label = "apq8016-sbc:green:user4";
173 gpios = <&pm8916_gpios 2 GPIO_ACTIVE_HIGH>;
174 linux,default-trigger = "none";
175 default-state = "off";
179 label = "apq8016-sbc:yellow:wlan";
180 gpios = <&pm8916_mpps 2 GPIO_ACTIVE_HIGH>;
181 linux,default-trigger = "wlan";
182 default-state = "off";
186 label = "apq8016-sbc:blue:bt";
187 gpios = <&pm8916_mpps 3 GPIO_ACTIVE_HIGH>;
188 linux,default-trigger = "bt";
189 default-state = "off";
194 vmmc-supply = <&pm8916_l8>;
195 vqmmc-supply = <&pm8916_l5>;
197 pinctrl-names = "default", "sleep";
198 pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
199 pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
204 vmmc-supply = <&pm8916_l11>;
205 vqmmc-supply = <&pm8916_l12>;
207 pinctrl-names = "default", "sleep";
208 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
209 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
211 cd-gpios = <&msmgpio 38 0x1>;
216 extcon = <&usb_id>, <&usb_id>;
225 v1p8-supply = <&pm8916_l7>;
226 v3p3-supply = <&pm8916_l13>;
227 vddcx-supply = <&pm8916_s1>;
228 extcon = <&usb_id>, <&usb_id>;
231 switch-gpio = <&pm8916_gpios 4 GPIO_ACTIVE_HIGH>;
232 pinctrl-names = "default";
233 pinctrl-0 = <&usb_sw_sel_pm>;
250 vdda-supply = <&pm8916_l2>;
251 vddio-supply = <&pm8916_l6>;
256 remote-endpoint = <&adv7533_in>;
257 data-lanes = <0 1 2 3>;
266 vddio-supply = <&pm8916_l6>;
276 playback - Primary MI2S
280 playback - secondary MI2S
290 compatible = "qcom,apq8016-sbc-sndcard";
291 reg = <0x07702000 0x4>, <0x07702004 0x4>;
292 reg-names = "mic-iomux", "spkr-iomux";
295 pinctrl-0 = <&cdc_pdm_lines_act &ext_sec_tlmm_lines_act &ext_mclk_tlmm_lines_act>;
296 pinctrl-1 = <&cdc_pdm_lines_sus &ext_sec_tlmm_lines_sus &ext_mclk_tlmm_lines_sus>;
297 pinctrl-names = "default", "sleep";
298 qcom,model = "DB410c";
300 "AMIC2", "MIC BIAS Internal2",
301 "AMIC3", "MIC BIAS External1";
302 external-dai-link@0 {
303 link-name = "ADV7533";
305 sound-dai = <&lpass MI2S_QUATERNARY>;
308 sound-dai = <&adv_bridge 0>;
312 internal-codec-playback-dai-link@0 { /* I2S - Internal codec */
315 sound-dai = <&lpass MI2S_PRIMARY>;
318 sound-dai = <&lpass_codec 0>, <&wcd_codec 0>;
322 internal-codec-capture-dai-link@0 { /* I2S - Internal codec */
323 link-name = "WCD-Capture";
325 sound-dai = <&lpass MI2S_TERTIARY>;
328 sound-dai = <&lpass_codec 1>, <&wcd_codec 1>;
339 compatible = "smsc,usb3503";
340 reset-gpios = <&pm8916_gpios 3 GPIO_ACTIVE_LOW>;
345 compatible = "linux,extcon-usb-gpio";
346 id-gpio = <&msmgpio 121 GPIO_ACTIVE_HIGH>;
347 pinctrl-names = "default";
348 pinctrl-0 = <&usb_id_default>;
352 compatible = "hdmi-connector";
357 remote-endpoint = <&adv7533_out>;
363 compatible = "gpio-keys";
364 #address-cells = <1>;
368 pinctrl-names = "default";
369 pinctrl-0 = <&msm_key_volp_n_default>;
373 linux,code = <KEY_VOLUMEUP>;
374 gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>;
381 clocks = <&gcc GCC_CODEC_DIGCODEC_CLK>;
382 clock-names = "mclk";
385 &smd_rpm_regulators {
386 vdd_l1_l2_l3-supply = <&pm8916_s3>;
387 vdd_l5-supply = <&pm8916_s3>;
388 vdd_l4_l5_l6-supply = <&pm8916_s4>;
389 vdd_l7-supply = <&pm8916_s4>;
392 regulator-min-microvolt = <375000>;
393 regulator-max-microvolt = <1562000>;
397 regulator-min-microvolt = <375000>;
398 regulator-max-microvolt = <1562000>;
402 regulator-min-microvolt = <1800000>;
403 regulator-max-microvolt = <1800000>;
410 regulator-min-microvolt = <375000>;
411 regulator-max-microvolt = <1525000>;
415 regulator-min-microvolt = <1200000>;
416 regulator-max-microvolt = <1200000>;
420 regulator-min-microvolt = <375000>;
421 regulator-max-microvolt = <1525000>;
425 regulator-min-microvolt = <1750000>;
426 regulator-max-microvolt = <3337000>;
430 regulator-min-microvolt = <1750000>;
431 regulator-max-microvolt = <3337000>;
435 regulator-min-microvolt = <1800000>;
436 regulator-max-microvolt = <1800000>;
440 regulator-min-microvolt = <1750000>;
441 regulator-max-microvolt = <3337000>;
445 regulator-min-microvolt = <1750000>;
446 regulator-max-microvolt = <3337000>;
450 regulator-min-microvolt = <1750000>;
451 regulator-max-microvolt = <3337000>;
455 regulator-min-microvolt = <1750000>;
456 regulator-max-microvolt = <3337000>;
460 regulator-min-microvolt = <1750000>;
461 regulator-max-microvolt = <3337000>;
465 regulator-min-microvolt = <1750000>;
466 regulator-max-microvolt = <3337000>;
470 regulator-min-microvolt = <1750000>;
471 regulator-max-microvolt = <3337000>;
475 regulator-min-microvolt = <1750000>;
476 regulator-max-microvolt = <3337000>;
480 * 1.8v required on LS expansion
481 * for mezzanine boards
484 regulator-min-microvolt = <1750000>;
485 regulator-max-microvolt = <3337000>;
490 regulator-min-microvolt = <1750000>;
491 regulator-max-microvolt = <3337000>;
495 regulator-min-microvolt = <3300000>;
496 regulator-max-microvolt = <3300000>;
500 regulator-min-microvolt = <1750000>;
501 regulator-max-microvolt = <3337000>;