From patchwork Thu Dec 21 12:38:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Conor Dooley X-Patchwork-Id: 13501801 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 smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 100EEC35274 for ; Thu, 21 Dec 2023 12:38:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) id E43F1C433C8; Thu, 21 Dec 2023 12:38:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A9239C433C9; Thu, 21 Dec 2023 12:38:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703162298; bh=KKQaeH2EmDJ7mFaL5Q6gJzAHWCpUvrzqaLBg34q+1wY=; h=Date:From:List-Id:To:List-Id:Cc:Subject:From; b=E7C8zH+zhk4HHPrdh0XrPs09Fo0xrLRwGbuRrX/1Lj8SXVwcj1Fd9sCXPrxkwZd/Q zfmW7gTodJGNazNRCsKR70oTvOzQUHZA5LEPiTkZbGSkgqbR2OAnIiSxdfE/YwoL+B truvPYxeBwmNCBBnhHjMu+GOKQUTiZNb5tjac+h3oqiHANV13BCa0ISM6bTAf/YUTU ksrJs0QT437ncf82BkhHBbrgcE814xqteHBe+3S6yaqBuojg2nit5qokIq/Oh4st4K 0Zo1pgmWAdyJyDo3LrkPiIJ1Hoa5SReadsJNS1tY46AOE/6Ht7oUcsvGf0K8Z63Spn pUDDWTN70G/mA== Date: Thu, 21 Dec 2023 12:38:15 +0000 From: Conor Dooley List-Id: To: soc@kernel.org List-Id: Cc: conor@kernel.org, arnd@arndb.de, linux-riscv@lists.infradead.org, soc@kernel.org Subject: [GIT PULL] RISC-V SoC drivers for v6.8 Message-ID: <20231221-droop-unblock-81e4fe14acee@spud> MIME-Version: 1.0 Content-Disposition: inline Hey Arnd, The FPGA preprogramming driver that we discussed a while back (was it at LPC?) is in this PR. It's in the soc-drivers branch because there's a bunch of pre-req patches to the existing soc driver that it relies on. I'll put stuff for drivers/firmware into a separate branch in the future. Cheers, Conor. The following changes since commit b85ea95d086471afb4ad062012a4d73cd328fa86: Linux 6.7-rc1 (2023-11-12 16:19:07 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux.git/ riscv-soc-drivers-for-v6.8 for you to fetch changes up to 0f2d06dd1910cc7f6591620a2070d44ca3f56551: MAINTAINERS: add auto-update driver to mpfs entry (2023-12-07 16:43:29 +0000) ---------------------------------------------------------------- RISC-V SoC drivers for v6.8 There's only one set of changes here, the addition of "Auto Update" support for PolarFire SoC. Auto Update is one of the ways that the FPGA bitstream can be updated, and the only one suitable for use from Linux as it does not immediately initiate a reboot when started. The driver was not accepted in the FPGA manager subsystem as the update only occurs after a reboot and makes no use of the FPGA manager framework. Signed-off-by: Conor Dooley ---------------------------------------------------------------- Conor Dooley (6): dt-bindings: soc: microchip: add a property for system controller flash soc: microchip: mpfs: enable access to the system controller's flash soc: microchip: mpfs: print service status in warning message soc: microchip: mpfs: add auto-update subdev to system controller firmware: microchip: add PolarFire SoC Auto Update support MAINTAINERS: add auto-update driver to mpfs entry Kory Maincent (1): firmware_loader: Expand Firmware upload error codes with firmware invalid error Rob Herring (1): firmware: microchip: Replace of_device.h with explicit include .../microchip/microchip,mpfs-sys-controller.yaml | 10 + MAINTAINERS | 1 + drivers/base/firmware_loader/sysfs_upload.c | 1 + drivers/firmware/Kconfig | 1 + drivers/firmware/Makefile | 1 + drivers/firmware/microchip/Kconfig | 12 + drivers/firmware/microchip/Makefile | 3 + drivers/firmware/microchip/mpfs-auto-update.c | 494 +++++++++++++++++++++ drivers/soc/microchip/Kconfig | 1 + drivers/soc/microchip/mpfs-sys-controller.c | 33 +- include/linux/firmware.h | 2 + include/soc/microchip/mpfs.h | 2 + lib/test_firmware.c | 1 + 13 files changed, 559 insertions(+), 3 deletions(-) create mode 100644 drivers/firmware/microchip/Kconfig create mode 100644 drivers/firmware/microchip/Makefile create mode 100644 drivers/firmware/microchip/mpfs-auto-update.c