new file mode 100644
@@ -0,0 +1,42 @@
+# SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/hwlock/realtek,rtd1195-sb2-sem.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Realtek RTD1195 SB2 hardware semaphore device tree binding
+
+maintainers:
+ - Andreas Färber <afaerber@suse.de>
+
+properties:
+ compatible:
+ const: realtek,rtd1195-sb2-sem
+
+ reg:
+ maxItems: 1
+
+ "#hwlock-cells":
+ enum: [ 0, 1 ]
+
+required:
+ - compatible
+ - reg
+ - "#hwlock-cells"
+
+additionalProperties: false
+
+examples:
+ - |
+ hwspinlock@9801a000 {
+ compatible = "realtek,rtd1195-sb2-sem";
+ reg = <0x9801a000 0x4>;
+ #hwlock-cells = <0>;
+ };
+ - |
+ hwspinlock@9801a620 {
+ compatible = "realtek,rtd1195-sb2-sem";
+ reg = <0x9801a620 0x20>;
+ #hwlock-cells = <1>;
+ };
+...
Define a binding for Realtek RTD1195 SoC's SB2 hardware semaphore. Signed-off-by: Andreas Färber <afaerber@suse.de> --- .../bindings/hwlock/realtek,rtd1195-sb2-sem.yaml | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwlock/realtek,rtd1195-sb2-sem.yaml -- 2.16.4