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.elkhlifi@arm.com X-Patchwork-Id: 208938 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:fa17:b0:10a:f01:a869 with SMTP id ju23csp5958dyc; Fri, 1 Mar 2024 08:49:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVVR4oB7Z9ONVBeAjNBBJDVYE9k8tyMPWwrH69KNHAobA+mml01kSXwKXejmIKRjpGpYxFFeF1X1HY/D4XngDdJOkEhdA== X-Google-Smtp-Source: AGHT+IGPWu49a8c2aLuCRR50WvHL0sbU4UczvG73dROuRlFUBOT4oMwTOYsq2jvoY4/FcwM2VBMP X-Received: by 2002:ac8:5841:0:b0:42e:b23a:7a15 with SMTP id h1-20020ac85841000000b0042eb23a7a15mr2230024qth.62.1709311774202; Fri, 01 Mar 2024 08:49:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709311774; cv=pass; d=google.com; s=arc-20160816; b=BwLndks0Z6RWMiCd+C6RcGCT5UwDaWmB5OyntDnEvUGpnGMm5+fKlCkuDl0064XsDg f9bYgvf+dPSy3fPd35nrHZQE0eNjiekkNkyvJUqK5g+gyy25Iims4TyGfJeIjewK9AQ3 BzuRG3n1C4sXSfgn1ziul2lU+p9HC1OuDV4wtlzZ7sLtw+R67xWRu5noEOH8owTSTnz/ ZJKC5oSlRouXQiZ0vdSDhXKkz8C1eccZ7Vr11JL4TCZwG21CMdoy5NJ54OnJ7i9jAO5I HefWmK+5nKormdNa7vNV1Fm9j1lAxphDvzXYEtqvBsqGgrnGhQGOnVY/3T6D+XJP/i8p SysA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=sw2WlK0OetBboP/O3jMjl4v9FApvP5pc1/4/Mq6KPo0=; fh=UepcFyFhAT/Rlp/vfS7bhlutY72Ro0HVVE8G0CE5dqA=; b=kWV/Sqqa9rcYZdboxLULtIDCjD/HYhiNgaBY4iBrN9Br4ZywmgjEC2wdcASzZwIXa1 SzoAPgmi6sYPj71WGT9fwsKH9g7rBb6up6wh9nskTHVBGjOhY/81ck/dv86E3jBhu2xP 0GLnhhAyJ1c2xpT177+WHUp3foBcVdZITWU+QC0oBeoIrerOzdwVpvVvTyUGDXPzFa0G xKvmNUSSx6xxysKI3x9GS/RXlwujp9HPQW0wYbmO/XaiPB2qX/tAUCPEzorDS8TwUZte MJTJoikj+bbODs0QB97KrDhHcK0w3mAIfR4LBO2mc1zxjVrc4QQlS5t+BpV4TKm2jyvH jdKQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-88749-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88749-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id jt38-20020a05622aa02600b0042e74a511c5si3748520qtb.326.2024.03.01.08.49.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 08:49:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88749-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-88749-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88749-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 048A11C22E2E for ; Fri, 1 Mar 2024 16:49:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BAB2B3A26E; Fri, 1 Mar 2024 16:43:13 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 92F9639FED; Fri, 1 Mar 2024 16:43:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709311392; cv=none; b=DHbOigtFNZv/Ub+1jjdLJedOcv/9dyb0Pt62cd0eJflwjibL77qgR60c3ep55k7ltyKf/P2+9SbklIfALGk8sqHYk22c2ok+xf50CWn+tToPRH2hHIxoDm9GWILUt067ZwVxTlM0p0MNJ8Z7IKfqUWfP1QiI+ImlLYgGNItWsNs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709311392; c=relaxed/simple; bh=cLP1VhV//5a+QK8whuvHKC/YPCEW30r7xd8KhREIKck=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=X/Eio1+KNproLUdnOWdl0Y4PAskMlzF59KfqAiwPZC2PGMauI4qkkDVakyt2Yjfkxs44nIgABMJ8idavEwzwyzhcTGjFEqCt8Yb7ZtyQFMUATgVITF792Zgae1AGI09E+NY3u7UNEjK+/oiYWqaXTD7/x0YwWJAKOlMK10COu0Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792343302632138110 X-GMAIL-MSGID: 1792343302632138110 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