xref: /freebsd/sys/contrib/device-tree/Bindings/sound/intel,keembay-i2s.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
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
87ef62cebSEmmanuel Vadottitle: Intel KeemBay I2S
9c66ec88fSEmmanuel Vadot
10c66ec88fSEmmanuel Vadotmaintainers:
11*8bab661aSEmmanuel Vadot  - Daniele Alessandrelli <daniele.alessandrelli@intel.com>
12*8bab661aSEmmanuel Vadot  - Paul J. Murphy <paul.j.murphy@intel.com>
13c66ec88fSEmmanuel Vadot
14c66ec88fSEmmanuel Vadotdescription: |
15c66ec88fSEmmanuel Vadot Intel KeemBay I2S
16c66ec88fSEmmanuel Vadot
17*8bab661aSEmmanuel VadotallOf:
18*8bab661aSEmmanuel Vadot  - $ref: dai-common.yaml#
19*8bab661aSEmmanuel Vadot
20c66ec88fSEmmanuel Vadotproperties:
21c66ec88fSEmmanuel Vadot  compatible:
22c66ec88fSEmmanuel Vadot    enum:
23c66ec88fSEmmanuel Vadot      - intel,keembay-i2s
246be33864SEmmanuel Vadot      - intel,keembay-tdm
255def4c47SEmmanuel Vadot      - intel,keembay-hdmi-i2s
26c66ec88fSEmmanuel Vadot
27c66ec88fSEmmanuel Vadot  "#sound-dai-cells":
28c66ec88fSEmmanuel Vadot    const: 0
29c66ec88fSEmmanuel Vadot
30c66ec88fSEmmanuel Vadot  reg:
31c66ec88fSEmmanuel Vadot    items:
32c66ec88fSEmmanuel Vadot      - description: I2S registers
33c66ec88fSEmmanuel Vadot      - description: I2S gen configuration
34c66ec88fSEmmanuel Vadot
35c66ec88fSEmmanuel Vadot  reg-names:
36c66ec88fSEmmanuel Vadot    items:
37c66ec88fSEmmanuel Vadot      - const: i2s-regs
38c66ec88fSEmmanuel Vadot      - const: i2s_gen_cfg
39c66ec88fSEmmanuel Vadot
40c66ec88fSEmmanuel Vadot  interrupts:
41c66ec88fSEmmanuel Vadot    maxItems: 1
42c66ec88fSEmmanuel Vadot
43c66ec88fSEmmanuel Vadot  clocks:
44c66ec88fSEmmanuel Vadot    items:
45c66ec88fSEmmanuel Vadot      - description: Bus Clock
46c66ec88fSEmmanuel Vadot      - description: Module Clock
47c66ec88fSEmmanuel Vadot
48c66ec88fSEmmanuel Vadot  clock-names:
49c66ec88fSEmmanuel Vadot    items:
50c66ec88fSEmmanuel Vadot      - const: osc
51c66ec88fSEmmanuel Vadot      - const: apb_clk
52c66ec88fSEmmanuel Vadot
535def4c47SEmmanuel Vadot  dmas:
545def4c47SEmmanuel Vadot    items:
555def4c47SEmmanuel Vadot      - description: DMA TX channel
565def4c47SEmmanuel Vadot      - description: DMA RX channel
575def4c47SEmmanuel Vadot
585def4c47SEmmanuel Vadot  dma-names:
595def4c47SEmmanuel Vadot    items:
605def4c47SEmmanuel Vadot      - const: tx
615def4c47SEmmanuel Vadot      - const: rx
625def4c47SEmmanuel Vadot
63c66ec88fSEmmanuel Vadotrequired:
64c66ec88fSEmmanuel Vadot  - compatible
65c66ec88fSEmmanuel Vadot  - "#sound-dai-cells"
66c66ec88fSEmmanuel Vadot  - reg
67c66ec88fSEmmanuel Vadot  - clocks
68c66ec88fSEmmanuel Vadot  - clock-names
69c66ec88fSEmmanuel Vadot  - interrupts
70c66ec88fSEmmanuel Vadot
71*8bab661aSEmmanuel VadotunevaluatedProperties: false
726be33864SEmmanuel Vadot
73c66ec88fSEmmanuel Vadotexamples:
74c66ec88fSEmmanuel Vadot  - |
75c66ec88fSEmmanuel Vadot     #include <dt-bindings/interrupt-controller/arm-gic.h>
76c66ec88fSEmmanuel Vadot     #include <dt-bindings/interrupt-controller/irq.h>
77c66ec88fSEmmanuel Vadot     #define KEEM_BAY_PSS_AUX_I2S3
78c66ec88fSEmmanuel Vadot     #define KEEM_BAY_PSS_I2S3
79c66ec88fSEmmanuel Vadot     i2s3: i2s@20140000 {
80c66ec88fSEmmanuel Vadot         compatible = "intel,keembay-i2s";
81c66ec88fSEmmanuel Vadot         #sound-dai-cells = <0>;
82c66ec88fSEmmanuel Vadot         reg = <0x20140000 0x200>, /* I2S registers */
83c66ec88fSEmmanuel Vadot               <0x202a00a4 0x4>; /* I2S gen configuration */
84c66ec88fSEmmanuel Vadot         reg-names = "i2s-regs", "i2s_gen_cfg";
85c66ec88fSEmmanuel Vadot         interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
86c66ec88fSEmmanuel Vadot         clock-names = "osc", "apb_clk";
87c66ec88fSEmmanuel Vadot         clocks = <&scmi_clk KEEM_BAY_PSS_AUX_I2S3>, <&scmi_clk KEEM_BAY_PSS_I2S3>;
882eb4d8dcSEmmanuel Vadot         dmas = <&axi_dma0 29>, <&axi_dma0 33>;
895def4c47SEmmanuel Vadot         dma-names = "tx", "rx";
90c66ec88fSEmmanuel Vadot     };
91