[PATCH v6 3/4] nvmem: mtk-efuse: add CPU speedbin post-processing

From: Luca Leonardo Scorcia

Date: Mon Nov 30 2026 - 15:11:56 EST


Hello, I am interested in this series as I have the same need to identify
the cpu variant for OPPs on MT8167A/S/D.

I have two questions:

1. Is post-processing really needed? It seems that nvmem cells can use
the bits property to retrieve only the necessary bits from the cell, e.g.:

cpu_speed_bin: cpu-speed-bin@40 {
reg = <0x40 0x4>;
bits = <0 2>;
};

To me this seems more intuitive than driver-based post-processing and
is already supported by device tree syntax. I did a quick test and it
seems to work, but I'm sure there's some step that I'm missing.

2. Am I correct in saying that at the moment there is no upstream support
for nvmem-cells references in the operating-points-v2 OPPs? How do you
plan to connect your new cpu-speedbin support to OPPs?

Thanks,
Luca