xref: /freebsd/sys/contrib/device-tree/Bindings/hwlock/sprd,hwspinlock-r3p0.yaml (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1*b2d2a78aSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*b2d2a78aSEmmanuel Vadot%YAML 1.2
3*b2d2a78aSEmmanuel Vadot---
4*b2d2a78aSEmmanuel Vadot$id: http://devicetree.org/schemas/hwlock/sprd,hwspinlock-r3p0.yaml#
5*b2d2a78aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*b2d2a78aSEmmanuel Vadot
7*b2d2a78aSEmmanuel Vadottitle: Spreadtrum hardware spinlock
8*b2d2a78aSEmmanuel Vadot
9*b2d2a78aSEmmanuel Vadotmaintainers:
10*b2d2a78aSEmmanuel Vadot  - Orson Zhai <orsonzhai@gmail.com>
11*b2d2a78aSEmmanuel Vadot  - Baolin Wang <baolin.wang7@gmail.com>
12*b2d2a78aSEmmanuel Vadot  - Chunyan Zhang <zhang.lyra@gmail.com>
13*b2d2a78aSEmmanuel Vadot
14*b2d2a78aSEmmanuel Vadotproperties:
15*b2d2a78aSEmmanuel Vadot  compatible:
16*b2d2a78aSEmmanuel Vadot    const: sprd,hwspinlock-r3p0
17*b2d2a78aSEmmanuel Vadot
18*b2d2a78aSEmmanuel Vadot  reg:
19*b2d2a78aSEmmanuel Vadot    maxItems: 1
20*b2d2a78aSEmmanuel Vadot
21*b2d2a78aSEmmanuel Vadot  clocks:
22*b2d2a78aSEmmanuel Vadot    maxItems: 1
23*b2d2a78aSEmmanuel Vadot
24*b2d2a78aSEmmanuel Vadot  clock-names:
25*b2d2a78aSEmmanuel Vadot    const: enable
26*b2d2a78aSEmmanuel Vadot
27*b2d2a78aSEmmanuel Vadot  '#hwlock-cells':
28*b2d2a78aSEmmanuel Vadot    const: 1
29*b2d2a78aSEmmanuel Vadot
30*b2d2a78aSEmmanuel Vadotrequired:
31*b2d2a78aSEmmanuel Vadot  - compatible
32*b2d2a78aSEmmanuel Vadot  - reg
33*b2d2a78aSEmmanuel Vadot  - clocks
34*b2d2a78aSEmmanuel Vadot  - clock-names
35*b2d2a78aSEmmanuel Vadot  - '#hwlock-cells'
36*b2d2a78aSEmmanuel Vadot
37*b2d2a78aSEmmanuel VadotadditionalProperties: false
38*b2d2a78aSEmmanuel Vadot
39*b2d2a78aSEmmanuel Vadotexamples:
40*b2d2a78aSEmmanuel Vadot  - |
41*b2d2a78aSEmmanuel Vadot    #include <dt-bindings/clock/sprd,sc9860-clk.h>
42*b2d2a78aSEmmanuel Vadot
43*b2d2a78aSEmmanuel Vadot    hwlock@40500000 {
44*b2d2a78aSEmmanuel Vadot      compatible = "sprd,hwspinlock-r3p0";
45*b2d2a78aSEmmanuel Vadot      reg = <0x40500000 0x1000>;
46*b2d2a78aSEmmanuel Vadot      clocks = <&aon_gate CLK_SPLK_EB>;
47*b2d2a78aSEmmanuel Vadot      clock-names = "enable";
48*b2d2a78aSEmmanuel Vadot      #hwlock-cells = <1>;
49*b2d2a78aSEmmanuel Vadot    };
50*b2d2a78aSEmmanuel Vadot...
51