The address bus on Agilex5 is limited to 40 bits. When SMMU is enable this
will cause address truncation and translation faults. Hence introducing
"altr,agilex5-axi-dma" to enable platform specific configuration to
configure the dma addressable bit mask.
Add a fallback capability for the compatible property to allow driver to
probe and initialize with a newly added compatible string without requiring
additional entry in the driver.
Add dma-ranges to the binding schema to allow specifying DMA address
mapping between the controller and its parent bus.
Signed-off-by: Khairul Anuar Romli <khairul.anuar.romli@altera.com>
---
Changes in v3:
- Simple dma-ranges property with true and without description
Changes in v2:
- Add dma-ranges
---
.../bindings/dma/snps,dw-axi-dmac.yaml | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml b/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml
index a393a33c8908..1f4dcf3092c3 100644
--- a/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml
+++ b/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml
@@ -17,11 +17,15 @@ allOf:
properties:
compatible:
- enum:
- - snps,axi-dma-1.01a
- - intel,kmb-axi-dma
- - starfive,jh7110-axi-dma
- - starfive,jh8100-axi-dma
+ oneOf:
+ - enum:
+ - snps,axi-dma-1.01a
+ - intel,kmb-axi-dma
+ - starfive,jh7110-axi-dma
+ - starfive,jh8100-axi-dma
+ - items:
+ - const: altr,agilex5-axi-dma
+ - const: snps,axi-dma-1.01a
reg:
minItems: 1
@@ -104,6 +108,8 @@ properties:
minimum: 1
maximum: 256
+ dma-ranges: true
+
required:
- compatible
- reg
--
2.43.7
On Thu, Dec 11, 2025 at 12:40:36PM +0800, Khairul Anuar Romli wrote: > The address bus on Agilex5 is limited to 40 bits. When SMMU is enable this > will cause address truncation and translation faults. Hence introducing > "altr,agilex5-axi-dma" to enable platform specific configuration to > configure the dma addressable bit mask. > > Add a fallback capability for the compatible property to allow driver to > probe and initialize with a newly added compatible string without requiring > additional entry in the driver. > > Add dma-ranges to the binding schema to allow specifying DMA address > mapping between the controller and its parent bus. > > Signed-off-by: Khairul Anuar Romli <khairul.anuar.romli@altera.com> > --- > Changes in v3: > - Simple dma-ranges property with true and without description > Changes in v2: > - Add dma-ranges > --- > .../bindings/dma/snps,dw-axi-dmac.yaml | 16 +++++++++++----- > 1 file changed, 11 insertions(+), 5 deletions(-) > > diff --git a/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml b/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml > index a393a33c8908..1f4dcf3092c3 100644 > --- a/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml > +++ b/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml > @@ -17,11 +17,15 @@ allOf: > > properties: > compatible: > - enum: > - - snps,axi-dma-1.01a > - - intel,kmb-axi-dma > - - starfive,jh7110-axi-dma > - - starfive,jh8100-axi-dma > + oneOf: > + - enum: > + - snps,axi-dma-1.01a > + - intel,kmb-axi-dma > + - starfive,jh7110-axi-dma > + - starfive,jh8100-axi-dma > + - items: > + - const: altr,agilex5-axi-dma > + - const: snps,axi-dma-1.01a > > reg: > minItems: 1 > @@ -104,6 +108,8 @@ properties: > minimum: 1 > maximum: 256 > > + dma-ranges: true > + You no longer need this because it is in the bus node. Rob
On 11/12/2025 11:46 pm, Rob Herring wrote: > On Thu, Dec 11, 2025 at 12:40:36PM +0800, Khairul Anuar Romli wrote: >> The address bus on Agilex5 is limited to 40 bits. When SMMU is enable this >> will cause address truncation and translation faults. Hence introducing >> "altr,agilex5-axi-dma" to enable platform specific configuration to >> configure the dma addressable bit mask. >> >> Add a fallback capability for the compatible property to allow driver to >> probe and initialize with a newly added compatible string without requiring >> additional entry in the driver. >> >> Add dma-ranges to the binding schema to allow specifying DMA address >> mapping between the controller and its parent bus. >> >> Signed-off-by: Khairul Anuar Romli <khairul.anuar.romli@altera.com> >> --- >> Changes in v3: >> - Simple dma-ranges property with true and without description >> Changes in v2: >> - Add dma-ranges >> --- >> .../bindings/dma/snps,dw-axi-dmac.yaml | 16 +++++++++++----- >> 1 file changed, 11 insertions(+), 5 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml b/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml >> index a393a33c8908..1f4dcf3092c3 100644 >> --- a/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml >> +++ b/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml >> @@ -17,11 +17,15 @@ allOf: >> >> properties: >> compatible: >> - enum: >> - - snps,axi-dma-1.01a >> - - intel,kmb-axi-dma >> - - starfive,jh7110-axi-dma >> - - starfive,jh8100-axi-dma >> + oneOf: >> + - enum: >> + - snps,axi-dma-1.01a >> + - intel,kmb-axi-dma >> + - starfive,jh7110-axi-dma >> + - starfive,jh8100-axi-dma >> + - items: >> + - const: altr,agilex5-axi-dma >> + - const: snps,axi-dma-1.01a >> >> reg: >> minItems: 1 >> @@ -104,6 +108,8 @@ properties: >> minimum: 1 >> maximum: 256 >> >> + dma-ranges: true >> + > > You no longer need this because it is in the bus node. > > Rob I will remove the dma-ranges property in the next revision. Thanks. Khairul
© 2016 - 2025 Red Hat, Inc.