[PATCH v5 4/8] nvmem: Add the Raspberry Pi OTP driver
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Thu May 21 07:34:13 PDT 2026
On Wed, May 20, 2026 at 04:27:56PM +0200, Gregor Herburger wrote:
> Raspberry Pis have OTP registers which can be accessed through the
> videocore firmware. Add a nvmem driver to support these OTP registers.
>
> Reviewed-by: Stefan Wahren <wahrenst at gmx.net>
> Signed-off-by: Gregor Herburger <gregor.herburger at linutronix.de>
Reviewed-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
> ---
> drivers/nvmem/Kconfig | 11 +++
> drivers/nvmem/Makefile | 1 +
> drivers/nvmem/raspberrypi-otp.c | 130 +++++++++++++++++++++++++++++
> include/soc/bcm2835/raspberrypi-firmware.h | 10 +++
> 4 files changed, 152 insertions(+)
(...)
> +static const struct platform_device_id raspberrypi_otp_id[] = {
> + { "raspberrypi-otp" },
> + {},
The last sentinel element should not have a trailing comma,
to make sure nobody places an element after it by accident.
> +};
> +MODULE_DEVICE_TABLE(platform, raspberrypi_otp_id);
(...)
More information about the linux-arm-kernel
mailing list