| /* |
| * Copyright (c) 2018, The Linux Foundation. All rights reserved. |
| * |
| * This program is free software; you can redistribute it and/or modify |
| * it under the terms of the GNU General Public License version 2 and |
| * only version 2 as published by the Free Software Foundation. |
| * |
| * This program is distributed in the hope that it will be useful, |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| * GNU General Public License for more details. |
| */ |
| |
| /dts-v1/; |
| |
| #include "msm8909-mtp.dtsi" |
| #include "8909-pm8916.dtsi" |
| #include "msm8909-pm8916-mtp.dtsi" |
| #include "apq8009-audio-external_codec.dtsi" |
| |
| / { |
| model = "Qualcomm Technologies, Inc. APQ8009 Dragon Board"; |
| compatible = "qcom,apq8009-mtp", "qcom,apq8009", "qcom,mtp"; |
| qcom,msm-id = <265 2>; |
| qcom,board-id = <32 0x0>; |
| }; |
| |
| &soc { |
| ext-codec { |
| qcom,msm-mbhc-hphl-swh = <0>; |
| qcom,audio-routing = |
| "AIF4 VI", "MCLK", |
| "RX_BIAS", "MCLK", |
| "MADINPUT", "MCLK", |
| "AMIC2", "MIC BIAS2", |
| "MIC BIAS2", "Headset Mic", |
| "DMIC0", "MIC BIAS1", |
| "MIC BIAS1", "Digital Mic0", |
| "DMIC1", "MIC BIAS1", |
| "MIC BIAS1", "Digital Mic1", |
| "DMIC2", "MIC BIAS3", |
| "MIC BIAS3", "Digital Mic2", |
| "DMIC3", "MIC BIAS3", |
| "MIC BIAS3", "Digital Mic3", |
| "SpkrLeft IN", "SPK1 OUT", |
| "SpkrRight IN", "SPK2 OUT"; |
| }; |
| |
| sound-9335 { |
| status = "disabled"; |
| }; |
| |
| i2c@78b8000 { |
| wcd9xxx_codec@d { |
| status = "disabled"; |
| }; |
| }; |
| |
| vph_pwr_vreg: vph_pwr_vreg { |
| compatible = "regulator-fixed"; |
| status = "ok"; |
| regulator-name = "vph_pwr"; |
| regulator-always-on; |
| }; |
| |
| mdss_mdp: qcom,mdss_mdp@1a00000 { |
| status = "disabled"; |
| }; |
| |
| bluetooth: bt_qca9379 { |
| compatible = "qca,qca9379"; |
| qca,bt-reset-gpio = <&msm_gpio 47 0>; /* BT_EN */ |
| }; |
| |
| cnss_sdio: qcom,cnss_sdio { |
| compatible = "qcom,cnss_sdio"; |
| subsys-name = "AR6320"; |
| /** |
| * There is no vdd-wlan on board and this is not for DSRC. |
| * IO and XTAL share the same vreg. |
| **/ |
| vdd-wlan-io-supply = <&pm8916_l5>; |
| qcom,cap-tsf-gpio = <&msm_gpio 42 1>; |
| qcom,wlan-ramdump-dynamic = <0x200000>; |
| qcom,msm-bus,name = "msm-cnss"; |
| qcom,msm-bus,num-cases = <4>; |
| qcom,msm-bus,num-paths = <1>; |
| qcom,msm-bus,vectors-KBps = |
| <79 512 0 0>, /* No vote */ |
| <79 512 6250 200000>, /* 50 Mbps */ |
| <79 512 25000 200000>, /* 200 Mbps */ |
| <79 512 2048000 4096000>; /* MAX */ |
| }; |
| }; |
| |
| &wcnss { |
| status = "disabled"; |
| }; |
| |
| &msm_gpio { |
| sdc2_wlan_gpio_on: sdc2_wlan_gpio_on { |
| mux { |
| pins = "gpio43"; |
| function = "gpio"; |
| }; |
| config { |
| pins = "gpio43"; |
| drive-strength = <10>; |
| bias-pull-up; |
| output-high; |
| }; |
| }; |
| |
| sdc2_wlan_gpio_off: sdc2_wlan_gpio_off { |
| mux { |
| pins = "gpio43"; |
| function = "gpio"; |
| }; |
| config { |
| pins = "gpio43"; |
| drive-strength = <2>; |
| bias-disable; |
| output-low; |
| }; |
| }; |
| }; |
| |
| &sdhc_2 { |
| /delete-property/cd-gpios; |
| #address-cells = <0>; |
| interrupt-parent = <&sdhc_2>; |
| interrupts = <0 1 2>; |
| #interrupt-cells = <1>; |
| interrupt-map-mask = <0xffffffff>; |
| interrupt-map = <0 &intc 0 125 0 |
| 1 &intc 0 221 0 |
| 2 &msm_gpio 40 0x1>; |
| interrupt-names = "hc_irq", "pwr_irq", "sdiowakeup_irq"; |
| |
| qcom,vdd-voltage-level = <1800000 2950000>; |
| qcom,vdd-current-level = <15000 400000>; |
| |
| qcom,vdd-io-voltage-level = <1800000 1800000>; |
| qcom,vdd-io-current-level = <200 50000>; |
| qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>; |
| qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50", "SDR104"; |
| |
| pinctrl-names = "active", "sleep"; |
| pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on |
| &sdc2_wlan_gpio_on>; |
| pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off |
| &sdc2_wlan_gpio_off>; |
| qcom,nonremovable; |
| qcom,core_3_0v_support; |
| status = "ok"; |
| }; |
| |
| &usb_otg { |
| interrupts = <0 134 0>,<0 140 0>,<0 136 0>; |
| interrupt-names = "core_irq", "async_irq", "phy_irq"; |
| qcom,hsusb-otg-mode = <3>; |
| qcom,switch-vbus-w-id; |
| vbus_otg-supply = <&vph_pwr_vreg>; |
| extcon = <&pm8916_chg>; |
| }; |
| |
| &external_image_mem { |
| reg = <0x0 0x87a00000 0x0 0x0600000>; |
| }; |
| |
| &modem_adsp_mem { |
| reg = <0x0 0x88000000 0x0 0x01e00000>; |
| }; |
| |
| &peripheral_mem { |
| reg = <0x0 0x89e00000 0x0 0x0700000>; |
| }; |
| |
| &i2c_4 { |
| smb1360_otg_supply: smb1360-chg-fg@14 { |
| compatible = "qcom,smb1360-chg-fg"; |
| reg = <0x14>; |
| interrupt-parent = <&msm_gpio>; |
| interrupts = <58 8>; |
| pinctrl-names = "default"; |
| pinctrl-0 = <&smb_int_default>; |
| qcom,charging-disabled; |
| qcom,empty-soc-disabled; |
| qcom,chg-inhibit-disabled; |
| qcom,float-voltage-mv = <4200>; |
| qcom,iterm-ma = <200>; |
| qcom,recharge-thresh-mv = <100>; |
| qcom,thermal-mitigation = <1500 700 600 0>; |
| regulator-name = "smb1360_otg_vreg"; |
| status= "disabled"; |
| }; |
| }; |
| |
| &firmware { |
| android { |
| compatible = "android,firmware"; |
| fstab { |
| compatible = "android,fstab"; |
| vendor_fstab: vendor { |
| fsmgr_flags = "wait,slotselect"; |
| }; |
| /delete-node/ system; |
| }; |
| }; |
| }; |
| |
| &pm8916_chg { |
| status = "ok"; |
| qcom,use-default-batt-values; |
| }; |
| |
| &pm8916_bms { |
| status = "ok"; |
| }; |
| |
| &blsp1_uart2_hs { |
| status = "ok"; |
| }; |