@@ -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 {
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@linaro.org> Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org> --- arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+)