xref: /freebsd/sys/contrib/device-tree/Bindings/sound/intel,keembay-i2s.yaml (revision 6be3386466ab79a84b48429ae66244f21526d3df)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot# Copyright 2020 Intel Corporation
3c66ec88fSEmmanuel Vadot%YAML 1.2
4c66ec88fSEmmanuel Vadot---
5c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/intel,keembay-i2s.yaml#
6c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
7c66ec88fSEmmanuel Vadot
8c66ec88fSEmmanuel Vadottitle: Intel KeemBay I2S Device Tree Bindings
9c66ec88fSEmmanuel Vadot
10c66ec88fSEmmanuel Vadotmaintainers:
11c66ec88fSEmmanuel Vadot  - Sia, Jee Heng <jee.heng.sia@intel.com>
12c66ec88fSEmmanuel Vadot
13c66ec88fSEmmanuel Vadotdescription: |
14c66ec88fSEmmanuel Vadot Intel KeemBay I2S
15c66ec88fSEmmanuel Vadot
16c66ec88fSEmmanuel Vadotproperties:
17c66ec88fSEmmanuel Vadot  compatible:
18c66ec88fSEmmanuel Vadot    enum:
19c66ec88fSEmmanuel Vadot      - intel,keembay-i2s
20*6be33864SEmmanuel Vadot      - intel,keembay-tdm
21c66ec88fSEmmanuel Vadot
22c66ec88fSEmmanuel Vadot  "#sound-dai-cells":
23c66ec88fSEmmanuel Vadot    const: 0
24c66ec88fSEmmanuel Vadot
25c66ec88fSEmmanuel Vadot  reg:
26c66ec88fSEmmanuel Vadot    items:
27c66ec88fSEmmanuel Vadot      - description: I2S registers
28c66ec88fSEmmanuel Vadot      - description: I2S gen configuration
29c66ec88fSEmmanuel Vadot
30c66ec88fSEmmanuel Vadot  reg-names:
31c66ec88fSEmmanuel Vadot    items:
32c66ec88fSEmmanuel Vadot      - const: i2s-regs
33c66ec88fSEmmanuel Vadot      - const: i2s_gen_cfg
34c66ec88fSEmmanuel Vadot
35c66ec88fSEmmanuel Vadot  interrupts:
36c66ec88fSEmmanuel Vadot    maxItems: 1
37c66ec88fSEmmanuel Vadot
38c66ec88fSEmmanuel Vadot  clocks:
39c66ec88fSEmmanuel Vadot    items:
40c66ec88fSEmmanuel Vadot      - description: Bus Clock
41c66ec88fSEmmanuel Vadot      - description: Module Clock
42c66ec88fSEmmanuel Vadot
43c66ec88fSEmmanuel Vadot  clock-names:
44c66ec88fSEmmanuel Vadot    items:
45c66ec88fSEmmanuel Vadot      - const: osc
46c66ec88fSEmmanuel Vadot      - const: apb_clk
47c66ec88fSEmmanuel Vadot
48c66ec88fSEmmanuel Vadotrequired:
49c66ec88fSEmmanuel Vadot  - compatible
50c66ec88fSEmmanuel Vadot  - "#sound-dai-cells"
51c66ec88fSEmmanuel Vadot  - reg
52c66ec88fSEmmanuel Vadot  - clocks
53c66ec88fSEmmanuel Vadot  - clock-names
54c66ec88fSEmmanuel Vadot  - interrupts
55c66ec88fSEmmanuel Vadot
56*6be33864SEmmanuel VadotadditionalProperties: false
57*6be33864SEmmanuel Vadot
58c66ec88fSEmmanuel Vadotexamples:
59c66ec88fSEmmanuel Vadot  - |
60c66ec88fSEmmanuel Vadot     #include <dt-bindings/interrupt-controller/arm-gic.h>
61c66ec88fSEmmanuel Vadot     #include <dt-bindings/interrupt-controller/irq.h>
62c66ec88fSEmmanuel Vadot     #define KEEM_BAY_PSS_AUX_I2S3
63c66ec88fSEmmanuel Vadot     #define KEEM_BAY_PSS_I2S3
64c66ec88fSEmmanuel Vadot     i2s3: i2s@20140000 {
65c66ec88fSEmmanuel Vadot         compatible = "intel,keembay-i2s";
66c66ec88fSEmmanuel Vadot         #sound-dai-cells = <0>;
67c66ec88fSEmmanuel Vadot         reg = <0x20140000 0x200>, /* I2S registers */
68c66ec88fSEmmanuel Vadot               <0x202a00a4 0x4>; /* I2S gen configuration */
69c66ec88fSEmmanuel Vadot         reg-names = "i2s-regs", "i2s_gen_cfg";
70c66ec88fSEmmanuel Vadot         interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
71c66ec88fSEmmanuel Vadot         clock-names = "osc", "apb_clk";
72c66ec88fSEmmanuel Vadot         clocks = <&scmi_clk KEEM_BAY_PSS_AUX_I2S3>, <&scmi_clk KEEM_BAY_PSS_I2S3>;
73c66ec88fSEmmanuel Vadot     };
74