1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/nvidia,tegra210-admaif.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7*7ef62cebSEmmanuel Vadottitle: Tegra210 ADMAIF 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotdescription: | 10c66ec88fSEmmanuel Vadot ADMAIF is the interface between ADMA and AHUB. Each ADMA channel 11c66ec88fSEmmanuel Vadot that sends/receives data to/from AHUB must interface through an 12c66ec88fSEmmanuel Vadot ADMAIF channel. ADMA channel sending data to AHUB pairs with ADMAIF 13c66ec88fSEmmanuel Vadot Tx channel and ADMA channel receiving data from AHUB pairs with 14c66ec88fSEmmanuel Vadot ADMAIF Rx channel. 15c66ec88fSEmmanuel Vadot 16c66ec88fSEmmanuel Vadotmaintainers: 17c66ec88fSEmmanuel Vadot - Jon Hunter <jonathanh@nvidia.com> 18c66ec88fSEmmanuel Vadot - Sameer Pujar <spujar@nvidia.com> 19c66ec88fSEmmanuel Vadot 20c66ec88fSEmmanuel Vadotproperties: 21c66ec88fSEmmanuel Vadot $nodename: 22c66ec88fSEmmanuel Vadot pattern: "^admaif@[0-9a-f]*$" 23c66ec88fSEmmanuel Vadot 24c66ec88fSEmmanuel Vadot compatible: 25c66ec88fSEmmanuel Vadot oneOf: 26c66ec88fSEmmanuel Vadot - enum: 27c66ec88fSEmmanuel Vadot - nvidia,tegra210-admaif 28c66ec88fSEmmanuel Vadot - nvidia,tegra186-admaif 29c66ec88fSEmmanuel Vadot - items: 30c9ccf3a3SEmmanuel Vadot - enum: 31c9ccf3a3SEmmanuel Vadot - nvidia,tegra234-admaif 32c9ccf3a3SEmmanuel Vadot - nvidia,tegra194-admaif 33c66ec88fSEmmanuel Vadot - const: nvidia,tegra186-admaif 34c66ec88fSEmmanuel Vadot 35c66ec88fSEmmanuel Vadot reg: 36c66ec88fSEmmanuel Vadot maxItems: 1 37c66ec88fSEmmanuel Vadot 38c66ec88fSEmmanuel Vadot dmas: true 39c66ec88fSEmmanuel Vadot 40c66ec88fSEmmanuel Vadot dma-names: true 41c66ec88fSEmmanuel Vadot 425def4c47SEmmanuel Vadot ports: 432eb4d8dcSEmmanuel Vadot $ref: /schemas/graph.yaml#/properties/ports 445def4c47SEmmanuel Vadot description: | 455def4c47SEmmanuel Vadot Contains list of ACIF (Audio CIF) port nodes for ADMAIF channels. 465def4c47SEmmanuel Vadot The number of port nodes depends on the number of ADMAIF channels 475def4c47SEmmanuel Vadot that SoC may have. These are interfaced with respective ACIF ports 485def4c47SEmmanuel Vadot in AHUB (Audio Hub). Each port is capable of data transfers in 495def4c47SEmmanuel Vadot both directions. 505def4c47SEmmanuel Vadot 512eb4d8dcSEmmanuel Vadot patternProperties: 522eb4d8dcSEmmanuel Vadot '^port@[0-9]': 532eb4d8dcSEmmanuel Vadot $ref: audio-graph-port.yaml# 542eb4d8dcSEmmanuel Vadot unevaluatedProperties: false 552eb4d8dcSEmmanuel Vadot 56c66ec88fSEmmanuel Vadotif: 57c66ec88fSEmmanuel Vadot properties: 58c66ec88fSEmmanuel Vadot compatible: 59c66ec88fSEmmanuel Vadot contains: 60c66ec88fSEmmanuel Vadot const: nvidia,tegra210-admaif 61c66ec88fSEmmanuel Vadot 62c66ec88fSEmmanuel Vadotthen: 63c66ec88fSEmmanuel Vadot properties: 64c66ec88fSEmmanuel Vadot dmas: 65c66ec88fSEmmanuel Vadot description: 66c66ec88fSEmmanuel Vadot DMA channel specifiers, equally divided for Tx and Rx. 67c66ec88fSEmmanuel Vadot minItems: 1 68c66ec88fSEmmanuel Vadot maxItems: 20 69c66ec88fSEmmanuel Vadot dma-names: 70c66ec88fSEmmanuel Vadot items: 71c66ec88fSEmmanuel Vadot pattern: "^[rt]x(10|[1-9])$" 72c66ec88fSEmmanuel Vadot description: 73c66ec88fSEmmanuel Vadot Should be "rx1", "rx2" ... "rx10" for DMA Rx channel 74c66ec88fSEmmanuel Vadot Should be "tx1", "tx2" ... "tx10" for DMA Tx channel 75c66ec88fSEmmanuel Vadot minItems: 1 76c66ec88fSEmmanuel Vadot maxItems: 20 77c66ec88fSEmmanuel Vadot 78c66ec88fSEmmanuel Vadotelse: 79c66ec88fSEmmanuel Vadot properties: 80c66ec88fSEmmanuel Vadot dmas: 81c66ec88fSEmmanuel Vadot description: 82c66ec88fSEmmanuel Vadot DMA channel specifiers, equally divided for Tx and Rx. 83c66ec88fSEmmanuel Vadot minItems: 1 84c66ec88fSEmmanuel Vadot maxItems: 40 85c66ec88fSEmmanuel Vadot dma-names: 86c66ec88fSEmmanuel Vadot items: 87c66ec88fSEmmanuel Vadot pattern: "^[rt]x(1[0-9]|[1-9]|20)$" 88c66ec88fSEmmanuel Vadot description: 89c66ec88fSEmmanuel Vadot Should be "rx1", "rx2" ... "rx20" for DMA Rx channel 90c66ec88fSEmmanuel Vadot Should be "tx1", "tx2" ... "tx20" for DMA Tx channel 91c66ec88fSEmmanuel Vadot minItems: 1 92c66ec88fSEmmanuel Vadot maxItems: 40 93c66ec88fSEmmanuel Vadot 94c66ec88fSEmmanuel Vadotrequired: 95c66ec88fSEmmanuel Vadot - compatible 96c66ec88fSEmmanuel Vadot - reg 97c66ec88fSEmmanuel Vadot - dmas 98c66ec88fSEmmanuel Vadot - dma-names 99c66ec88fSEmmanuel Vadot 1002eb4d8dcSEmmanuel VadotadditionalProperties: false 1016be33864SEmmanuel Vadot 102c66ec88fSEmmanuel Vadotexamples: 103c66ec88fSEmmanuel Vadot - | 104c66ec88fSEmmanuel Vadot admaif@702d0000 { 105c66ec88fSEmmanuel Vadot compatible = "nvidia,tegra210-admaif"; 106c66ec88fSEmmanuel Vadot reg = <0x702d0000 0x800>; 107c66ec88fSEmmanuel Vadot dmas = <&adma 1>, <&adma 1>, 108c66ec88fSEmmanuel Vadot <&adma 2>, <&adma 2>, 109c66ec88fSEmmanuel Vadot <&adma 3>, <&adma 3>, 110c66ec88fSEmmanuel Vadot <&adma 4>, <&adma 4>, 111c66ec88fSEmmanuel Vadot <&adma 5>, <&adma 5>, 112c66ec88fSEmmanuel Vadot <&adma 6>, <&adma 6>, 113c66ec88fSEmmanuel Vadot <&adma 7>, <&adma 7>, 114c66ec88fSEmmanuel Vadot <&adma 8>, <&adma 8>, 115c66ec88fSEmmanuel Vadot <&adma 9>, <&adma 9>, 116c66ec88fSEmmanuel Vadot <&adma 10>, <&adma 10>; 117c66ec88fSEmmanuel Vadot dma-names = "rx1", "tx1", 118c66ec88fSEmmanuel Vadot "rx2", "tx2", 119c66ec88fSEmmanuel Vadot "rx3", "tx3", 120c66ec88fSEmmanuel Vadot "rx4", "tx4", 121c66ec88fSEmmanuel Vadot "rx5", "tx5", 122c66ec88fSEmmanuel Vadot "rx6", "tx6", 123c66ec88fSEmmanuel Vadot "rx7", "tx7", 124c66ec88fSEmmanuel Vadot "rx8", "tx8", 125c66ec88fSEmmanuel Vadot "rx9", "tx9", 126c66ec88fSEmmanuel Vadot "rx10", "tx10"; 127c66ec88fSEmmanuel Vadot }; 128c66ec88fSEmmanuel Vadot 129c66ec88fSEmmanuel Vadot... 130