new file mode 100644
@@ -0,0 +1,46 @@
+# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/hwlock/sunxi,hwspinlock.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: SUNXI HwSpinlock for SUNXI
+
+maintainers:
+ - fuyao <fuyao@allwinnertech.com>
+
+properties:
+ compatible:
+ enum:
+ - allwinner,h3-hwspinlock, # for h3-hwspinlock
+ - allwinner,h6-hwspinlock, # for h6-hwspinlock
+
+ reg:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - clocks
+ - resets
+
+additionalProperties: false
+
+examples:
+
+ - |
+ hwspinlock: spinlock@1c17000 {
+ compatible = "allwinner,h3-hwspinlock";
+ reg = <0x0 0x01c17000 0x0 0x1000>;
+ clocks = <&ccu CLK_BUS_SPINLOCK>;
+ resets = <&ccu RST_BUS_SPINLOCK>;
+ };
+
+ - |
+ hwspinlock: spinlock@3004000 {
+ compatible = "allwinner,h6-hwspinlock";
+ reg = <0x0 0x03004000 0x0 0x1000>;
+ clocks = <&ccu CLK_BUS_SPINLOCK>;
+ resets = <&ccu RST_BUS_SPINLOCK>;
+ };
+