[PATCH 1/3] ASoC: dt-bindings: irondevice, sma1303: Rework binding and add missing properties

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux