Phani Kumar Uppalapati | aefa88fa | 2017-06-26 18:44:32 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017, 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 | #include "sdm845-audio-overlay.dtsi" |
| 15 | |
| 16 | &soc { |
| 17 | sound-tavil { |
| 18 | qcom,wsa-max-devs = <1>; |
| 19 | qcom,wsa-devs = <&wsa881x_0211>, <&wsa881x_0213>; |
| 20 | qcom,wsa-aux-dev-prefix = "SpkrRight", "SpkrRight"; |
| 21 | |
| 22 | qcom,msm-mbhc-usbc-audio-supported = <1>; |
| 23 | |
| 24 | qcom,usbc-analog-en2-gpio = <&tlmm 51 0>; |
| 25 | pinctrl-names = "aud_active", "aud_sleep"; |
| 26 | pinctrl-0 = <&wcd_usbc_analog_en2_active>; |
| 27 | pinctrl-1 = <&wcd_usbc_analog_en2_idle>; |
| 28 | }; |
| 29 | }; |
| 30 | |
| 31 | &wcd934x_cdc { |
| 32 | wcd_pinctrl@5 { |
| 33 | us_euro_sw_wcd_active { |
| 34 | mux { |
| 35 | pins = "gpio1"; |
| 36 | }; |
| 37 | |
| 38 | config { |
| 39 | pins = "gpio1"; |
| 40 | /delete-property/ output-high; |
| 41 | bias-high-impedance; |
| 42 | }; |
| 43 | }; |
| 44 | |
| 45 | us_euro_sw_wcd_sleep { |
| 46 | mux { |
| 47 | pins = "gpio1"; |
| 48 | }; |
| 49 | |
| 50 | config { |
| 51 | pins = "gpio1"; |
| 52 | /delete-property/ output-low; |
| 53 | bias-high-impedance; |
| 54 | }; |
| 55 | }; |
| 56 | }; |
| 57 | |
| 58 | swr_master { |
| 59 | wsa881x@20170211 { |
| 60 | compatible = "qcom,wsa881x"; |
| 61 | reg = <0x00 0x20170211>; |
| 62 | qcom,spkr-sd-n-node = <&wsa_spkr_wcd_sd2>; |
| 63 | }; |
| 64 | |
| 65 | wsa881x@21170213 { |
| 66 | compatible = "qcom,wsa881x"; |
| 67 | reg = <0x00 0x21170213>; |
| 68 | qcom,spkr-sd-n-node = <&wsa_spkr_wcd_sd2>; |
| 69 | }; |
| 70 | }; |
| 71 | }; |
| 72 | |