diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2020-08-18 14:50:00 +0100 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2021-11-18 11:48:27 +0530 |
commit | 1a3bb83dc34b44f8881b8fbb92eb7c3e46c61b94 (patch) | |
tree | a5120f732e40f96e44eda01c5d9cd6a0d13d72a4 | |
parent | 5f2c3bae9f95764277737a81fc6bf6ce159cad69 (diff) |
arm64: dts: sm8250-mtp: add analog audio support
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
-rw-r--r-- | arch/arm64/boot/dts/qcom/sm8250-mtp.dts | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/qcom/sm8250-mtp.dts b/arch/arm64/boot/dts/qcom/sm8250-mtp.dts index 41376880525e..4471179176a3 100644 --- a/arch/arm64/boot/dts/qcom/sm8250-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sm8250-mtp.dts @@ -6,6 +6,9 @@ /dts-v1/; #include <dt-bindings/regulator/qcom,rpmh-regulator.h> +#include <dt-bindings/sound/qcom,q6afe.h> +#include <dt-bindings/sound/qcom,q6asm.h> +#include <dt-bindings/gpio/gpio.h> #include "sm8250.dtsi" #include "pm8150.dtsi" #include "pm8150b.dtsi" @@ -774,6 +777,63 @@ vdda-pll-supply = <&vreg_l18a_0p9>; }; +&swr0 { + left_right: wsa8810-right{ + compatible = "sdw10217211000"; + reg = <0 2>; + powerdown-gpios = <&tlmm 127 GPIO_ACTIVE_HIGH>; + #thermal-sensor-cells = <0>; + sound-name-prefix = "SpkrRight"; + #sound-dai-cells = <0>; + }; + + left_spkr: wsa8810-left{ + compatible = "sdw10217211000"; + reg = <0 1>; + powerdown-gpios = <&tlmm 26 GPIO_ACTIVE_HIGH>; + #thermal-sensor-cells = <0>; + sound-name-prefix = "SpkrLeft"; + #sound-dai-cells = <0>; + }; +}; + +&q6asmdai { + dai@0 { + reg = <0>; + direction = <2>; + }; +}; + +&sound { + compatible = "qcom,sm8250-sndcard"; + model = "SM8250"; + audio-routing = + "SpkrLeft IN", "WSA_SPK1 OUT", + "MM_DL1", "MultiMedia1 Playback"; + + mm1-dai-link { + link-name = "MultiMedia1"; + cpu { + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>; + }; + }; + + dma-dai-link { + link-name = "WSA Playback"; + cpu { + sound-dai = <&q6afedai WSA_CODEC_DMA_RX_0>; + }; + + platform { + sound-dai = <&q6routing>; + }; + + codec { + sound-dai = <&left_spkr>, <&swr0 0>, <&wsamacro 0>; + }; + }; +}; + &venus { status = "okay"; }; |