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 Device Tree Bindings
9
10maintainers:
11  - Sia, Jee Heng <jee.heng.sia@intel.com>
12
13description: |
14 Intel KeemBay I2S
15
16properties:
17  compatible:
18    enum:
19      - intel,keembay-i2s
20
21  "#sound-dai-cells":
22    const: 0
23
24  reg:
25    items:
26      - description: I2S registers
27      - description: I2S gen configuration
28
29  reg-names:
30    items:
31      - const: i2s-regs
32      - const: i2s_gen_cfg
33
34  interrupts:
35    maxItems: 1
36
37  clocks:
38    items:
39      - description: Bus Clock
40      - description: Module Clock
41
42  clock-names:
43    items:
44      - const: osc
45      - const: apb_clk
46
47required:
48  - compatible
49  - "#sound-dai-cells"
50  - reg
51  - clocks
52  - clock-names
53  - interrupts
54
55examples:
56  - |
57     #include <dt-bindings/interrupt-controller/arm-gic.h>
58     #include <dt-bindings/interrupt-controller/irq.h>
59     #define KEEM_BAY_PSS_AUX_I2S3
60     #define KEEM_BAY_PSS_I2S3
61     i2s3: i2s@20140000 {
62         compatible = "intel,keembay-i2s";
63         #sound-dai-cells = <0>;
64         reg = <0x20140000 0x200>, /* I2S registers */
65               <0x202a00a4 0x4>; /* I2S gen configuration */
66         reg-names = "i2s-regs", "i2s_gen_cfg";
67         interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
68         clock-names = "osc", "apb_clk";
69         clocks = <&scmi_clk KEEM_BAY_PSS_AUX_I2S3>, <&scmi_clk KEEM_BAY_PSS_I2S3>;
70     };
71