qnap-mcu: add nvmem subdevice to read the eeprom

A patchset in state Mainline for linux-kernel

From: Heiko Stuebner <heiko@...> Date: Tue, 4 Nov 2025 00:28:19 +0100

The qnap-mcu is firmware running on a Weltrend WT61P803 MCU and there is an eeprom connected to it, that can be read via the serial interface. The eeprom is somewhat important, as it contains for example the assigned mac address for the rk3568's gmac interface on TSx33 devices. So add a nvmem driver for it and hook it into the mfd. This needs to be applied on top of commit a141f0ff2548 ("mfd: qnap-mcu: Include linux/types.h in qnap-mcu.h shared header") to not cause build failures. changes in v4: - add missing linux/slab.h include for kzalloc and kfree prototypes changes in v3: - rebase on top of 6.18-rc3 - the compile error the kernel-test-robot reported in v2 should've fixed itself with the patch applied before 6.18-rc1 . changes in v2: - drop binding patch, already applied - split up nvmem driver and qnap-mcu-mfd subdevice addition (Lee) - add Srinivas' Ack for the nvmem driver Heiko Stuebner (2): nvmem: Add driver for the eeprom in qnap-mcu controllers mfd: qnap-mcu: Hook up the eeprom sub-device drivers/mfd/qnap-mcu.c | 1 + drivers/nvmem/Kconfig | 9 +++ drivers/nvmem/Makefile | 2 + drivers/nvmem/qnap-mcu-eeprom.c | 111 ++++++++++++++++++++++++++++++++ 4 files changed, 123 insertions(+) create mode 100644 drivers/nvmem/qnap-mcu-eeprom.c -- 2.47.2

Patches in this set

Statistics

  • 2 individual patches
  • 123 lines added
  • 0 lines removed
 

Recent Patches

About Us

Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus placerat consectetuer.

Read More...