xref: /linux/Documentation/devicetree/bindings/sound/intel,keembay-i2s.yaml (revision 8ec2d95f50c06f5cf2a2b94bcdf47f494f91ad55)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2# Copyright 2020 Intel Corporation
3%YAML 1.2
4---
5$id: http://devicetree.org/schemas/sound/intel,keembay-i2s.yaml#
6$schema: http://devicetree.org/meta-schemas/core.yaml#
7
8title: Intel KeemBay I2S
9
10maintainers:
11  - Sia, Jee Heng <jee.heng.sia@intel.com>
12
13description: |
14 Intel KeemBay I2S
15
16allOf:
17  - $ref: dai-common.yaml#
18
19properties:
20  compatible:
21    enum:
22      - intel,keembay-i2s
23      - intel,keembay-tdm
24      - intel,keembay-hdmi-i2s
25
26  "#sound-dai-cells":
27    const: 0
28
29  reg:
30    items:
31      - description: I2S registers
32      - description: I2S gen configuration
33
34  reg-names:
35    items:
36      - const: i2s-regs
37      - const: i2s_gen_cfg
38
39  interrupts:
40    maxItems: 1
41
42  clocks:
43    items:
44      - description: Bus Clock
45      - description: Module Clock
46
47  clock-names:
48    items:
49      - const: osc
50      - const: apb_clk
51
52  dmas:
53    items:
54      - description: DMA TX channel
55      - description: DMA RX channel
56
57  dma-names:
58    items:
59      - const: tx
60      - const: rx
61
62required:
63  - compatible
64  - "#sound-dai-cells"
65  - reg
66  - clocks
67  - clock-names
68  - interrupts
69
70unevaluatedProperties: false
71
72examples:
73  - |
74     #include <dt-bindings/interrupt-controller/arm-gic.h>
75     #include <dt-bindings/interrupt-controller/irq.h>
76     #define KEEM_BAY_PSS_AUX_I2S3
77     #define KEEM_BAY_PSS_I2S3
78     i2s3: i2s@20140000 {
79         compatible = "intel,keembay-i2s";
80         #sound-dai-cells = <0>;
81         reg = <0x20140000 0x200>, /* I2S registers */
82               <0x202a00a4 0x4>; /* I2S gen configuration */
83         reg-names = "i2s-regs", "i2s_gen_cfg";
84         interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
85         clock-names = "osc", "apb_clk";
86         clocks = <&scmi_clk KEEM_BAY_PSS_AUX_I2S3>, <&scmi_clk KEEM_BAY_PSS_I2S3>;
87         dmas = <&axi_dma0 29>, <&axi_dma0 33>;
88         dma-names = "tx", "rx";
89     };
90