From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=68.232.154.123 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796024296; b=CiSYPVesGFllziotgf9jXuiZJKQPyQyXkyNwOSmjbRyzlj/Y/ybMcp9IHUSttjZhaTnr LSVN/ZFku7/DQJtIh4jNWdJgyphf/wBvhrDc6pDH5SvbTSWSRIgksl1a/vG4MzXA1ccJ/ bZTozleLKrsSCNxhJhlPeJxbIe82oLvHkLU2NxY1D+D1lskRBkrEBOikzgR8LWuDCjBGF 5VK3YVeCe8tm/kkJGAS0AZa6WBOjr1xhKA+cyoESLqer2mMFawpn76omDZcEiMRkCZHFt 65c+vde7qTjI4BV/69uNIAE3DyaUpjhIjLcJ/WKVNzPqPsm6emm7QVfKJkRtt64fiDw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796024296; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-Amp-Result:Received:Received:Received:From:To:CC: Subject:Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:Content-Type; bh=93jM+J+lP3mtxvwi0EkvYqkk7JnNKj4lbENkiARVaow=; b=MbxRdGxBHS0Vjq+B6EcRxoNddlcdFid7T07YxirrtJLP24irt9dgbEKjGiQcAbkgUPrT HjWECeHFlXMNy5aEOSSjNJ3hdXGHGRIqX2T0zlCyXSrmi3d3d9yoGKwkfLEFDF0kknkGu HwgEYNkKxdACDfDKXnTSB4c5KXcec3BcYAn3RSZ0rZ5VxZ7bsGitGPW/ZddT8ib6AVSlu m/HpdJcFzH93p8Jp1XetmooIM0SEj52IY7bc0TAjuyOu2craKvx8qF80bjuKuHdbj6T+H aj7ZzNJsJysbu3iv2W1MzQFVwo6FQJ4bUZGiiSwtKsgYtgWWqkKAr243PEs9Ix6UBiA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass header.d=microchip.com header.i=@microchip.com header.a=rsa-sha256 header.s=mchp header.b=G0pgUvlz; arc=none smtp.remote-ip=68.232.154.123 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 98FD4606A332; Mon, 30 Nov 2026 07:38:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 98FD4606A332 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.a=rsa-sha256 header.s=mchp header.b=G0pgUvlz DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1796024304; x=1827560304; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9sspgSaYTLzPxx3ClMpy7dqKoUQ+jVKhLBbkq1ajX5A=; b=G0pgUvlzZ1ALPz+pxfohZdBMAH0fdHwoQQRhn0ntKY/ctoQ6pA22u9ar 32WJMAmFhWJAkRnef3TVjli/ztw2CV8yAaEUPz8F3bnKjBMf55XELqmOT h3QvuK/WgMxyMb0ml4yHyIuNZQJfchMJQOtHe7fxN1gBzItjhneYy9pjM uw+iBVKKRoklqUMC+yE4LMVY7XM0gMSXHDB0i1ZStvQsU5yPaujU67yUX lfCbYWpyOgFjteJCQKJAFvDIzoLqHybfAtUITkB2Aqh85OP5uHv4jWtXQ gq1NCiQT38oWvPJJNDpc7eKTIHf/WanmTHfz5HZKBhO0QbK2nhZ8Kzt5c A==; X-CSE-ConnectionGUID: V4YohNNNRFe5IiEM34ktUA== X-CSE-MsgGUID: bldzO69WQnqeaqjMi2fNbA== X-IronPort-AV: E=Sophos;i="6.27,242,1787036400"; d="scan'208";a="66225521" 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-AES128-GCM-SHA256; 30 Nov 2026 00:38:22 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Mon, 30 Nov 2026 00:38:13 -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, 30 Nov 2026 00:38:04 -0700 From: Manikandan Muralidharan To: , , , , , , , , , , , , , , , , , , , , , , , , , , , CC: Subject: [PATCH v11 2/8] dt-bindings: nvmem: layouts: add Microchip/SST SFDP EUI layout Date: Mon, 30 Nov 2026 13:07:25 +0530 Message-ID: <0e6fd197ab7177909a4f93c1ae4d6a3a870260fe.1796023049.git.manikandan.m@microchip.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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-Transfer-Encoding: 8bit Content-Type: text/plain Add a binding for the NVMEM layout that exposes the factory-programmed EUI-48 identifier from the Microchip/SST vendor-specific SFDP parameter table (e.g. SST26VF064BEUI) as a "mac-address" NVMEM cell, and reference it from nvmem-layout.yaml. Reviewed-by: Linus Walleij Reviewed-by: Rob Herring (Arm) Signed-off-by: Manikandan Muralidharan --- .../layouts/microchip,sst26vf-sfdp-eui.yaml | 60 +++++++++++++++++++ .../bindings/nvmem/layouts/nvmem-layout.yaml | 1 + 2 files changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/layouts/microchip,sst26vf-sfdp-eui.yaml diff --git a/Documentation/devicetree/bindings/nvmem/layouts/microchip,sst26vf-sfdp-eui.yaml b/Documentation/devicetree/bindings/nvmem/layouts/microchip,sst26vf-sfdp-eui.yaml new file mode 100644 index 000000000000..37357efb7840 --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/layouts/microchip,sst26vf-sfdp-eui.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/nvmem/layouts/microchip,sst26vf-sfdp-eui.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NVMEM layout of the Microchip/SST SFDP EUI-48 identifier + +maintainers: + - Manikandan Muralidharan + +description: + Some Microchip/SST serial flashes (for example the SST26VF064BEUI) are + factory programmed with a globally unique EUI-48 identifier stored in a + vendor-specific SFDP parameter table and permanently write-protected. This + layout locates that table and exposes the EUI-48 as an NVMEM cell so that, + for example, a network driver can use it as a MAC address. The location of + the data is discovered at runtime from the SFDP; no offset is encoded in the + device tree. + +select: false + +properties: + compatible: + const: microchip,sst26vf-sfdp-eui + + mac-address: + type: object + description: + The factory-programmed EUI-48 identifier, usable as a MAC address. + additionalProperties: false + +required: + - compatible + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + + sfdp { + compatible = "jedec,sfdp"; + + nvmem-layout { + compatible = "microchip,sst26vf-sfdp-eui"; + + mac-address { + }; + }; + }; + }; + }; +... diff --git a/Documentation/devicetree/bindings/nvmem/layouts/nvmem-layout.yaml b/Documentation/devicetree/bindings/nvmem/layouts/nvmem-layout.yaml index 382507060651..e63b93083821 100644 --- a/Documentation/devicetree/bindings/nvmem/layouts/nvmem-layout.yaml +++ b/Documentation/devicetree/bindings/nvmem/layouts/nvmem-layout.yaml @@ -20,6 +20,7 @@ description: | oneOf: - $ref: fixed-layout.yaml - $ref: kontron,sl28-vpd.yaml + - $ref: microchip,sst26vf-sfdp-eui.yaml - $ref: onie,tlv-layout.yaml - $ref: u-boot,env.yaml -- 2.43.0