From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 189301E531; Tue, 21 Jul 2026 05:30:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.154.123 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784611851; cv=none; b=Bgk74rheXt1ZTAgpSqIb595Jwd1YLwLtRojb+4Ver+uK6h50GzxWZcXx9AvSLSvizBpvs2F175ZcRmSipSZODMZjahhwKkaGJkwUh6AU9Yh/48w/nmLPPMZMsUSKBxJ1glcvQFwy5Ec5HHuq8PUj9Au/q0siYvGcLCklmSVZB8o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784611851; c=relaxed/simple; bh=U7Dm9w0opxqgrfyVR37miYn+2HmakoHS4QAPEE706wU=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=FpMu6TO/aY3g+Gk5O+XhsSbcIAcvpSwlovZxr3iwsitqDCirOYrz1CbyYS/+ZJh4uvfBCWjOBXsNj5o0U+aSHbClByyTJgFpqkzlnWPWqO8tkafLHmfYtWaLpTyRFNnc6h2SmDulKrX5OTzo4GeINnLFSih/llcXnCbvZQFgi94= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=uATcttjG; arc=none smtp.client-ip=68.232.154.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="uATcttjG" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1784611850; x=1816147850; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=U7Dm9w0opxqgrfyVR37miYn+2HmakoHS4QAPEE706wU=; b=uATcttjGJNJxm0TDZTA47hu3ro8EGhsv3RQHTtN1txh2nsnJMwyfZwrb 4uv27zF7uRtF3j3S+Y1KR56pW78yPAucvHpEc8l7w4V5+h3jn994Lz8zs 2IQ4IsknRbQ8Y6ZEzAwrpA7sclB1ZoT9QHqkhQG+Z/sROWTY95EzCuzu2 n5h66PuumO19Lte5tPSY5+yUQyVa+EHAPudOREkDnw6tbP/VnqL98pqGG opcErZbsm5WiU/cuCzybUGfVvpEiHPQ1+tCPMNewaKy1ByAlgDDHzHiTA MhUQvLjcpfkMxmsBpfJw45ovAA3D1ctqw93IKpRFGKQg2MnJOD9S+mLWi w==; X-CSE-ConnectionGUID: WG7SSHG5T82gFb8n0IbfGg== X-CSE-MsgGUID: Yv/zbX3ZQ1CpgvMzB++QDQ== X-IronPort-AV: E=Sophos;i="6.25,176,1779174000"; d="scan'208";a="60054923" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2026 22:30:49 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.87.152) by chn-vm-ex3.mchp-main.com (10.10.87.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.2562.43; Mon, 20 Jul 2026 22:30:48 -0700 Received: from che-ll-i67131.microchip.com (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Mon, 20 Jul 2026 22:30:40 -0700 From: Manikandan Muralidharan To: , , , , , , , , , , , , , , , , , , , , , , CC: Manikandan Muralidharan Subject: [PATCH v5 6/7] ARM: dts: microchip: sama5d27_wlsom1: read MAC address from QSPI SFDP Date: Tue, 21 Jul 2026 10:58:58 +0530 Message-ID: <20260721052859.171341-7-manikandan.m@microchip.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260721052859.171341-1-manikandan.m@microchip.com> References: <20260721052859.171341-1-manikandan.m@microchip.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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