From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8C81ECA9ED1 for ; Sun, 11 Oct 2026 17:17:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References: Message-Id:MIME-Version:Subject:Date:From:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=D2JWRm0w47wUSngCjHqEWowX4PrehMjqGCF/q7+Plb8=; b=zsehVa9nsEa2lv t4Kj7BIXhy6wYrzaurmvdV6l+5pl7JYIf01IWZHPfDEE7R3VAoAzdzj6mmnVVsfFVXJ9huyGNGAZp bgxRaPyT77qgL29FZKmjusJpdnB9wUoqRnRN93R+jM0WORbdfIdP9GjobhnMGSosOd8BOyhj4tEVy 05eh8m5vy24hSR4zyw48lja3r5zJJRDxbWZXcSt4mfSnTWZDpqirdbefbaJULe5OyHjzvMyiU5H2p TxqshTQ1BQrOQRSWz5EG2jvaZf1cQOe8LIqX8UVXwiVhaCc9NqDM+HpnZHeDfy1KPqXTtOK+RNkvy F0l7nS2gvxNpAua+V/Dw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xFxAr-00000009FG4-3TOx; Sun, 11 Oct 2026 17:17:25 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xFxAq-00000009FFW-2RkQ; Sun, 11 Oct 2026 17:17:24 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 40387601F1; Sun, 11 Oct 2026 17:17:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id DD499C2BCFC; Sun, 11 Oct 2026 17:17:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1791739041; bh=tHAjot59ik/pFMnrkyzLDoiJ7i/INHlUfN0wlrZOdMQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=o5eNqf12eZyJrfqNirHklANgxmOlovEDUCP+Y7DZ26W3eV8vb8n56We1lyPGDfxdz w0XYWQCWkfa8MgGwx3MYLlB3OE3z/Xl+ZmtFgArtg9efSIB63WlypsqRcygEVsBACe dafMNRue5T2VMpDO/apGsakpEQbqCFQU1VI0PvU43dc07hx9L+wUVemdXLxtsDuCPe 1WXEWaPPJXrOuo0MBQze/agUf4TGFp37TJyhiNlytVgqKtFjxiQ3kM3LsRksXPIXIQ vsljKtsvBRhHh0os2R3o4nQ+5fyi98hXyNIADoQjWOp8aSB2n1PkeVEQRH00iCaMYz 5SLdN15EH8fVg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id BDE3FCA9EC7; Sun, 11 Oct 2026 17:17:21 +0000 (UTC) From: Fil Dunsky via B4 Relay Date: Sun, 11 Oct 2026 20:17:21 +0300 Subject: [PATCH 1/2] arm64: dts: meson-gxbb-odroidc2: read the Ethernet MAC address from eFuse MIME-Version: 1.0 Message-Id: <20261011-odroidc2-dts-v1-1-f9f0e779af88@gmail.com> References: <20261011-odroidc2-dts-v1-0-f9f0e779af88@gmail.com> In-Reply-To: <20261011-odroidc2-dts-v1-0-f9f0e779af88@gmail.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Fil Dunsky X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1791739040; l=1170; i=filipp.dunsky@gmail.com; s=20260930; h=from:subject:message-id; bh=R7e0aTjiNftlxIP1/5F0ydA79ruy5B9DDk0CJljLEms=; b=iPE8SJB5MzWCe9Yh8R9RdzmL5sAZ4DtJAaiPDPSw+ODkKm1rsEkElCljy4/M8OICurkyL48Fm OSJvRcEW4l5Ax8wYS0r2P5Q738SAIGM+GStXrz5erHBuJ8mpjN1BnAv X-Developer-Key: i=filipp.dunsky@gmail.com; a=ed25519; pk=JAYP8e2rJ54DHOmhNtXud8rl1igAaAXoOHxtJmVXI1g= X-Endpoint-Received: by B4 Relay for filipp.dunsky@gmail.com/20260930 with auth_id=1085 X-Original-From: Fil Dunsky X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: filipp.dunsky@gmail.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org From: Fil Dunsky The vendor programs a unique factory MAC address into the SoC eFuse at offset 0x34, which is exactly the eth_mac nvmem cell that meson-gx.dtsi already describes. Reference the cell from the Ethernet controller so the kernel picks up the factory address itself instead of depending on the bootloader to populate local-mac-address, or falling back to a random one when it does not. Verified on an ODROID-C2 booted with a mainline U-Boot that does not set ethaddr: the interface comes up with the factory MAC address. Signed-off-by: Fil Dunsky --- arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts index 5943bc810..639b97ad5 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts @@ -230,6 +230,9 @@ ðmac { phy-handle = <ð_phy0>; phy-mode = "rgmii"; + nvmem-cells = <ð_mac>; + nvmem-cell-names = "mac-address"; + amlogic,tx-delay-ns = <2>; mdio { -- 2.53.0 _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic