Commit 24284199 authored by Nicolas Saenz Julienne's avatar Nicolas Saenz Julienne Committed by Greg Kroah-Hartman

dt-bindings: reset: Add a binding for the RPi Firmware reset controller

The firmware running on the RPi VideoCore can be used to reset and
initialize HW controlled by the firmware.
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Link: https://lore.kernel.org/r/20200629161845.6021-2-nsaenzjulienne@suse.deSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d7b74e0d
...@@ -48,6 +48,22 @@ properties: ...@@ -48,6 +48,22 @@ properties:
- compatible - compatible
- "#clock-cells" - "#clock-cells"
reset:
type: object
properties:
compatible:
const: raspberrypi,firmware-reset
"#reset-cells":
const: 1
description: >
The argument is the ID of the firmware reset line to affect.
required:
- compatible
- "#reset-cells"
additionalProperties: false additionalProperties: false
required: required:
...@@ -64,5 +80,10 @@ examples: ...@@ -64,5 +80,10 @@ examples:
compatible = "raspberrypi,firmware-clocks"; compatible = "raspberrypi,firmware-clocks";
#clock-cells = <1>; #clock-cells = <1>;
}; };
reset: reset {
compatible = "raspberrypi,firmware-reset";
#reset-cells = <1>;
};
}; };
... ...
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2020 Nicolas Saenz Julienne
* Author: Nicolas Saenz Julienne <nsaenzjulienne@suse.com>
*/
#ifndef _DT_BINDINGS_RASPBERRYPI_FIRMWARE_RESET_H
#define _DT_BINDINGS_RASPBERRYPI_FIRMWARE_RESET_H
#define RASPBERRYPI_FIRMWARE_RESET_ID_USB 0
#define RASPBERRYPI_FIRMWARE_RESET_NUM_IDS 1
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment