xref: /openbmc/linux/Documentation/devicetree/bindings/power/reset/atmel,at91sam9260-shdwc.yaml (revision 2612e3bbc0386368a850140a6c9b990cd496a5ec)
1*c15329bbSClaudiu Beznea# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*c15329bbSClaudiu Beznea%YAML 1.2
3*c15329bbSClaudiu Beznea---
4*c15329bbSClaudiu Beznea$id: http://devicetree.org/schemas/power/reset/atmel,at91sam9260-shdwc.yaml#
5*c15329bbSClaudiu Beznea$schema: http://devicetree.org/meta-schemas/core.yaml#
6*c15329bbSClaudiu Beznea
7*c15329bbSClaudiu Bezneatitle: Microchip AT91 SHDWC Shutdown Controller
8*c15329bbSClaudiu Beznea
9*c15329bbSClaudiu Bezneamaintainers:
10*c15329bbSClaudiu Beznea  - Claudiu Beznea <claudiu.beznea@microchip.com>
11*c15329bbSClaudiu Beznea
12*c15329bbSClaudiu Bezneadescription: |
13*c15329bbSClaudiu Beznea  Microchip AT91 SHDWC shutdown controller controls the power supplies VDDIO
14*c15329bbSClaudiu Beznea  and VDDCORE and the wake-up detection on debounced input lines.
15*c15329bbSClaudiu Beznea
16*c15329bbSClaudiu Bezneaproperties:
17*c15329bbSClaudiu Beznea  compatible:
18*c15329bbSClaudiu Beznea    enum:
19*c15329bbSClaudiu Beznea      - atmel,at91sam9260-shdwc
20*c15329bbSClaudiu Beznea      - atmel,at91sam9rl-shdwc
21*c15329bbSClaudiu Beznea      - atmel,at91sam9x5-shdwc
22*c15329bbSClaudiu Beznea
23*c15329bbSClaudiu Beznea  reg:
24*c15329bbSClaudiu Beznea    maxItems: 1
25*c15329bbSClaudiu Beznea
26*c15329bbSClaudiu Beznea  clocks:
27*c15329bbSClaudiu Beznea    maxItems: 1
28*c15329bbSClaudiu Beznea
29*c15329bbSClaudiu Beznea  atmel,wakeup-mode:
30*c15329bbSClaudiu Beznea    description: operation mode of the wakeup mode
31*c15329bbSClaudiu Beznea    $ref: /schemas/types.yaml#/definitions/string
32*c15329bbSClaudiu Beznea    enum: [ none, high, low, any ]
33*c15329bbSClaudiu Beznea
34*c15329bbSClaudiu Beznea  atmel,wakeup-counter:
35*c15329bbSClaudiu Beznea    description: counter on wake-up 0
36*c15329bbSClaudiu Beznea    $ref: /schemas/types.yaml#/definitions/uint32
37*c15329bbSClaudiu Beznea    minimum: 0
38*c15329bbSClaudiu Beznea    maximum: 15
39*c15329bbSClaudiu Beznea
40*c15329bbSClaudiu Beznea  atmel,wakeup-rtt-timer:
41*c15329bbSClaudiu Beznea    description: enable real-time timer wake-up
42*c15329bbSClaudiu Beznea    type: boolean
43*c15329bbSClaudiu Beznea
44*c15329bbSClaudiu Beznea  atmel,wakeup-rtc-timer:
45*c15329bbSClaudiu Beznea    description: enable real-time clock wake-up
46*c15329bbSClaudiu Beznea    type: boolean
47*c15329bbSClaudiu Beznea
48*c15329bbSClaudiu Beznearequired:
49*c15329bbSClaudiu Beznea  - compatible
50*c15329bbSClaudiu Beznea  - reg
51*c15329bbSClaudiu Beznea  - clocks
52*c15329bbSClaudiu Beznea
53*c15329bbSClaudiu BezneaallOf:
54*c15329bbSClaudiu Beznea  - if:
55*c15329bbSClaudiu Beznea      properties:
56*c15329bbSClaudiu Beznea        compatible:
57*c15329bbSClaudiu Beznea          contains:
58*c15329bbSClaudiu Beznea            const: atmel,at91sam9x5-shdwc
59*c15329bbSClaudiu Beznea    then:
60*c15329bbSClaudiu Beznea      properties:
61*c15329bbSClaudiu Beznea        atmel,wakeup-rtt-timer: false
62*c15329bbSClaudiu Beznea
63*c15329bbSClaudiu Beznea  - if:
64*c15329bbSClaudiu Beznea      properties:
65*c15329bbSClaudiu Beznea        compatible:
66*c15329bbSClaudiu Beznea          contains:
67*c15329bbSClaudiu Beznea            const: atmel,at91sam9260-shdwc
68*c15329bbSClaudiu Beznea    then:
69*c15329bbSClaudiu Beznea      properties:
70*c15329bbSClaudiu Beznea        atmel,wakeup-rtc-timer: false
71*c15329bbSClaudiu Beznea
72*c15329bbSClaudiu BezneaadditionalProperties: false
73*c15329bbSClaudiu Beznea
74*c15329bbSClaudiu Bezneaexamples:
75*c15329bbSClaudiu Beznea  - |
76*c15329bbSClaudiu Beznea    shdwc: poweroff@fffffd10 {
77*c15329bbSClaudiu Beznea        compatible = "atmel,at91sam9260-shdwc";
78*c15329bbSClaudiu Beznea        reg = <0xfffffd10 0x10>;
79*c15329bbSClaudiu Beznea        clocks = <&clk32k>;
80*c15329bbSClaudiu Beznea    };
81*c15329bbSClaudiu Beznea
82*c15329bbSClaudiu Beznea...
83