dt-bindings: ti,pcm1681: Convert to dtschema
PATCH 1/1 dt-bindings: ti,pcm1681: Convert to dtschema
Convert the Texas Instruments PCM1681 bindings to DT schema.
--- .../devicetree/bindings/sound/ti,pcm1681.txt | 15 -------- .../devicetree/bindings/sound/ti,pcm1681.yaml | 35 +++++++++++++++++++ 2 files changed, 35 insertions(+), 15 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/ti,pcm1681.txt create mode 100644 Documentation/devicetree/bindings/sound/ti,pcm1681.yaml
Documentation/devicetree/bindings/sound/ti,pcm1681.txt deleted +0 -15
@@ -1,15 +0,0 @@ -Texas Instruments PCM1681 8-channel PWM Processor - -Required properties: - - - compatible: Should contain "ti,pcm1681". - - reg: The i2c address. Should contain <0x4c>. - -Examples: - - i2c_bus { - pcm1681@4c { - compatible = "ti,pcm1681"; - reg = <0x4c>; - }; - };
Documentation/devicetree/bindings/sound/ti,pcm1681.yaml new file +35 -0
@@ -0,0 +1,35 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/ti,pcm1681.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments PCM1681 8-channel PWM Processor + +maintainers: + - Animesh Agarwal <[email protected]> + +properties: + compatible: + const: ti,pcm1681 + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pcm1681@4c { + compatible = "ti,pcm1681"; + reg = <0x4c>; + }; + };
Signature · 1 line
2.44.0
Quoted 37 lines · Animesh Agarwal
Convert the Texas Instruments PCM1681 bindings to DT schema.
Signed-off-by Animesh Agarwal <[email protected]>--- .../devicetree/bindings/sound/ti,pcm1681.txt | 15 -------- .../devicetree/bindings/sound/ti,pcm1681.yaml | 35 +++++++++++++++++++ 2 files changed, 35 insertions(+), 15 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/ti,pcm1681.txt create mode 100644 Documentation/devicetree/bindings/sound/ti,pcm1681.yamlDocumentation/devicetree/bindings/sound/ti,pcm1681.txt deleted +0
-15@@ -1,15 +0,0 @@ -Texas Instruments PCM1681 8-channel PWM Processor - -Required properties: - - - compatible: Should contain "ti,pcm1681". - - reg: The i2c address. Should contain <0x4c>. - -Examples: - - i2c_bus { - pcm1681@4c { - compatible = "ti,pcm1681"; - reg = <0x4c>; - }; - };Documentation/devicetree/bindings/sound/ti,pcm1681.yaml new file +0
-0
Documentation/devicetree/bindings/sound/ti,pcm1681.yaml line 10
Quoted 10 lines
Documentation/devicetree/bindings/sound/ti,pcm1681.yaml new file +10
-0@@ -0,0 +1,35 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/ti,pcm1681.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments PCM1681 8-channel PWM Processor + +maintainers: + - Animesh Agarwal <[email protected]>
Why not existing driver maintainers? Do you have this device? Or use it, or care in terms of your projects?
Documentation/devicetree/bindings/sound/ti,pcm1681.yaml line 22
Quoted 12 lines
Documentation/devicetree/bindings/sound/ti,pcm1681.yaml new file +12
-0+ +properties: + compatible: + const: ti,pcm1681 + + reg: + maxItems: 1 + +required: + - compatible + - reg +
Missing dai-cells, $ref to dai-common and unevaluatedProperties: false, just like in other simple DAI devices. Mention briefly in the commit msg adding these ("Make bindings complete by adding #sound-dai-cells").
Documentation/devicetree/bindings/sound/ti,pcm1681.yaml line 31
Quoted 9 lines
Documentation/devicetree/bindings/sound/ti,pcm1681.yaml new file +9
-0+additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pcm1681@4c {
Datasheet says it is dac, but we usually call it "audio-codec".
Documentation/devicetree/bindings/sound/ti,pcm1681.yaml line 35
Quoted 4 lines
Documentation/devicetree/bindings/sound/ti,pcm1681.yaml new file +4
-0+ compatible = "ti,pcm1681"; + reg = <0x4c>; + }; + };
Best regards,
Krzysztof
Quoted 2 lines · Krzysztof Kozlowski
Why not existing driver maintainers? Do you have this device? Or use it, or care in terms of your projects?
I'll change it to the current maintainers of the bindings.
Quoted 3 lines
Missing dai-cells, $ref to dai-common and unevaluatedProperties: false, just like in other simple DAI devices. Mention briefly in the commit msg adding these ("Make bindings complete by adding #sound-dai-cells").
Sure, I'll add it.
Quoted 2 lines
Datasheet says it is dac, but we usually call it "audio-codec".
Noted.
Thanks and Regards,
Animesh Agarwal