brintos

brintos / linux-shallow public Read only

0
0
Text · 4.3 KiB · beef193 Raw
203 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/davinci-mcasp-audio.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: McASP Controller for TI SoCs8 9maintainers:10  - Jayesh Choudhary <j-choudhary@ti.com>11 12properties:13  compatible:14    enum:15      - ti,dm646x-mcasp-audio16      - ti,da830-mcasp-audio17      - ti,am33xx-mcasp-audio18      - ti,dra7-mcasp-audio19      - ti,omap4-mcasp-audio20 21  reg:22    minItems: 123    items:24      - description: CFG registers25      - description: data registers26 27  reg-names:28    minItems: 129    items:30      - const: mpu31      - const: dat32 33  op-mode:34    $ref: /schemas/types.yaml#/definitions/uint3235    description: 0 - I2S or 1 - DIT operation mode36    enum:37      - 038      - 139 40  tdm-slots:41    $ref: /schemas/types.yaml#/definitions/uint3242    description:43      number of channels over one serializer44      the property is ignored in DIT mode45    minimum: 246    maximum: 3247 48  serial-dir:49    description:50      A list of serializer configuration51      Entry is indication for serializer pin direction52      0 - Inactive, 1 - TX, 2 - RX53      All AXR pins should be present in the array even if inactive54    $ref: /schemas/types.yaml#/definitions/uint32-array55    minItems: 156    maxItems: 2557    items:58      minimum: 059      maximum: 260 61  dmas:62    minItems: 163    items:64      - description: transmission DMA channel65      - description: reception DMA channel66 67  dma-names:68    minItems: 169    items:70      - const: tx71      - const: rx72 73  ti,hwmods:74    $ref: /schemas/types.yaml#/definitions/string75    description: Name of hwmod associated with McASP76    maxItems: 177    deprecated: true78 79  tx-num-evt:80    $ref: /schemas/types.yaml#/definitions/uint3281    description:82      configures WFIFO threshold83      0 disables the FIFO use84      if property is missing, then also FIFO use is disabled85 86  rx-num-evt:87    $ref: /schemas/types.yaml#/definitions/uint3288    description:89      configures RFIFO threshold90      0 disables the FIFO use91      if property is missing, then also FIFO use is disabled92 93  dismod:94    $ref: /schemas/types.yaml#/definitions/uint3295    description:96      specify the drive on TX pin during inactive time slots97      0 - 3-state, 2 - logic low, 3 - logic high98    enum:99      - 0100      - 2101      - 3102    default: 2103 104  interrupts:105    minItems: 1106    maxItems: 2107 108  interrupt-names:109    oneOf:110      - description: TX interrupt111        const: tx112      - description: RX interrupt113        const: rx114      - description: TX and RX interrupts115        items:116          - const: tx117          - const: rx118      - description: Common/combined interrupt119        const: common120 121  fck_parent:122    $ref: /schemas/types.yaml#/definitions/string123    description: parent clock name for McASP fck124    maxItems: 1125 126  auxclk-fs-ratio:127    $ref: /schemas/types.yaml#/definitions/uint32128    description: ratio of AUCLK and FS rate if applicable129 130  gpio-controller: true131 132  "#gpio-cells":133    const: 2134 135  clocks:136    minItems: 1137    items:138      - description: functional clock139      - description: module specific optional ahclkx clock140      - description: module specific optional ahclkr clock141 142  clock-names:143    minItems: 1144    items:145      - const: fck146      - const: ahclkx147      - const: ahclkr148 149  power-domains:150    description: phandle to the corresponding power-domain151    maxItems: 1152 153  "#sound-dai-cells":154    const: 0155 156  port:157    description: connection for when McASP is used via graph card158    type: object159 160required:161  - compatible162  - reg163  - reg-names164  - dmas165  - dma-names166  - interrupts167  - interrupt-names168 169allOf:170  - $ref: dai-common.yaml#171  - if:172      properties:173        opmode:174          enum:175            - 0176 177    then:178      required:179        - tdm-slots180 181unevaluatedProperties: false182 183examples:184  - |185    mcasp0: mcasp0@1d00000 {186      compatible = "ti,da830-mcasp-audio";187      reg = <0x100000 0x3000>;188      reg-names = "mpu";189      interrupts = <82>, <83>;190      interrupt-names = "tx", "rx";191      op-mode = <0>;		/* MCASP_IIS_MODE */192      tdm-slots = <2>;193      dmas = <&main_udmap 0xc400>, <&main_udmap 0x4400>;194      dma-names = "tx", "rx";195      serial-dir = <196          0 0 0 0	/* 0: INACTIVE, 1: TX, 2: RX */197          0 0 0 0198          0 0 0 1199          2 0 0 0 >;200      tx-num-evt = <1>;201      rx-num-evt = <1>;202    };203