arm64: dts: qcom: sc8280xp: add resets for soundwire controllers
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Thu, 8 Jun 2023 12:53:14 +0000 (13:53 +0100)
committerBjorn Andersson <andersson@kernel.org>
Tue, 13 Jun 2023 18:13:23 +0000 (11:13 -0700)
Soundwire controllers on sc8280xp needs an explicit reset, add
support for this.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Reviewed-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230608125315.11454-6-srinivas.kandagatla@linaro.org
arch/arm64/boot/dts/qcom/sc8280xp.dtsi

index 4f64ada..2f7ead4 100644 (file)
@@ -7,6 +7,7 @@
 #include <dt-bindings/clock/qcom,dispcc-sc8280xp.h>
 #include <dt-bindings/clock/qcom,gcc-sc8280xp.h>
 #include <dt-bindings/clock/qcom,rpmh.h>
+#include <dt-bindings/clock/qcom,sc8280xp-lpasscc.h>
 #include <dt-bindings/interconnect/qcom,osm-l3.h>
 #include <dt-bindings/interconnect/qcom,sc8280xp.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
                        interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&rxmacro>;
                        clock-names = "iface";
+                       resets = <&lpass_audiocc LPASS_AUDIO_SWR_RX_CGCR>;
+                       reset-names = "swr_audio_cgcr";
                        label = "RX";
 
                        qcom,din-ports = <0>;
                        interrupts = <GIC_SPI 170 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&wsamacro>;
                        clock-names = "iface";
+                       resets = <&lpass_audiocc LPASS_AUDIO_SWR_WSA_CGCR>;
+                       reset-names = "swr_audio_cgcr";
                        label = "WSA";
 
                        qcom,din-ports = <2>;
                        status = "disabled";
                };
 
+               lpass_audiocc: clock-controller@32a9000 {
+                       compatible = "qcom,sc8280xp-lpassaudiocc";
+                       reg = <0 0x032a9000 0 0x1000>;
+                       #clock-cells = <1>;
+                       #reset-cells = <1>;
+               };
+
                swr2: soundwire-controller@3330000 {
                        compatible = "qcom,soundwire-v1.6.0";
                        reg = <0 0x03330000 0 0x2000>;
 
                        clocks = <&txmacro>;
                        clock-names = "iface";
+                       resets = <&lpasscc LPASS_AUDIO_SWR_TX_CGCR>;
+                       reset-names = "swr_audio_cgcr";
                        label = "TX";
                        #sound-dai-cells = <1>;
                        #address-cells = <2>;
                        };
                };
 
+               lpasscc: clock-controller@33e0000 {
+                       compatible = "qcom,sc8280xp-lpasscc";
+                       reg = <0 0x033e0000 0 0x12000>;
+                       #clock-cells = <1>;
+                       #reset-cells = <1>;
+               };
+
                sdc2: mmc@8804000 {
                        compatible = "qcom,sc8280xp-sdhci", "qcom,sdhci-msm-v5";
                        reg = <0 0x08804000 0 0x1000>;