devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: dt-bindings: maxim,max98357a: Add compatible with richtek,rt9123
@ 2025-03-18  0:57 cy_huang
  2025-03-18  8:55 ` Krzysztof Kozlowski
  0 siblings, 1 reply; 6+ messages in thread
From: cy_huang @ 2025-03-18  0:57 UTC (permalink / raw)
  To: Mark Brown, Krzysztof Kozlowski, Conor Dooley, Tzung-Bi Shih
  Cc: Liam Girdwood, ChiYuan Huang, Otto Lin, Allen Lin, linux-sound,
	devicetree, linux-kernel

From: ChiYuan Huang <cy_huang@richtek.com>

The hardware control and specification of 'richtek,rt9123' are similar
with max98357 or max98360. It's no need to add the new source code. So
make it compatible with one of them.

Signed-off-by: ChiYuan Huang <cy_huang@richtek.com>
---
 .../devicetree/bindings/sound/maxim,max98357a.yaml    | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/Documentation/devicetree/bindings/sound/maxim,max98357a.yaml b/Documentation/devicetree/bindings/sound/maxim,max98357a.yaml
index 83ba8666fbb4..5dc7e60b67d6 100644
--- a/Documentation/devicetree/bindings/sound/maxim,max98357a.yaml
+++ b/Documentation/devicetree/bindings/sound/maxim,max98357a.yaml
@@ -18,9 +18,14 @@ allOf:
 
 properties:
   compatible:
-    enum:
-      - maxim,max98357a
-      - maxim,max98360a
+    oneOf:
+      - enum:
+          - maxim,max98357a
+          - maxim,max98360a
+      - items:
+          - enum:
+              - richtek,rt9123
+          - const: maxim,max98360a
 
   '#sound-dai-cells':
     const: 0
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-03-19  8:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-18  0:57 [PATCH] ASoC: dt-bindings: maxim,max98357a: Add compatible with richtek,rt9123 cy_huang
2025-03-18  8:55 ` Krzysztof Kozlowski
2025-03-18 11:26   ` ChiYuan Huang
2025-03-19  7:42     ` Krzysztof Kozlowski
2025-03-19  8:21       ` ChiYuan Huang
2025-03-19  8:36         ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).