Skip to contentSkip to conversation

ASoC: dt-bindings: awinic,aw8738: Add AW8155

PATCH New Gerard Marull-Paretas 1 participant 1 message Nov 22

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: dt-bindings: awinic,aw8738: Add AW8155

The AW8155 is a class-D/AB mono amplifier whose mode is selected by the number of pulses on its CTRL pin, holding it low shutting it down, as on the AW8738. The waveform the aw8738 driver generates (2 us pulses, 40 ms start-up wait, 1-2 ms low for shutdown) is within the AW8155 datasheet timings (0.75-10 us pulses, 40 ms start-up, 150-800 us turn-off), so the AW8738 compatible can serve as a fallback.

Only modes 1, 2 and 4 are valid on the AW8155, mode 3 being a test mode, so restrict awinic,mode to those.

---

Notes:
Checked with dtschema 2026.9: the steps of dt_binding_check run by hand (host make too old), yamllint and dt-check-style --mode=strict.

 .../bindings/sound/awinic,aw8738.yaml          | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/sound/awinic,aw8738.yaml +17 -1
index bc6c6b172238..5ef7b800226a 100644
@@ -14,12 +14,28 @@ description:
   (set using one-wire pulse control). The mode configures the speaker-guard
   function (primarily the power limit for the amplifier).
 
+  The Awinic AW8155 also has its mode set by one-wire pulses on its control
+  pin. Its modes select the amplifier class, its gain and its power limit.
+
 allOf:
   - $ref: dai-common.yaml#
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: awinic,aw8155
+    then:
+      properties:
+        awinic,mode:
+          enum: [1, 2, 4]
 
 properties:
   compatible:
-    const: awinic,aw8738
+    oneOf:
+      - const: awinic,aw8738
+      - items:
+          - const: awinic,aw8155
+          - const: awinic,aw8738
 
   mode-gpios:
     description:

base-commit: c44104f3642da720164042623e4832836aefdd8e

Signature · 1 line
2.45.2