new file mode 100644
@@ -0,0 +1,47 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/hwlock/allwinner,sun50i-a64-hwspinlock.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Allwinner A64 SoC Hardware Spinlock bindings
+
+maintainers:
+ - Nikolay Borisov <nborisov@suse.com>
+
+properties:
+ "#hwlock-cells":
+ const: 1
+
+ compatible:
+ const: allwinner,sun50i-a64-hwspinlock
+
+ reg:
+ maxItems: 1
+
+ clocks:
+ maxItems: 1
+
+ resets:
+ maxItems: 1
+
+required:
+ - "#hwlock-cells"
+ - compatible
+ - reg
+ - clocks
+ - resets
+
+additionalProperties: false
+
+examples:
+ - |
+ hwspinlock@1c18000 {
+ compatible = "allwinner,sun50i-a64-hwspinlock";
+ #hwlock-cells = <1>;
+ reg = <0x01c18000 0x1000>;
+ clocks = <&ccu CLK_BUS_SPINLOCK>;
+ resets = <&ccu RST_BUS_SPINLOCK>;
+ };
+
+...
Add binding for the hwspinlock found on Allwinner A64 SoC. Signed-off-by: Nikolay Borisov <nborisov@suse.com> --- .../allwinner,sun50i-a64-hwspinlock.yaml | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwlock/allwinner,sun50i-a64-hwspinlock.yaml