Add binding for the hwspinlock found on Allwinner A64 SoC. Signed-off-by: Nikolay Borisov <nborisov@xxxxxxxx> --- V3: Added #include directive. This makes the patch pass schema validation. .../allwinner,sun50i-a64-hwspinlock.yaml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwlock/allwinner,sun50i-a64-hwspinlock.yaml diff --git a/Documentation/devicetree/bindings/hwlock/allwinner,sun50i-a64-hwspinlock.yaml b/Documentation/devicetree/bindings/hwlock/allwinner,sun50i-a64-hwspinlock.yaml new file mode 100644 index 000000000000..54270c8bb351 --- /dev/null +++ b/Documentation/devicetree/bindings/hwlock/allwinner,sun50i-a64-hwspinlock.yaml @@ -0,0 +1,49 @@ +# 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@xxxxxxxx> + +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: + - | + #include <dt-bindings/clock/sun50i-a64-ccu.h> + #include <dt-bindings/reset/sun50i-a64-ccu.h> + hwspinlock@1c18000 { + compatible = "allwinner,sun50i-a64-hwspinlock"; + #hwlock-cells = <1>; + reg = <0x01c18000 0x1000>; + clocks = <&ccu CLK_BUS_SPINLOCK>; + resets = <&ccu RST_BUS_SPINLOCK>; + }; + +... -- 2.17.1