[PATCH v2 10/14] arm64: dts: qcom: qrb4210-rb2: enable wsa881x amplifier
From: Alexey Klimov
Date: Wed Dec 11 2024 - 19:49:53 EST
One WSA881X amplifier is connected on QRB4210 RB2 board
hence only mono speaker is supported. This amplifier is set
to work in analog mode only. Also add required powerdown
pin/gpio.
Cc: Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxx>
Signed-off-by: Alexey Klimov <alexey.klimov@xxxxxxxxxx>
---
arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 26 ++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts
index 6217bc6e6282..827ce5f7adfb 100644
--- a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts
+++ b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts
@@ -264,6 +264,24 @@ zap-shader {
};
};
+&i2c1 {
+ clock-frequency = <400000>;
+ status = "okay";
+
+ wsa881x: amplifier@f {
+ compatible = "qcom,wsa8815";
+ reg = <0x0f>;
+ pinctrl-0 = <&wsa_en_active>;
+ pinctrl-names = "default";
+ clocks = <&q6afecc LPASS_CLK_ID_MCLK_2 LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
+ powerdown-gpios = <&lpass_tlmm 16 GPIO_ACTIVE_LOW>;
+ mclk-gpios = <&lpass_tlmm 18 GPIO_ACTIVE_HIGH>;
+ sound-name-prefix = "SpkrMono";
+ #sound-dai-cells = <0>;
+ #thermal-sensor-cells = <0>;
+ };
+};
+
&i2c2_gpio {
clock-frequency = <400000>;
status = "okay";
@@ -730,6 +748,14 @@ wcd_reset_n: wcd-reset-n-state {
drive-strength = <16>;
output-high;
};
+
+ wsa_en_active: wsa-en-active-state {
+ pins = "gpio106";
+ function = "gpio";
+ drive-strength = <16>;
+ bias-disable;
+ output-high;
+ };
};
&uart3 {
--
2.45.2