diff mbox series

arm64: dts: qcom: sm8450: disable by default Soundwire and VA-macro

Message ID 20230102123734.478433-1-krzysztof.kozlowski@linaro.org (mailing list archive)
State Accepted
Commit b9ae6ddeded793c80747e4f80211379d001a263a
Headers show
Series arm64: dts: qcom: sm8450: disable by default Soundwire and VA-macro | expand

Commit Message

Krzysztof Kozlowski Jan. 2, 2023, 12:37 p.m. UTC
Soundwire is a bus and VA-macro requires a supply, thus both are
expected to be explicitly enabled and populated by board DTS.  The
HDK8450 already enables Soundwire devices, except swr4 which as a result
of this commit will stay disabled.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 arch/arm64/boot/dts/qcom/sm8450-hdk.dts | 4 ++++
 arch/arm64/boot/dts/qcom/sm8450.dtsi    | 5 +++++
 2 files changed, 9 insertions(+)

Comments

Bjorn Andersson Jan. 3, 2023, 3:15 a.m. UTC | #1
On Mon, 2 Jan 2023 13:37:34 +0100, Krzysztof Kozlowski wrote:
> Soundwire is a bus and VA-macro requires a supply, thus both are
> expected to be explicitly enabled and populated by board DTS.  The
> HDK8450 already enables Soundwire devices, except swr4 which as a result
> of this commit will stay disabled.
> 
> 

Applied, thanks!

[1/1] arm64: dts: qcom: sm8450: disable by default Soundwire and VA-macro
      commit: b9ae6ddeded793c80747e4f80211379d001a263a

Best regards,
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts
index 4de3e1f1c39c..d27a8f42d522 100644
--- a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts
+++ b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts
@@ -516,6 +516,8 @@  platform {
 };
 
 &swr0 {
+	status = "okay";
+
 	left_spkr: speaker@0,1 {
 		compatible = "sdw10217020200";
 		reg = <0 1>;
@@ -622,6 +624,8 @@  &vamacro {
 	pinctrl-names = "default";
 	vdd-micb-supply = <&vreg_s10b_1p8>;
 	qcom,dmic-sample-rate = <600000>;
+
+	status = "okay";
 };
 
 &tlmm {
diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi
index 61575f6fab0b..e241c05bdd77 100644
--- a/arch/arm64/boot/dts/qcom/sm8450.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi
@@ -2143,6 +2143,7 @@  swr4: soundwire-controller@31f0000 {
 			#address-cells = <2>;
 			#size-cells = <0>;
 			#sound-dai-cells = <1>;
+			status = "disabled";
 		};
 
 		rxmacro: codec@3200000 {
@@ -2189,6 +2190,7 @@  swr1: soundwire-controller@3210000 {
 			#address-cells = <2>;
 			#size-cells = <0>;
 			#sound-dai-cells = <1>;
+			status = "disabled";
 		};
 
 		txmacro: codec@3220000 {
@@ -2256,6 +2258,7 @@  swr0: soundwire-controller@3250000 {
 			#address-cells = <2>;
 			#size-cells = <0>;
 			#sound-dai-cells = <1>;
+			status = "disabled";
 		};
 
 		swr2: soundwire-controller@33b0000 {
@@ -2284,6 +2287,7 @@  swr2: soundwire-controller@33b0000 {
 			#address-cells = <2>;
 			#size-cells = <0>;
 			#sound-dai-cells = <1>;
+			status = "disabled";
 		};
 
 		vamacro: codec@33f0000 {
@@ -2300,6 +2304,7 @@  vamacro: codec@33f0000 {
 			#clock-cells = <0>;
 			clock-output-names = "fsgen";
 			#sound-dai-cells = <1>;
+			status = "disabled";
 		};
 
 		remoteproc_adsp: remoteproc@30000000 {