qnap-mcu: add nvmem subdevice to read the eeprom
From: Heiko Stuebner <heiko@...> Date: Wed, 30 Jul 2025 19:14:17 +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. Heiko Stuebner (2): dt-bindings: mfd: qnap,ts433-mcu: allow nvmem-layout child node nvmem: add driver for the eeprom in qnap-mcu controllers .../bindings/mfd/qnap,ts433-mcu.yaml | 3 + drivers/mfd/qnap-mcu.c | 1 + drivers/nvmem/Kconfig | 9 ++ drivers/nvmem/Makefile | 2 + drivers/nvmem/qnap-mcu-eeprom.c | 110 ++++++++++++++++++ 5 files changed, 125 insertions(+) create mode 100644 drivers/nvmem/qnap-mcu-eeprom.c -- 2.47.2
Patches in this set
- [0001] dt-bindings: mfd: qnap,ts433-mcu: allow nvmem-layout (raw)
- [0002] nvmem: add driver for the eeprom in qnap-mcu controllers (raw)
Statistics
- 2 individual patches
- 125 lines added
- 0 lines removed