aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQing Zhang <[email protected]>2021-11-26 09:52:16 +0800
committerThomas Bogendoerfer <[email protected]>2022-01-02 14:13:36 +0100
commit75d4a175ff0609b0f11f6154737e6d15df9c185d (patch)
tree2bfec0638197bbb3df37c2584eccd76bc19e0bd2
parenta8f4fcdd8ba7d191c29ae87a2315906fe90368d6 (diff)
dt-bindings: mips: Add Loongson-2K1000 reset support
Switch the DT binding to a YAML schema to enable the DT validation. Signed-off-by: Qing Zhang <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
-rw-r--r--Documentation/devicetree/bindings/mips/loongson/ls2k-reset.yaml38
1 files changed, 38 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/mips/loongson/ls2k-reset.yaml b/Documentation/devicetree/bindings/mips/loongson/ls2k-reset.yaml
new file mode 100644
index 000000000000..20b5836efd90
--- /dev/null
+++ b/Documentation/devicetree/bindings/mips/loongson/ls2k-reset.yaml
@@ -0,0 +1,38 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: "http://devicetree.org/schemas/mips/loongson/ls2k-reset.yaml#"
+$schema: "http://devicetree.org/meta-schemas/core.yaml#"
+
+title: Loongson 2K1000 PM Controller
+
+maintainers:
+ - Qing Zhang <[email protected]>
+
+description: |
+ This controller can be found in Loongson-2K1000 Soc systems.
+
+properties:
+ compatible:
+ const: loongson,ls2k-pm
+
+ reg:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ bus {
+ #address-cells = <2>;
+ #size-cells = <2>;
+ pm: reset-controller@1fe07000 {
+ compatible = "loongson,ls2k-pm";
+ reg = <0 0x1fe07000 0 0x422>;
+ };
+ };
+...