From: Gerard Marull-Paretas <gerard@teslabs.com>
To: Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Stephan Gerhold <stephan@gerhold.net>
Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org
Subject: [PATCH] ASoC: dt-bindings: awinic,aw8738: Add AW8155
Date: Sun, 22 Nov 2026 10:34:19 +0100 [thread overview]
Message-ID: <20261122093419.72135-1-gerard@teslabs.com> (raw)
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
reply other threads:[~2026-11-22 9:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261122093419.72135-1-gerard@teslabs.com \
--to=gerard@teslabs.com \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-sound@vger.kernel.org \
--cc=robh@kernel.org \
--cc=stephan@gerhold.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox