summaryrefslogtreecommitdiffstats
path: root/dts/Bindings/power/reset/atmel,at91sam9260-shdwc.yaml
blob: f559a2cfd82ea2d732660cb67a22c32640cc9a60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/power/reset/atmel,at91sam9260-shdwc.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Microchip AT91 SHDWC Shutdown Controller

maintainers:
  - Claudiu Beznea <claudiu.beznea@microchip.com>

description: |
  Microchip AT91 SHDWC shutdown controller controls the power supplies VDDIO
  and VDDCORE and the wake-up detection on debounced input lines.

properties:
  compatible:
    enum:
      - atmel,at91sam9260-shdwc
      - atmel,at91sam9rl-shdwc
      - atmel,at91sam9x5-shdwc

  reg:
    maxItems: 1

  clocks:
    maxItems: 1

  atmel,wakeup-mode:
    description: operation mode of the wakeup mode
    $ref: /schemas/types.yaml#/definitions/string
    enum: [ none, high, low, any ]

  atmel,wakeup-counter:
    description: counter on wake-up 0
    $ref: /schemas/types.yaml#/definitions/uint32
    minimum: 0
    maximum: 15

  atmel,wakeup-rtt-timer:
    description: enable real-time timer wake-up
    type: boolean

  atmel,wakeup-rtc-timer:
    description: enable real-time clock wake-up
    type: boolean

required:
  - compatible
  - reg
  - clocks

allOf:
  - if:
      properties:
        compatible:
          contains:
            const: atmel,at91sam9x5-shdwc
    then:
      properties:
        atmel,wakeup-rtt-timer: false

  - if:
      properties:
        compatible:
          contains:
            const: atmel,at91sam9260-shdwc
    then:
      properties:
        atmel,wakeup-rtc-timer: false

additionalProperties: false

examples:
  - |
    shdwc: poweroff@fffffd10 {
        compatible = "atmel,at91sam9260-shdwc";
        reg = <0xfffffd10 0x10>;
        clocks = <&clk32k>;
    };

...