0049-dt-bindings-iommu-sun50i-Add-compatible-for-Allwinne.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. From 031deed1d755fc9f1e4908ef70969e1458203421 Mon Sep 17 00:00:00 2001
  2. From: Samuel Holland <[email protected]>
  3. Date: Sun, 6 Jun 2021 10:20:38 -0500
  4. Subject: [PATCH 049/117] dt-bindings: iommu: sun50i: Add compatible for
  5. Allwinner D1
  6. D1 contains an IOMMU similar to the one in the H6 SoC, but the D1
  7. variant has no external reset signal.
  8. Signed-off-by: Samuel Holland <[email protected]>
  9. ---
  10. .../iommu/allwinner,sun50i-h6-iommu.yaml | 16 ++++++++++++++--
  11. 1 file changed, 14 insertions(+), 2 deletions(-)
  12. --- a/Documentation/devicetree/bindings/iommu/allwinner,sun50i-h6-iommu.yaml
  13. +++ b/Documentation/devicetree/bindings/iommu/allwinner,sun50i-h6-iommu.yaml
  14. @@ -17,7 +17,9 @@ properties:
  15. The content of the cell is the master ID.
  16. compatible:
  17. - const: allwinner,sun50i-h6-iommu
  18. + enum:
  19. + - allwinner,sun20i-d1-iommu
  20. + - allwinner,sun50i-h6-iommu
  21. reg:
  22. maxItems: 1
  23. @@ -37,7 +39,17 @@ required:
  24. - reg
  25. - interrupts
  26. - clocks
  27. - - resets
  28. +
  29. +if:
  30. + properties:
  31. + compatible:
  32. + contains:
  33. + enum:
  34. + - allwinner,sun50i-h6-iommu
  35. +
  36. +then:
  37. + required:
  38. + - resets
  39. additionalProperties: false