Documentation / devicetree / bindings / sound / nxp,lpc3220-i2s.yaml


Based on kernel version 6.11. Page generated on 2024-09-24 08:21 EST.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/nxp,lpc3220-i2s.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: NXP LPC32XX I2S Controller

description:
  The I2S controller in LPC32XX SoCs, ASoC DAI.

maintainers:
  - J.M.B. Downing <jonathan.downing@nautel.com>
  - Piotr Wojtaszczyk <piotr.wojtaszczyk@timesys.com>

allOf:
  - $ref: dai-common.yaml#

properties:
  compatible:
    enum:
      - nxp,lpc3220-i2s

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  clocks:
    items:
      - description: input clock of the peripheral.

  dmas:
    items:
      - description: RX DMA Channel
      - description: TX DMA Channel

  dma-names:
    items:
      - const: rx
      - const: tx
 
  "#sound-dai-cells":
    const: 0

required:
  - compatible
  - reg
  - interrupts
  - clocks
  - dmas
  - dma-names
  - '#sound-dai-cells'

additionalProperties: false

examples:
  - |
    #include <dt-bindings/clock/lpc32xx-clock.h>
    #include <dt-bindings/interrupt-controller/irq.h>
 
    i2s@20094000 {
      compatible = "nxp,lpc3220-i2s";
      reg = <0x20094000 0x1000>;
      interrupts = <22 IRQ_TYPE_LEVEL_HIGH>;
      clocks = <&clk LPC32XX_CLK_I2S0>;
      dmas = <&dma 0 1>, <&dma 13 1>;
      dma-names = "rx", "tx";
      #sound-dai-cells = <0>;
    };

...