ASoC: dt-bindings: Convert eukrea-tlv320.txt to yaml
Subsystems (4)
Frank Li
maintainerPATCH v3 1/1 ASoC: dt-bindings: Convert eukrea-tlv320.txt to yaml
Convert eukrea-tlv320.txt to yaml format.
---
change in v3
- add fsl,mux-int-port and fsl,mux-out-port to required
change in v2
- Add comments about "The AUDMUX port numbering should start at 1"
v1: https://lore.kernel.org/linux-devicetree/CAEnQRZACes8EptdEgg0i0vzdcxgUJwZAfQHU0DEhMnXtA-g01Q@mail.gmail.com/
--- .../bindings/sound/eukrea,asoc-tlv320.yaml | 57 +++++++++++++++++++ .../bindings/sound/eukrea-tlv320.txt | 26 --------- 2 files changed, 57 insertions(+), 26 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/eukrea,asoc-tlv320.yaml delete mode 100644 Documentation/devicetree/bindings/sound/eukrea-tlv320.txt
Documentation/devicetree/bindings/sound/eukrea,asoc-tlv320.yaml new file +57 -0
@@ -0,0 +1,57 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/eukrea,asoc-tlv320.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Audio complex for Eukrea boards with tlv320aic23 codec. + +maintainers: + - Frank Li <[email protected]> + +properties: + compatible: + const: eukrea,asoc-tlv320 + + eukrea,model: + $ref: /schemas/types.yaml#/definitions/string + description: + The user-visible name of this sound complex. + + ssi-controller: + $ref: /schemas/types.yaml#/definitions/phandle + description: + The phandle of the SSI controller. + + fsl,mux-int-port: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + The internal port of the i.MX audio muxer (AUDMUX). + Note: The AUDMUX port numbering should start at 1, which is consistent with + hardware manual. + + fsl,mux-ext-port: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + The external port of the i.MX audio muxer. + Note: The AUDMUX port numbering should start at 1, which is consistent with + hardware manual. + +required: + - compatible + - eukrea,model + - ssi-controller + - fsl,mux-int-port + - fsl,mux-ext-port + +additionalProperties: false + +examples: + - | + sound { + compatible = "eukrea,asoc-tlv320"; + eukrea,model = "imx51-eukrea-tlv320aic23"; + ssi-controller = <&ssi2>; + fsl,mux-int-port = <2>; + fsl,mux-ext-port = <3>; + };
Documentation/devicetree/bindings/sound/eukrea-tlv320.txt deleted +0 -26
@@ -1,26 +0,0 @@ -Audio complex for Eukrea boards with tlv320aic23 codec. - -Required properties: - - - compatible : "eukrea,asoc-tlv320" - - - eukrea,model : The user-visible name of this sound complex. - - - ssi-controller : The phandle of the SSI controller. - - - fsl,mux-int-port : The internal port of the i.MX audio muxer (AUDMUX). - - - fsl,mux-ext-port : The external port of the i.MX audio muxer. - -Note: The AUDMUX port numbering should start at 1, which is consistent with -hardware manual. - -Example: - - sound { - compatible = "eukrea,asoc-tlv320"; - eukrea,model = "imx51-eukrea-tlv320aic23"; - ssi-controller = <&ssi2>; - fsl,mux-int-port = <2>; - fsl,mux-ext-port = <3>; - };
Signature · 1 line
2.43.0
Rob Herring
maintainerQuoted 43 lines · Frank Li
Convert eukrea-tlv320.txt to yaml format.
Signed-off-by Frank Li <[email protected]>---
change in v3
- add fsl,mux-int-port and fsl,mux-out-port to required
change in v2
- Add comments about "The AUDMUX port numbering should start at 1"
v1: https://lore.kernel.org/linux-devicetree/CAEnQRZACes8EptdEgg0i0vzdcxgUJwZAfQHU0DEhMnXtA-g01Q@mail.gmail.com/--- .../bindings/sound/eukrea,asoc-tlv320.yaml | 57 +++++++++++++++++++ .../bindings/sound/eukrea-tlv320.txt | 26 --------- 2 files changed, 57 insertions(+), 26 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/eukrea,asoc-tlv320.yaml delete mode 100644 Documentation/devicetree/bindings/sound/eukrea-tlv320.txtDocumentation/devicetree/bindings/sound/eukrea,asoc-tlv320.yaml new file +21
-0@@ -0,0 +1,57 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/eukrea,asoc-tlv320.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Audio complex for Eukrea boards with tlv320aic23 codec. + +maintainers: + - Frank Li <[email protected]> + +properties: + compatible: + const: eukrea,asoc-tlv320 + + eukrea,model: + $ref: /schemas/types.yaml#/definitions/string + description: + The user-visible name of this sound complex. + + ssi-controller:
Documentation/devicetree/bindings/sound/eukrea,asoc-tlv320.yaml line 31
Quoted 10 lines
Documentation/devicetree/bindings/sound/eukrea,asoc-tlv320.yaml new file +10
-0+ $ref: /schemas/types.yaml#/definitions/phandle + description: + The phandle of the SSI controller. + + fsl,mux-int-port: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + The internal port of the i.MX audio muxer (AUDMUX). + Note: The AUDMUX port numbering should start at 1, which is consistent with + hardware manual.
Sounds like a constraint.
minimum: 1
Is there a max? I'd assume it is much less than 2^32.
Rob