xref: /linux/Documentation/devicetree/bindings/sound/rockchip,rk3036-codec.yaml (revision 7f71507851fc7764b36a3221839607d3a45c2025)
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,rk3036-codec.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Rockchip RK3036 internal codec
8
9maintainers:
10  - Heiko Stuebner <heiko@sntech.de>
11
12allOf:
13  - $ref: dai-common.yaml#
14
15properties:
16  compatible:
17    const: rockchip,rk3036-codec
18
19  reg:
20    maxItems: 1
21
22  clocks:
23    items:
24      - description: clock for audio codec
25
26  clock-names:
27    items:
28      - const: acodec_pclk
29
30  rockchip,grf:
31    $ref: /schemas/types.yaml#/definitions/phandle
32    description:
33      The phandle of the syscon node for the GRF register.
34
35  "#sound-dai-cells":
36    const: 0
37
38required:
39  - compatible
40  - reg
41  - clocks
42  - clock-names
43  - rockchip,grf
44  - "#sound-dai-cells"
45
46unevaluatedProperties: false
47
48examples:
49  - |
50    #include <dt-bindings/clock/rk3036-cru.h>
51    acodec: audio-codec@20030000 {
52      compatible = "rockchip,rk3036-codec";
53      reg = <0x20030000 0x4000>;
54      rockchip,grf = <&grf>;
55      clock-names = "acodec_pclk";
56      clocks = <&cru ACLK_VCODEC>;
57      #sound-dai-cells = <0>;
58    };
59