From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (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 AD21F376490 for ; Wed, 14 Oct 2026 08:38:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.84.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791967134; cv=none; b=jh4G93kmkQntEEH2ia0S+6z/NUQJeCzB3uQ1yelOJ9YG9gi1KmQexjWMbmWRS8/9kBnSO0771+PYNP0mZjrv7Ry9wxaU49UCZ562/A5Z6imEz5lDhvQ6cM0LlmkanW2keBglmDKnit/36zJInwJb3RzuSDLHft2BJbYUJJ0VYlE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791967134; c=relaxed/simple; bh=ngJFCKHqbgCLyG9vhboqwQUYeRLMtMl0aG5g/OQVWlc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=bo502LG1+oh8glQbyC+jWUTMakim/qFMH/pJVGEMgcztXD0P0SU01bbP4ZRvuE2dJs/fI2Wm3GQCwy+OnDyww6d3pz9t1qS8IS/VLFUSt/Gg/R/PDxxnLAFz1ZJIgCV+wwu1VdcVeuX9Rv14W7H25GcsWNyDNHDfTBnefNt744A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=mq2Xp10g; arc=none smtp.client-ip=185.246.84.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="mq2Xp10g" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id D18641A1225; Wed, 14 Oct 2026 08:38:49 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 9323D60368; Wed, 14 Oct 2026 08:38:49 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 4D675103286A7; Wed, 14 Oct 2026 10:38:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1791967128; h=from:subject:date:message-id:to:cc:mime-version:content-type: in-reply-to:references; bh=ngJFCKHqbgCLyG9vhboqwQUYeRLMtMl0aG5g/OQVWlc=; b=mq2Xp10guRPwOdzd5i29FPKBO3X5MoRrIDnynu+OM/FCaB5zvzCaTUpQoKiQNkWiJBd1P4 RcIpGp8oUqiBVqGBcBchPS8i8MsOXMOju1szusJtZev+cdUICiyy1pMMwlD4aHLI9/yWVB 12lNzP6dgKerzIA9QGtkL4HgipGMFlZIc7aeZOdLyZHqqfYDMk8Vr2w3+iNzvySIGpPexz z73yYP6RfNokqHlpefpHcIX/X5aLu+ceWfhnv0vWpEsXGbWeXoqb+uMUH0HU4mzObgcoIX hLZGbyZoZbB9Oc13tOMNwnmWYFBkgUxWv8kpUkc0QThocKv1ia7Fk3Df69msIA== From: Miquel Raynal To: Manikandan Muralidharan Cc: , , , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v8 4/8] mtd: spi-nor: sfdp: expose the SFDP as a read-only NVMEM device In-Reply-To: <093672d183a06dc2f37366b2f9ff144316850863.1790847519.git.manikandan.m@microchip.com> (Manikandan Muralidharan's message of "Wed, 14 Oct 2026 12:10:08 +0530") References: <093672d183a06dc2f37366b2f9ff144316850863.1790847519.git.manikandan.m@microchip.com> User-Agent: mu4e 1.12.12; emacs 30.2 Date: Wed, 14 Oct 2026 10:38:42 +0200 Message-ID: <87ld80znfx.fsf@bootlin.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-Last-TLS-Session-Version: TLSv1.3 On 14/10/2026 at 12:10:08 +0530, Manikandan Muralidharan wrote: > The SPI NOR core already reads the SFDP tables during enumeration and > caches them in nor->sfdp->dwords (see spi_nor_parse_sfdp()). Re-expose > that cached data as a read-only NVMEM device, in on-flash byte order, > rooted at the flash's SFDP child node (compatible "jedec,sfdp"). > > This lets NVMEM cells reference any SFDP data: a fixed-layout for > parameters at a known offset, or an nvmem-layout parser for vendor data > whose location must be discovered at runtime. The device is only registered > when an "sfdp" node is present in the device tree. > > Signed-off-by: Manikandan Muralidharan Reviewed-by: Miquel Raynal