Re: [PATCH v5 4/8] nvmem: Add the Raspberry Pi OTP driver

From: Thomas Weißschuh

Date: Thu May 21 2026 - 11:43:40 EST


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@xxxxxxx>
> Signed-off-by: Gregor Herburger <gregor.herburger@xxxxxxxxxxxxx>

Reviewed-by: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>

> ---
> 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);

(...)