From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 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== 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== 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 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) 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 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 594DE1F00929; Thu, 3 Dec 2026 18:47:03 +0000 (UTC) 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== Date: Thu, 3 Dec 2026 12:47:02 -0600 From: "Rob Herring (Arm)" To: Alexey Charkov Cc: Conor Dooley , Jakub Kicinski , "David S. Miller" , Andrew Lunn , Simon Horman , Eric Dumazet , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Heiner Kallweit , devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, Ryan Leung , Ricardo Pardini , Krzysztof Kozlowski , linux-kernel@vger.kernel.org, Srinivas Kandagatla , Andrew Lunn , Willem de Bruijn , Paolo Abeni , Heiko Stuebner , Russell King Subject: Re: [PATCH v5 1/5] dt-bindings: nvmem: fixed-cell: Add Rockchip CPU ID 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> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 > --- > .../bindings/nvmem/layouts/fixed-cell.yaml | 24 ++++++++++++++++++++++ > .../bindings/nvmem/layouts/fixed-layout.yaml | 5 +++++ > 2 files changed, 29 insertions(+) > Reviewed-by: Rob Herring (Arm)