[PATCH] ASoC: dt-bindings: maxim,max98357a: Add compatible with richtek,rt9123

From: cy_huang
Date: Mon Mar 17 2025 - 20:57:17 EST


From: ChiYuan Huang <cy_huang@xxxxxxxxxxx>

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@xxxxxxxxxxx>
---
.../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