The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v3] dt-bindings: spi: tegra: Document IOMMU property for Tegra234 QSPI
@ 2025-05-09 12:35 Vishwaroop A
  2025-05-09 12:35 ` [PATCH v2] spi: tegra210-quad: Add support for internal DMA Vishwaroop A
  2025-05-09 12:43 ` [PATCH v3] dt-bindings: spi: tegra: Document IOMMU property for Tegra234 QSPI Jon Hunter
  0 siblings, 2 replies; 3+ messages in thread
From: Vishwaroop A @ 2025-05-09 12:35 UTC (permalink / raw)
  To: krzk, broonie, robh, krzk+dt, conor+dt, thierry.reding, jonathanh,
	skomatineni, ldewangan, kyarlagadda, smangipudi, bgriffis,
	linux-spi, devicetree, linux-tegra, linux-kernel
  Cc: Vishwaroop A

Add the 'iommus' property to the Tegra QSPI device tree binding.
The property is needed for Tegra234 when using the internal DMA
controller, and is not supported on other Tegra chips, as DMA is
handled by an external controller.

Signed-off-by: Vishwaroop A <va@nvidia.com>
---
 .../bindings/spi/nvidia,tegra210-quad.yaml    | 19 ++++++++++++++++---
 1 file changed, 16 insertions(+), 3 deletions(-)

diff --git a/Documentation/devicetree/bindings/spi/nvidia,tegra210-quad.yaml b/Documentation/devicetree/bindings/spi/nvidia,tegra210-quad.yaml
index 48e97e240265..04d3b1a47392 100644
--- a/Documentation/devicetree/bindings/spi/nvidia,tegra210-quad.yaml
+++ b/Documentation/devicetree/bindings/spi/nvidia,tegra210-quad.yaml
@@ -10,9 +10,6 @@ maintainers:
   - Thierry Reding <thierry.reding@gmail.com>
   - Jonathan Hunter <jonathanh@nvidia.com>
 
-allOf:
-  - $ref: spi-controller.yaml#
-
 properties:
   compatible:
     enum:
@@ -47,6 +44,9 @@ properties:
       - const: rx
       - const: tx
 
+  iommus:
+    maxItems: 1
+
 patternProperties:
   "@[0-9a-f]+$":
     type: object
@@ -69,6 +69,19 @@ required:
 
 unevaluatedProperties: false
 
+allOf:
+  - $ref: spi-controller.yaml#
+  - if:
+      properties:
+        compatible:
+          const: nvidia,tegra234-qspi
+    then:
+      properties:
+        iommus: true
+    else:
+      properties:
+        iommus: false
+
 examples:
   - |
     #include <dt-bindings/clock/tegra210-car.h>
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-05-09 12:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-09 12:35 [PATCH v3] dt-bindings: spi: tegra: Document IOMMU property for Tegra234 QSPI Vishwaroop A
2025-05-09 12:35 ` [PATCH v2] spi: tegra210-quad: Add support for internal DMA Vishwaroop A
2025-05-09 12:43 ` [PATCH v3] dt-bindings: spi: tegra: Document IOMMU property for Tegra234 QSPI Jon Hunter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox