Commit 75d4a175 authored by Qing Zhang's avatar Qing Zhang Committed by Thomas Bogendoerfer
Browse files

dt-bindings: mips: Add Loongson-2K1000 reset support



Switch the DT binding to a YAML schema to enable the DT validation.

Signed-off-by: default avatarQing Zhang <zhangqing@loongson.cn>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent a8f4fcdd
Loading
Loading
Loading
Loading
+38 −0
Original line number Diff line number Diff line
# 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 <zhangqing@loongson.cn>

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>;
        };
    };
...