devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fixed the schema binding according to test
@ 2023-02-02  9:07 Kiseok Jo
  2023-02-02  9:15 ` Krzysztof Kozlowski
  0 siblings, 1 reply; 6+ messages in thread
From: Kiseok Jo @ 2023-02-02  9:07 UTC (permalink / raw)
  To: Kiseok Jo, Liam Girdwood, Mark Brown, Rob Herring,
	Krzysztof Kozlowski
  Cc: alsa-devel, devicetree

Modified according to the writing-schema.rst file and tested.

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

diff --git a/Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml b/Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml
index 162c52606635..35d9a046ef75 100644
--- a/Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml
+++ b/Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml
@@ -10,22 +10,62 @@ 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
+
+  i2c-retry:
+    description: number of retries for I2C regmap.
+    maximum: 49
+    default: 3
+
+  tdm-slot-rx:
+    description: set the tdm rx start slot.
+    maximum: 7
+    default: 0
+
+  tdm-slot-tx:
+    description: set the tdm tx start slot.
+    maximum: 7
+    default: 0
+
+  sys-clk-id:
+    description: select the using system clock.
+    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>;
+            i2c-retry = <5>;
+            tdm-slot-rx = <0>;
+            tdm-slot-tx = <2>;
+            sys-clk-id = <3>;
         };
     };

base-commit: e33d4c4f1e2de74cfea556d75eef0886d5b7d472
-- 
2.20.1


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

end of thread, other threads:[~2023-02-03  7:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-02  9:07 [PATCH] Fixed the schema binding according to test Kiseok Jo
2023-02-02  9:15 ` Krzysztof Kozlowski
2023-02-02  9:55   ` Ki-Seok Jo
2023-02-02 20:20     ` Krzysztof Kozlowski
2023-02-03  5:06       ` Ki-Seok Jo
2023-02-03  7:35         ` 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).