All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] ASoC: dt-bindings: irondevice, sma1303: Rework binding and add missing properties
@ 2023-02-03  9:42 ` Kiseok Jo
  0 siblings, 0 replies; 14+ messages in thread
From: Kiseok Jo @ 2023-02-03  9:42 UTC (permalink / raw)
  To: Kiseok Jo, Liam Girdwood, Mark Brown, Jaroslav Kysela,
	Takashi Iwai, Rob Herring, Krzysztof Kozlowski
  Cc: devicetree, alsa-devel

Fix according to the writing-schema.rst file and tested.
Add the missing property as compatible, reg, sys-clk-id.

Signed-off-by: Kiseok Jo <kiseok.jo@irondevice.com>
---
 .../bindings/sound/irondevice,sma1303.yaml    | 35 +++++++++++++++++--
 1 file changed, 32 insertions(+), 3 deletions(-)

diff --git a/Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml b/Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml
index 162c52606635..2c6158277aee 100644
--- a/Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml
+++ b/Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml
@@ -10,22 +10,51 @@ maintainers:
   - Kiseok Jo <kiseok.jo@irondevice.com>
 
 description:
-  SMA1303 digital class-D audio amplifier with an integrated boost converter.
+  SMA1303 digital class-D audio amplifier
+  with an integrated boost converter.
 
 allOf:
-  - $ref: name-prefix.yaml#
+  - $ref: dai-common.yaml#
+
+properties:
+  compatible:
+    enum:
+      - irondevice,sma1303
+
+  reg:
+    maxItems: 1
+
+  '#sound-dai-cells':
+    const: 1
+
+  sys-clk-id:
+    description:
+      select the using system clock.
+      0 = External Clock 19.2MHz
+      1 = External Clock 24.576MHz
+      2 = Using PLL in MCLK
+      3 = Using PLL in BCLK
+    $ref: "/schemas/types.yaml#/definitions/uint32"
+    maximum: 3
+    default: 3
 
 required:
   - compatible
   - reg
+  - '#sound-dai-cells'
 
 additionalProperties: false
 
 examples:
   - |
-    i2c_bus {
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
         amplifier@1e {
             compatible = "irondevice,sma1303";
             reg = <0x1e>;
+            #sound-dai-cells = <1>;
+            sys-clk-id = <3>;
         };
     };

base-commit: afdf57285d1e16a1bbdbf6cc33fb22fb6c8e7860
-- 
2.20.1


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

end of thread, other threads:[~2023-02-04  1:21 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-03  9:42 [PATCH 1/3] ASoC: dt-bindings: irondevice, sma1303: Rework binding and add missing properties Kiseok Jo
2023-02-03  9:42 ` [PATCH 1/3] ASoC: dt-bindings: irondevice,sma1303: " Kiseok Jo
2023-02-03  9:42 ` [PATCH 2/3] ASoC: SMA1303: Remove the I2C Retry property in devicetree Kiseok Jo
2023-02-03  9:42   ` Kiseok Jo
2023-02-03  9:42 ` [PATCH 3/3] ASoC: SMA1303: Convert the TDM slot properties in devicetree to mixer Kiseok Jo
2023-02-03  9:42   ` Kiseok Jo
2023-02-03 13:37 ` [PATCH 1/3] ASoC: dt-bindings: irondevice,sma1303: Rework binding and add missing properties Mark Brown
2023-02-03 13:37   ` Mark Brown
2023-02-04  1:20   ` [PATCH 1/3] ASoC: dt-bindings: irondevice, sma1303: " Ki-Seok Jo
2023-02-04  1:20     ` [PATCH 1/3] ASoC: dt-bindings: irondevice,sma1303: " Ki-Seok Jo
2023-02-03 22:01 ` Rob Herring
2023-02-03 22:01   ` Rob Herring
2023-02-04  1:17   ` [PATCH 1/3] ASoC: dt-bindings: irondevice, sma1303: " Ki-Seok Jo
2023-02-04  1:17     ` [PATCH 1/3] ASoC: dt-bindings: irondevice,sma1303: " Ki-Seok Jo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.