Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3003033ybt; Mon, 29 Jun 2020 12:37:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2E/KPmnzjmP28B4FH6/lKTp3IoAl8RoDlSSrKjuFcmKQAR1+bow+3rcbj3XChw4uRjn7B X-Received: by 2002:a17:906:2b04:: with SMTP id a4mr14726318ejg.199.1593459447707; Mon, 29 Jun 2020 12:37:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593459447; cv=none; d=google.com; s=arc-20160816; b=ANix6AL2sKsujb5kwNQOQF2QAPqJuRmTOytOIc7Qm25IA8FqqZcqBxiqm7OvAovoBP 3YBN9nSATmApPia3DCAap3Pi+MZ+9UWG7T/1PcB5kqqOjcyW8Rcv/5K+BsLmuFBYFDZ7 p9uAmG5J/iKr8jkLNCgAGEioXcusM6U33lcNcwqhyTFDhTfQk4msEYQ6k0GP1haqu9zS b+EkDRfxyUU4uEbXKQjO0xszYpElXJZvXMn4exwerapYA7quzy3TZunX1RnTUYvgIojm ylJvRSxy/d8Qu/7Oq5n3TUE4l4Tf4d/B2GpTzdunNbgBhIAU93DP7TWuqo5jRSPW2FHB qeRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=j+TTYnsAfEE8xbZHby+KQmk714CFS5Dnl02VVnFZa4E=; b=kKljZwTcviBX86AFChqvFRl1BObAvTv9pvS/PsBkrI8/WeWL9ifcYA54xgA6RsLXdF NvodTxdYAmpwqBKgUJFhh5C1EROvPaCncU+yC5lb5uXeOD53qAiTMR6rs8hcCIz0gSK8 PIJPtHKqT9LjL0kuQYwi8CfRdRTGqycbHAXe7LNiVExQGodtsqkcjFlMqMDIVGO2GeGV Hn+ZSi0gbxKsn5ZZpVVX2Hcc84JMNSJPWwKSdQMpE1fzvePbZkL0d9EXb2qx0kOycTXe UIwfzptgx6sjzKc1WH0EDckCmsESHPkQUEIH6Zg/F4bWdlc4UN4xO6TkVxLsqtLC0tpH PjoA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r20si276619edw.577.2020.06.29.12.37.04; Mon, 29 Jun 2020 12:37:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733310AbgF2TfA (ORCPT + 99 others); Mon, 29 Jun 2020 15:35:00 -0400 Received: from mx2.suse.de ([195.135.220.15]:36622 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733147AbgF2TbZ (ORCPT ); Mon, 29 Jun 2020 15:31:25 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 9E7FCADAA; Mon, 29 Jun 2020 16:18:55 +0000 (UTC) From: Nicolas Saenz Julienne To: f.fainelli@gmail.com, gregkh@linuxfoundation.org, robh@kernel.org, wahrenst@gmx.net, p.zabel@pengutronix.de, andy.shevchenko@gmail.com Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, tim.gover@raspberrypi.org, linux-pci@vger.kernel.org, helgaas@kernel.org, mathias.nyman@linux.intel.com, lorenzo.pieralisi@arm.com, Nicolas Saenz Julienne Subject: [PATCH v5 1/9] dt-bindings: reset: Add a binding for the RPi Firmware reset controller Date: Mon, 29 Jun 2020 18:18:37 +0200 Message-Id: <20200629161845.6021-2-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200629161845.6021-1-nsaenzjulienne@suse.de> References: <20200629161845.6021-1-nsaenzjulienne@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The firmware running on the RPi VideoCore can be used to reset and initialize HW controlled by the firmware. Signed-off-by: Nicolas Saenz Julienne Reviewed-by: Florian Fainelli --- Changes since v2: - Add include file for reset IDs Changes since v1: - Correct cells binding as per Florian's comment - Change compatible string to be more generic .../arm/bcm/raspberrypi,bcm2835-firmware.yaml | 21 +++++++++++++++++++ .../reset/raspberrypi,firmware-reset.h | 13 ++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 include/dt-bindings/reset/raspberrypi,firmware-reset.h diff --git a/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml b/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml index b48ed875eb8e..23a885af3a28 100644 --- a/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml +++ b/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml @@ -39,6 +39,22 @@ properties: - compatible - "#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 required: @@ -55,5 +71,10 @@ examples: compatible = "raspberrypi,firmware-clocks"; #clock-cells = <1>; }; + + reset: reset { + compatible = "raspberrypi,firmware-reset"; + #reset-cells = <1>; + }; }; ... diff --git a/include/dt-bindings/reset/raspberrypi,firmware-reset.h b/include/dt-bindings/reset/raspberrypi,firmware-reset.h new file mode 100644 index 000000000000..1a4f4c792723 --- /dev/null +++ b/include/dt-bindings/reset/raspberrypi,firmware-reset.h @@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (c) 2020 Nicolas Saenz Julienne + * Author: Nicolas Saenz Julienne + */ + +#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 -- 2.27.0