arm64: dts: qcom: sc7280: Enable digital codecs and soundwire for CRD 3.0/3.1
authorSrinivasa Rao Mandadapu <quic_srivasam@quicinc.com>
Thu, 7 Jul 2022 13:22:55 +0000 (18:52 +0530)
committerBjorn Andersson <andersson@kernel.org>
Tue, 13 Sep 2022 14:57:24 +0000 (09:57 -0500)
Enable rx, tx and va macro codecs and soundwire nodes for
CRD rev5+ (aka CRD 3.0/3.1) boards.

Signed-off-by: Srinivasa Rao Mandadapu <quic_srivasam@quicinc.com>
Co-developed-by: Venkata Prasad Potturu <quic_potturu@quicinc.com>
Signed-off-by: Venkata Prasad Potturu <quic_potturu@quicinc.com>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/1657200184-29565-4-git-send-email-quic_srivasam@quicinc.com
arch/arm64/boot/dts/qcom/sc7280-herobrine-audio-wcd9385.dtsi
arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi

index 859faaa..1c0bb7c 100644 (file)
@@ -5,6 +5,28 @@
  * Copyright (c) 2022, The Linux Foundation. All rights reserved.
  */
 
+/* ADDITIONS TO NODES DEFINED IN PARENT DEVICE TREE FILES */
+
+&lpass_rx_macro {
+       status = "okay";
+};
+
+&lpass_tx_macro {
+       status = "okay";
+};
+
+&lpass_va_macro {
+       status = "okay";
+};
+
+&swr0 {
+       status = "okay";
+};
+
+&swr1 {
+       status = "okay";
+};
+
 /* PINCTRL */
 
 &lpass_dmic01_clk {
index 7cd91df..85d351e 100644 (file)
        modem-init;
 };
 
+&lpass_va_macro {
+       vdd-micb-supply = <&vreg_bob>;
+};
+
 /* NOTE: Not all Qcards have eDP connector stuffed */
 &mdss_edp {
        aux-bus {
        no-sdio;
 };
 
+&swr0 {
+       wcd_rx: codec@0,4 {
+               compatible = "sdw20217010d00";
+               reg = <0 4>;
+               #sound-dai-cells = <1>;
+               qcom,rx-port-mapping = <1 2 3 4 5>;
+       };
+};
+
+&swr1 {
+       wcd_tx: codec@0,3 {
+               compatible = "sdw20217010d00";
+               reg = <0 3>;
+               #sound-dai-cells = <1>;
+               qcom,tx-port-mapping = <1 2 3 4>;
+       };
+};
+
 uart_dbg: &uart5 {
        compatible = "qcom,geni-debug-uart";
        status = "okay";