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>;
91 clocks = <&rpmcc RPM_SMD_BB_CLK2>;
94 pd-gpios = <&msmgpio 32 0>;
96 avdd-supply = <&pm8916_l6>;
97 v1p2-supply = <&pm8916_l6>;
98 v3p3-supply = <&pm8916_l17>;
100 pinctrl-names = "default","sleep";
101 pinctrl-0 = <&adv7533_int_active &adv7533_switch_active>;
102 pinctrl-1 = <&adv7533_int_suspend &adv7533_switch_suspend>;
103 #sound-dai-cells = <1>;
106 #address-cells = <1>;
111 adv7533_in: endpoint {
112 remote-endpoint = <&dsi0_out>;
118 adv7533_out: endpoint {
119 remote-endpoint = <&hdmi_con>;
127 /* On Low speed expansion */
133 /* On High speed expansion */
139 /* On Low speed expansion */
145 pinctrl-names = "default";
146 pinctrl-0 = <&msmgpio_leds>,
147 <&pm8916_gpios_leds>,
150 compatible = "gpio-leds";
153 label = "apq8016-sbc:green:user1";
154 gpios = <&msmgpio 21 GPIO_ACTIVE_HIGH>;
155 linux,default-trigger = "heartbeat";
156 default-state = "off";
160 label = "apq8016-sbc:green:user2";
161 gpios = <&msmgpio 120 GPIO_ACTIVE_HIGH>;
162 linux,default-trigger = "mmc0";
163 default-state = "off";
167 label = "apq8016-sbc:green:user3";
168 gpios = <&pm8916_gpios 1 GPIO_ACTIVE_HIGH>;
169 linux,default-trigger = "mmc1";
170 default-state = "off";
174 label = "apq8016-sbc:green:user4";
175 gpios = <&pm8916_gpios 2 GPIO_ACTIVE_HIGH>;
176 linux,default-trigger = "none";
177 default-state = "off";
181 label = "apq8016-sbc:yellow:wlan";
182 gpios = <&pm8916_mpps 2 GPIO_ACTIVE_HIGH>;
183 linux,default-trigger = "phy0tx";
184 default-state = "off";
188 label = "apq8016-sbc:blue:bt";
189 gpios = <&pm8916_mpps 3 GPIO_ACTIVE_HIGH>;
190 linux,default-trigger = "bluetooth-power";
191 default-state = "off";
196 vmmc-supply = <&pm8916_l8>;
197 vqmmc-supply = <&pm8916_l5>;
199 pinctrl-names = "default", "sleep";
200 pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
201 pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
206 vmmc-supply = <&pm8916_l11>;
207 vqmmc-supply = <&pm8916_l12>;
209 pinctrl-names = "default", "sleep";
210 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
211 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
213 cd-gpios = <&msmgpio 38 0x1>;
224 pinctrl-names = "default";
225 pinctrl-0 = <&usb_sw_sel_pm>;
228 v1p8-supply = <&pm8916_l7>;
229 v3p3-supply = <&pm8916_l13>;
249 vdda-supply = <&pm8916_l2>;
250 vddio-supply = <&pm8916_l6>;
255 remote-endpoint = <&adv7533_in>;
256 data-lanes = <0 1 2 3>;
265 vddio-supply = <&pm8916_l6>;
275 playback - Primary MI2S
279 playback - secondary MI2S
289 compatible = "qcom,apq8016-sbc-sndcard";
290 reg = <0x07702000 0x4>, <0x07702004 0x4>;
291 reg-names = "mic-iomux", "spkr-iomux";
294 pinctrl-0 = <&cdc_pdm_lines_act &ext_sec_tlmm_lines_act &ext_mclk_tlmm_lines_act>;
295 pinctrl-1 = <&cdc_pdm_lines_sus &ext_sec_tlmm_lines_sus &ext_mclk_tlmm_lines_sus>;
296 pinctrl-names = "default", "sleep";
297 qcom,model = "DB410c";
299 "AMIC2", "MIC BIAS Internal2",
300 "AMIC3", "MIC BIAS External1";
301 external-dai-link@0 {
302 link-name = "ADV7533";
304 sound-dai = <&lpass MI2S_QUATERNARY>;
307 sound-dai = <&adv_bridge 0>;
311 internal-codec-playback-dai-link@0 { /* I2S - Internal codec */
314 sound-dai = <&lpass MI2S_PRIMARY>;
317 sound-dai = <&lpass_codec 0>, <&wcd_codec 0>;
321 internal-codec-capture-dai-link@0 { /* I2S - Internal codec */
322 link-name = "WCD-Capture";
324 sound-dai = <&lpass MI2S_TERTIARY>;
327 sound-dai = <&lpass_codec 1>, <&wcd_codec 1>;
338 compatible = "smsc,usb3503";
339 reset-gpios = <&pm8916_gpios 3 GPIO_ACTIVE_LOW>;
344 compatible = "linux,extcon-usb-gpio";
345 vbus-gpio = <&msmgpio 121 GPIO_ACTIVE_HIGH>;
346 pinctrl-names = "default";
347 pinctrl-0 = <&usb_id_default>;
351 compatible = "hdmi-connector";
356 remote-endpoint = <&adv7533_out>;
362 compatible = "gpio-keys";
363 #address-cells = <1>;
367 pinctrl-names = "default";
368 pinctrl-0 = <&msm_key_volp_n_default>;
372 linux,code = <KEY_VOLUMEUP>;
373 gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>;
380 clocks = <&gcc GCC_CODEC_DIGCODEC_CLK>;
381 clock-names = "mclk";
384 &smd_rpm_regulators {
385 vdd_l1_l2_l3-supply = <&pm8916_s3>;
386 vdd_l5-supply = <&pm8916_s3>;
387 vdd_l4_l5_l6-supply = <&pm8916_s4>;
388 vdd_l7-supply = <&pm8916_s4>;
391 regulator-min-microvolt = <375000>;
392 regulator-max-microvolt = <1562000>;
396 regulator-min-microvolt = <375000>;
397 regulator-max-microvolt = <1562000>;
401 regulator-min-microvolt = <1800000>;
402 regulator-max-microvolt = <1800000>;
409 regulator-min-microvolt = <375000>;
410 regulator-max-microvolt = <1525000>;
414 regulator-min-microvolt = <1200000>;
415 regulator-max-microvolt = <1200000>;
419 regulator-min-microvolt = <375000>;
420 regulator-max-microvolt = <1525000>;
424 regulator-min-microvolt = <1750000>;
425 regulator-max-microvolt = <3337000>;
429 regulator-min-microvolt = <1750000>;
430 regulator-max-microvolt = <3337000>;
434 regulator-min-microvolt = <1800000>;
435 regulator-max-microvolt = <1800000>;
439 regulator-min-microvolt = <1750000>;
440 regulator-max-microvolt = <3337000>;
444 regulator-min-microvolt = <1750000>;
445 regulator-max-microvolt = <3337000>;
449 regulator-min-microvolt = <1750000>;
450 regulator-max-microvolt = <3337000>;
454 regulator-min-microvolt = <1750000>;
455 regulator-max-microvolt = <3337000>;
459 regulator-min-microvolt = <1750000>;
460 regulator-max-microvolt = <3337000>;
461 regulator-allow-set-load;
462 regulator-system-load = <200000>;
466 regulator-min-microvolt = <1750000>;
467 regulator-max-microvolt = <3337000>;
471 regulator-min-microvolt = <1750000>;
472 regulator-max-microvolt = <3337000>;
476 regulator-min-microvolt = <1750000>;
477 regulator-max-microvolt = <3337000>;
481 * 1.8v required on LS expansion
482 * for mezzanine boards
485 regulator-min-microvolt = <1750000>;
486 regulator-max-microvolt = <3337000>;
491 regulator-min-microvolt = <1750000>;
492 regulator-max-microvolt = <3337000>;
496 regulator-min-microvolt = <3300000>;
497 regulator-max-microvolt = <3300000>;
501 regulator-min-microvolt = <1750000>;
502 regulator-max-microvolt = <3337000>;