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 AA5F4C43458 for ; Tue, 30 Jun 2026 09:26:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Q+YGmJSGQAPb5FjqbSCO9m2Bb/xldRBZD05u19V4O1k=; b=YNF0yYu/Bm1PoGxFCqDWbYyoeI xn9543wgVtrLuilU2aNyVtsaEW90sdHlgqrkfbVyLfm6+e47rQDInaymHTSleVbX1lMB+92YEKOLC AXIuWtrGKcb+cjV88SENhQfEJnnYkvhF6egQED2He+P6bYINudPveeZq1TvPrNPepbBU+Ha1d4n/j GtVF9zNfh4YxtFufQnawMCJ+Jw4XLgM713SHQbSk4Is3RH7ZIK1HT5ahn1v17ViHJsQN4BEsmEQpW JU39N9eFNlgn1HIgm6qwWKNOXe4BBGIMYHUW8WRgnZg7FyJ5E+EKCj5Q/wiwUNPdKfFTfafCs5F8x 286c0KaQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1weUjm-0000000GPOT-1LeF; Tue, 30 Jun 2026 09:26:38 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1weUjb-0000000GPK9-3w7a; Tue, 30 Jun 2026 09:26:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1782811588; x=1814347588; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=U7Dm9w0opxqgrfyVR37miYn+2HmakoHS4QAPEE706wU=; b=YIjGzaFLj/cOxHdtKYprZE+1seb+dP1wo8IAQ1k5gVmHD0vDhKxJsckd JuNakp7hoHXfCYUQUtwzoQCbhqcWt1xXSRWePkXkmGI3MTRbjTOZTZDU3 DbJN0uoRtQkiD30AjvdeVwGUbT/6g2UWmBX7fbGKKt7Xk/lnwYYydxx5G WLcMI2S7UtI9PR8B0F0/xtTx7T7t2Urvi+BdoiEXFs2UG9CR+McYG8rI5 tcqzqYPyWy/AIhJqRUfJyEvlDttmGXvWYddL+6dSCHO9+xPjqnM/W843i fH3DwE68Q5V55dKZcxh4fSgOAozckWYNHcBicRY84Wqb7ta4cASzZX1BZ Q==; X-CSE-ConnectionGUID: sYkn4PCLTs+ow1M6Jod65w== X-CSE-MsgGUID: zy5FU9PySxC5cIsgPuCTeg== X-IronPort-AV: E=Sophos;i="6.24,233,1774335600"; d="scan'208";a="291266527" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 30 Jun 2026 02:26:27 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Tue, 30 Jun 2026 02:26:26 -0700 Received: from che-ll-i67131.microchip.com (10.10.85.11) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Tue, 30 Jun 2026 02:26:16 -0700 From: Manikandan Muralidharan To: , , , , , , , , , , , , , , , , , , , , , , CC: Manikandan Muralidharan Subject: [PATCH v4 6/7] ARM: dts: microchip: sama5d27_wlsom1: read MAC address from QSPI SFDP Date: Tue, 30 Jun 2026 14:54:05 +0530 Message-ID: <20260630092406.150587-7-manikandan.m@microchip.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260630092406.150587-1-manikandan.m@microchip.com> References: <20260630092406.150587-1-manikandan.m@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260630_022630_184480_DC02FD20 X-CRM114-Status: UNSURE ( 9.31 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Describe the QSPI flash SFDP as an NVMEM provider with the microchip,sst26vf-sfdp-eui layout, which exposes the factory-programmed EUI-48 as a "mac-address" cell, and point macb0 at it through nvmem-cells. This yields a stable MAC address on boards where U-Boot does not program one, instead of falling back to a random address. Signed-off-by: Manikandan Muralidharan --- arch/arm/boot/dts/microchip/at91-sama5d27_wlsom1.dtsi | 11 +++++++++++ .../boot/dts/microchip/at91-sama5d27_wlsom1_ek.dts | 2 ++ 2 files changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/microchip/at91-sama5d27_wlsom1.dtsi b/arch/arm/boot/dts/microchip/at91-sama5d27_wlsom1.dtsi index 062aa02a98ed..6016d7f2a39c 100644 --- a/arch/arm/boot/dts/microchip/at91-sama5d27_wlsom1.dtsi +++ b/arch/arm/boot/dts/microchip/at91-sama5d27_wlsom1.dtsi @@ -240,6 +240,17 @@ qspi1_flash: flash@0 { m25p,fast-read; status = "disabled"; + sfdp { + compatible = "jedec,sfdp"; + + nvmem-layout { + compatible = "microchip,sst26vf-sfdp-eui"; + + mac_address_eui48: mac-address { + }; + }; + }; + partitions { compatible = "fixed-partitions"; #address-cells = <1>; diff --git a/arch/arm/boot/dts/microchip/at91-sama5d27_wlsom1_ek.dts b/arch/arm/boot/dts/microchip/at91-sama5d27_wlsom1_ek.dts index 35a933eec573..5e87bf04bc47 100644 --- a/arch/arm/boot/dts/microchip/at91-sama5d27_wlsom1_ek.dts +++ b/arch/arm/boot/dts/microchip/at91-sama5d27_wlsom1_ek.dts @@ -97,6 +97,8 @@ uart6: serial@200 { &macb0 { status = "okay"; + nvmem-cells = <&mac_address_eui48>; + nvmem-cell-names = "mac-address"; }; &pioA { -- 2.43.0