Article View: linux.kernel.netdev
Article #26552Re: [PATCH v5 1/5] dt-bindings: nvmem: fixed-cell: Add Rockchip CPU ID
From: "Rob Herring (Arm)"
Date: Thu, 03 Dec 2026 18:47
Date: Thu, 03 Dec 2026 18:47
29 lines
9769 bytes
9769 bytes
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>
Technical Details
Message-ID:
<179632362157.159438.2225855040962405763.robh@kernel.org>Path:
mbox-mo1.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376826-linux-kernel-netdev=dewy.ruReferences:
<20261125-rk3576-otp-cpuid-mac-v5-0-b3125c9a5fc8@flipper.net> <20261125-rk3576-otp-cpuid-mac-v5-1-b3125c9a5fc8@flipper.net>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376826-linux-kernel-netdev=dewy.ru
From: robh@kernel.org ("Rob Herring (Arm)")
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH v5 1/5] dt-bindings: nvmem: fixed-cell: Add Rockchip CPU
ID
Date: Thu, 3 Dec 2026 12:47:02 -0600
Organization: Usenet Network
Message-ID: <179632362157.159438.2225855040962405763.robh@kernel.org>
References: <20261125-rk3576-otp-cpuid-mac-v5-0-b3125c9a5fc8@flipper.net>
<20261125-rk3576-otp-cpuid-mac-v5-1-b3125c9a5fc8@flipper.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
logging-data="2568564"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:vkiHHHSC1qfnbzp1UkJsaEHRz00= sha256:6q3Y6IHflZZh5HeyoGKEE5YlYI/286Yy+LBCXRW2Zh8=
sha1:x1ty8j+2N7RwpiNvmjrpQdzyeTw= sha256:H3Lvb/C7Aq2VbWp5LJ7TTQIy5q+tN8/C9jqNFT/54Pw=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 7292D117A12; Thu, 3 Dec 2026 21:47:35 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.74
X-Spam-Status: No, score=-3.74 tagged_above=-9999 required=6.31
tests=[DKIMWL_WL_HIGH=-0.24, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1,
RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id vUAksoEodXs2;
Thu, 3 Dec 2026 21:47:33 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-376826-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
by mail.dewy.ru (Postfix) with ESMTPS id 43825117A10; Thu, 3 Dec 2026 21:47:24 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sto.lore.kernel.org (Postfix) with ESMTP id 9F733602115; Thu, 3 Dec 2026 18:47:23 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1796323630;
b=vHck0ioXgjIL+MsFuOKccHTRHhzTCgSLqarjGxbalwM8/xy4bDep8rYnbrmXm33GihAT
gYsCwRngmSpFRU3hyf6YZJKj3m1kWVzAA3vcDIgrRtooQk6+I6I5qcWwajbdQ+Thits6+
qUOEF/MKagns0+JHisF8j93L8gGhKodqOIG7cOgDzf64oF8iy4x/5cPIbD1+d9r7V0CuG
yA8HoBlUOPNPDlUD4KU0VKoIl0P5RahttJSkUVEU9MK4mT1inXj5ACk+b/hGM7dBw5B3H
VVuY+DRgwryjLzbaw5DoCKnLioU5E+CktKmRrHItXh14FNpetZNr92rSE02K02K2Olw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796323630;
h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post:
List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
bh=qa+DakcUNAXznFbNDIfHwEgRnmsoOdwC9at2A38P9BY=;
b=33Msu10nLRqcJGcW2a7B+u9O2r0xHW1Wyl5DpJthWvYxoEZBcJpY36IiGHAhZHItquRW
wGr+ulEdlOVEphF57KcPuAP0k9SoNwAlnN9+xz4jDiKFy0QrLTVEGDd4+4juMgKUFb9kx
taUWjO6eC83/5WvFDQKk9CItFS/coFpekWiQxBeUu3DSWcbizO65X1HFFHWl8d4MjHaHk
wxGzqZPtvrnnXjdVrckbMDYJLIb0UlOOlliI4C3s61mTKd9cqSuW9XObvV6bvuEh6N3LW
Z3gL5eooqoPHxv0gcMVrhDXlazPqEntfIhFOxWr6m50NFDJrGpz7E8IuYFQB46zLbYQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="Rjfk6/bW";
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id E1D81606A689;
Thu, 3 Dec 2026 18:47:09 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Rjfk6/bW
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1796323624;
b=fWN5eYlRfG89+vQWJGm1yJv1g6eoaMD49Tk7qm6oWjfmPbt2xBZggfl3DZy/NerXrtYs
PR7ii1sJyZEkUlTsMBQxOWAUtTo+c/k6KuRP+tSSU5x8aq1IbnZrJWDXlGGBLe7swad8j
LZ1J+QsUAWrraxE0H91DFTURUkKdW1N+GUTuUVE7kFeAxOzCMwrXhuT9W4t/BRSo0j4yr
WL9RLMbZIUj1s4lMtqViFxvj1BeBgncNyiVROX0tJv1cH5dW1/dlcZNhPb8vFecx+Sd2g
p5s+Scib/eCfVefgpTSetvU4ogINQvxiTbnV6TaNg4GVJcBye06O/ve+es078i7isgA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796323624;
h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
bh=qa+DakcUNAXznFbNDIfHwEgRnmsoOdwC9at2A38P9BY=;
b=1jdgQsSsI4qUcurKx/NVISAAF/+AqSrqnaRUNz42LOrGrPvx+C0wRNk4v8QItEKZV+Km
BD9+FDMoccOkrqI79NCWR5Tdic1LMkup2wGKgBDFGowjL9PVicdTr2UD2Hvwo+tBr02dK
R+SXsruIWx5jSg/x61XU8MvbjewdwnjGEEe3zPYwGojkhEmYEuleSStm2+MamIc/1a972
FADRbqoF7iNx3TA2pWM3szwlfyKEXWD2UfWbfOUStu7BqBP2qjBu4kQt0rq7K3IMhiugZ
6CxWlLunG6f09hnY6bSCnEsoL53b+jTGXzxpQSBS7XUCf4mTJafpbeIl+zLpAboPRbg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="Rjfk6/bW";
arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (prime256v1))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 03422606A33B;
Thu, 3 Dec 2026 18:47:03 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 594DE1F00929;
Thu, 3 Dec 2026 18:47:03 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
s=k20260515; t=1796323623;
bh=qa+DakcUNAXznFbNDIfHwEgRnmsoOdwC9at2A38P9BY=;
h=Date:From:To:Cc:Subject:References:In-Reply-To;
b=Rjfk6/bW8rdboUOJ0NoZ7CJjV4gLHGPgfBv0IiKEZF6DJCS0U/YeAcBnJpKHlHhn7
//aVaWtgx4fbUye6+tguSBIoeXKqXYlo1APoU1/+BFU6cok1YEwkOpaeU3vSqQ+Uwt
xZoPecZrbVuKMHCWYbMnxHNVCIugzPKD9MhZFtMvSGWCudsvfa0nBVgKNDpC5rBeX4
/tn7ZYzU7fomCNQtXn8PmgvGqzSfTv2fXjxrblBH/9uE9VjAFlsko2ewIizdyZ8ip9
QTZWZ8pW0rvNvnOoAykL+l9KWvCOAR+FNFaz0qbMvwmI6VfEKkllyvD4DNqVJHBVXE
TfRMj1t02X76Q==
X-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>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261125-rk3576-otp-cpuid-mac-v5-1-b3125c9a5fc8@flipper.net>