xref: /freebsd/sys/contrib/device-tree/Bindings/hwlock/allwinner,sun6i-a31-hwspinlock.yaml (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1*aa1a8ff2SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
25956d97fSEmmanuel Vadot%YAML 1.2
35956d97fSEmmanuel Vadot---
45956d97fSEmmanuel Vadot$id: http://devicetree.org/schemas/hwlock/allwinner,sun6i-a31-hwspinlock.yaml#
55956d97fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65956d97fSEmmanuel Vadot
75956d97fSEmmanuel Vadottitle: SUN6I hardware spinlock driver for Allwinner sun6i compatible SoCs
85956d97fSEmmanuel Vadot
95956d97fSEmmanuel Vadotmaintainers:
105956d97fSEmmanuel Vadot  - Wilken Gottwalt <wilken.gottwalt@posteo.net>
115956d97fSEmmanuel Vadot
125956d97fSEmmanuel Vadotdescription:
135956d97fSEmmanuel Vadot  The hardware unit provides semaphores between the ARM cores and the embedded
145956d97fSEmmanuel Vadot  companion core on the SoC.
155956d97fSEmmanuel Vadot
165956d97fSEmmanuel Vadotproperties:
175956d97fSEmmanuel Vadot  compatible:
185956d97fSEmmanuel Vadot    const: allwinner,sun6i-a31-hwspinlock
195956d97fSEmmanuel Vadot
205956d97fSEmmanuel Vadot  reg:
215956d97fSEmmanuel Vadot    maxItems: 1
225956d97fSEmmanuel Vadot
235956d97fSEmmanuel Vadot  clocks:
245956d97fSEmmanuel Vadot    maxItems: 1
255956d97fSEmmanuel Vadot
265956d97fSEmmanuel Vadot  resets:
275956d97fSEmmanuel Vadot    maxItems: 1
285956d97fSEmmanuel Vadot
29cb7aa33aSEmmanuel Vadot  '#hwlock-cells':
30cb7aa33aSEmmanuel Vadot    const: 1
31cb7aa33aSEmmanuel Vadot
325956d97fSEmmanuel Vadotrequired:
335956d97fSEmmanuel Vadot  - compatible
345956d97fSEmmanuel Vadot  - reg
355956d97fSEmmanuel Vadot  - clocks
365956d97fSEmmanuel Vadot  - resets
37cb7aa33aSEmmanuel Vadot  - "#hwlock-cells"
385956d97fSEmmanuel Vadot
395956d97fSEmmanuel VadotadditionalProperties: false
405956d97fSEmmanuel Vadot
415956d97fSEmmanuel Vadotexamples:
425956d97fSEmmanuel Vadot  - |
435956d97fSEmmanuel Vadot    #include <dt-bindings/clock/sun8i-a23-a33-ccu.h>
445956d97fSEmmanuel Vadot    #include <dt-bindings/reset/sun8i-a23-a33-ccu.h>
455956d97fSEmmanuel Vadot
465956d97fSEmmanuel Vadot    hwlock@1c18000 {
475956d97fSEmmanuel Vadot        compatible = "allwinner,sun6i-a31-hwspinlock";
485956d97fSEmmanuel Vadot        reg = <0x01c18000 0x1000>;
495956d97fSEmmanuel Vadot        clocks = <&ccu CLK_BUS_SPINLOCK>;
505956d97fSEmmanuel Vadot        resets = <&ccu RST_BUS_SPINLOCK>;
51cb7aa33aSEmmanuel Vadot        #hwlock-cells = <1>;
525956d97fSEmmanuel Vadot    };
535956d97fSEmmanuel Vadot...
54