Tiequan Luo | 7984a52 | 2018-05-07 11:22:27 +0800 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2018, The Linux Foundation. All rights reserved. |
| 3 | * |
| 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. |
| 7 | * |
| 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. |
| 12 | */ |
| 13 | |
| 14 | /dts-v1/; |
| 15 | |
| 16 | #include "msm8909-mtp.dtsi" |
| 17 | #include "8909-pm8916.dtsi" |
| 18 | #include "msm8909-pm8916-mtp.dtsi" |
| 19 | #include "apq8009-audio-external_codec.dtsi" |
| 20 | |
| 21 | / { |
| 22 | model = "Qualcomm Technologies, Inc. APQ8009 Robot SOM refboard"; |
| 23 | compatible = "qcom,apq8009-mtp", "qcom,apq8009", "qcom,mtp"; |
| 24 | qcom,msm-id = <265 2>; |
| 25 | qcom,board-id = <8 0x15>; |
| 26 | }; |
| 27 | |
| 28 | &soc { |
| 29 | ext-codec { |
| 30 | qcom,msm-mbhc-hphl-swh = <0>; |
| 31 | qcom,audio-routing = |
| 32 | "AIF4 VI", "MCLK", |
| 33 | "RX_BIAS", "MCLK", |
| 34 | "MADINPUT", "MCLK", |
| 35 | "AMIC2", "MIC BIAS2", |
| 36 | "MIC BIAS2", "Headset Mic", |
| 37 | "DMIC0", "MIC BIAS1", |
| 38 | "MIC BIAS1", "Digital Mic0", |
| 39 | "DMIC1", "MIC BIAS1", |
| 40 | "MIC BIAS1", "Digital Mic1", |
| 41 | "DMIC2", "MIC BIAS3", |
| 42 | "MIC BIAS3", "Digital Mic2", |
| 43 | "DMIC3", "MIC BIAS3", |
| 44 | "MIC BIAS3", "Digital Mic3", |
| 45 | "SpkrLeft IN", "SPK1 OUT", |
| 46 | "SpkrRight IN", "SPK2 OUT"; |
| 47 | }; |
| 48 | |
| 49 | sound-9335 { |
| 50 | status = "disabled"; |
| 51 | }; |
| 52 | |
| 53 | i2c@78b8000 { |
| 54 | wcd9xxx_codec@d { |
| 55 | status = "disabled"; |
| 56 | }; |
| 57 | }; |
| 58 | |
| 59 | vph_pwr_vreg: vph_pwr_vreg { |
| 60 | compatible = "regulator-fixed"; |
| 61 | status = "ok"; |
| 62 | regulator-name = "vph_pwr"; |
| 63 | regulator-always-on; |
| 64 | }; |
| 65 | |
| 66 | mdss_mdp: qcom,mdss_mdp@1a00000 { |
| 67 | status = "disabled"; |
| 68 | }; |
| 69 | }; |
| 70 | |
| 71 | &sdhc_2 { |
| 72 | status = "disabled"; |
| 73 | }; |
| 74 | |
| 75 | &usb_otg { |
| 76 | interrupts = <0 134 0>,<0 140 0>,<0 136 0>; |
| 77 | interrupt-names = "core_irq", "async_irq", "phy_irq"; |
| 78 | qcom,hsusb-otg-mode = <3>; |
| 79 | qcom,switch-vbus-w-id; |
| 80 | vbus_otg-supply = <&vph_pwr_vreg>; |
| 81 | extcon = <&pm8916_chg>; |
| 82 | }; |
| 83 | |
| 84 | &external_image_mem { |
| 85 | reg = <0x0 0x87a00000 0x0 0x0600000>; |
| 86 | }; |
| 87 | |
| 88 | &modem_adsp_mem { |
| 89 | reg = <0x0 0x88000000 0x0 0x01e00000>; |
| 90 | }; |
| 91 | |
| 92 | &peripheral_mem { |
| 93 | reg = <0x0 0x89e00000 0x0 0x0700000>; |
| 94 | }; |
| 95 | |
| 96 | &pm8916_chg { |
| 97 | status = "ok"; |
| 98 | }; |
| 99 | |
| 100 | &pm8916_bms { |
| 101 | status = "ok"; |
| 102 | }; |