Add a node for the amplifier found on Fairphone 3, receiving sound via
I2S from the SoC and being connected to the speaker.

Reviewed-by: Konrad Dybcio <[email protected]>
Reviewed-by: Krzysztof Kozlowski <[email protected]>
Signed-off-by: Luca Weiss <[email protected]>
---
 arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts 
b/arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts
index 
55a45b528bd3f1bf9b6fe7882753338b43c62271..053ed5cb6b2301cdf3f5e62a74bee535062bf845
 100644
--- a/arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts
+++ b/arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts
@@ -97,6 +97,26 @@ nfc@28 {
        };
 };
 
+&i2c_6 {
+       status = "okay";
+
+       aw8898: audio-amplifier@34 {
+               compatible = "awinic,aw8898";
+               reg = <0x34>;
+
+               reset-gpios = <&tlmm 21 GPIO_ACTIVE_LOW>;
+               interrupts-extended = <&tlmm 20 IRQ_TYPE_LEVEL_HIGH>;
+
+               dvdd-supply = <&pm8953_l5>;
+               vddio-supply = <&pm8953_l5>;
+               vdd-supply = <&vph_pwr>;
+
+               #sound-dai-cells = <0>;
+       };
+
+       /* Fairphone 3+ only: Speaker amp TAS2557 @ 4c */
+};
+
 &lpass {
        firmware-name = "qcom/msm8953/fairphone/fp3/adsp.mbn";
 

-- 
2.50.0


Reply via email to