]> Git Repo - linux.git/commitdiff
ASoC: dt-bindings: irondevice,sma1303: Rework binding and add missing properties
authorKiseok Jo <[email protected]>
Wed, 8 Feb 2023 09:24:20 +0000 (09:24 +0000)
committerMark Brown <[email protected]>
Wed, 8 Feb 2023 11:51:51 +0000 (11:51 +0000)
Add the missing properties as compatible, reg, sound-dai-cells.
And then check this file using 'make dt_binding_check'.

Signed-off-by: Kiseok Jo <[email protected]>
Reviewed-by: Krzysztof Kozlowski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Documentation/devicetree/bindings/sound/irondevice,sma1303.yaml

index 162c526066350ed30af891c816b8a775d49a979f..b36c35e5da1a49f090324fd610d646883e8032f3 100644 (file)
@@ -10,22 +10,39 @@ maintainers:
   - Kiseok Jo <[email protected]>
 
 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
 
 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>;
         };
     };
This page took 0.066787 seconds and 4 git commands to generate.