1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2015, The Linux Foundation. All rights reserved.
6 #include "msm8916-pm8916.dtsi"
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
10 #include <dt-bindings/pinctrl/qcom,pmic-mpp.h>
11 #include <dt-bindings/sound/apq8016-lpass.h>
15 serial0 = &blsp1_uart2;
16 serial1 = &blsp1_uart1;
26 stdout-path = "serial0";
29 camera_vdddo_1v8: camera-vdddo-1v8 {
30 compatible = "regulator-fixed";
31 regulator-name = "camera_vdddo";
32 regulator-min-microvolt = <1800000>;
33 regulator-max-microvolt = <1800000>;
37 camera_vdda_2v8: camera-vdda-2v8 {
38 compatible = "regulator-fixed";
39 regulator-name = "camera_vdda";
40 regulator-min-microvolt = <2800000>;
41 regulator-max-microvolt = <2800000>;
45 camera_vddd_1v5: camera-vddd-1v5 {
46 compatible = "regulator-fixed";
47 regulator-name = "camera_vddd";
48 regulator-min-microvolt = <1500000>;
49 regulator-max-microvolt = <1500000>;
55 compatible = "ramoops";
56 reg = <0x0 0xbff00000 0x0 0x100000>;
58 record-size = <0x20000>;
59 console-size = <0x20000>;
60 ftrace-size = <0x20000>;
65 compatible = "smsc,usb3503";
66 reset-gpios = <&pm8916_gpios 3 GPIO_ACTIVE_LOW>;
71 compatible = "linux,extcon-usb-gpio";
72 id-gpio = <&msmgpio 121 GPIO_ACTIVE_HIGH>;
73 pinctrl-names = "default";
74 pinctrl-0 = <&usb_id_default>;
78 compatible = "hdmi-connector";
83 remote-endpoint = <&adv7533_out>;
89 compatible = "gpio-keys";
94 pinctrl-names = "default";
95 pinctrl-0 = <&msm_key_volp_n_default>;
99 linux,code = <KEY_VOLUMEUP>;
100 gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>;
105 pinctrl-names = "default";
106 pinctrl-0 = <&msmgpio_leds>,
107 <&pm8916_gpios_leds>,
110 compatible = "gpio-leds";
113 label = "apq8016-sbc:green:user1";
114 gpios = <&msmgpio 21 GPIO_ACTIVE_HIGH>;
115 linux,default-trigger = "heartbeat";
116 default-state = "off";
120 label = "apq8016-sbc:green:user2";
121 gpios = <&msmgpio 120 GPIO_ACTIVE_HIGH>;
122 linux,default-trigger = "mmc0";
123 default-state = "off";
127 label = "apq8016-sbc:green:user3";
128 gpios = <&pm8916_gpios 1 GPIO_ACTIVE_HIGH>;
129 linux,default-trigger = "mmc1";
130 default-state = "off";
134 label = "apq8016-sbc:green:user4";
135 gpios = <&pm8916_gpios 2 GPIO_ACTIVE_HIGH>;
136 linux,default-trigger = "none";
138 default-state = "off";
142 label = "apq8016-sbc:yellow:wlan";
143 gpios = <&pm8916_mpps 2 GPIO_ACTIVE_HIGH>;
144 linux,default-trigger = "phy0tx";
145 default-state = "off";
149 label = "apq8016-sbc:blue:bt";
150 gpios = <&pm8916_mpps 3 GPIO_ACTIVE_HIGH>;
151 linux,default-trigger = "bluetooth-power";
152 default-state = "off";
162 /* On Low speed expansion */
168 /* On High speed expansion */
172 adv_bridge: bridge@39 {
175 compatible = "adi,adv7533";
178 interrupt-parent = <&msmgpio>;
179 interrupts = <31 IRQ_TYPE_EDGE_FALLING>;
182 clocks = <&rpmcc RPM_SMD_BB_CLK2>;
185 pd-gpios = <&msmgpio 32 GPIO_ACTIVE_HIGH>;
187 avdd-supply = <&pm8916_l6>;
188 v1p2-supply = <&pm8916_l6>;
189 v3p3-supply = <&pm8916_l17>;
191 pinctrl-names = "default","sleep";
192 pinctrl-0 = <&adv7533_int_active &adv7533_switch_active>;
193 pinctrl-1 = <&adv7533_int_suspend &adv7533_switch_suspend>;
194 #sound-dai-cells = <1>;
197 #address-cells = <1>;
202 adv7533_in: endpoint {
203 remote-endpoint = <&dsi0_out>;
209 adv7533_out: endpoint {
210 remote-endpoint = <&hdmi_con>;
218 /* On Low speed expansion */
224 /* On High speed expansion */
230 /* On Low speed expansion */
250 csiphy0_ep: endpoint {
253 remote-endpoint = <&ov5640_ep>;
266 compatible = "ovti,ov5640";
269 enable-gpios = <&msmgpio 34 GPIO_ACTIVE_HIGH>;
270 reset-gpios = <&msmgpio 35 GPIO_ACTIVE_LOW>;
271 pinctrl-names = "default";
272 pinctrl-0 = <&camera_rear_default>;
274 clocks = <&gcc GCC_CAMSS_MCLK0_CLK>;
275 clock-names = "xclk";
276 clock-frequency = <23880000>;
278 vdddo-supply = <&camera_vdddo_1v8>;
279 vdda-supply = <&camera_vdda_2v8>;
280 vddd-supply = <&camera_vddd_1v5>;
282 /* No camera mezzanine by default */
286 ov5640_ep: endpoint {
289 remote-endpoint = <&csiphy0_ep>;
296 data-lanes = <0 1 2 3>;
297 remote-endpoint = <&adv7533_in>;
310 linux,code = <KEY_VOLUMEDOWN>;
320 pinctrl-names = "default", "sleep";
321 pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
322 pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
328 pinctrl-names = "default", "sleep";
329 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
330 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
332 cd-gpios = <&msmgpio 38 GPIO_ACTIVE_LOW>;
338 pinctrl-0 = <&cdc_pdm_lines_act &ext_sec_tlmm_lines_act &ext_mclk_tlmm_lines_act>;
339 pinctrl-1 = <&cdc_pdm_lines_sus &ext_sec_tlmm_lines_sus &ext_mclk_tlmm_lines_sus>;
340 pinctrl-names = "default", "sleep";
341 qcom,model = "DB410c";
343 "AMIC2", "MIC BIAS Internal2",
344 "AMIC3", "MIC BIAS External1";
346 external-dai-link@0 {
347 link-name = "ADV7533";
349 sound-dai = <&lpass MI2S_QUATERNARY>;
352 sound-dai = <&adv_bridge 0>;
356 internal-codec-playback-dai-link@0 {
359 sound-dai = <&lpass MI2S_PRIMARY>;
362 sound-dai = <&lpass_codec 0>, <&wcd_codec 0>;
366 internal-codec-capture-dai-link@0 {
367 link-name = "WCD-Capture";
369 sound-dai = <&lpass MI2S_TERTIARY>;
372 sound-dai = <&lpass_codec 1>, <&wcd_codec 1>;
379 extcon = <&usb_id>, <&usb_id>;
381 pinctrl-names = "default", "device";
382 pinctrl-0 = <&usb_sw_sel_pm &usb_hub_reset_pm>;
383 pinctrl-1 = <&usb_sw_sel_pm_device &usb_hub_reset_pm_device>;
391 clocks = <&gcc GCC_CODEC_DIGCODEC_CLK>;
392 clock-names = "mclk";
393 qcom,mbhc-vthreshold-low = <75 150 237 450 500>;
394 qcom,mbhc-vthreshold-high = <75 150 237 450 500>;
397 /* Enable CoreSight */
398 &cti0 { status = "okay"; };
399 &cti1 { status = "okay"; };
400 &cti12 { status = "okay"; };
401 &cti13 { status = "okay"; };
402 &cti14 { status = "okay"; };
403 &cti15 { status = "okay"; };
404 &debug0 { status = "okay"; };
405 &debug1 { status = "okay"; };
406 &debug2 { status = "okay"; };
407 &debug3 { status = "okay"; };
408 &etf { status = "okay"; };
409 &etm0 { status = "okay"; };
410 &etm1 { status = "okay"; };
411 &etm2 { status = "okay"; };
412 &etm3 { status = "okay"; };
413 &etr { status = "okay"; };
414 &funnel0 { status = "okay"; };
415 &funnel1 { status = "okay"; };
416 &replicator { status = "okay"; };
417 &stm { status = "okay"; };
418 &tpiu { status = "okay"; };
420 &smd_rpm_regulators {
421 vdd_l1_l2_l3-supply = <&pm8916_s3>;
422 vdd_l4_l5_l6-supply = <&pm8916_s4>;
423 vdd_l7-supply = <&pm8916_s4>;
426 regulator-min-microvolt = <375000>;
427 regulator-max-microvolt = <1562000>;
431 regulator-min-microvolt = <1800000>;
432 regulator-max-microvolt = <1800000>;
439 regulator-min-microvolt = <375000>;
440 regulator-max-microvolt = <1525000>;
444 regulator-min-microvolt = <1200000>;
445 regulator-max-microvolt = <1200000>;
449 regulator-min-microvolt = <1750000>;
450 regulator-max-microvolt = <3337000>;
454 regulator-min-microvolt = <1750000>;
455 regulator-max-microvolt = <3337000>;
459 regulator-min-microvolt = <1800000>;
460 regulator-max-microvolt = <1800000>;
464 regulator-min-microvolt = <1750000>;
465 regulator-max-microvolt = <3337000>;
469 regulator-min-microvolt = <1750000>;
470 regulator-max-microvolt = <3337000>;
474 regulator-min-microvolt = <1750000>;
475 regulator-max-microvolt = <3337000>;
479 regulator-min-microvolt = <1750000>;
480 regulator-max-microvolt = <3337000>;
484 regulator-min-microvolt = <1750000>;
485 regulator-max-microvolt = <3337000>;
486 regulator-allow-set-load;
487 regulator-system-load = <200000>;
491 regulator-min-microvolt = <1750000>;
492 regulator-max-microvolt = <3337000>;
496 regulator-min-microvolt = <1750000>;
497 regulator-max-microvolt = <3337000>;
501 regulator-min-microvolt = <1750000>;
502 regulator-max-microvolt = <3337000>;
506 * 1.8v required on LS expansion
507 * for mezzanine boards
510 regulator-min-microvolt = <1750000>;
511 regulator-max-microvolt = <3337000>;
516 regulator-min-microvolt = <1750000>;
517 regulator-max-microvolt = <3337000>;
521 regulator-min-microvolt = <3300000>;
522 regulator-max-microvolt = <3300000>;
526 regulator-min-microvolt = <1750000>;
527 regulator-max-microvolt = <3337000>;
532 * 2mA drive strength is not enough when connecting multiple
533 * I2C devices with different pull up resistors.
536 drive-strength = <16>;
540 drive-strength = <16>;
544 drive-strength = <16>;
548 * GPIO name legend: proper name = the GPIO line is used as GPIO
549 * NC = not connected (pin out but not routed from the chip to
550 * anything the board)
551 * "[PER]" = pin is muxed for [peripheral] (not GPIO)
552 * LSEC = Low Speed External Connector
553 * HSEC = High Speed External Connector
555 * Line names are taken from the schematic "DragonBoard410c"
556 * dated monday, august 31, 2015. Page 5 in particular.
558 * For the lines routed to the external connectors the
559 * lines are named after the 96Boards CE Specification 1.0,
560 * Appendix "Expansion Connector Signal Description".
562 * When the 96Board naming of a line and the schematic name of
563 * the same line are in conflict, the 96Board specification
564 * takes precedence, which means that the external UART on the
565 * LSEC is named UART0 while the schematic and SoC names this
566 * UART3. This is only for the informational lines i.e. "[FOO]",
567 * the GPIO named lines "GPIO-A" thru "GPIO-L" are the only
568 * ones actually used for GPIO.
573 "[UART0_TX]", /* GPIO_0, LSEC pin 5 */
574 "[UART0_RX]", /* GPIO_1, LSEC pin 7 */
575 "[UART0_CTS_N]", /* GPIO_2, LSEC pin 3 */
576 "[UART0_RTS_N]", /* GPIO_3, LSEC pin 9 */
577 "[UART1_TX]", /* GPIO_4, LSEC pin 11 */
578 "[UART1_RX]", /* GPIO_5, LSEC pin 13 */
579 "[I2C0_SDA]", /* GPIO_8, LSEC pin 17 */
580 "[I2C0_SCL]", /* GPIO_7, LSEC pin 15 */
581 "[SPI1_DOUT]", /* SPI1_MOSI, HSEC pin 1 */
582 "[SPI1_DIN]", /* SPI1_MISO, HSEC pin 11 */
583 "[SPI1_CS]", /* SPI1_CS_N, HSEC pin 7 */
584 "[SPI1_SCLK]", /* SPI1_CLK, HSEC pin 9 */
585 "GPIO-B", /* LS_EXP_GPIO_B, LSEC pin 24 */
586 "GPIO-C", /* LS_EXP_GPIO_C, LSEC pin 25 */
587 "[I2C3_SDA]", /* HSEC pin 38 */
588 "[I2C3_SCL]", /* HSEC pin 36 */
589 "[SPI0_MOSI]", /* LSEC pin 14 */
590 "[SPI0_MISO]", /* LSEC pin 10 */
591 "[SPI0_CS_N]", /* LSEC pin 12 */
592 "[SPI0_CLK]", /* LSEC pin 8 */
593 "HDMI_HPD_N", /* GPIO 20 */
595 "[I2C1_SDA]", /* GPIO_22, LSEC pin 21 */
596 "[I2C1_SCL]", /* GPIO_23, LSEC pin 19 */
597 "GPIO-G", /* LS_EXP_GPIO_G, LSEC pin 29 */
598 "GPIO-H", /* LS_EXP_GPIO_H, LSEC pin 30 */
599 "[CSI0_MCLK]", /* HSEC pin 15 */
600 "[CSI1_MCLK]", /* HSEC pin 17 */
601 "GPIO-K", /* LS_EXP_GPIO_K, LSEC pin 33 */
602 "[I2C2_SDA]", /* HSEC pin 34 */
603 "[I2C2_SCL]", /* HSEC pin 32 */
606 "GPIO-L", /* LS_EXP_GPIO_L, LSEC pin 34 */
607 "GPIO-J", /* LS_EXP_GPIO_J, LSEC pin 32 */
608 "GPIO-I", /* LS_EXP_GPIO_I, LSEC pin 31 */
609 "GPIO-A", /* LS_EXP_GPIO_A, LSEC pin 23 */
613 "[WCSS_WLAN_DATA_2]", /* GPIO 40 */
614 "[WCSS_WLAN_DATA_1]",
615 "[WCSS_WLAN_DATA_0]",
642 "GPIO-D", /* LS_EXP_GPIO_D, LSEC pin 26 */
653 "BOOT_CONFIG_0", /* GPIO 80 */
683 "[LS_EXP_MI2S_WS]", /* GPIO 110 */
687 "[LS_EXP_MI2S_DATA0]",
688 "GPIO-E", /* LS_EXP_GPIO_E, LSEC pin 27 */
690 "[DSI2HDMI_MI2S_WS]",
691 "[DSI2HDMI_MI2S_SCK]",
692 "[DSI2HDMI_MI2S_DATA0]",
693 "USR_LED_2_CTRL", /* GPIO 120 */
696 msmgpio_leds: msmgpio-leds {
697 pins = "gpio21", "gpio120";
703 usb_id_default: usb-id-default {
707 drive-strength = <8>;
712 adv7533_int_active: adv533-int-active {
716 drive-strength = <16>;
720 adv7533_int_suspend: adv7533-int-suspend {
724 drive-strength = <2>;
728 adv7533_switch_active: adv7533-switch-active {
732 drive-strength = <16>;
736 adv7533_switch_suspend: adv7533-switch-suspend {
740 drive-strength = <2>;
744 msm_key_volp_n_default: msm-key-volp-n-default {
748 drive-strength = <8>;
758 "USB_HUB_RESET_N_PM",
761 usb_hub_reset_pm: usb-hub-reset-pm {
763 function = PMIC_GPIO_FUNC_NORMAL;
769 usb_hub_reset_pm_device: usb-hub-reset-pm-device {
771 function = PMIC_GPIO_FUNC_NORMAL;
776 usb_sw_sel_pm: usb-sw-sel-pm {
778 function = PMIC_GPIO_FUNC_NORMAL;
780 power-source = <PM8916_GPIO_VPH>;
785 usb_sw_sel_pm_device: usb-sw-sel-pm-device {
787 function = PMIC_GPIO_FUNC_NORMAL;
789 power-source = <PM8916_GPIO_VPH>;
794 pm8916_gpios_leds: pm8916-gpios-leds {
795 pins = "gpio1", "gpio2";
796 function = PMIC_GPIO_FUNC_NORMAL;
807 "GPIO-F"; /* LS_EXP_GPIO_F, LSEC pin 28 */
809 pinctrl-names = "default";
810 pinctrl-0 = <&ls_exp_gpio_f>;
812 ls_exp_gpio_f: pm8916-mpp4 {
814 function = "digital";
817 power-source = <PM8916_MPP_L5>; // 1.8V
820 pm8916_mpps_leds: pm8916-mpps-leds {
821 pins = "mpp2", "mpp3";
822 function = "digital";