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