qnap-mcu: add nvmem subdevice to read the eeprom

A patchset in state Mainline for linux-kernel

From: Heiko Stuebner <heiko@...> Date: Tue, 23 Sep 2025 14:37:43 +0200

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 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 | 110 ++++++++++++++++++++++++++++++++ 4 files changed, 122 insertions(+) create mode 100644 drivers/nvmem/qnap-mcu-eeprom.c -- 2.47.2

Patches in this set

Statistics

  • 2 individual patches
  • 122 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...