-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'at91-reset-sama7g5-signed' into psy-next
This adds reset controller support for SAMA7G5 SoCs. Compared with previous version the reset controller embedded on SAMA7G5 is able to reset individual on SoC devices (e.g. USB PHY controllers). Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
- Loading branch information
Showing
4 changed files
with
247 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
Documentation/devicetree/bindings/reset/atmel,at91sam9260-reset.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/reset/atmel,at91sam9260-reset.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Atmel/Microchip System Reset Controller | ||
|
||
maintainers: | ||
- Claudiu Beznea <claudiu.beznea@microchip.com> | ||
|
||
description: | | ||
The system reset controller can be used to reset the CPU. In case of | ||
SAMA7G5 it can also reset some devices (e.g. USB PHYs). | ||
properties: | ||
compatible: | ||
oneOf: | ||
- items: | ||
- enum: | ||
- atmel,at91sam9260-rstc | ||
- atmel,at91sam9g45-rstc | ||
- atmel,sama5d3-rstc | ||
- microchip,sam9x60-rstc | ||
- microchip,sama7g5-rstc | ||
- items: | ||
- const: atmel,sama5d3-rstc | ||
- const: atmel,at91sam9g45-rstc | ||
|
||
reg: | ||
minItems: 1 | ||
items: | ||
- description: base registers for system reset control | ||
- description: registers for device specific reset control | ||
|
||
clocks: | ||
maxItems: 1 | ||
|
||
"#reset-cells": | ||
const: 1 | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- clocks | ||
|
||
allOf: | ||
- if: | ||
properties: | ||
compatible: | ||
contains: | ||
enum: | ||
- microchip,sama7g5-rstc | ||
then: | ||
required: | ||
- "#reset-cells" | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/clock/at91.h> | ||
reset-controller@fffffd00 { | ||
compatible = "atmel,at91sam9260-rstc"; | ||
reg = <0xfffffd00 0x10>; | ||
clocks = <&pmc PMC_TYPE_CORE PMC_SLOW>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ | ||
|
||
#ifndef __DT_BINDINGS_RESET_SAMA7G5_H | ||
#define __DT_BINDINGS_RESET_SAMA7G5_H | ||
|
||
#define SAMA7G5_RESET_USB_PHY1 4 | ||
#define SAMA7G5_RESET_USB_PHY2 5 | ||
#define SAMA7G5_RESET_USB_PHY3 6 | ||
|
||
#endif /* __DT_BINDINGS_RESET_SAMA7G5_H */ |