Netdev List
 help / color / mirror / Atom feed
From: "Rob Herring (Arm)" <robh@kernel.org>
To: Alexey Charkov <alchark@flipper.net>
Cc: "Conor Dooley" <conor+dt@kernel.org>,
	"Jakub Kicinski" <kuba@kernel.org>,
	"David S. Miller" <davem@davemloft.net>,
	"Andrew Lunn" <andrew+netdev@lunn.ch>,
	"Simon Horman" <horms@kernel.org>,
	"Eric Dumazet" <edumazet@kernel.org>,
	netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	"Rafał Miłecki" <rafal@milecki.pl>,
	"Heiner Kallweit" <hkallweit1@gmail.com>,
	devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org,
	"Ryan Leung" <untilscour@protonmail.com>,
	"Ricardo Pardini" <ricardo@pardini.net>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	linux-kernel@vger.kernel.org,
	"Srinivas Kandagatla" <srini@kernel.org>,
	"Andrew Lunn" <andrew@lunn.ch>,
	"Willem de Bruijn" <willemb@google.com>,
	"Paolo Abeni" <pabeni@redhat.com>,
	"Heiko Stuebner" <heiko@sntech.de>,
	"Russell King" <linux@armlinux.org.uk>
Subject: Re: [PATCH v5 1/5] dt-bindings: nvmem: fixed-cell: Add Rockchip CPU ID
Date: Thu, 3 Dec 2026 12:47:02 -0600	[thread overview]
Message-ID: <179632362157.159438.2225855040962405763.robh@kernel.org> (raw)
In-Reply-To: <20261125-rk3576-otp-cpuid-mac-v5-1-b3125c9a5fc8@flipper.net>


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@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@kernel.org>


  reply	other threads:[~2026-12-03 18:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 19:36 [PATCH v5 0/5] net: Derive stable MAC addresses from a unique device ID Alexey Charkov
2026-11-25 19:36 ` [PATCH v5 1/5] dt-bindings: nvmem: fixed-cell: Add Rockchip CPU ID Alexey Charkov
2026-12-03 18:47   ` Rob Herring (Arm) [this message]
2026-11-25 19:36 ` [PATCH v5 2/5] dt-bindings: net: ethernet-controller: Allow a unique ID NVMEM cell Alexey Charkov
2026-12-03 18:47   ` Rob Herring (Arm)
2026-11-25 19:36 ` [PATCH v5 3/5] net: of_net: Derive MAC addresses from a unique device ID Alexey Charkov
2026-11-26  4:02   ` Ryan Leung
2026-12-01  1:30   ` Andrew Lunn
2026-12-01  4:17     ` Alexey Charkov
2026-12-01 13:05       ` Andrew Lunn
2026-11-25 19:36 ` [PATCH v5 4/5] arm64: dts: rockchip: Move RK3576 OTP cells into a fixed layout Alexey Charkov
2026-11-25 19:36 ` [PATCH v5 5/5] arm64: dts: rockchip: Derive GMAC MAC addresses from OTP on RK3576 Alexey Charkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179632362157.159438.2225855040962405763.robh@kernel.org \
    --to=robh@kernel.org \
    --cc=alchark@flipper.net \
    --cc=andrew+netdev@lunn.ch \
    --cc=andrew@lunn.ch \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@kernel.org \
    --cc=heiko@sntech.de \
    --cc=hkallweit1@gmail.com \
    --cc=horms@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=linux@armlinux.org.uk \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=rafal@milecki.pl \
    --cc=ricardo@pardini.net \
    --cc=srini@kernel.org \
    --cc=untilscour@protonmail.com \
    --cc=willemb@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox