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