ASoC: dt-bindings: rockchip: Convert rockchip-max98090.txt to yaml
Subsystems (4)
PATCH 1/1 ASoC: dt-bindings: rockchip: Convert rockchip-max98090.txt to yaml
Convert rockchip-max98090.txt to yaml to allow dt-schema validation.
--- .../rockchip,rockchip-audio-max98090.yaml | 59 +++++++++++++++++++ .../bindings/sound/rockchip-max98090.txt | 42 ------------- 2 files changed, 59 insertions(+), 42 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/rockchip,rockchip-audio-max98090.yaml delete mode 100644 Documentation/devicetree/bindings/sound/rockchip-max98090.txt
Documentation/devicetree/bindings/sound/rockchip,rockchip-audio-max98090.yaml new file +59 -0
@@ -0,0 +1,59 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/rockchip,rockchip-audio-max98090.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip audio complex with MAX98090 codec + +maintainers: + - Fabio Estevam <[email protected]> + +properties: + compatible: + const: rockchip,rockchip-audio-max98090 + + rockchip,model: + $ref: /schemas/types.yaml#/definitions/string + description: The user-visible name of this sound complex. + + rockchip,i2s-controller: + $ref: /schemas/types.yaml#/definitions/phandle + description: Phandle to the Rockchip I2S controller. + + rockchip,audio-codec: + $ref: /schemas/types.yaml#/definitions/phandle + description: Phandle to the MAX98090 audio codec. + + rockchip,headset-codec: + $ref: /schemas/types.yaml#/definitions/phandle + description: Phandle to the external chip for jack detection. + + rockchip,hdmi-codec: + $ref: /schemas/types.yaml#/definitions/phandle + description: Phandle to the HDMI device for HDMI codec. + +required: + - compatible + - rockchip,model + - rockchip,i2s-controller + +allOf: + - if: + required: + - rockchip,audio-codec + then: + required: + - rockchip,headset-codec + +unevaluatedProperties: false + +examples: + - | + sound { + compatible = "rockchip,rockchip-audio-max98090"; + rockchip,model = "ROCKCHIP-I2S"; + rockchip,i2s-controller = <&i2s>; + rockchip,audio-codec = <&max98090>; + rockchip,headset-codec = <&headsetcodec>; + };
Documentation/devicetree/bindings/sound/rockchip-max98090.txt deleted +0 -42
42 lines not on this page · raw message
Signature · 1 line
2.43.0
Documentation/devicetree/bindings/sound/rockchip,rockchip-audio-max98090.yaml line 14
Quoted 4 lines · Fabio Estevam
Documentation/devicetree/bindings/sound/rockchip,rockchip-audio-max98090.yaml new file +4
-0+ +properties: + compatible: + const: rockchip,rockchip-audio-max98090
Not the best compatible ever :)
Best regards,
Krzysztof
Mark Brown
maintainerQuoted 1 line · Fabio Estevam
ASoC: dt-bindings: rockchip: Convert rockchip-max98090.txt to yaml
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.1
Thanks!
[1/1] ASoC: dt-bindings: rockchip: Convert rockchip-max98090.txt to yaml
https://git.kernel.org/broonie/sound/c/c9b48a451ca8
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark