Add nodes for the two AW88261 amplifiers, for the top and bottom
speakers of this phone. Hook them up to the sound card.

Co-developed-by: Bharadwaj Raju <[email protected]>
Signed-off-by: Bharadwaj Raju <[email protected]>
Signed-off-by: Luca Weiss <[email protected]>
---
RFC because the AW88261 patches aren't merged yet
---
 arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts | 59 +++++++++++++++++++++-
 1 file changed, 57 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts 
b/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts
index 04cb9230d29f..b1f489a9f449 100644
--- a/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts
+++ b/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts
@@ -866,8 +866,35 @@ vibrator@5a {
 &i2c2 {
        status = "okay";
 
-       /* AW88261FCR amplifier @ 34 */
-       /* AW88261FCR amplifier @ 35 */
+       /* Top speaker / ear speaker */
+       aw88261_l: audio-codec@34 {
+               compatible = "awinic,aw88261";
+               reg = <0x34>;
+
+               dvdd-supply = <&vreg_l18b>;
+               sound-name-prefix = "Amplifier L";
+               firmware-name = "qcom/qcm6490/fairphone5/aw88261_acf.bin";
+
+               awinic,audio-channel = <0>;
+               awinic,sync-flag;
+
+               #sound-dai-cells = <0>;
+       };
+
+       /* Bottom speaker */
+       aw88261_r: audio-codec@35 {
+               compatible = "awinic,aw88261";
+               reg = <0x35>;
+
+               dvdd-supply = <&vreg_l18b>;
+               sound-name-prefix = "Amplifier R";
+               firmware-name = "qcom/qcm6490/fairphone5/aw88261_acf.bin";
+
+               awinic,audio-channel = <1>;
+               awinic,sync-flag;
+
+               #sound-dai-cells = <0>;
+       };
 };
 
 &i2c4 {
@@ -1161,6 +1188,13 @@ &pon_resin {
        status = "okay";
 };
 
+&q6afedai {
+       dai@127 {
+               reg = <QUINARY_MI2S_RX>;
+               qcom,sd-lines = <0>;
+       };
+};
+
 &qup_spi13_cs {
        drive-strength = <6>;
        bias-disable;
@@ -1238,6 +1272,11 @@ &sound {
        compatible = "fairphone,fp5-sndcard";
        model = "Fairphone 5";
 
+       pinctrl-0 = <&lpass_i2s1_active>;
+       pinctrl-1 = <&lpass_i2s1_sleep>;
+       pinctrl-names = "default",
+                       "sleep";
+
        mm1-dai-link {
                link-name = "MultiMedia1";
 
@@ -1246,6 +1285,22 @@ cpu {
                };
        };
 
+       i2s-dai-link {
+               link-name = "Quinary MI2S Playback";
+
+               codec {
+                       sound-dai = <&aw88261_l>, <&aw88261_r>;
+               };
+
+               cpu {
+                       sound-dai = <&q6afedai QUINARY_MI2S_RX>;
+               };
+
+               platform {
+                       sound-dai = <&q6routing>;
+               };
+       };
+
        displayport-rx-dai-link {
                link-name = "DisplayPort Playback";
 

---
base-commit: 1e45adb287ae5d431afc9900b4d387f4e73d9406
change-id: 20260522-fp5-aw88261-a02bb0e4b697
prerequisite-message-id: <[email protected]>
prerequisite-patch-id: cf63e24b374691738276d00e569ffa2d8b94ed72
prerequisite-patch-id: 9a075067099bfdbf52eabfe3f7121909955c8726
prerequisite-patch-id: 5453ac079d39ea13d849f880f9dde4b0a2192b91
prerequisite-patch-id: 3768d28b288dbb7d3245dc0de3a289303c3e45fd
prerequisite-patch-id: d84da7eec6f3755985ba55676a3bc893b89f002b
prerequisite-patch-id: ea19cd4cd8cc8519786c6f05cf4e35ccadd70839
prerequisite-patch-id: 6847a49b36dd8bd4cbb422b6a2b269faaca6c873

Best regards,
--  
Luca Weiss <[email protected]>


Reply via email to