Skip to content

Commit

Permalink
dt-bindings: dma: Support channel page to nvidia,tegra210-adma
Browse files Browse the repository at this point in the history
Multiple ADMA Channel page hardware support has been added from
TEGRA186 and onwards. Update the DT binding to use any of the
ADMA channel page address space region.

Signed-off-by: Mohan Kumar D <mkumard@nvidia.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20241217074358.340180-2-mkumard@nvidia.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
  • Loading branch information
Mohan Kumar D authored and Vinod Koul committed Dec 24, 2024
1 parent d0301fd commit 762b37f
Showing 1 changed file with 56 additions and 4 deletions.
60 changes: 56 additions & 4 deletions Documentation/devicetree/bindings/dma/nvidia,tegra210-adma.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ description: |
maintainers:
- Jon Hunter <jonathanh@nvidia.com>

allOf:
- $ref: dma-controller.yaml#

properties:
compatible:
oneOf:
Expand All @@ -29,7 +26,19 @@ properties:
- const: nvidia,tegra186-adma

reg:
maxItems: 1
description:
The 'page' region describes the address space of the page
used for accessing the DMA channel registers. The 'global'
region describes the address space of the global DMA registers.
In the absence of the 'reg-names' property, there must be a
single entry that covers the address space of the global DMA
registers and the DMA channel registers.
minItems: 1
maxItems: 2

reg-names:
minItems: 1
maxItems: 2

interrupts:
description: |
Expand Down Expand Up @@ -63,6 +72,49 @@ required:
- clocks
- clock-names

allOf:
- $ref: dma-controller.yaml#
- if:
properties:
compatible:
contains:
enum:
- nvidia,tegra210-adma
then:
properties:
reg:
items:
- description: Full address space range of DMA registers.

- if:
properties:
compatible:
contains:
enum:
- nvidia,tegra186-adma
then:
anyOf:
- properties:
reg:
items:
- description: Full address space range of DMA registers.
- properties:
reg:
items:
- description: Channel Page address space range of DMA registers.
reg-names:
items:
- const: page
- properties:
reg:
items:
- description: Channel Page address space range of DMA registers.
- description: Global Page address space range of DMA registers.
reg-names:
items:
- const: page
- const: global

additionalProperties: false

examples:
Expand Down

0 comments on commit 762b37f

Please sign in to comment.