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

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: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Link: https://lore.kernel.org/r/20200629161845.6021-2-nsaenzjulienne@suse.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Nicolas Saenz Julienne and committed by
Greg Kroah-Hartman
24284199 d7b74e0d

+34
+21
Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml
··· 48 48 - compatible 49 49 - "#clock-cells" 50 50 51 + reset: 52 + type: object 53 + 54 + properties: 55 + compatible: 56 + const: raspberrypi,firmware-reset 57 + 58 + "#reset-cells": 59 + const: 1 60 + description: > 61 + The argument is the ID of the firmware reset line to affect. 62 + 63 + required: 64 + - compatible 65 + - "#reset-cells" 66 + 51 67 additionalProperties: false 52 68 53 69 required: ··· 79 63 firmware_clocks: clocks { 80 64 compatible = "raspberrypi,firmware-clocks"; 81 65 #clock-cells = <1>; 66 + }; 67 + 68 + reset: reset { 69 + compatible = "raspberrypi,firmware-reset"; 70 + #reset-cells = <1>; 82 71 }; 83 72 }; 84 73 ...
+13
include/dt-bindings/reset/raspberrypi,firmware-reset.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 2 + /* 3 + * Copyright (c) 2020 Nicolas Saenz Julienne 4 + * Author: Nicolas Saenz Julienne <nsaenzjulienne@suse.com> 5 + */ 6 + 7 + #ifndef _DT_BINDINGS_RASPBERRYPI_FIRMWARE_RESET_H 8 + #define _DT_BINDINGS_RASPBERRYPI_FIRMWARE_RESET_H 9 + 10 + #define RASPBERRYPI_FIRMWARE_RESET_ID_USB 0 11 + #define RASPBERRYPI_FIRMWARE_RESET_NUM_IDS 1 12 + 13 + #endif