xref: /linux/Documentation/devicetree/bindings/reset/atmel,at91sam9260-reset.yaml (revision d6053666ef2b6631ef8f265f49ff2cc0f4d45c50)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/reset/atmel,at91sam9260-reset.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Atmel/Microchip System Reset Controller
8
9maintainers:
10  - Claudiu Beznea <claudiu.beznea@microchip.com>
11
12description: |
13  The system reset controller can be used to reset the CPU. In case of
14  SAMA7G5 it can also reset some devices (e.g. USB PHYs).
15
16properties:
17  compatible:
18    oneOf:
19      - items:
20          - enum:
21              - atmel,at91sam9260-rstc
22              - atmel,at91sam9g45-rstc
23              - atmel,sama5d3-rstc
24              - microchip,sam9x60-rstc
25              - microchip,sama7g5-rstc
26      - items:
27          - const: atmel,sama5d3-rstc
28          - const: atmel,at91sam9g45-rstc
29
30  reg:
31    minItems: 1
32    items:
33      - description: base registers for system reset control
34      - description: registers for device specific reset control
35
36  clocks:
37    maxItems: 1
38
39  "#reset-cells":
40    const: 1
41
42required:
43  - compatible
44  - reg
45  - clocks
46
47allOf:
48  - if:
49      properties:
50        compatible:
51          contains:
52            enum:
53              - microchip,sama7g5-rstc
54    then:
55      required:
56        - "#reset-cells"
57
58additionalProperties: false
59
60examples:
61  - |
62    #include <dt-bindings/clock/at91.h>
63
64    reset-controller@fffffd00 {
65        compatible = "atmel,at91sam9260-rstc";
66        reg = <0xfffffd00 0x10>;
67        clocks = <&pmc PMC_TYPE_CORE PMC_SLOW>;
68    };
69