Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: dt-bindings: rockchip: Convert rockchip-max98090.txt to yaml

Convert rockchip-max98090.txt to yaml to allow dt-schema validation.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260324135508.839142-1-festevam@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Fabio Estevam and committed by
Mark Brown
c9b48a45 f7d9eb02

+59 -42
+59
Documentation/devicetree/bindings/sound/rockchip,rockchip-audio-max98090.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/sound/rockchip,rockchip-audio-max98090.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Rockchip audio complex with MAX98090 codec 8 + 9 + maintainers: 10 + - Fabio Estevam <festevam@gmail.com> 11 + 12 + properties: 13 + compatible: 14 + const: rockchip,rockchip-audio-max98090 15 + 16 + rockchip,model: 17 + $ref: /schemas/types.yaml#/definitions/string 18 + description: The user-visible name of this sound complex. 19 + 20 + rockchip,i2s-controller: 21 + $ref: /schemas/types.yaml#/definitions/phandle 22 + description: Phandle to the Rockchip I2S controller. 23 + 24 + rockchip,audio-codec: 25 + $ref: /schemas/types.yaml#/definitions/phandle 26 + description: Phandle to the MAX98090 audio codec. 27 + 28 + rockchip,headset-codec: 29 + $ref: /schemas/types.yaml#/definitions/phandle 30 + description: Phandle to the external chip for jack detection. 31 + 32 + rockchip,hdmi-codec: 33 + $ref: /schemas/types.yaml#/definitions/phandle 34 + description: Phandle to the HDMI device for HDMI codec. 35 + 36 + required: 37 + - compatible 38 + - rockchip,model 39 + - rockchip,i2s-controller 40 + 41 + allOf: 42 + - if: 43 + required: 44 + - rockchip,audio-codec 45 + then: 46 + required: 47 + - rockchip,headset-codec 48 + 49 + unevaluatedProperties: false 50 + 51 + examples: 52 + - | 53 + sound { 54 + compatible = "rockchip,rockchip-audio-max98090"; 55 + rockchip,model = "ROCKCHIP-I2S"; 56 + rockchip,i2s-controller = <&i2s>; 57 + rockchip,audio-codec = <&max98090>; 58 + rockchip,headset-codec = <&headsetcodec>; 59 + };
-42
Documentation/devicetree/bindings/sound/rockchip-max98090.txt
··· 1 - ROCKCHIP with MAX98090 CODEC 2 - 3 - Required properties: 4 - - compatible: "rockchip,rockchip-audio-max98090" 5 - - rockchip,model: The user-visible name of this sound complex 6 - - rockchip,i2s-controller: The phandle of the Rockchip I2S controller that's 7 - connected to the CODEC 8 - 9 - Optional properties: 10 - - rockchip,audio-codec: The phandle of the MAX98090 audio codec. 11 - - rockchip,headset-codec: The phandle of Ext chip for jack detection. This is 12 - required if there is rockchip,audio-codec. 13 - - rockchip,hdmi-codec: The phandle of HDMI device for HDMI codec. 14 - 15 - Example: 16 - 17 - /* For max98090-only board. */ 18 - sound { 19 - compatible = "rockchip,rockchip-audio-max98090"; 20 - rockchip,model = "ROCKCHIP-I2S"; 21 - rockchip,i2s-controller = <&i2s>; 22 - rockchip,audio-codec = <&max98090>; 23 - rockchip,headset-codec = <&headsetcodec>; 24 - }; 25 - 26 - /* For HDMI-only board. */ 27 - sound { 28 - compatible = "rockchip,rockchip-audio-max98090"; 29 - rockchip,model = "ROCKCHIP-I2S"; 30 - rockchip,i2s-controller = <&i2s>; 31 - rockchip,hdmi-codec = <&hdmi>; 32 - }; 33 - 34 - /* For max98090 plus HDMI board. */ 35 - sound { 36 - compatible = "rockchip,rockchip-audio-max98090"; 37 - rockchip,model = "ROCKCHIP-I2S"; 38 - rockchip,i2s-controller = <&i2s>; 39 - rockchip,audio-codec = <&max98090>; 40 - rockchip,headset-codec = <&headsetcodec>; 41 - rockchip,hdmi-codec = <&hdmi>; 42 - };