[PATCH v5 1/5] dt-bindings: nvmem: fixed-cell: Add Rockchip CPU ID

Rob Herring (Arm) robh at kernel.org
Thu Dec 3 10:47:02 PST 2026


On Wed, 25 Nov 2026 23:36:38 +0400, Alexey Charkov wrote:
> Rockchip SoCs ship with a unique CPU ID programmed into their OTP memory,
> and compatible bootloaders derive Ethernet MAC addresses from it, so that
> boards with no dedicated storage for one still get a stable address.
> Whether a board ends up with those addresses then depends on the
> bootloader patching them into the device tree.
> 
> Describe the CPU ID cell with a compatible which also defines that
> derivation for Ethernet controllers referencing the cell as their unique
> ID, so that the addresses are available to anything which reads the
> device tree, whatever the boot flow. Index the addresses by the
> controller's "ethernetN" alias, which is how the bootloaders assign
> them. Keep the compatible vendor-wide, as only the location of the CPU
> ID differs between SoCs, and that is given by the reg property already.
> 
> Plain "mac-base" does not fit: the CPU ID is not a MAC address in either
> of the formats it allows, and may require different processing vs. adding
> an offset to the base.
> 
> Signed-off-by: Alexey Charkov <alchark at flipper.net>
> ---
>  .../bindings/nvmem/layouts/fixed-cell.yaml         | 24 ++++++++++++++++++++++
>  .../bindings/nvmem/layouts/fixed-layout.yaml       |  5 +++++
>  2 files changed, 29 insertions(+)
> 

Reviewed-by: Rob Herring (Arm) <robh at kernel.org>




More information about the linux-arm-kernel mailing list