xref: /linux/Documentation/devicetree/bindings/sound/hisilicon,hi6210-i2s.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/hisilicon,hi6210-i2s.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: HiSilicon hi6210 I2S controller
8
9maintainers:
10  - John Stultz <john.stultz@linaro.org>
11
12allOf:
13  - $ref: dai-common.yaml#
14
15properties:
16  compatible:
17    const: hisilicon,hi6210-i2s
18
19  reg:
20    maxItems: 1
21
22  interrupts:
23    maxItems: 1
24
25  clocks:
26    maxItems: 2
27
28  clock-names:
29    items:
30      - const: dacodec
31      - const: i2s-base
32
33  dmas:
34    maxItems: 2
35
36  dma-names:
37    items:
38      - const: tx
39      - const: rx
40
41  hisilicon,sysctrl-syscon:
42    $ref: /schemas/types.yaml#/definitions/phandle
43    description: phandle to sysctrl syscon
44
45  "#sound-dai-cells":
46    const: 1
47    description: |
48      The dai cell indexes reference the following interfaces:
49        0: S2 interface
50
51required:
52  - compatible
53  - reg
54  - interrupts
55  - clocks
56  - clock-names
57  - dmas
58  - dma-names
59  - hisilicon,sysctrl-syscon
60  - "#sound-dai-cells"
61
62unevaluatedProperties: false
63
64examples:
65  - |
66    #include <dt-bindings/interrupt-controller/arm-gic.h>
67    #include <dt-bindings/clock/hi6220-clock.h>
68
69    i2s@f7118000 {
70        compatible = "hisilicon,hi6210-i2s";
71        reg = <0xf7118000 0x8000>;
72        interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
73        clocks = <&sys_ctrl HI6220_DACODEC_PCLK>,
74                 <&sys_ctrl HI6220_BBPPLL0_DIV>;
75        clock-names = "dacodec", "i2s-base";
76        dmas = <&dma0 14>, <&dma0 15>;
77        dma-names = "tx", "rx";
78        hisilicon,sysctrl-syscon = <&sys_ctrl>;
79        #sound-dai-cells = <1>;
80    };
81