Devicetree
 help / color / mirror / Atom feed
* [PATCH] ASoC: dt-bindings: awinic,aw8738: Add AW8155
@ 2026-11-22  9:34 Gerard Marull-Paretas
  0 siblings, 0 replies; only message in thread
From: Gerard Marull-Paretas @ 2026-11-22  9:34 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Stephan Gerhold
  Cc: linux-sound, devicetree

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.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
---

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(-)

diff --git a/Documentation/devicetree/bindings/sound/awinic,aw8738.yaml b/Documentation/devicetree/bindings/sound/awinic,aw8738.yaml
index bc6c6b172238..5ef7b800226a 100644
--- a/Documentation/devicetree/bindings/sound/awinic,aw8738.yaml
+++ b/Documentation/devicetree/bindings/sound/awinic,aw8738.yaml
@@ -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
-- 
2.45.2


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-22  9:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-22  9:34 [PATCH] ASoC: dt-bindings: awinic,aw8738: Add AW8155 Gerard Marull-Paretas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox