xref: /linux/Documentation/devicetree/bindings/sound/rockchip,rk3036-codec.yaml (revision 25768de50b1f2dbb6ea44bd5148a87fe2c9c3688)
1*5cd575a8SHeiko Stuebner# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*5cd575a8SHeiko Stuebner%YAML 1.2
3*5cd575a8SHeiko Stuebner---
4*5cd575a8SHeiko Stuebner$id: http://devicetree.org/schemas/sound/rockchip,rk3036-codec.yaml#
5*5cd575a8SHeiko Stuebner$schema: http://devicetree.org/meta-schemas/core.yaml#
6*5cd575a8SHeiko Stuebner
7*5cd575a8SHeiko Stuebnertitle: Rockchip RK3036 internal codec
8*5cd575a8SHeiko Stuebner
9*5cd575a8SHeiko Stuebnermaintainers:
10*5cd575a8SHeiko Stuebner  - Heiko Stuebner <heiko@sntech.de>
11*5cd575a8SHeiko Stuebner
12*5cd575a8SHeiko StuebnerallOf:
13*5cd575a8SHeiko Stuebner  - $ref: dai-common.yaml#
14*5cd575a8SHeiko Stuebner
15*5cd575a8SHeiko Stuebnerproperties:
16*5cd575a8SHeiko Stuebner  compatible:
17*5cd575a8SHeiko Stuebner    const: rockchip,rk3036-codec
18*5cd575a8SHeiko Stuebner
19*5cd575a8SHeiko Stuebner  reg:
20*5cd575a8SHeiko Stuebner    maxItems: 1
21*5cd575a8SHeiko Stuebner
22*5cd575a8SHeiko Stuebner  clocks:
23*5cd575a8SHeiko Stuebner    items:
24*5cd575a8SHeiko Stuebner      - description: clock for audio codec
25*5cd575a8SHeiko Stuebner
26*5cd575a8SHeiko Stuebner  clock-names:
27*5cd575a8SHeiko Stuebner    items:
28*5cd575a8SHeiko Stuebner      - const: acodec_pclk
29*5cd575a8SHeiko Stuebner
30*5cd575a8SHeiko Stuebner  rockchip,grf:
31*5cd575a8SHeiko Stuebner    $ref: /schemas/types.yaml#/definitions/phandle
32*5cd575a8SHeiko Stuebner    description:
33*5cd575a8SHeiko Stuebner      The phandle of the syscon node for the GRF register.
34*5cd575a8SHeiko Stuebner
35*5cd575a8SHeiko Stuebner  "#sound-dai-cells":
36*5cd575a8SHeiko Stuebner    const: 0
37*5cd575a8SHeiko Stuebner
38*5cd575a8SHeiko Stuebnerrequired:
39*5cd575a8SHeiko Stuebner  - compatible
40*5cd575a8SHeiko Stuebner  - reg
41*5cd575a8SHeiko Stuebner  - clocks
42*5cd575a8SHeiko Stuebner  - clock-names
43*5cd575a8SHeiko Stuebner  - rockchip,grf
44*5cd575a8SHeiko Stuebner  - "#sound-dai-cells"
45*5cd575a8SHeiko Stuebner
46*5cd575a8SHeiko StuebnerunevaluatedProperties: false
47*5cd575a8SHeiko Stuebner
48*5cd575a8SHeiko Stuebnerexamples:
49*5cd575a8SHeiko Stuebner  - |
50*5cd575a8SHeiko Stuebner    #include <dt-bindings/clock/rk3036-cru.h>
51*5cd575a8SHeiko Stuebner    acodec: audio-codec@20030000 {
52*5cd575a8SHeiko Stuebner      compatible = "rockchip,rk3036-codec";
53*5cd575a8SHeiko Stuebner      reg = <0x20030000 0x4000>;
54*5cd575a8SHeiko Stuebner      rockchip,grf = <&grf>;
55*5cd575a8SHeiko Stuebner      clock-names = "acodec_pclk";
56*5cd575a8SHeiko Stuebner      clocks = <&cru ACLK_VCODEC>;
57*5cd575a8SHeiko Stuebner      #sound-dai-cells = <0>;
58*5cd575a8SHeiko Stuebner    };
59