* [PATCH 0/9] arm64: dts: qcom: x1: Disable audio codecs by default
@ 2025-08-13 15:58 Stephan Gerhold
2025-08-13 15:58 ` [PATCH 1/9] arm64: dts: qcom: x1-asus-zenbook-a14: Explicitly enable used audio codecs Stephan Gerhold
` (10 more replies)
0 siblings, 11 replies; 15+ messages in thread
From: Stephan Gerhold @ 2025-08-13 15:58 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio
Cc: Krzysztof Kozlowski, linux-arm-msm, devicetree, linux-kernel,
Abel Vesa, Johan Hovold
Currently, the macro audio codecs are enabled by default in x1e80100.dtsi.
However, they do not probe without the ADSP remoteproc, which is disabled
by default. Also, not all boards make use of all the audio codecs, e.g.
there are several boards with just two speakers. In this case, the
&lpass_wsa2macro is not used.
Disable the audio codecs by default in x1e80100.dtsi and enable only the
used macros for each device.
Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org>
---
Stephan Gerhold (9):
arm64: dts: qcom: x1-asus-zenbook-a14: Explicitly enable used audio codecs
arm64: dts: qcom: x1-crd: Explicitly enable used audio codecs
arm64: dts: qcom: x1e001de-devkit: Explicitly enable used audio codecs
arm64: dts: qcom: x1e78100-lenovo-thinkpad-t14s: Explicitly enable used audio codecs
arm64: dts: qcom: x1e80100-hp-omnibook-x14: Explicitly enable used audio codecs
arm64: dts: qcom: x1e80100-lenovo-yoga-slim7x: Explicitly enable used audio codecs
arm64: dts: qcom: x1e80100-microsoft-romulus: Explicitly enable used audio codecs
arm64: dts: qcom: x1e80100-qcp: Explicitly enable used audio codecs
arm64: dts: qcom: x1e80100: Disable audio codecs by default
arch/arm64/boot/dts/qcom/x1-asus-zenbook-a14.dtsi | 16 ++++++++++++++++
arch/arm64/boot/dts/qcom/x1-crd.dtsi | 20 ++++++++++++++++++++
arch/arm64/boot/dts/qcom/x1e001de-devkit.dts | 13 +++++++++++++
.../boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dtsi | 16 ++++++++++++++++
.../arm64/boot/dts/qcom/x1e80100-hp-omnibook-x14.dts | 16 ++++++++++++++++
.../boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts | 12 ++++++++++++
.../boot/dts/qcom/x1e80100-microsoft-romulus.dtsi | 16 ++++++++++++++++
arch/arm64/boot/dts/qcom/x1e80100-qcp.dts | 19 +++++++++++++++++++
arch/arm64/boot/dts/qcom/x1e80100.dtsi | 12 ++++++++++++
9 files changed, 140 insertions(+)
---
base-commit: 33a21dab19b31540dfeb06dde02e55129a10aec4
change-id: 20250813-x1e80100-disable-audio-codecs-ef258fcea345
Best regards,
--
Stephan Gerhold <stephan.gerhold@linaro.org>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH 1/9] arm64: dts: qcom: x1-asus-zenbook-a14: Explicitly enable used audio codecs
2025-08-13 15:58 [PATCH 0/9] arm64: dts: qcom: x1: Disable audio codecs by default Stephan Gerhold
@ 2025-08-13 15:58 ` Stephan Gerhold
2025-08-13 15:58 ` [PATCH 2/9] arm64: dts: qcom: x1-crd: " Stephan Gerhold
` (9 subsequent siblings)
10 siblings, 0 replies; 15+ messages in thread
From: Stephan Gerhold @ 2025-08-13 15:58 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio
Cc: Krzysztof Kozlowski, linux-arm-msm, devicetree, linux-kernel,
Abel Vesa, Johan Hovold
Currently, the macro audio codecs are enabled by default in x1e80100.dtsi.
However, they do not probe without the ADSP remoteproc, which is disabled
by default. Also, not all boards make use of all the audio codecs, e.g.
there are several boards with just two speakers. In this case, the
&lpass_wsa2macro is not used.
In preparation of disabling the audio codecs by default in x1e80100.dtsi,
add the missing status lines to explicitly enable the used audio codecs.
Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org>
---
arch/arm64/boot/dts/qcom/x1-asus-zenbook-a14.dtsi | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/x1-asus-zenbook-a14.dtsi b/arch/arm64/boot/dts/qcom/x1-asus-zenbook-a14.dtsi
index 16d045cf64c08c02c420787e000f4f45cfc2c6ff..9e6dd0bb527a3b11f9e09d498f3ccc117d52fd0f 100644
--- a/arch/arm64/boot/dts/qcom/x1-asus-zenbook-a14.dtsi
+++ b/arch/arm64/boot/dts/qcom/x1-asus-zenbook-a14.dtsi
@@ -958,7 +958,13 @@ keyboard@15 {
};
};
+&lpass_rxmacro {
+ status = "okay";
+};
+
&lpass_tlmm {
+ status = "okay";
+
spkr_01_sd_n_active: spkr-01-sd-n-active-state {
pins = "gpio12";
function = "gpio";
@@ -968,12 +974,22 @@ spkr_01_sd_n_active: spkr-01-sd-n-active-state {
};
};
+&lpass_txmacro {
+ status = "okay";
+};
+
&lpass_vamacro {
pinctrl-0 = <&dmic01_default>;
pinctrl-names = "default";
vdd-micb-supply = <&vreg_l1b_1p8>;
qcom,dmic-sample-rate = <4800000>;
+
+ status = "okay";
+};
+
+&lpass_wsamacro {
+ status = "okay";
};
&mdss {
--
2.50.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 2/9] arm64: dts: qcom: x1-crd: Explicitly enable used audio codecs
2025-08-13 15:58 [PATCH 0/9] arm64: dts: qcom: x1: Disable audio codecs by default Stephan Gerhold
2025-08-13 15:58 ` [PATCH 1/9] arm64: dts: qcom: x1-asus-zenbook-a14: Explicitly enable used audio codecs Stephan Gerhold
@ 2025-08-13 15:58 ` Stephan Gerhold
2025-08-13 15:59 ` [PATCH 3/9] arm64: dts: qcom: x1e001de-devkit: " Stephan Gerhold
` (8 subsequent siblings)
10 siblings, 0 replies; 15+ messages in thread
From: Stephan Gerhold @ 2025-08-13 15:58 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio
Cc: Krzysztof Kozlowski, linux-arm-msm, devicetree, linux-kernel,
Abel Vesa, Johan Hovold
Currently, the macro audio codecs are enabled by default in x1e80100.dtsi.
However, they do not probe without the ADSP remoteproc, which is disabled
by default. Also, not all boards make use of all the audio codecs, e.g.
there are several boards with just two speakers. In this case, the
&lpass_wsa2macro is not used.
In preparation of disabling the audio codecs by default in x1e80100.dtsi,
add the missing status lines to explicitly enable the used audio codecs.
Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org>
---
arch/arm64/boot/dts/qcom/x1-crd.dtsi | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/x1-crd.dtsi b/arch/arm64/boot/dts/qcom/x1-crd.dtsi
index e3d2fc342bd184473b37882f3bc4f9c4d23135bd..21eaeeff3ec3a668477859c466176ff1d1e0d82c 100644
--- a/arch/arm64/boot/dts/qcom/x1-crd.dtsi
+++ b/arch/arm64/boot/dts/qcom/x1-crd.dtsi
@@ -1114,7 +1114,13 @@ touchscreen@10 {
};
};
+&lpass_rxmacro {
+ status = "okay";
+};
+
&lpass_tlmm {
+ status = "okay";
+
spkr_01_sd_n_active: spkr-01-sd-n-active-state {
pins = "gpio12";
function = "gpio";
@@ -1132,12 +1138,26 @@ spkr_23_sd_n_active: spkr-23-sd-n-active-state {
};
};
+&lpass_txmacro {
+ status = "okay";
+};
+
&lpass_vamacro {
pinctrl-0 = <&dmic01_default>, <&dmic23_default>;
pinctrl-names = "default";
vdd-micb-supply = <&vreg_l1b_1p8>;
qcom,dmic-sample-rate = <4800000>;
+
+ status = "okay";
+};
+
+&lpass_wsamacro {
+ status = "okay";
+};
+
+&lpass_wsa2macro {
+ status = "okay";
};
&mdss {
--
2.50.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 3/9] arm64: dts: qcom: x1e001de-devkit: Explicitly enable used audio codecs
2025-08-13 15:58 [PATCH 0/9] arm64: dts: qcom: x1: Disable audio codecs by default Stephan Gerhold
2025-08-13 15:58 ` [PATCH 1/9] arm64: dts: qcom: x1-asus-zenbook-a14: Explicitly enable used audio codecs Stephan Gerhold
2025-08-13 15:58 ` [PATCH 2/9] arm64: dts: qcom: x1-crd: " Stephan Gerhold
@ 2025-08-13 15:59 ` Stephan Gerhold
2025-08-13 15:59 ` [PATCH 4/9] arm64: dts: qcom: x1e78100-lenovo-thinkpad-t14s: " Stephan Gerhold
` (7 subsequent siblings)
10 siblings, 0 replies; 15+ messages in thread
From: Stephan Gerhold @ 2025-08-13 15:59 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio
Cc: Krzysztof Kozlowski, linux-arm-msm, devicetree, linux-kernel,
Abel Vesa, Johan Hovold
Currently, the macro audio codecs are enabled by default in x1e80100.dtsi.
However, they do not probe without the ADSP remoteproc, which is disabled
by default. Also, not all boards make use of all the audio codecs, e.g.
there are several boards with just two speakers. In this case, the
&lpass_wsa2macro is not used.
In preparation of disabling the audio codecs by default in x1e80100.dtsi,
add the missing status lines to explicitly enable the used audio codecs.
Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org>
---
arch/arm64/boot/dts/qcom/x1e001de-devkit.dts | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/x1e001de-devkit.dts b/arch/arm64/boot/dts/qcom/x1e001de-devkit.dts
index 2d9627e6c7983daedba87619ba01074ee22b43c9..636264e130b7d4c82cfe7d8a24508cec20ff997d 100644
--- a/arch/arm64/boot/dts/qcom/x1e001de-devkit.dts
+++ b/arch/arm64/boot/dts/qcom/x1e001de-devkit.dts
@@ -974,6 +974,19 @@ retimer_ss1_con_sbu_out: endpoint {
};
};
+&lpass_rxmacro {
+ status = "okay";
+};
+
+&lpass_txmacro {
+ status = "okay";
+};
+
+&lpass_vamacro {
+ /* Not directly used yet, but needed for fsgen by all other macros */
+ status = "okay";
+};
+
&mdss {
status = "okay";
};
--
2.50.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 4/9] arm64: dts: qcom: x1e78100-lenovo-thinkpad-t14s: Explicitly enable used audio codecs
2025-08-13 15:58 [PATCH 0/9] arm64: dts: qcom: x1: Disable audio codecs by default Stephan Gerhold
` (2 preceding siblings ...)
2025-08-13 15:59 ` [PATCH 3/9] arm64: dts: qcom: x1e001de-devkit: " Stephan Gerhold
@ 2025-08-13 15:59 ` Stephan Gerhold
2025-08-13 15:59 ` [PATCH 5/9] arm64: dts: qcom: x1e80100-hp-omnibook-x14: " Stephan Gerhold
` (6 subsequent siblings)
10 siblings, 0 replies; 15+ messages in thread
From: Stephan Gerhold @ 2025-08-13 15:59 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio
Cc: Krzysztof Kozlowski, linux-arm-msm, devicetree, linux-kernel,
Abel Vesa, Johan Hovold
Currently, the macro audio codecs are enabled by default in x1e80100.dtsi.
However, they do not probe without the ADSP remoteproc, which is disabled
by default. Also, not all boards make use of all the audio codecs, e.g.
there are several boards with just two speakers. In this case, the
&lpass_wsa2macro is not used.
In preparation of disabling the audio codecs by default in x1e80100.dtsi,
add the missing status lines to explicitly enable the used audio codecs.
Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org>
---
.../boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dtsi | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dtsi b/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dtsi
index 4cf61c2a34e31233b1adc93332bcabef22de3f86..5816b7d5cc5492771d2d1e675ee3e09a86b07ae4 100644
--- a/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dtsi
+++ b/arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dtsi
@@ -967,7 +967,13 @@ touchscreen@10 {
/* TODO: second-sourced touchscreen @ 0x41 */
};
+&lpass_rxmacro {
+ status = "okay";
+};
+
&lpass_tlmm {
+ status = "okay";
+
spkr_01_sd_n_active: spkr-01-sd-n-active-state {
pins = "gpio12";
function = "gpio";
@@ -977,12 +983,22 @@ spkr_01_sd_n_active: spkr-01-sd-n-active-state {
};
};
+&lpass_txmacro {
+ status = "okay";
+};
+
&lpass_vamacro {
pinctrl-0 = <&dmic01_default>;
pinctrl-names = "default";
vdd-micb-supply = <&vreg_l1b_1p8>;
qcom,dmic-sample-rate = <4800000>;
+
+ status = "okay";
+};
+
+&lpass_wsamacro {
+ status = "okay";
};
&mdss {
--
2.50.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 5/9] arm64: dts: qcom: x1e80100-hp-omnibook-x14: Explicitly enable used audio codecs
2025-08-13 15:58 [PATCH 0/9] arm64: dts: qcom: x1: Disable audio codecs by default Stephan Gerhold
` (3 preceding siblings ...)
2025-08-13 15:59 ` [PATCH 4/9] arm64: dts: qcom: x1e78100-lenovo-thinkpad-t14s: " Stephan Gerhold
@ 2025-08-13 15:59 ` Stephan Gerhold
2025-08-13 15:59 ` [PATCH 6/9] arm64: dts: qcom: x1e80100-lenovo-yoga-slim7x: " Stephan Gerhold
` (5 subsequent siblings)
10 siblings, 0 replies; 15+ messages in thread
From: Stephan Gerhold @ 2025-08-13 15:59 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio
Cc: Krzysztof Kozlowski, linux-arm-msm, devicetree, linux-kernel,
Abel Vesa, Johan Hovold
Currently, the macro audio codecs are enabled by default in x1e80100.dtsi.
However, they do not probe without the ADSP remoteproc, which is disabled
by default. Also, not all boards make use of all the audio codecs, e.g.
there are several boards with just two speakers. In this case, the
&lpass_wsa2macro is not used.
In preparation of disabling the audio codecs by default in x1e80100.dtsi,
add the missing status lines to explicitly enable the used audio codecs.
Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org>
---
arch/arm64/boot/dts/qcom/x1e80100-hp-omnibook-x14.dts | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/x1e80100-hp-omnibook-x14.dts b/arch/arm64/boot/dts/qcom/x1e80100-hp-omnibook-x14.dts
index f9ce2a63767c151192b0618ee2154e8d97316c1b..1c8735f39e498f044fe8ebfb915cf500bc4ee531 100644
--- a/arch/arm64/boot/dts/qcom/x1e80100-hp-omnibook-x14.dts
+++ b/arch/arm64/boot/dts/qcom/x1e80100-hp-omnibook-x14.dts
@@ -1001,7 +1001,13 @@ touchscreen@10 {
};
};
+&lpass_rxmacro {
+ status = "okay";
+};
+
&lpass_tlmm {
+ status = "okay";
+
spkr_01_sd_n_active: spkr-01-sd-n-active-state {
pins = "gpio12";
function = "gpio";
@@ -1011,12 +1017,22 @@ spkr_01_sd_n_active: spkr-01-sd-n-active-state {
};
};
+&lpass_txmacro {
+ status = "okay";
+};
+
&lpass_vamacro {
pinctrl-0 = <&dmic01_default>, <&dmic23_default>;
pinctrl-names = "default";
vdd-micb-supply = <&vreg_l1b_1p8>;
qcom,dmic-sample-rate = <4800000>;
+
+ status = "okay";
+};
+
+&lpass_wsamacro {
+ status = "okay";
};
&mdss {
--
2.50.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 6/9] arm64: dts: qcom: x1e80100-lenovo-yoga-slim7x: Explicitly enable used audio codecs
2025-08-13 15:58 [PATCH 0/9] arm64: dts: qcom: x1: Disable audio codecs by default Stephan Gerhold
` (4 preceding siblings ...)
2025-08-13 15:59 ` [PATCH 5/9] arm64: dts: qcom: x1e80100-hp-omnibook-x14: " Stephan Gerhold
@ 2025-08-13 15:59 ` Stephan Gerhold
2025-08-13 15:59 ` [PATCH 7/9] arm64: dts: qcom: x1e80100-microsoft-romulus: " Stephan Gerhold
` (4 subsequent siblings)
10 siblings, 0 replies; 15+ messages in thread
From: Stephan Gerhold @ 2025-08-13 15:59 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio
Cc: Krzysztof Kozlowski, linux-arm-msm, devicetree, linux-kernel,
Abel Vesa, Johan Hovold
Currently, the macro audio codecs are enabled by default in x1e80100.dtsi.
However, they do not probe without the ADSP remoteproc, which is disabled
by default. Also, not all boards make use of all the audio codecs, e.g.
there are several boards with just two speakers. In this case, the
&lpass_wsa2macro is not used.
In preparation of disabling the audio codecs by default in x1e80100.dtsi,
add the missing status lines to explicitly enable the used audio codecs.
Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org>
---
arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts b/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts
index 71becfc5e6f649299b05b0b93cf74b81dea9fa57..0f0c37dfc5c5743bb08c038d1e61e4181762e777 100644
--- a/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts
+++ b/arch/arm64/boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts
@@ -1027,6 +1027,8 @@ touchscreen@14 {
};
&lpass_tlmm {
+ status = "okay";
+
spkr_01_sd_n_active: spkr-01-sd-n-active-state {
pins = "gpio12";
function = "gpio";
@@ -1050,6 +1052,16 @@ &lpass_vamacro {
vdd-micb-supply = <&vreg_l1b_1p8>;
qcom,dmic-sample-rate = <4800000>;
+
+ status = "okay";
+};
+
+&lpass_wsamacro {
+ status = "okay";
+};
+
+&lpass_wsa2macro {
+ status = "okay";
};
&mdss {
--
2.50.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 7/9] arm64: dts: qcom: x1e80100-microsoft-romulus: Explicitly enable used audio codecs
2025-08-13 15:58 [PATCH 0/9] arm64: dts: qcom: x1: Disable audio codecs by default Stephan Gerhold
` (5 preceding siblings ...)
2025-08-13 15:59 ` [PATCH 6/9] arm64: dts: qcom: x1e80100-lenovo-yoga-slim7x: " Stephan Gerhold
@ 2025-08-13 15:59 ` Stephan Gerhold
2025-08-13 15:59 ` [PATCH 8/9] arm64: dts: qcom: x1e80100-qcp: " Stephan Gerhold
` (3 subsequent siblings)
10 siblings, 0 replies; 15+ messages in thread
From: Stephan Gerhold @ 2025-08-13 15:59 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio
Cc: Krzysztof Kozlowski, linux-arm-msm, devicetree, linux-kernel,
Abel Vesa, Johan Hovold
Currently, the macro audio codecs are enabled by default in x1e80100.dtsi.
However, they do not probe without the ADSP remoteproc, which is disabled
by default. Also, not all boards make use of all the audio codecs, e.g.
there are several boards with just two speakers. In this case, the
&lpass_wsa2macro is not used.
In preparation of disabling the audio codecs by default in x1e80100.dtsi,
add the missing status lines to explicitly enable the used audio codecs.
Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org>
---
arch/arm64/boot/dts/qcom/x1e80100-microsoft-romulus.dtsi | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/x1e80100-microsoft-romulus.dtsi b/arch/arm64/boot/dts/qcom/x1e80100-microsoft-romulus.dtsi
index 27dd5e4e9939124360544ee9c59900ebb01f3f49..6dd4da08a1d256a341fb5f6b4989852709f68519 100644
--- a/arch/arm64/boot/dts/qcom/x1e80100-microsoft-romulus.dtsi
+++ b/arch/arm64/boot/dts/qcom/x1e80100-microsoft-romulus.dtsi
@@ -921,7 +921,13 @@ retimer_ss1_con_sbu_out: endpoint {
};
};
+&lpass_rxmacro {
+ status = "okay";
+};
+
&lpass_tlmm {
+ status = "okay";
+
spkr_01_sd_n_active: spkr-01-sd-n-active-state {
pins = "gpio12";
function = "gpio";
@@ -931,6 +937,10 @@ spkr_01_sd_n_active: spkr-01-sd-n-active-state {
};
};
+&lpass_txmacro {
+ status = "okay";
+};
+
&lpass_vamacro {
qcom,dmic-sample-rate = <4800000>;
@@ -938,6 +948,12 @@ &lpass_vamacro {
pinctrl-0 = <&dmic01_default>;
pinctrl-names = "default";
+
+ status = "okay";
+};
+
+&lpass_wsamacro {
+ status = "okay";
};
&mdss {
--
2.50.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 8/9] arm64: dts: qcom: x1e80100-qcp: Explicitly enable used audio codecs
2025-08-13 15:58 [PATCH 0/9] arm64: dts: qcom: x1: Disable audio codecs by default Stephan Gerhold
` (6 preceding siblings ...)
2025-08-13 15:59 ` [PATCH 7/9] arm64: dts: qcom: x1e80100-microsoft-romulus: " Stephan Gerhold
@ 2025-08-13 15:59 ` Stephan Gerhold
2025-08-13 15:59 ` [PATCH 9/9] arm64: dts: qcom: x1e80100: Disable audio codecs by default Stephan Gerhold
` (2 subsequent siblings)
10 siblings, 0 replies; 15+ messages in thread
From: Stephan Gerhold @ 2025-08-13 15:59 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio
Cc: Krzysztof Kozlowski, linux-arm-msm, devicetree, linux-kernel,
Abel Vesa, Johan Hovold
Currently, the macro audio codecs are enabled by default in x1e80100.dtsi.
However, they do not probe without the ADSP remoteproc, which is disabled
by default. Also, not all boards make use of all the audio codecs, e.g.
there are several boards with just two speakers. In this case, the
&lpass_wsa2macro is not used.
In preparation of disabling the audio codecs by default in x1e80100.dtsi,
add the missing status lines to explicitly enable the used audio codecs.
Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org>
---
arch/arm64/boot/dts/qcom/x1e80100-qcp.dts | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts b/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts
index 9369b76c668b5c008fefd85d5ca18e87ab9ce93f..8deb07197ffd7c0da74436d8562f540abe4c4713 100644
--- a/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts
+++ b/arch/arm64/boot/dts/qcom/x1e80100-qcp.dts
@@ -871,7 +871,13 @@ eusb6_repeater: redriver@4f {
};
};
+&lpass_rxmacro {
+ status = "okay";
+};
+
&lpass_tlmm {
+ status = "okay";
+
spkr_01_sd_n_active: spkr-01-sd-n-active-state {
pins = "gpio12";
function = "gpio";
@@ -881,6 +887,19 @@ spkr_01_sd_n_active: spkr-01-sd-n-active-state {
};
};
+&lpass_txmacro {
+ status = "okay";
+};
+
+&lpass_vamacro {
+ /* Not directly used, but needed for fsgen by all other macros */
+ status = "okay";
+};
+
+&lpass_wsamacro {
+ status = "okay";
+};
+
&mdss {
status = "okay";
};
--
2.50.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 9/9] arm64: dts: qcom: x1e80100: Disable audio codecs by default
2025-08-13 15:58 [PATCH 0/9] arm64: dts: qcom: x1: Disable audio codecs by default Stephan Gerhold
` (7 preceding siblings ...)
2025-08-13 15:59 ` [PATCH 8/9] arm64: dts: qcom: x1e80100-qcp: " Stephan Gerhold
@ 2025-08-13 15:59 ` Stephan Gerhold
2025-08-13 23:09 ` [PATCH 0/9] arm64: dts: qcom: x1: " Konrad Dybcio
2025-08-14 0:10 ` Alexey Klimov
10 siblings, 0 replies; 15+ messages in thread
From: Stephan Gerhold @ 2025-08-13 15:59 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio
Cc: Krzysztof Kozlowski, linux-arm-msm, devicetree, linux-kernel,
Abel Vesa, Johan Hovold
Currently, the macro audio codecs are enabled by default in x1e80100.dtsi.
However, they do not probe without the ADSP remoteproc, which is disabled
by default. Also, not all boards make use of all the audio codecs, e.g.
there are several boards with just two speakers. In this case, the
&lpass_wsa2macro is not used.
Now that all boards explicitly enable the needed audio codecs, disable all
of them by default in x1e80100.dtsi.
Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org>
---
arch/arm64/boot/dts/qcom/x1e80100.dtsi | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/x1e80100.dtsi b/arch/arm64/boot/dts/qcom/x1e80100.dtsi
index f293b13ecc0ce426661187ac793f147d12434fcb..7b90dce872773970b62a6d37f5c9c70305710050 100644
--- a/arch/arm64/boot/dts/qcom/x1e80100.dtsi
+++ b/arch/arm64/boot/dts/qcom/x1e80100.dtsi
@@ -4160,6 +4160,8 @@ lpass_wsa2macro: codec@6aa0000 {
clock-output-names = "wsa2-mclk";
#sound-dai-cells = <1>;
sound-name-prefix = "WSA2";
+
+ status = "disabled";
};
swr3: soundwire@6ab0000 {
@@ -4209,6 +4211,8 @@ lpass_rxmacro: codec@6ac0000 {
#clock-cells = <0>;
clock-output-names = "mclk";
#sound-dai-cells = <1>;
+
+ status = "disabled";
};
swr1: soundwire@6ad0000 {
@@ -4258,6 +4262,8 @@ lpass_txmacro: codec@6ae0000 {
#clock-cells = <0>;
clock-output-names = "mclk";
#sound-dai-cells = <1>;
+
+ status = "disabled";
};
lpass_wsamacro: codec@6b00000 {
@@ -4276,6 +4282,8 @@ lpass_wsamacro: codec@6b00000 {
clock-output-names = "mclk";
#sound-dai-cells = <1>;
sound-name-prefix = "WSA";
+
+ status = "disabled";
};
swr0: soundwire@6b10000 {
@@ -4364,6 +4372,8 @@ lpass_vamacro: codec@6d44000 {
#clock-cells = <0>;
clock-output-names = "fsgen";
#sound-dai-cells = <1>;
+
+ status = "disabled";
};
lpass_tlmm: pinctrl@6e80000 {
@@ -4379,6 +4389,8 @@ lpass_tlmm: pinctrl@6e80000 {
#gpio-cells = <2>;
gpio-ranges = <&lpass_tlmm 0 0 23>;
+ status = "disabled";
+
tx_swr_active: tx-swr-active-state {
clk-pins {
pins = "gpio0";
--
2.50.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH 0/9] arm64: dts: qcom: x1: Disable audio codecs by default
2025-08-13 15:58 [PATCH 0/9] arm64: dts: qcom: x1: Disable audio codecs by default Stephan Gerhold
` (8 preceding siblings ...)
2025-08-13 15:59 ` [PATCH 9/9] arm64: dts: qcom: x1e80100: Disable audio codecs by default Stephan Gerhold
@ 2025-08-13 23:09 ` Konrad Dybcio
2025-08-14 6:07 ` Krzysztof Kozlowski
2025-08-14 0:10 ` Alexey Klimov
10 siblings, 1 reply; 15+ messages in thread
From: Konrad Dybcio @ 2025-08-13 23:09 UTC (permalink / raw)
To: Stephan Gerhold, Bjorn Andersson, Konrad Dybcio
Cc: Krzysztof Kozlowski, linux-arm-msm, devicetree, linux-kernel,
Abel Vesa, Johan Hovold
On 8/13/25 5:58 PM, Stephan Gerhold wrote:
> Currently, the macro audio codecs are enabled by default in x1e80100.dtsi.
> However, they do not probe without the ADSP remoteproc, which is disabled
> by default.
FWIW if the ADSP doesn't start, you can't really consider the platform
working.. It just does oversees too much of the SoC to even seriously
consider using the device without it
I would maybe perhaps even skew towards removing the status=disable from
under remoteprocs instead.. that the user may not supply firmware doesn't
have any negative effects as compared to keeping it disabled (other than
a line or two of fwloader complaining)
Konrad
> Also, not all boards make use of all the audio codecs, e.g.
> there are several boards with just two speakers. In this case, the
> &lpass_wsa2macro is not used.
>
> Disable the audio codecs by default in x1e80100.dtsi and enable only the
> used macros for each device.
>
> Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org>
> ---
> Stephan Gerhold (9):
> arm64: dts: qcom: x1-asus-zenbook-a14: Explicitly enable used audio codecs
> arm64: dts: qcom: x1-crd: Explicitly enable used audio codecs
> arm64: dts: qcom: x1e001de-devkit: Explicitly enable used audio codecs
> arm64: dts: qcom: x1e78100-lenovo-thinkpad-t14s: Explicitly enable used audio codecs
> arm64: dts: qcom: x1e80100-hp-omnibook-x14: Explicitly enable used audio codecs
> arm64: dts: qcom: x1e80100-lenovo-yoga-slim7x: Explicitly enable used audio codecs
> arm64: dts: qcom: x1e80100-microsoft-romulus: Explicitly enable used audio codecs
> arm64: dts: qcom: x1e80100-qcp: Explicitly enable used audio codecs
> arm64: dts: qcom: x1e80100: Disable audio codecs by default
>
> arch/arm64/boot/dts/qcom/x1-asus-zenbook-a14.dtsi | 16 ++++++++++++++++
> arch/arm64/boot/dts/qcom/x1-crd.dtsi | 20 ++++++++++++++++++++
> arch/arm64/boot/dts/qcom/x1e001de-devkit.dts | 13 +++++++++++++
> .../boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dtsi | 16 ++++++++++++++++
> .../arm64/boot/dts/qcom/x1e80100-hp-omnibook-x14.dts | 16 ++++++++++++++++
> .../boot/dts/qcom/x1e80100-lenovo-yoga-slim7x.dts | 12 ++++++++++++
> .../boot/dts/qcom/x1e80100-microsoft-romulus.dtsi | 16 ++++++++++++++++
> arch/arm64/boot/dts/qcom/x1e80100-qcp.dts | 19 +++++++++++++++++++
> arch/arm64/boot/dts/qcom/x1e80100.dtsi | 12 ++++++++++++
> 9 files changed, 140 insertions(+)
> ---
> base-commit: 33a21dab19b31540dfeb06dde02e55129a10aec4
> change-id: 20250813-x1e80100-disable-audio-codecs-ef258fcea345
>
> Best regards,
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 0/9] arm64: dts: qcom: x1: Disable audio codecs by default
2025-08-13 15:58 [PATCH 0/9] arm64: dts: qcom: x1: Disable audio codecs by default Stephan Gerhold
` (9 preceding siblings ...)
2025-08-13 23:09 ` [PATCH 0/9] arm64: dts: qcom: x1: " Konrad Dybcio
@ 2025-08-14 0:10 ` Alexey Klimov
10 siblings, 0 replies; 15+ messages in thread
From: Alexey Klimov @ 2025-08-14 0:10 UTC (permalink / raw)
To: Stephan Gerhold
Cc: Bjorn Andersson, Konrad Dybcio, Krzysztof Kozlowski,
linux-arm-msm, devicetree, linux-kernel, Abel Vesa, Johan Hovold
On Wed Aug 13, 2025 at 4:58 PM BST, Stephan Gerhold wrote:
> Currently, the macro audio codecs are enabled by default in x1e80100.dtsi.
> However, they do not probe without the ADSP remoteproc, which is disabled
> by default. Also, not all boards make use of all the audio codecs, e.g.
> there are several boards with just two speakers. In this case, the
> &lpass_wsa2macro is not used.
>
> Disable the audio codecs by default in x1e80100.dtsi and enable only the
> used macros for each device.
>
> Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org>
> ---
> Stephan Gerhold (9):
> arm64: dts: qcom: x1-asus-zenbook-a14: Explicitly enable used audio codecs
> arm64: dts: qcom: x1-crd: Explicitly enable used audio codecs
> arm64: dts: qcom: x1e001de-devkit: Explicitly enable used audio codecs
> arm64: dts: qcom: x1e78100-lenovo-thinkpad-t14s: Explicitly enable used audio codecs
> arm64: dts: qcom: x1e80100-hp-omnibook-x14: Explicitly enable used audio codecs
> arm64: dts: qcom: x1e80100-lenovo-yoga-slim7x: Explicitly enable used audio codecs
> arm64: dts: qcom: x1e80100-microsoft-romulus: Explicitly enable used audio codecs
> arm64: dts: qcom: x1e80100-qcp: Explicitly enable used audio codecs
The subject or title is a bit confusing. "Disable audio codecs" and bunch
of enable commits.
Maybe "Move audio codecs enablement out of .dtsi into whatever"?
> arm64: dts: qcom: x1e80100: Disable audio codecs by default
Best regards,
Alexey
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 0/9] arm64: dts: qcom: x1: Disable audio codecs by default
2025-08-13 23:09 ` [PATCH 0/9] arm64: dts: qcom: x1: " Konrad Dybcio
@ 2025-08-14 6:07 ` Krzysztof Kozlowski
2025-08-14 8:50 ` Stephan Gerhold
0 siblings, 1 reply; 15+ messages in thread
From: Krzysztof Kozlowski @ 2025-08-14 6:07 UTC (permalink / raw)
To: Konrad Dybcio, Stephan Gerhold, Bjorn Andersson, Konrad Dybcio
Cc: linux-arm-msm, devicetree, linux-kernel, Abel Vesa, Johan Hovold
On 14/08/2025 01:09, Konrad Dybcio wrote:
> On 8/13/25 5:58 PM, Stephan Gerhold wrote:
>> Currently, the macro audio codecs are enabled by default in x1e80100.dtsi.
>> However, they do not probe without the ADSP remoteproc, which is disabled
>> by default.
>
> FWIW if the ADSP doesn't start, you can't really consider the platform
> working.. It just does oversees too much of the SoC to even seriously
> consider using the device without it
I agree. ADSP is supposed to come up for every or almost every platform,
because it is crucial for USB and charging.
It's true that LPASS macro codec nodes need resources from ADSP, but
still these are resources internal to the SoC. We disable nodes in DTI
which need an external resource. That's not really the case for LPASS.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 0/9] arm64: dts: qcom: x1: Disable audio codecs by default
2025-08-14 6:07 ` Krzysztof Kozlowski
@ 2025-08-14 8:50 ` Stephan Gerhold
2025-08-14 9:22 ` Konrad Dybcio
0 siblings, 1 reply; 15+ messages in thread
From: Stephan Gerhold @ 2025-08-14 8:50 UTC (permalink / raw)
To: Krzysztof Kozlowski, Konrad Dybcio
Cc: Bjorn Andersson, Konrad Dybcio, linux-arm-msm, devicetree,
linux-kernel, Abel Vesa, Johan Hovold
On Thu, Aug 14, 2025 at 08:07:17AM +0200, Krzysztof Kozlowski wrote:
> On 14/08/2025 01:09, Konrad Dybcio wrote:
> > On 8/13/25 5:58 PM, Stephan Gerhold wrote:
> >> Currently, the macro audio codecs are enabled by default in x1e80100.dtsi.
> >> However, they do not probe without the ADSP remoteproc, which is disabled
> >> by default.
> >
> > FWIW if the ADSP doesn't start, you can't really consider the platform
> > working.. It just does oversees too much of the SoC to even seriously
> > consider using the device without it
>
>
> I agree. ADSP is supposed to come up for every or almost every platform,
> because it is crucial for USB and charging.
>
I agree with that as well, especially because I have an upcoming patch
series that allows reusing the "lite" ADSP firmware from UEFI for USB
and charging, so you don't even need to have firmware present for that.
The question for this patch series is separate though: Should we enable
the SoC audio codecs by default? What happens if a board does not make
use of them?
> It's true that LPASS macro codec nodes need resources from ADSP, but
> still these are resources internal to the SoC. We disable nodes in DTI
> which need an external resource. That's not really the case for LPASS.
The reason that triggered this patch series is that I was seeing an
error from the va_macro when testing on x1e001de-devkit. That board does
not have DMICs defined, so it doesn't make direct use of the va_macro:
va_macro 6d44000.codec: qcom,dmic-sample-rate dt entry missing
We should fix this in the lpass-va-macro driver. You could take this
case one step further though: What if a board uses none of the audio
functionality? Apparently, X1E is also going to be an IoT platform. It's
very well possible we will end up with a board that doesn't have any
audio functionality. I would argue it's valid to use a minimal kernel
config in that case that has all of the audio subsystem disabled. That
won't work though, since we need to probe all the enabled audio codecs
to reach sync_state().
This might be a Linux issue unrelated to the device tree, but in my
opinion an audio codec without audio inputs/outputs is not
"operational", it should not be status = "okay". That's quite subjective
though.
At the end, I realized that x1e001de-devkit actually does have DMICs and
I just need to enable them properly to get rid of the error. I only sent
this series because I believe it fits better to our conventions. Given
that I don't need it anymore, I'm also happy to just drop it. Let me
know what you prefer.
Thanks,
Stephan
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 0/9] arm64: dts: qcom: x1: Disable audio codecs by default
2025-08-14 8:50 ` Stephan Gerhold
@ 2025-08-14 9:22 ` Konrad Dybcio
0 siblings, 0 replies; 15+ messages in thread
From: Konrad Dybcio @ 2025-08-14 9:22 UTC (permalink / raw)
To: Stephan Gerhold, Krzysztof Kozlowski
Cc: Bjorn Andersson, Konrad Dybcio, linux-arm-msm, devicetree,
linux-kernel, Abel Vesa, Johan Hovold
On 8/14/25 10:50 AM, Stephan Gerhold wrote:
> On Thu, Aug 14, 2025 at 08:07:17AM +0200, Krzysztof Kozlowski wrote:
>> On 14/08/2025 01:09, Konrad Dybcio wrote:
>>> On 8/13/25 5:58 PM, Stephan Gerhold wrote:
>>>> Currently, the macro audio codecs are enabled by default in x1e80100.dtsi.
>>>> However, they do not probe without the ADSP remoteproc, which is disabled
>>>> by default.
>>>
>>> FWIW if the ADSP doesn't start, you can't really consider the platform
>>> working.. It just does oversees too much of the SoC to even seriously
>>> consider using the device without it
>>
>>
>> I agree. ADSP is supposed to come up for every or almost every platform,
>> because it is crucial for USB and charging.
>>
>
> I agree with that as well, especially because I have an upcoming patch
> series that allows reusing the "lite" ADSP firmware from UEFI for USB
> and charging, so you don't even need to have firmware present for that.
Really nice!
> The question for this patch series is separate though: Should we enable
> the SoC audio codecs by default? What happens if a board does not make
> use of them?
Then they (should) get parked (powered down, or re-programmed if
necessary)
>> It's true that LPASS macro codec nodes need resources from ADSP, but
>> still these are resources internal to the SoC. We disable nodes in DTI
>> which need an external resource. That's not really the case for LPASS.
>
> The reason that triggered this patch series is that I was seeing an
> error from the va_macro when testing on x1e001de-devkit. That board does
> not have DMICs defined, so it doesn't make direct use of the va_macro:
>
> va_macro 6d44000.codec: qcom,dmic-sample-rate dt entry missing
Perhaps we can print the error if there's any sound connections, i.e.
if it's "really" used?
> We should fix this in the lpass-va-macro driver. You could take this
> case one step further though: What if a board uses none of the audio
> functionality? Apparently, X1E is also going to be an IoT platform. It's
> very well possible we will end up with a board that doesn't have any
> audio functionality. I would argue it's valid to use a minimal kernel
> config in that case that has all of the audio subsystem disabled. That
> won't work though, since we need to probe all the enabled audio codecs
> to reach sync_state().
Because of the resources being driven by the OS, I don't think removing
information from the device tree (i.e. cutting down on the plumbing
data) is fair.. Enabling all the hardware (minus firmwares) should result
in only a couple hundred kilobytes of added RAM use, but will get rid of
a huge number of edge cases where sketchy combinations cause annoying
issues.
> This might be a Linux issue unrelated to the device tree, but in my
> opinion an audio codec without audio inputs/outputs is not
> "operational", it should not be status = "okay". That's quite subjective
> though.
If the codec is present on board, there's no less reason to disable it
vs leaving it hanging, unaware by the OS.. cutting the power by hand is
at least predictable
Konrad
> At the end, I realized that x1e001de-devkit actually does have DMICs and
> I just need to enable them properly to get rid of the error. I only sent
> this series because I believe it fits better to our conventions. Given
> that I don't need it anymore, I'm also happy to just drop it. Let me
> know what you prefer.
>
> Thanks,
> Stephan
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2025-08-14 9:22 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-13 15:58 [PATCH 0/9] arm64: dts: qcom: x1: Disable audio codecs by default Stephan Gerhold
2025-08-13 15:58 ` [PATCH 1/9] arm64: dts: qcom: x1-asus-zenbook-a14: Explicitly enable used audio codecs Stephan Gerhold
2025-08-13 15:58 ` [PATCH 2/9] arm64: dts: qcom: x1-crd: " Stephan Gerhold
2025-08-13 15:59 ` [PATCH 3/9] arm64: dts: qcom: x1e001de-devkit: " Stephan Gerhold
2025-08-13 15:59 ` [PATCH 4/9] arm64: dts: qcom: x1e78100-lenovo-thinkpad-t14s: " Stephan Gerhold
2025-08-13 15:59 ` [PATCH 5/9] arm64: dts: qcom: x1e80100-hp-omnibook-x14: " Stephan Gerhold
2025-08-13 15:59 ` [PATCH 6/9] arm64: dts: qcom: x1e80100-lenovo-yoga-slim7x: " Stephan Gerhold
2025-08-13 15:59 ` [PATCH 7/9] arm64: dts: qcom: x1e80100-microsoft-romulus: " Stephan Gerhold
2025-08-13 15:59 ` [PATCH 8/9] arm64: dts: qcom: x1e80100-qcp: " Stephan Gerhold
2025-08-13 15:59 ` [PATCH 9/9] arm64: dts: qcom: x1e80100: Disable audio codecs by default Stephan Gerhold
2025-08-13 23:09 ` [PATCH 0/9] arm64: dts: qcom: x1: " Konrad Dybcio
2025-08-14 6:07 ` Krzysztof Kozlowski
2025-08-14 8:50 ` Stephan Gerhold
2025-08-14 9:22 ` Konrad Dybcio
2025-08-14 0:10 ` Alexey Klimov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).