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,sama5d2-shdwc.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Microchip AT91 SAMA5D2 SHDWC Shutdown Controller 8 9maintainers: 10 - Claudiu Beznea <[email protected]> 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 oneOf: 19 - items: 20 - const: microchip,sama7g5-shdwc 21 - const: syscon 22 - enum: 23 - atmel,sama5d2-shdwc 24 - microchip,sam9x60-shdwc 25 - items: 26 - const: microchip,sam9x7-shdwc 27 - const: microchip,sam9x60-shdwc 28 29 reg: 30 maxItems: 1 31 32 clocks: 33 maxItems: 1 34 35 "#address-cells": 36 const: 1 37 38 "#size-cells": 39 const: 0 40 41 debounce-delay-us: 42 description: 43 Minimum wake-up inputs debouncer period in microseconds. It is usually a 44 board-related property. 45 46 atmel,wakeup-rtc-timer: 47 description: enable real-time clock wake-up 48 type: boolean 49 50 atmel,wakeup-rtt-timer: 51 description: enable real-time timer wake-up 52 type: boolean 53 54patternProperties: 55 "^input@[0-15]$": 56 description: 57 Wake-up input nodes. These are usually described in the "board" part of 58 the Device Tree. Note also that input 0 is linked to the wake-up pin and 59 is frequently used. 60 type: object 61 properties: 62 reg: 63 description: contains the wake-up input index 64 minimum: 0 65 maximum: 15 66 67 atmel,wakeup-active-high: 68 description: 69 The corresponding wake-up input described by the child forces the 70 wake-up of the core power supply on a high level. The default is to 71 be active low. 72 type: boolean 73 74 required: 75 - reg 76 77 additionalProperties: false 78 79required: 80 - compatible 81 - reg 82 - clocks 83 84allOf: 85 - if: 86 properties: 87 compatible: 88 contains: 89 const: atmel,sama5d2-shdwc 90 then: 91 properties: 92 atmel,wakeup-rtt-timer: false 93 94additionalProperties: false 95 96examples: 97 - | 98 shdwc: poweroff@f8048010 { 99 compatible = "atmel,sama5d2-shdwc"; 100 reg = <0xf8048010 0x10>; 101 clocks = <&clk32k>; 102 #address-cells = <1>; 103 #size-cells = <0>; 104 atmel,wakeup-rtc-timer; 105 debounce-delay-us = <976>; 106 107 input@0 { 108 reg = <0>; 109 }; 110 111 input@1 { 112 reg = <1>; 113 atmel,wakeup-active-high; 114 }; 115 }; 116 117... 118