[2/3] dt-bindings: hwlock: sun6i: Add compatible for Allwinner D1

Message ID 20260927025626.69614-3-tien.nguyenminh@embeddedlinux.blog (mailing list archive)
State New
Headers
Series hwspinlock: sun6i: Allwinner D1 and T113 support |

Commit Message

Nguyen Minh Tien Sept. 27, 2026, 2:56 a.m. UTC
The D1 and T113 have a hardware spinlock with the register layout the
sun6i driver handles. Add a compatible for it, with the A31 one as
fallback.

Signed-off-by: Nguyen Minh Tien <tien.nguyenminh@embeddedlinux.blog>
---
 .../bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml    | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
  

Comments

Conor Dooley Sept. 28, 2026, 4:51 p.m. UTC | #1
Acked-by: Conor Dooley <conor.dooley@microchip.com>
pw-bot: not-applicable
  

Patch

diff --git a/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml b/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml
index 584cce3211..13f9a20ae1 100644
--- a/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml
+++ b/Documentation/devicetree/bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml
@@ -15,7 +15,12 @@  description:
 
 properties:
   compatible:
-    const: allwinner,sun6i-a31-hwspinlock
+    oneOf:
+      - const: allwinner,sun6i-a31-hwspinlock
+      - items:
+          - enum:
+              - allwinner,sun20i-d1-hwspinlock
+          - const: allwinner,sun6i-a31-hwspinlock
 
   reg:
     maxItems: 1