[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221025035128.21068-2-zhuyinbo@loongson.cn>
Date: Tue, 25 Oct 2022 11:51:28 +0800
From: Yinbo Zhu <zhuyinbo@...ngson.cn>
To: Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Arnd Bergmann <arnd@...db.de>,
Hector Martin <marcan@...can.st>,
Lubomir Rintel <lkundrak@...sk>,
Conor Dooley <conor.dooley@...rochip.com>,
Linus Walleij <linus.walleij@...aro.org>,
Hitomi Hasegawa <hasegawa-hitomi@...itsu.com>,
Heiko Stuebner <heiko@...ech.de>,
Brian Norris <briannorris@...omium.org>,
Sven Peter <sven@...npeter.dev>, loongarch@...ts.linux.dev,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
Yinbo Zhu <zhuyinbo@...ngson.cn>
Subject: [PATCH v2 2/2] dt-bindings: soc: add loongson2 guts
Add the loongson2 soc guts driver binding with DT schema format
using json-schema.
Signed-off-by: Yinbo Zhu <zhuyinbo@...ngson.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
diff --git a/Documentation/devicetree/bindings/soc/loongson/loongson,ls2k-guts.yaml b/Documentation/devicetree/bindings/soc/loongson/loongson,ls2k-guts.yaml
new file mode 100644
index 000000000000..2502f8aeb74d
--- /dev/null
+++ b/Documentation/devicetree/bindings/soc/loongson/loongson,ls2k-guts.yaml
@@ -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@...ngson.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@...00000 {
+ compatible = "loongson,ls2k-guts";
+ reg = <0x1fe00000 0x3ffc>;
+ little-endian;
+ };
diff --git a/MAINTAINERS b/MAINTAINERS
index 0f06dc83f7c6..b23474a5d8c1 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -11934,6 +11934,7 @@ LOONGSON2 SOC SERIES GUTS DRIVER
M: Yinbo Zhu <zhuyinbo@...ngson.cn>
L: loongarch@...ts.linux.dev
S: Maintained
+F: Documentation/devicetree/bindings/soc/loongson/loongson,ls2k-guts.yaml
F: drivers/soc/loongson/loongson2_guts.c
LSILOGIC MPT FUSION DRIVERS (FC/SAS/SPI)
--
2.31.1
Powered by blists - more mailing lists