[PATCH] Fixed the schema binding according to test
Kiseok Jo
kiseok.jo at irondevice.com
Thu Feb 2 10:07:14 CET 2023
Modified according to the writing-schema.rst file and tested.
Signed-off-by: Kiseok Jo <kiseok.jo at 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 at 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 at 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
More information about the Alsa-devel
mailing list