0046-dt-bindings-hwlock-sun6i-Add-per-SoC-compatibles.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From e7b8c42c6bf02f4c2e24b015a12cd9edad094644 Mon Sep 17 00:00:00 2001
  2. From: Samuel Holland <[email protected]>
  3. Date: Sun, 14 Nov 2021 12:36:52 -0600
  4. Subject: [PATCH 046/117] dt-bindings: hwlock: sun6i: Add per-SoC compatibles
  5. While all implementations of this hardware appear to be indentical, it
  6. is possible that some difference exists. To be safe, add a compatible
  7. for each SoC integration, using the A31 compatible only as a fallback.
  8. Signed-off-by: Samuel Holland <[email protected]>
  9. ---
  10. .../hwlock/allwinner,sun6i-a31-hwspinlock.yaml | 16 +++++++++++++++-
  11. 1 file changed, 15 insertions(+), 1 deletion(-)
  12. --- a/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml
  13. +++ b/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml
  14. @@ -15,7 +15,21 @@ description:
  15. properties:
  16. compatible:
  17. - const: allwinner,sun6i-a31-hwspinlock
  18. + oneOf:
  19. + - items:
  20. + - enum:
  21. + - allwinner,sun8i-a23-hwspinlock
  22. + - allwinner,sun8i-a33-hwspinlock
  23. + - allwinner,sun8i-a50-hwspinlock
  24. + - allwinner,sun8i-a83t-hwspinlock
  25. + - allwinner,sun8i-h3-hwspinlock
  26. + - allwinner,sun9i-a80-hwspinlock
  27. + - allwinner,sun20i-d1-hwspinlock
  28. + - allwinner,sun50i-a64-hwspinlock
  29. + - allwinner,sun50i-h6-hwspinlock
  30. + - allwinner,sun50i-r329-hwspinlock
  31. + - const: allwinner,sun6i-a31-hwspinlock
  32. + - const: allwinner,sun6i-a31-hwspinlock
  33. reg:
  34. maxItems: 1