| 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 <[email protected]> |
| 11 |
|
| 12 |
description: | |
| 13 |
The system reset controller can be used to reset the CPU. In case of |
| 14 |
SAMA7G5 it can also reset some devices (e.g. USB PHYs). |
| 15 |
|
| 16 |
properties: |
| 17 |
compatible: |
| 18 |
oneOf: |
| 19 |
- items: |
| 20 |
- enum: |
| 21 |
- atmel,at91sam9260-rstc |
| 22 |
- atmel,at91sam9g45-rstc |
| 23 |
- atmel,sama5d3-rstc |
| 24 |
- microchip,sam9x60-rstc |
| 25 |
- microchip,sama7g5-rstc |
| 26 |
- items: |
| 27 |
- const: microchip,sama7d65-rstc |
| 28 |
- const: microchip,sama7g5-rstc |
| 29 |
- items: |
| 30 |
- const: atmel,sama5d3-rstc |
| 31 |
- const: atmel,at91sam9g45-rstc |
| 32 |
- items: |
| 33 |
- enum: |
| 34 |
- microchip,sam9x7-rstc |
| 35 |
- const: microchip,sam9x60-rstc |
| 36 |
|
| 37 |
reg: |
| 38 |
minItems: 1 |
| 39 |
items: |
| 40 |
- description: base registers for system reset control |
| 41 |
- description: registers for device specific reset control |
| 42 |
|
| 43 |
clocks: |
| 44 |
maxItems: 1 |
| 45 |
|
| 46 |
"#reset-cells": |
| 47 |
const: 1 |
| 48 |
|
| 49 |
required: |
| 50 |
- compatible |
| 51 |
- reg |
| 52 |
- clocks |
| 53 |
|
| 54 |
allOf: |
| 55 |
- if: |
| 56 |
properties: |
| 57 |
compatible: |
| 58 |
contains: |
| 59 |
enum: |
| 60 |
- microchip,sama7g5-rstc |
| 61 |
then: |
| 62 |
required: |
| 63 |
- "#reset-cells" |
| 64 |
|
| 65 |
additionalProperties: false |
| 66 |
|
| 67 |
examples: |
| 68 |
- | |
| 69 |
#include <dt-bindings/clock/at91.h> |
| 70 |
|
| 71 |
reset-controller@fffffd00 { |
| 72 |
compatible = "atmel,at91sam9260-rstc"; |
| 73 |
reg = <0xfffffd00 0x10>; |
| 74 |
clocks = <&pmc PMC_TYPE_CORE PMC_SLOW>; |
| 75 |
}; |