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