1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2015, The Linux Foundation. All rights reserved.
8 #include "msm8916-pm8916.dtsi"
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/leds/common.h>
12 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
13 #include <dt-bindings/pinctrl/qcom,pmic-mpp.h>
14 #include <dt-bindings/sound/apq8016-lpass.h>
17 model = "Qualcomm Technologies, Inc. APQ 8016 SBC";
18 compatible = "qcom,apq8016-sbc", "qcom,apq8016";
21 mmc0 = &sdhc_1; /* eMMC */
22 mmc1 = &sdhc_2; /* SD card */
23 serial0 = &blsp_uart2;
24 serial1 = &blsp_uart1;
34 stdout-path = "serial0";
39 compatible = "ramoops";
40 reg = <0x0 0xbff00000 0x0 0x100000>;
42 record-size = <0x20000>;
43 console-size = <0x20000>;
44 ftrace-size = <0x20000>;
49 compatible = "smsc,usb3503";
50 reset-gpios = <&pm8916_gpios 3 GPIO_ACTIVE_LOW>;
55 compatible = "linux,extcon-usb-gpio";
56 id-gpios = <&tlmm 121 GPIO_ACTIVE_HIGH>;
57 pinctrl-names = "default";
58 pinctrl-0 = <&usb_id_default>;
62 compatible = "hdmi-connector";
67 remote-endpoint = <&adv7533_out>;
73 compatible = "gpio-keys";
76 pinctrl-names = "default";
77 pinctrl-0 = <&msm_key_volp_n_default>;
81 linux,code = <KEY_VOLUMEUP>;
82 gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
87 pinctrl-names = "default";
88 pinctrl-0 = <&tlmm_leds>,
92 compatible = "gpio-leds";
95 label = "apq8016-sbc:green:user1";
96 function = LED_FUNCTION_HEARTBEAT;
97 color = <LED_COLOR_ID_GREEN>;
98 gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>;
99 linux,default-trigger = "heartbeat";
100 default-state = "off";
104 label = "apq8016-sbc:green:user2";
105 function = LED_FUNCTION_DISK_ACTIVITY;
106 color = <LED_COLOR_ID_GREEN>;
107 gpios = <&tlmm 120 GPIO_ACTIVE_HIGH>;
108 linux,default-trigger = "mmc0";
109 default-state = "off";
113 label = "apq8016-sbc:green:user3";
114 function = LED_FUNCTION_DISK_ACTIVITY;
115 color = <LED_COLOR_ID_GREEN>;
116 gpios = <&pm8916_gpios 1 GPIO_ACTIVE_HIGH>;
117 linux,default-trigger = "mmc1";
118 default-state = "off";
122 label = "apq8016-sbc:green:user4";
123 color = <LED_COLOR_ID_GREEN>;
124 gpios = <&pm8916_gpios 2 GPIO_ACTIVE_HIGH>;
125 linux,default-trigger = "none";
127 default-state = "off";
131 label = "apq8016-sbc:yellow:wlan";
132 function = LED_FUNCTION_WLAN;
133 color = <LED_COLOR_ID_YELLOW>;
134 gpios = <&pm8916_mpps 2 GPIO_ACTIVE_HIGH>;
135 linux,default-trigger = "phy0tx";
136 default-state = "off";
140 label = "apq8016-sbc:blue:bt";
141 function = LED_FUNCTION_BLUETOOTH;
142 color = <LED_COLOR_ID_BLUE>;
143 gpios = <&pm8916_mpps 3 GPIO_ACTIVE_HIGH>;
144 linux,default-trigger = "bluetooth-power";
145 default-state = "off";
151 /* On Low speed expansion: LS-I2C0 */
156 /* On High speed expansion: HS-I2C2 */
159 adv_bridge: bridge@39 {
162 compatible = "adi,adv7533";
165 interrupt-parent = <&tlmm>;
166 interrupts = <31 IRQ_TYPE_EDGE_FALLING>;
169 clocks = <&rpmcc RPM_SMD_BB_CLK2>;
172 pd-gpios = <&tlmm 32 GPIO_ACTIVE_HIGH>;
174 avdd-supply = <&pm8916_l6>;
175 a2vdd-supply = <&pm8916_l6>;
176 dvdd-supply = <&pm8916_l6>;
177 pvdd-supply = <&pm8916_l6>;
178 v1p2-supply = <&pm8916_l6>;
179 v3p3-supply = <&pm8916_l17>;
181 pinctrl-names = "default","sleep";
182 pinctrl-0 = <&adv7533_int_active &adv7533_switch_active>;
183 pinctrl-1 = <&adv7533_int_suspend &adv7533_switch_suspend>;
184 #sound-dai-cells = <1>;
187 #address-cells = <1>;
192 adv7533_in: endpoint {
193 remote-endpoint = <&mdss_dsi0_out>;
199 adv7533_out: endpoint {
200 remote-endpoint = <&hdmi_con>;
208 /* On Low speed expansion: LS-I2C1 */
213 /* On High speed expansion: HS-SPI1 */
218 /* On Low speed expansion: LS-SPI0 */
257 data-lanes = <0 1 2 3>;
258 remote-endpoint = <&adv7533_in>;
264 firmware-name = "/*(DEBLOBBED)*/", "/*(DEBLOBBED)*/";
269 reg = <0x0 0x86800000 0x0 0x2b00000>;
274 qcom,mbhc-vthreshold-low = <75 150 237 450 500>;
275 qcom,mbhc-vthreshold-high = <75 150 237 450 500>;
280 linux,code = <KEY_VOLUMEDOWN>;
283 &pm8916_rpm_regulators {
285 * The 96Boards specification expects a 1.8V power rail on the low-speed
286 * expansion connector that is able to provide at least 0.18W / 100 mA.
287 * L15/L16 are connected in parallel to provide 55 mA each. A minimum load
288 * must be specified to ensure the regulators are not put in LPM where they
289 * would only provide 5 mA.
292 regulator-min-microvolt = <1800000>;
293 regulator-max-microvolt = <1800000>;
294 regulator-system-load = <50000>;
295 regulator-allow-set-load;
299 regulator-min-microvolt = <1800000>;
300 regulator-max-microvolt = <1800000>;
301 regulator-system-load = <50000>;
302 regulator-allow-set-load;
307 regulator-min-microvolt = <3300000>;
308 regulator-max-microvolt = <3300000>;
319 pinctrl-names = "default", "sleep";
320 pinctrl-0 = <&sdc2_default &sdc2_cd_default>;
321 pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>;
323 cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
329 pinctrl-0 = <&cdc_pdm_default &sec_mi2s_default>;
330 pinctrl-1 = <&cdc_pdm_sleep &sec_mi2s_sleep>;
331 pinctrl-names = "default", "sleep";
334 "AMIC2", "MIC BIAS Internal2",
335 "AMIC3", "MIC BIAS External1";
337 quaternary-dai-link {
338 link-name = "ADV7533";
340 sound-dai = <&lpass MI2S_QUATERNARY>;
343 sound-dai = <&adv_bridge 0>;
350 sound-dai = <&lpass MI2S_PRIMARY>;
353 sound-dai = <&lpass_codec 0>, <&pm8916_codec 0>;
358 link-name = "WCD-Capture";
360 sound-dai = <&lpass MI2S_TERTIARY>;
363 sound-dai = <&lpass_codec 1>, <&pm8916_codec 1>;
370 extcon = <&usb_id>, <&usb_id>;
372 pinctrl-names = "default", "device";
373 pinctrl-0 = <&usb_sw_sel_pm &usb_hub_reset_pm>;
374 pinctrl-1 = <&usb_sw_sel_pm_device &usb_hub_reset_pm_device>;
391 firmware-name = "/*(DEBLOBBED)*/";
395 firmware-name = "/*(DEBLOBBED)*/";
399 compatible = "qcom,wcn3620";
406 /* Enable CoreSight */
407 &cti0 { status = "okay"; };
408 &cti1 { status = "okay"; };
409 &cti12 { status = "okay"; };
410 &cti13 { status = "okay"; };
411 &cti14 { status = "okay"; };
412 &cti15 { status = "okay"; };
413 &debug0 { status = "okay"; };
414 &debug1 { status = "okay"; };
415 &debug2 { status = "okay"; };
416 &debug3 { status = "okay"; };
417 &etf { status = "okay"; };
418 &etm0 { status = "okay"; };
419 &etm1 { status = "okay"; };
420 &etm2 { status = "okay"; };
421 &etm3 { status = "okay"; };
422 &etr { status = "okay"; };
423 &funnel0 { status = "okay"; };
424 &funnel1 { status = "okay"; };
425 &replicator { status = "okay"; };
426 &stm { status = "okay"; };
427 &tpiu { status = "okay"; };
430 * 2mA drive strength is not enough when connecting multiple
431 * I2C devices with different pull up resistors.
434 drive-strength = <16>;
438 drive-strength = <16>;
442 drive-strength = <16>;
446 * GPIO name legend: proper name = the GPIO line is used as GPIO
447 * NC = not connected (pin out but not routed from the chip to
448 * anything the board)
449 * "[PER]" = pin is muxed for [peripheral] (not GPIO)
450 * LSEC = Low Speed External Connector
451 * HSEC = High Speed External Connector
453 * Line names are taken from the schematic "DragonBoard410c"
454 * dated monday, august 31, 2015. Page 5 in particular.
456 * For the lines routed to the external connectors the
457 * lines are named after the 96Boards CE Specification 1.0,
458 * Appendix "Expansion Connector Signal Description".
460 * When the 96Board naming of a line and the schematic name of
461 * the same line are in conflict, the 96Board specification
462 * takes precedence, which means that the external UART on the
463 * LSEC is named UART0 while the schematic and SoC names this
464 * UART3. This is only for the informational lines i.e. "[FOO]",
465 * the GPIO named lines "GPIO-A" thru "GPIO-L" are the only
466 * ones actually used for GPIO.
471 "[UART0_TX]", /* GPIO_0, LSEC pin 5 */
472 "[UART0_RX]", /* GPIO_1, LSEC pin 7 */
473 "[UART0_CTS_N]", /* GPIO_2, LSEC pin 3 */
474 "[UART0_RTS_N]", /* GPIO_3, LSEC pin 9 */
475 "[UART1_TX]", /* GPIO_4, LSEC pin 11 */
476 "[UART1_RX]", /* GPIO_5, LSEC pin 13 */
477 "[I2C0_SDA]", /* GPIO_8, LSEC pin 17 */
478 "[I2C0_SCL]", /* GPIO_7, LSEC pin 15 */
479 "[SPI1_DOUT]", /* SPI1_MOSI, HSEC pin 1 */
480 "[SPI1_DIN]", /* SPI1_MISO, HSEC pin 11 */
481 "[SPI1_CS]", /* SPI1_CS_N, HSEC pin 7 */
482 "[SPI1_SCLK]", /* SPI1_CLK, HSEC pin 9 */
483 "GPIO-B", /* LS_EXP_GPIO_B, LSEC pin 24 */
484 "GPIO-C", /* LS_EXP_GPIO_C, LSEC pin 25 */
485 "[I2C3_SDA]", /* HSEC pin 38 */
486 "[I2C3_SCL]", /* HSEC pin 36 */
487 "[SPI0_MOSI]", /* LSEC pin 14 */
488 "[SPI0_MISO]", /* LSEC pin 10 */
489 "[SPI0_CS_N]", /* LSEC pin 12 */
490 "[SPI0_CLK]", /* LSEC pin 8 */
491 "HDMI_HPD_N", /* GPIO 20 */
493 "[I2C1_SDA]", /* GPIO_22, LSEC pin 21 */
494 "[I2C1_SCL]", /* GPIO_23, LSEC pin 19 */
495 "GPIO-G", /* LS_EXP_GPIO_G, LSEC pin 29 */
496 "GPIO-H", /* LS_EXP_GPIO_H, LSEC pin 30 */
497 "[CSI0_MCLK]", /* HSEC pin 15 */
498 "[CSI1_MCLK]", /* HSEC pin 17 */
499 "GPIO-K", /* LS_EXP_GPIO_K, LSEC pin 33 */
500 "[I2C2_SDA]", /* HSEC pin 34 */
501 "[I2C2_SCL]", /* HSEC pin 32 */
504 "GPIO-L", /* LS_EXP_GPIO_L, LSEC pin 34 */
505 "GPIO-J", /* LS_EXP_GPIO_J, LSEC pin 32 */
506 "GPIO-I", /* LS_EXP_GPIO_I, LSEC pin 31 */
507 "GPIO-A", /* LS_EXP_GPIO_A, LSEC pin 23 */
511 "[WCSS_WLAN_DATA_2]", /* GPIO 40 */
512 "[WCSS_WLAN_DATA_1]",
513 "[WCSS_WLAN_DATA_0]",
540 "GPIO-D", /* LS_EXP_GPIO_D, LSEC pin 26 */
551 "BOOT_CONFIG_0", /* GPIO 80 */
581 "[LS_EXP_MI2S_WS]", /* GPIO 110 */
585 "[LS_EXP_MI2S_DATA0]",
586 "GPIO-E", /* LS_EXP_GPIO_E, LSEC pin 27 */
588 "[DSI2HDMI_MI2S_WS]",
589 "[DSI2HDMI_MI2S_SCK]",
590 "[DSI2HDMI_MI2S_DATA0]",
591 "USR_LED_2_CTRL", /* GPIO 120 */
594 sdc2_cd_default: sdc2-cd-default-state {
597 drive-strength = <2>;
601 tlmm_leds: tlmm-leds-state {
602 pins = "gpio21", "gpio120";
608 usb_id_default: usb-id-default-state {
612 drive-strength = <8>;
616 adv7533_int_active: adv533-int-active-state {
620 drive-strength = <16>;
624 adv7533_int_suspend: adv7533-int-suspend-state {
628 drive-strength = <2>;
632 adv7533_switch_active: adv7533-switch-active-state {
636 drive-strength = <16>;
640 adv7533_switch_suspend: adv7533-switch-suspend-state {
644 drive-strength = <2>;
648 msm_key_volp_n_default: msm-key-volp-n-default-state {
652 drive-strength = <8>;
661 "USB_HUB_RESET_N_PM",
664 usb_hub_reset_pm: usb-hub-reset-pm-state {
666 function = PMIC_GPIO_FUNC_NORMAL;
672 usb_hub_reset_pm_device: usb-hub-reset-pm-device-state {
674 function = PMIC_GPIO_FUNC_NORMAL;
679 usb_sw_sel_pm: usb-sw-sel-pm-state {
681 function = PMIC_GPIO_FUNC_NORMAL;
683 power-source = <PM8916_GPIO_VPH>;
688 usb_sw_sel_pm_device: usb-sw-sel-pm-device-state {
690 function = PMIC_GPIO_FUNC_NORMAL;
692 power-source = <PM8916_GPIO_VPH>;
697 pm8916_gpios_leds: pm8916-gpios-leds-state {
698 pins = "gpio1", "gpio2";
699 function = PMIC_GPIO_FUNC_NORMAL;
710 "GPIO-F"; /* LS_EXP_GPIO_F, LSEC pin 28 */
712 pinctrl-names = "default";
713 pinctrl-0 = <&ls_exp_gpio_f>;
715 ls_exp_gpio_f: pm8916-mpp4-state {
717 function = "digital";
720 power-source = <PM8916_MPP_L5>; /* 1.8V */
723 pm8916_mpps_leds: pm8916-mpps-state {
724 pins = "mpp2", "mpp3";
725 function = "digital";