1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: "http://devicetree.org/schemas/reset/microchip,rst.yaml#"
5$schema: "http://devicetree.org/meta-schemas/core.yaml#"
6
7title: Microchip Sparx5 Switch Reset Controller
8
9maintainers:
10  - Steen Hegelund <steen.hegelund@microchip.com>
11  - Lars Povlsen <lars.povlsen@microchip.com>
12
13description: |
14  The Microchip Sparx5 Switch provides reset control and implements the following
15  functions
16    - One Time Switch Core Reset (Soft Reset)
17
18properties:
19  $nodename:
20    pattern: "^reset-controller@[0-9a-f]+$"
21
22  compatible:
23    const: microchip,sparx5-switch-reset
24
25  reg:
26    items:
27      - description: global control block registers
28
29  reg-names:
30    items:
31      - const: gcb
32
33  "#reset-cells":
34    const: 1
35
36  cpu-syscon:
37    $ref: "/schemas/types.yaml#/definitions/phandle"
38    description: syscon used to access CPU reset
39
40required:
41  - compatible
42  - reg
43  - reg-names
44  - "#reset-cells"
45  - cpu-syscon
46
47additionalProperties: false
48
49examples:
50  - |
51    reset: reset-controller@11010008 {
52        compatible = "microchip,sparx5-switch-reset";
53        reg = <0x11010008 0x4>;
54        reg-names = "gcb";
55        #reset-cells = <1>;
56        cpu-syscon = <&cpu_ctrl>;
57    };
58
59