brintos

brintos / linux-shallow public Read only

0
0
Text · 3.0 KiB · f99ed20 Raw
119 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/sound/fsl,esai.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Freescale Enhanced Serial Audio Interface (ESAI) Controller8 9maintainers:10  - Shengjiu Wang <shengjiu.wang@nxp.com>11  - Frank Li <Frank.Li@nxp.com>12 13description:14  The Enhanced Serial Audio Interface (ESAI) provides a full-duplex serial port15  for serial communication with a variety of serial devices, including industry16  standard codecs, Sony/Phillips Digital Interface (S/PDIF) transceivers, and17  other DSPs. It has up to six transmitters and four receivers.18 19properties:20  compatible:21    enum:22      - fsl,imx35-esai23      - fsl,imx6ull-esai24      - fsl,imx8qm-esai25      - fsl,vf610-esai26 27  reg:28    maxItems: 129 30  interrupts:31    maxItems: 132 33  clocks:34    minItems: 335    items:36      - description:37          The core clock used to access registers.38      - description:39          The esai baud clock for esai controller used to40          derive HCK, SCK and FS.41      - description:42          The system clock derived from ahb clock used to43          derive HCK, SCK and FS.44      - description:45          The spba clock is required when ESAI is placed as a46          bus slave of the Shared Peripheral Bus and when two47          or more bus masters (CPU, DMA or DSP) try to access48          it. This property is optional depending on the SoC49          design.50 51  clock-names:52    minItems: 353    items:54      - const: core55      - const: extal56      - const: fsys57      - const: spba58 59  dmas:60    minItems: 261    maxItems: 262 63  dma-names:64    items:65      - const: rx66      - const: tx67 68  fsl,fifo-depth:69    $ref: /schemas/types.yaml#/definitions/uint3270    default: 6471    description:72      The number of elements in the transmit and receive73      FIFOs. This number is the maximum allowed value for74      TFCR[TFWM] or RFCR[RFWM].75 76  fsl,esai-synchronous:77    $ref: /schemas/types.yaml#/definitions/flag78    description:79      This is a boolean property. If present, indicating80      that ESAI would work in the synchronous mode, which81      means all the settings for Receiving would be82      duplicated from Transmission related registers.83 84  big-endian:85    $ref: /schemas/types.yaml#/definitions/flag86    description:87      If this property is absent, the native endian mode88      will be in use as default, or the big endian mode89      will be in use for all the device registers.90 91required:92  - compatible93  - reg94  - interrupts95  - clocks96  - clock-names97  - dmas98  - dma-names99 100unevaluatedProperties: false101 102allOf:103  - $ref: dai-common.yaml#104 105examples:106  - |107    esai@2024000 {108      compatible = "fsl,imx35-esai";109      reg = <0x02024000 0x4000>;110      interrupts = <0 51 0x04>;111      clocks = <&clks 208>, <&clks 118>, <&clks 208>;112      clock-names = "core", "extal", "fsys";113      dmas = <&sdma 23 21 0>, <&sdma 24 21 0>;114      dma-names = "rx", "tx";115      fsl,fifo-depth = <128>;116      fsl,esai-synchronous;117      big-endian;118    };119