Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: power: reset: atmel,at91sam9260-shdwc: convert to yaml

Convert Microchip AT91 shutdown controller to YAML.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>

authored by

Claudiu Beznea and committed by
Sebastian Reichel
c15329bb cba266a4

+82 -31
-31
Documentation/devicetree/bindings/arm/atmel-sysregs.txt
··· 52 52 reg = <0xe3804000 0x1000>; 53 53 }; 54 54 55 - SHDWC Shutdown Controller 56 - 57 - required properties: 58 - - compatible: Should be "atmel,<chip>-shdwc". 59 - <chip> can be "at91sam9260", "at91sam9rl" or "at91sam9x5". 60 - - reg: Should contain registers location and length 61 - - clocks: phandle to input clock. 62 - 63 - optional properties: 64 - - atmel,wakeup-mode: String, operation mode of the wakeup mode. 65 - Supported values are: "none", "high", "low", "any". 66 - - atmel,wakeup-counter: Counter on Wake-up 0 (between 0x0 and 0xf). 67 - 68 - optional at91sam9260 properties: 69 - - atmel,wakeup-rtt-timer: boolean to enable Real-time Timer Wake-up. 70 - 71 - optional at91sam9rl properties: 72 - - atmel,wakeup-rtc-timer: boolean to enable Real-time Clock Wake-up. 73 - - atmel,wakeup-rtt-timer: boolean to enable Real-time Timer Wake-up. 74 - 75 - optional at91sam9x5 properties: 76 - - atmel,wakeup-rtc-timer: boolean to enable Real-time Clock Wake-up. 77 - 78 - Example: 79 - 80 - shdwc@fffffd10 { 81 - compatible = "atmel,at91sam9260-shdwc"; 82 - reg = <0xfffffd10 0x10>; 83 - clocks = <&clk32k>; 84 - }; 85 - 86 55 SHDWC SAMA5D2-Compatible Shutdown Controller 87 56 88 57 1) shdwc node
+82
Documentation/devicetree/bindings/power/reset/atmel,at91sam9260-shdwc.yaml
··· 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 + 7 + title: Microchip AT91 SHDWC Shutdown Controller 8 + 9 + maintainers: 10 + - Claudiu Beznea <claudiu.beznea@microchip.com> 11 + 12 + description: | 13 + Microchip AT91 SHDWC shutdown controller controls the power supplies VDDIO 14 + and VDDCORE and the wake-up detection on debounced input lines. 15 + 16 + properties: 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 + 48 + required: 49 + - compatible 50 + - reg 51 + - clocks 52 + 53 + allOf: 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 + 72 + additionalProperties: false 73 + 74 + examples: 75 + - | 76 + shdwc: poweroff@fffffd10 { 77 + compatible = "atmel,at91sam9260-shdwc"; 78 + reg = <0xfffffd10 0x10>; 79 + clocks = <&clk32k>; 80 + }; 81 + 82 + ...