OSDN Git Service

arm64: dts: qcom: sc7280: Enable digital codecs and soundwire for CRD 1.0/2.0 and...
authorSrinivasa Rao Mandadapu <quic_srivasam@quicinc.com>
Thu, 7 Jul 2022 13:22:54 +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 on revision 3,
4 (aka CRD 1.0 and 2.0) and IDP 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-3-git-send-email-quic_srivasam@quicinc.com
arch/arm64/boot/dts/qcom/sc7280-idp.dtsi

index 0c48db6..4d40964 100644 (file)
        modem-init;
 };
 
+&lpass_rx_macro {
+       status = "okay";
+};
+
+&lpass_tx_macro {
+       status = "okay";
+};
+
+&lpass_va_macro {
+       status = "okay";
+       vdd-micb-supply = <&vreg_bob>;
+};
+
 &pcie1 {
        status = "okay";
        perst-gpios = <&tlmm 2 GPIO_ACTIVE_LOW>;
        cd-gpios = <&tlmm 91 GPIO_ACTIVE_LOW>;
 };
 
+&swr0 {
+       status = "okay";
+
+       wcd_rx: codec@0,4 {
+               compatible = "sdw20217010d00";
+               reg = <0 4>;
+               #sound-dai-cells = <1>;
+               qcom,rx-port-mapping = <1 2 3 4 5>;
+       };
+};
+
+&swr1 {
+       status = "okay";
+
+       wcd_tx: codec@0,3 {
+               compatible = "sdw20217010d00";
+               reg = <0 3>;
+               #sound-dai-cells = <1>;
+               qcom,tx-port-mapping = <1 2 3 4>;
+       };
+};
+
 &uart5 {
        compatible = "qcom,geni-debug-uart";
        status = "okay";