From patchwork Fri Mar 1 16:42:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abdellatif El Khlifi X-Patchwork-Id: 13578718 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 445DFC5478C for ; Fri, 1 Mar 2024 16:43:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8QawlfMa2FCBauq5aNb2eiZ2sTkCHoaH/LnaWayQFRA=; b=fIspRSbZtIborm /HVrAbFmG4vi5wr74+3mJSEQrU306QKotc4LRyBClLYBqzylNebusyGpNgbCuDX6hcx25mwfjs/tN nbVFP/PQLzdKcFnwjRyDrLpxEXh7nz8wp+9OOpRB+bHCAQP7744V4lEUvpUFZDA5aUPN1JOMT85Ky xGWGeZ9T7zibdQubvTmdyeAUlD39l3rMu9+hy8DQ4g3XhHc6j9VelMoC4h83c+y4c1fEb0i3jtJNU ih30o9J8poT51c1rrgcDE9FM8VwVYxEp/N9JxJV1D/MWGAgxjQ5hl8eJLBmNCHor8+H66qZoEe9Uq zfWdhb3C0kLnK4d9Tuxg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rg5yd-000000019eW-1Uja; Fri, 01 Mar 2024 16:43:15 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rg5ya-000000019dS-2A0O for linux-arm-kernel@lists.infradead.org; Fri, 01 Mar 2024 16:43:13 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 17A961FB; Fri, 1 Mar 2024 08:43:48 -0800 (PST) Received: from e130802.arm.com (unknown [10.57.69.63]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F2D5A3F73F; Fri, 1 Mar 2024 08:43:06 -0800 (PST) From: abdellatif.elkhlifi@arm.com To: Bjorn Andersson , Mathieu Poirier , Rob Herring Cc: Liviu Dudau , Sudeep Holla , Lorenzo Pieralisi , Krzysztof Kozlowski , Conor Dooley , Drew.Reed@arm.com, Adam.Johnston@arm.com, Abdellatif El Khlifi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org Subject: [PATCH 3/3] dt-bindings: remoteproc: Add Arm remoteproc Date: Fri, 1 Mar 2024 16:42:27 +0000 Message-Id: <20240301164227.339208-4-abdellatif.elkhlifi@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240301164227.339208-1-abdellatif.elkhlifi@arm.com> References: <20240301164227.339208-1-abdellatif.elkhlifi@arm.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240301_084312_680950_BA4C10B4 X-CRM114-Status: GOOD ( 17.32 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Abdellatif El Khlifi introduce the bindings for Arm remoteproc support. Signed-off-by: Abdellatif El Khlifi --- .../bindings/remoteproc/arm,rproc.yaml | 69 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 70 insertions(+) create mode 100644 Documentation/devicetree/bindings/remoteproc/arm,rproc.yaml diff --git a/Documentation/devicetree/bindings/remoteproc/arm,rproc.yaml b/Documentation/devicetree/bindings/remoteproc/arm,rproc.yaml new file mode 100644 index 000000000000..322197158059 --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/arm,rproc.yaml @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/remoteproc/arm,rproc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Arm Remoteproc Devices + +maintainers: + - Abdellatif El Khlifi + +description: | + Some Arm heterogeneous System-On-Chips feature remote processors that can + be controlled with a reset control register and a reset status register to + start or stop the processor. + + This document defines the bindings for these remote processors. + +properties: + compatible: + enum: + - arm,corstone1000-extsys + + reg: + minItems: 2 + maxItems: 2 + description: | + Address and size in bytes of the reset control register + and the reset status register. + Expects the registers to be in the order as above. + Should contain an entry for each value in 'reg-names'. + + reg-names: + description: | + Required names for each of the reset registers defined in + the 'reg' property. Expects the names from the following + list, in the specified order, each representing the corresponding + reset register. + items: + - const: reset-control + - const: reset-status + + firmware-name: + description: | + Default name of the firmware to load to the remote processor. + +required: + - compatible + - reg + - reg-names + - firmware-name + +additionalProperties: false + +examples: + - | + extsys0: remoteproc@1a010310 { + compatible = "arm,corstone1000-extsys"; + reg = <0x1a010310 0x4>, <0x1a010314 0x4>; + reg-names = "reset-control", "reset-status"; + firmware-name = "es0_flashfw.elf"; + }; + + extsys1: remoteproc@1a010318 { + compatible = "arm,corstone1000-extsys"; + reg = <0x1a010318 0x4>, <0x1a01031c 0x4>; + reg-names = "reset-control", "reset-status"; + firmware-name = "es1_flashfw.elf"; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 54d6a40feea5..eddaa3841a65 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1768,6 +1768,7 @@ ARM REMOTEPROC DRIVER M: Abdellatif El Khlifi L: linux-remoteproc@vger.kernel.org S: Maintained +F: Documentation/devicetree/bindings/remoteproc/arm,rproc.yaml F: drivers/remoteproc/arm_rproc.c ARM SMC WATCHDOG DRIVER