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 <dt-bindings/gpio/gpio.h>
15 #include <dt-bindings/sound/apq8016-lpass.h>
16 #include "msm8916.dtsi"
17 #include "pm8916.dtsi"
18 #include "apq8016-sbc-soc-pins.dtsi"
19 #include "apq8016-sbc-pmic-pins.dtsi"
20 #include "msm8916-mdss.dtsi"
23 serial0 = &blsp1_uart2;
24 serial1 = &blsp1_uart1;
32 stdout-path = "serial0";
39 pinctrl-names = "default", "sleep";
40 pinctrl-0 = <&blsp1_uart1_default>;
41 pinctrl-1 = <&blsp1_uart1_sleep>;
47 pinctrl-names = "default", "sleep";
48 pinctrl-0 = <&blsp1_uart2_default>;
49 pinctrl-1 = <&blsp1_uart2_sleep>;
53 /* On Low speed expansion */
59 /* On High speed expansion */
65 /* On Low speed expansion */
71 /* On High speed expansion */
77 /* On Low speed expansion */
83 pinctrl-names = "default";
84 pinctrl-0 = <&msmgpio_leds>,
88 compatible = "gpio-leds";
91 label = "apq8016-sbc:green:user1";
92 gpios = <&msmgpio 21 GPIO_ACTIVE_HIGH>;
93 linux,default-trigger = "heartbeat";
94 default-state = "off";
98 label = "apq8016-sbc:green:user2";
99 gpios = <&msmgpio 120 GPIO_ACTIVE_HIGH>;
100 linux,default-trigger = "mmc0";
101 default-state = "off";
105 label = "apq8016-sbc:green:user3";
106 gpios = <&pm8916_gpios 1 GPIO_ACTIVE_HIGH>;
107 linux,default-trigger = "mmc1";
108 default-state = "off";
112 label = "apq8016-sbc:green:user4";
113 gpios = <&pm8916_gpios 2 GPIO_ACTIVE_HIGH>;
114 linux,default-trigger = "none";
115 default-state = "off";
119 label = "apq8016-sbc:yellow:wlan";
120 gpios = <&pm8916_mpps 2 GPIO_ACTIVE_HIGH>;
121 linux,default-trigger = "wlan";
122 default-state = "off";
126 label = "apq8016-sbc:blue:bt";
127 gpios = <&pm8916_mpps 3 GPIO_ACTIVE_HIGH>;
128 linux,default-trigger = "bt";
129 default-state = "off";
135 compatible = "smsc,usb3503";
136 reset-gpios = <&pm8916_gpios 1 GPIO_ACTIVE_LOW>;
141 interrupt-parent = <&msmgpio>;
142 compatible = "linux,extcon-usb-gpio";
143 id-gpio = <&msmgpio 121 GPIO_ACTIVE_HIGH>;
144 pinctrl-names = "default";
145 pinctrl-0 = <&usb_id_default>;
157 vmmc-supply = <&pm8916_l8>;
158 vqmmc-supply = <&pm8916_l5>;
160 pinctrl-names = "active", "sleep";
161 pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
162 pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
167 vmmc-supply = <&pm8916_l11>;
168 vqmmc-supply = <&pm8916_l12>;
170 pinctrl-names = "active", "sleep";
171 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
172 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
173 #address-cells = <0>;
174 interrupt-parent = <&sdhc_2>;
175 interrupts = <0 1 2>;
176 #interrupt-cells = <1>;
177 interrupt-map-mask = <0xffffffff>;
178 interrupt-map = <0 &intc 0 125 0
181 interrupt-names = "hc_irq", "pwr_irq", "status_irq";
182 cd-gpios = <&msmgpio 38 0x1>;
188 extcon = <&usb_id>, <&usb_id>;
201 extcon = <&usb_id>, <&usb_id>;
209 adv_bridge: bridge@39 {
211 compatible = "adi,adv7533";
213 interrupt-parent = <&msmgpio>;
214 //interrupts = <31 2>;
216 pd-gpios = <&msmgpio 32 0>;
217 pinctrl-names = "default","sleep";
218 pinctrl-0 = <&adv7533_int_active &adv7533_switch_active>;
219 pinctrl-1 = <&adv7533_int_suspend &adv7533_switch_suspend>;
220 #sound-dai-cells = <0>;
224 remote-endpoint = <&dsi_out>;
236 remote-endpoint = <&adv_in>;
246 playback - Primary MI2S
250 playback - secondary MI2S
260 pinctrl-0 = <&cdc_pdm_lines_act &ext_sec_tlmm_lines_act &ext_mclk_tlmm_lines_act>;
261 pinctrl-1 = <&cdc_pdm_lines_sus &ext_sec_tlmm_lines_sus &ext_mclk_tlmm_lines_sus>;
262 pinctrl-names = "default", "sleep";
263 qcom,model = "DB410c";
266 /* External Primary or External Secondary -ADV7533 HDMI */
267 external-dai-link@0 {
268 link-name = "ADV7533";
271 sound-dai = <&lpass MI2S_QUATERNARY>;
274 sound-dai = <&adv_bridge 0>;