xref: /freebsd/sys/contrib/device-tree/Bindings/sound/intel,keembay-i2s.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
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
8*7ef62cebSEmmanuel Vadottitle: Intel KeemBay I2S
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
206be33864SEmmanuel Vadot      - intel,keembay-tdm
215def4c47SEmmanuel Vadot      - intel,keembay-hdmi-i2s
22c66ec88fSEmmanuel Vadot
23c66ec88fSEmmanuel Vadot  "#sound-dai-cells":
24c66ec88fSEmmanuel Vadot    const: 0
25c66ec88fSEmmanuel Vadot
26c66ec88fSEmmanuel Vadot  reg:
27c66ec88fSEmmanuel Vadot    items:
28c66ec88fSEmmanuel Vadot      - description: I2S registers
29c66ec88fSEmmanuel Vadot      - description: I2S gen configuration
30c66ec88fSEmmanuel Vadot
31c66ec88fSEmmanuel Vadot  reg-names:
32c66ec88fSEmmanuel Vadot    items:
33c66ec88fSEmmanuel Vadot      - const: i2s-regs
34c66ec88fSEmmanuel Vadot      - const: i2s_gen_cfg
35c66ec88fSEmmanuel Vadot
36c66ec88fSEmmanuel Vadot  interrupts:
37c66ec88fSEmmanuel Vadot    maxItems: 1
38c66ec88fSEmmanuel Vadot
39c66ec88fSEmmanuel Vadot  clocks:
40c66ec88fSEmmanuel Vadot    items:
41c66ec88fSEmmanuel Vadot      - description: Bus Clock
42c66ec88fSEmmanuel Vadot      - description: Module Clock
43c66ec88fSEmmanuel Vadot
44c66ec88fSEmmanuel Vadot  clock-names:
45c66ec88fSEmmanuel Vadot    items:
46c66ec88fSEmmanuel Vadot      - const: osc
47c66ec88fSEmmanuel Vadot      - const: apb_clk
48c66ec88fSEmmanuel Vadot
495def4c47SEmmanuel Vadot  dmas:
505def4c47SEmmanuel Vadot    items:
515def4c47SEmmanuel Vadot      - description: DMA TX channel
525def4c47SEmmanuel Vadot      - description: DMA RX channel
535def4c47SEmmanuel Vadot
545def4c47SEmmanuel Vadot  dma-names:
555def4c47SEmmanuel Vadot    items:
565def4c47SEmmanuel Vadot      - const: tx
575def4c47SEmmanuel Vadot      - const: rx
585def4c47SEmmanuel Vadot
59c66ec88fSEmmanuel Vadotrequired:
60c66ec88fSEmmanuel Vadot  - compatible
61c66ec88fSEmmanuel Vadot  - "#sound-dai-cells"
62c66ec88fSEmmanuel Vadot  - reg
63c66ec88fSEmmanuel Vadot  - clocks
64c66ec88fSEmmanuel Vadot  - clock-names
65c66ec88fSEmmanuel Vadot  - interrupts
66c66ec88fSEmmanuel Vadot
676be33864SEmmanuel VadotadditionalProperties: false
686be33864SEmmanuel Vadot
69c66ec88fSEmmanuel Vadotexamples:
70c66ec88fSEmmanuel Vadot  - |
71c66ec88fSEmmanuel Vadot     #include <dt-bindings/interrupt-controller/arm-gic.h>
72c66ec88fSEmmanuel Vadot     #include <dt-bindings/interrupt-controller/irq.h>
73c66ec88fSEmmanuel Vadot     #define KEEM_BAY_PSS_AUX_I2S3
74c66ec88fSEmmanuel Vadot     #define KEEM_BAY_PSS_I2S3
75c66ec88fSEmmanuel Vadot     i2s3: i2s@20140000 {
76c66ec88fSEmmanuel Vadot         compatible = "intel,keembay-i2s";
77c66ec88fSEmmanuel Vadot         #sound-dai-cells = <0>;
78c66ec88fSEmmanuel Vadot         reg = <0x20140000 0x200>, /* I2S registers */
79c66ec88fSEmmanuel Vadot               <0x202a00a4 0x4>; /* I2S gen configuration */
80c66ec88fSEmmanuel Vadot         reg-names = "i2s-regs", "i2s_gen_cfg";
81c66ec88fSEmmanuel Vadot         interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
82c66ec88fSEmmanuel Vadot         clock-names = "osc", "apb_clk";
83c66ec88fSEmmanuel Vadot         clocks = <&scmi_clk KEEM_BAY_PSS_AUX_I2S3>, <&scmi_clk KEEM_BAY_PSS_I2S3>;
842eb4d8dcSEmmanuel Vadot         dmas = <&axi_dma0 29>, <&axi_dma0 33>;
855def4c47SEmmanuel Vadot         dma-names = "tx", "rx";
86c66ec88fSEmmanuel Vadot     };
87