[v1,2/2] dt-bindings: soc: add loongson2 guts
Commit Message
Add the loongson2 soc guts driver binding with DT schema format
using json-schema.
Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn>
---
.../soc/loongson/loongson,ls2k-guts.yaml | 37 +++++++++++++++++++
MAINTAINERS | 1 +
2 files changed, 38 insertions(+)
create mode 100644 Documentation/devicetree/bindings/soc/loongson/loongson,ls2k-guts.yaml
new file mode 100644
@@ -0,0 +1,37 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/soc/loongson/loongson,ls2k-guts.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Loongson2 GUTS driver.
+
+maintainers:
+ - Yinbo Zhu <zhuyinbo@loongson.cn>
+
+description: |
+ GUTS driver was to manage and access global utilities block. Initially
+ only reading SVR and registering soc device are supported.
+
+properties:
+ compatible:
+ const: loongson,ls2k-guts
+
+ reg:
+ maxItems: 1
+
+ little-endian: true
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ guts: guts@1fe00000 {
+ compatible = "loongson,ls2k-guts";
+ reg = <0x1fe00000 0x3ffc>;
+ little-endian;
+ };
@@ -11934,6 +11934,7 @@ LOONGSON2 SOC SERIES GUTS DRIVER
M: Yinbo Zhu <zhuyinbo@loongson.cn>
L: loongarch@lists.linux.dev
S: Maintained
+F: Documentation/devicetree/bindings/soc/loongson/loongson,ls2k-guts.yaml
F: drivers/soc/loongson/loongson2_guts.c
F: include/linux/loongson/loongson2_guts.h