xref: /freebsd/sys/contrib/device-tree/Bindings/sound/nxp,lpc3220-i2s.yaml (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1*0e8011faSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*0e8011faSEmmanuel Vadot%YAML 1.2
3*0e8011faSEmmanuel Vadot---
4*0e8011faSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/nxp,lpc3220-i2s.yaml#
5*0e8011faSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*0e8011faSEmmanuel Vadot
7*0e8011faSEmmanuel Vadottitle: NXP LPC32XX I2S Controller
8*0e8011faSEmmanuel Vadot
9*0e8011faSEmmanuel Vadotdescription:
10*0e8011faSEmmanuel Vadot  The I2S controller in LPC32XX SoCs, ASoC DAI.
11*0e8011faSEmmanuel Vadot
12*0e8011faSEmmanuel Vadotmaintainers:
13*0e8011faSEmmanuel Vadot  - J.M.B. Downing <jonathan.downing@nautel.com>
14*0e8011faSEmmanuel Vadot  - Piotr Wojtaszczyk <piotr.wojtaszczyk@timesys.com>
15*0e8011faSEmmanuel Vadot
16*0e8011faSEmmanuel VadotallOf:
17*0e8011faSEmmanuel Vadot  - $ref: dai-common.yaml#
18*0e8011faSEmmanuel Vadot
19*0e8011faSEmmanuel Vadotproperties:
20*0e8011faSEmmanuel Vadot  compatible:
21*0e8011faSEmmanuel Vadot    enum:
22*0e8011faSEmmanuel Vadot      - nxp,lpc3220-i2s
23*0e8011faSEmmanuel Vadot
24*0e8011faSEmmanuel Vadot  reg:
25*0e8011faSEmmanuel Vadot    maxItems: 1
26*0e8011faSEmmanuel Vadot
27*0e8011faSEmmanuel Vadot  interrupts:
28*0e8011faSEmmanuel Vadot    maxItems: 1
29*0e8011faSEmmanuel Vadot
30*0e8011faSEmmanuel Vadot  clocks:
31*0e8011faSEmmanuel Vadot    items:
32*0e8011faSEmmanuel Vadot      - description: input clock of the peripheral.
33*0e8011faSEmmanuel Vadot
34*0e8011faSEmmanuel Vadot  dmas:
35*0e8011faSEmmanuel Vadot    items:
36*0e8011faSEmmanuel Vadot      - description: RX DMA Channel
37*0e8011faSEmmanuel Vadot      - description: TX DMA Channel
38*0e8011faSEmmanuel Vadot
39*0e8011faSEmmanuel Vadot  dma-names:
40*0e8011faSEmmanuel Vadot    items:
41*0e8011faSEmmanuel Vadot      - const: rx
42*0e8011faSEmmanuel Vadot      - const: tx
43*0e8011faSEmmanuel Vadot
44*0e8011faSEmmanuel Vadot  "#sound-dai-cells":
45*0e8011faSEmmanuel Vadot    const: 0
46*0e8011faSEmmanuel Vadot
47*0e8011faSEmmanuel Vadotrequired:
48*0e8011faSEmmanuel Vadot  - compatible
49*0e8011faSEmmanuel Vadot  - reg
50*0e8011faSEmmanuel Vadot  - interrupts
51*0e8011faSEmmanuel Vadot  - clocks
52*0e8011faSEmmanuel Vadot  - dmas
53*0e8011faSEmmanuel Vadot  - dma-names
54*0e8011faSEmmanuel Vadot  - '#sound-dai-cells'
55*0e8011faSEmmanuel Vadot
56*0e8011faSEmmanuel VadotadditionalProperties: false
57*0e8011faSEmmanuel Vadot
58*0e8011faSEmmanuel Vadotexamples:
59*0e8011faSEmmanuel Vadot  - |
60*0e8011faSEmmanuel Vadot    #include <dt-bindings/clock/lpc32xx-clock.h>
61*0e8011faSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
62*0e8011faSEmmanuel Vadot
63*0e8011faSEmmanuel Vadot    i2s@20094000 {
64*0e8011faSEmmanuel Vadot      compatible = "nxp,lpc3220-i2s";
65*0e8011faSEmmanuel Vadot      reg = <0x20094000 0x1000>;
66*0e8011faSEmmanuel Vadot      interrupts = <22 IRQ_TYPE_LEVEL_HIGH>;
67*0e8011faSEmmanuel Vadot      clocks = <&clk LPC32XX_CLK_I2S0>;
68*0e8011faSEmmanuel Vadot      dmas = <&dma 0 1>, <&dma 13 1>;
69*0e8011faSEmmanuel Vadot      dma-names = "rx", "tx";
70*0e8011faSEmmanuel Vadot      #sound-dai-cells = <0>;
71*0e8011faSEmmanuel Vadot    };
72*0e8011faSEmmanuel Vadot
73*0e8011faSEmmanuel Vadot...
74