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

dt-bindings: reset: convert Atmel/Microchip reset controller to YAML

Convert Atmel/Microchip reset controller to YAML.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>

authored by

Claudiu Beznea and committed by
Sebastian Reichel
e9405be8 f2906aa8

+49 -15
-15
Documentation/devicetree/bindings/arm/atmel-sysregs.txt
··· 25 25 Its subnodes can be: 26 26 - watchdog: compatible should be "atmel,at91rm9200-wdt" 27 27 28 - RSTC Reset Controller required properties: 29 - - compatible: Should be "atmel,<chip>-rstc". 30 - <chip> can be "at91sam9260", "at91sam9g45", "sama5d3" or "samx7" 31 - it also can be "microchip,sam9x60-rstc" 32 - - reg: Should contain registers location and length 33 - - clocks: phandle to input clock. 34 - 35 - Example: 36 - 37 - rstc@fffffd00 { 38 - compatible = "atmel,at91sam9260-rstc"; 39 - reg = <0xfffffd00 0x10>; 40 - clocks = <&clk32k>; 41 - }; 42 - 43 28 RAMC SDRAM/DDR Controller required properties: 44 29 - compatible: Should be "atmel,at91rm9200-sdramc", "syscon" 45 30 "atmel,at91sam9260-sdramc",
+49
Documentation/devicetree/bindings/reset/atmel,at91sam9260-reset.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/reset/atmel,at91sam9260-reset.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Atmel/Microchip System Reset Controller 8 + 9 + maintainers: 10 + - Claudiu Beznea <claudiu.beznea@microchip.com> 11 + 12 + description: | 13 + The system reset controller can be used to reset the CPU. 14 + 15 + properties: 16 + compatible: 17 + oneOf: 18 + - items: 19 + - enum: 20 + - atmel,at91sam9260-rstc 21 + - atmel,at91sam9g45-rstc 22 + - atmel,sama5d3-rstc 23 + - microchip,sam9x60-rstc 24 + - items: 25 + - const: atmel,sama5d3-rstc 26 + - const: atmel,at91sam9g45-rstc 27 + 28 + reg: 29 + maxItems: 1 30 + 31 + clocks: 32 + maxItems: 1 33 + 34 + required: 35 + - compatible 36 + - reg 37 + - clocks 38 + 39 + additionalProperties: false 40 + 41 + examples: 42 + - | 43 + #include <dt-bindings/clock/at91.h> 44 + 45 + reset-controller@fffffd00 { 46 + compatible = "atmel,at91sam9260-rstc"; 47 + reg = <0xfffffd00 0x10>; 48 + clocks = <&pmc PMC_TYPE_CORE PMC_SLOW>; 49 + };