xref: /linux/Documentation/devicetree/bindings/sound/rockchip,rockchip-audio-max98090.yaml (revision 0fc8f6200d2313278fbf4539bbab74677c685531)
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
7title: Rockchip audio complex with MAX98090 codec
8
9maintainers:
10  - Fabio Estevam <festevam@gmail.com>
11
12properties:
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
36required:
37  - compatible
38  - rockchip,model
39  - rockchip,i2s-controller
40
41allOf:
42  - if:
43      required:
44        - rockchip,audio-codec
45    then:
46      required:
47        - rockchip,headset-codec
48
49unevaluatedProperties: false
50
51examples:
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    };
60