[<prev] [next>] [day] [month] [year] [list]
Message-ID: <F138514E18CB55B6+20251218180205.930961-1-bigfoot@radxa.com>
Date: Fri, 19 Dec 2025 02:02:03 +0800
From: Junhao Xie <bigfoot@...xa.com>
To: Bjorn Andersson <andersson@...nel.org>,
Konrad Dybcio <konradybcio@...nel.org>
Cc: Junhao Xie <bigfoot@...xa.com>,
Xilin Wu <sophon@...xa.com>,
Miquel Raynal <miquel.raynal@...tlin.com>,
Richard Weinberger <richard@....at>,
Vignesh Raghavendra <vigneshr@...com>,
Rodrigo Vivi <rodrigo.vivi@...el.com>,
Tomas Winkler <tomasw@...il.com>,
Raag Jadav <raag.jadav@...el.com>,
Krzysztof Kozlowski <krzk@...nel.org>,
Geert Uytterhoeven <geert+renesas@...der.be>,
Alexander Usyskin <alexander.usyskin@...el.com>,
linux-kernel@...r.kernel.org,
linux-arm-msm@...r.kernel.org,
linux-mtd@...ts.infradead.org
Subject: [PATCH 0/2] mtd: devices: Qualcomm SCM storage support
This patch series adds support for accessing storage devices managed by
Qualcomm TrustZone firmware via SCM (Secure Channel Manager) by
introducing a new MTD driver.
On some Qualcomm platforms, firmware or BIOS-related storage (typically
SPI NOR flash) is not directly accessible from the non-secure world.
All read, write, and erase operations must be performed through SCM
interfaces provided by the secure firmware. As a result, existing MTD
SPI NOR drivers cannot be used directly on these systems.
This series introduces a new MTD device driver that exposes such
firmware-managed storage as a standard MTD device in the Linux kernel.
The driver is built on top of the existing Qualcomm SCM infrastructure
and integrates with the MTD subsystem to provide a uniform interface to
userspace.
This driver has been tested on Radxa Dragon Q6A, based on the Qualcomm
QCS6490 SoC, with a Winbond W25Q256JWPIQ SPI NOR flash device.
Note that this platform previously used the standard Qualcomm Linux firmware,
which allowed direct access to the QSPI controller without needing this
driver. However, we plan to migrate to a Windows-compatible firmware which
is more feature-complete but restricts direct access. Device tree changes
for this transition will be sent separately.
Junhao Xie (2):
firmware: qcom: scm: Add SCM storage interface support
mtd: devices: Add Qualcomm SCM storage driver
drivers/firmware/qcom/qcom_scm.c | 183 ++++++++++++++++++
drivers/firmware/qcom/qcom_scm.h | 3 +
drivers/mtd/devices/Kconfig | 17 ++
drivers/mtd/devices/Makefile | 1 +
drivers/mtd/devices/qcom_scm_storage.c | 256 +++++++++++++++++++++++++
include/linux/firmware/qcom/qcom_scm.h | 47 +++++
6 files changed, 507 insertions(+)
create mode 100644 drivers/mtd/devices/qcom_scm_storage.c
--
2.51.2
Powered by blists - more mailing lists