From patchwork Thu Aug 22 17:09:46 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: 13773958 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 DBE27C3DA4A for ; Thu, 22 Aug 2024 17:11:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=arw+A0EqDSvx+CA6ZLUXBRGaqgQKkGjWQbVM5DWy7Fo=; b=47wr0Epn/kpRUrO9gKZFZjiuPV FwM4C4LiRm/L5UPHyum1ZgALKAc4qBDLGZp8eEjRAvOraZUMlav8fX3R/WL9jPYjuaZLxZY+PGx6H 4P8RaLoaewH7k13g8N/7O/Sv3vzFsGgNo6oGWhn8XXQxjVbQO5yzlhGntNnwYHpX2PJEPWOlntQNh BCUscOcmJm9weQpU04U6evx1MMwnFbNl5a9QSeGvP6Y9n8V6whKxXLXVpM141A1MSHSK9VMUKXl7o kjuFLEdoILHOWHCt5qZGuhmQaiO1PPPptgJbgvNeLq443LFa/EZHDpNaUPFEtEKYEydR2zuv3LfDM UW8U4rog==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1shBKs-0000000Dk72-47IE; Thu, 22 Aug 2024 17:10:59 +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 1shBK5-0000000Djqs-05N0 for linux-arm-kernel@lists.infradead.org; Thu, 22 Aug 2024 17:10:10 +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 19EF9DA7; Thu, 22 Aug 2024 10:10:32 -0700 (PDT) Received: from e130802.cambridge.arm.com (e130802.arm.com [10.1.37.66]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CD27F3F58B; Thu, 22 Aug 2024 10:10:02 -0700 (PDT) From: Abdellatif El Khlifi To: mathieu.poirier@linaro.org Cc: Adam.Johnston@arm.com, Hugues.KambaMpiana@arm.com, Drew.Reed@arm.com, abdellatif.elkhlifi@arm.com, andersson@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org, liviu.dudau@arm.com, lpieralisi@kernel.org, robh@kernel.org, sudeep.holla@arm.com, robin.murphy@arm.com Subject: [PATCH v2 0/5] remoteproc: arm64: Introduce remoteproc support for Corstone-1000 External Systems Date: Thu, 22 Aug 2024 18:09:46 +0100 Message-Id: <20240822170951.339492-1-abdellatif.elkhlifi@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240822_101009_168086_144B6EEF X-CRM114-Status: GOOD ( 12.06 ) 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 The Corstone-1000 IoT Reference Design Platform [A] supports up to two External Systems processors. This patchset allows to control these processors through the remoteproc subsystem. The Corstone-1000 implements the SSE-710 subsystem [B] which defines the MMIO-mapped reset registers (EXT_SYS*) used for controlling the External Systems [C]. This patchset provides the following: - Device tree bindings for the SSE-710 subsystem with syscon support - Device tree bindings for the SSE-710 External System - Corstone-1000 External System, syscon and MHUs device tree nodes - Arm MHUv2 Mailbox [F] device tree nodes for Corstone-1000 - Corstone-1000 remoteproc driver with regmap support For more details, please see the SSE-710 External System Remote Processor bindings [D] and the SSE-710 Host Base System Control bindings [E]. [A]: https://developer.arm.com/Processors/Corstone-1000 [B]: https://developer.arm.com/documentation/102342/latest/ [C]: https://developer.arm.com/documentation/102342/0000/Programmers-model/Register-descriptions/Host-Base-System-Control-register-summary [D]: Documentation/devicetree/bindings/remoteproc/arm,sse710-extsys.yaml [E]: Documentation/devicetree/bindings/arm/arm,sse710-host-base-sysctrl.yaml [F]: Documentation/devicetree/bindings/mailbox/arm,mhuv2.yaml Changelog: ============ v2: * provide SSE-710 syscon bindings * provide SSE-710 External System bindings * add Corstone-1000 External System node under syscon * add Arm MHUv2 Mailbox device tree nodes for Corstone-1000 * add regmap support for the driver * use devm_rproc_* APIs * refactoring v1: [1] * introduce the Corstone-1000 remoteproc support List of previous patches: [1]: https://lore.kernel.org/all/20240301164227.339208-1-abdellatif.elkhlifi@arm.com/ Cheers, Abdellatif Abdellatif El Khlifi (5): dt-bindings: remoteproc: sse710: Add the External Systems remote processors dt-bindings: arm: sse710: Add Host Base System Control arm64: dts: corstone1000: Add MHU nodes used by the External System arm64: dts: corstone1000: Add External System support remoteproc: arm64: corstone1000: Add the External Systems driver .../arm/arm,sse710-host-base-sysctrl.yaml | 56 +++ .../remoteproc/arm,sse710-extsys.yaml | 90 +++++ arch/arm64/boot/dts/arm/corstone1000.dtsi | 34 +- drivers/remoteproc/Kconfig | 14 + drivers/remoteproc/Makefile | 1 + drivers/remoteproc/corstone1000_rproc.c | 350 ++++++++++++++++++ 6 files changed, 544 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/arm/arm,sse710-host-base-sysctrl.yaml create mode 100644 Documentation/devicetree/bindings/remoteproc/arm,sse710-extsys.yaml create mode 100644 drivers/remoteproc/corstone1000_rproc.c base-commit: 8fa052c29e509f3e47d56d7fc2ca28094d78c60a