From patchwork Tue Dec 19 02:32:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 180715 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp1672890dyi; Mon, 18 Dec 2023 18:33:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IF51jcv+Y7ehTj9Ax6p+YUVP+NSINzEfRbdrblYYyU0/SEjpgKLkugU7d1gGTMS5aQQ9O5q X-Received: by 2002:a05:6e02:1d88:b0:35f:b65b:d with SMTP id h8-20020a056e021d8800b0035fb65b000dmr1965761ila.79.1702953189366; Mon, 18 Dec 2023 18:33:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702953189; cv=none; d=google.com; s=arc-20160816; b=GCARWsNyG8uJQURwHzQ7zGGTdASxqxAe3aG1wPLb0aUbBIX20MONWteFsETrpOGHy6 rv8Orv13fkuhTwpHZhEWCC8BjUpthvxBMwbtBh1a5XrYLWL8R3cDV3yNbCjirB87+NmD NO1LZ2QotlM8SZGs8+TzeosvJiDOhCvuLCuOjQtY2nKs8MBYKHCU6Z+P/ZXDTMBwkeCF KHQmJcqN5pShcKlK+eqquXNePMFGphpyY8i9BnW6xedyMv8PzqOXB6pK2eiNgVzDQ7Yb fbFmeQs9kUKff7Z3oVZzuwV2fn9B23Nma2FQU1oTUMsE52aOkrZkrDGQQdQaWZgdNSaF lolw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:to :from:date; bh=VNnbMCvOAH7Naywh6e3zQvE3gz4iKW/ug/03qG6+jPU=; fh=75NJMYqoRo4jeDl32jx04p3D1q0Fgi4sqch+OCznfHk=; b=M9KglTmzny1H4RFejtP1DugXcga0L2G6loAr1e0iYRJm2qOR0HaHnM4vSM/FaFqTuu Qmki/kGB9jFh8MQEdq8qry4pLgikK3pS0ADUKPVLojtcBpITjn4+NcXtLXVWFbwHK7A7 DzsjoGExONydQdc2caj+15hDZe5Iimgz7sT3u/A3PlbQyU3mFv1JiXnDR+GPw2O4Casm IeWOdQKBD7ksEZ9/Ax86FEMKR+hNGN9SSWHFd6cE64bKy2NaJZ/kw214rbs6oqviVQ0Y 54MC6Q2KD81SWB14xyBnOHAwdooWHO/OYgmGLHhAGI5N5u2oNh1bDq1jvMunzzn1PJuo J8Yg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-4600-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4600-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x18-20020a170902821200b001d3ad3dfbeasi3314211pln.402.2023.12.18.18.33.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 18:33:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4600-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-4600-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4600-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 22B0B282275 for ; Tue, 19 Dec 2023 02:33:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 15101848A; Tue, 19 Dec 2023 02:32:23 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (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 190BC6D3F; Tue, 19 Dec 2023 02:32:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96.2) (envelope-from ) id 1rFPu1-0008Hj-06; Tue, 19 Dec 2023 02:32:14 +0000 Date: Tue, 19 Dec 2023 02:32:11 +0000 From: Daniel Golle To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Daniel Golle , linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v7 2/7] dt-bindings: mtd: ubi-volume: allow UBI volumes to provide NVMEM Message-ID: <9732880851f342a4a1beef005c3432c9a91a43a3.1702952891.git.daniel@makrotopia.org> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785675843002141902 X-GMAIL-MSGID: 1785675843002141902 UBI volumes may be used to contain NVMEM bits, typically device MAC addresses or wireless radio calibration data. Signed-off-by: Daniel Golle Reviewed-by: Rob Herring --- .../devicetree/bindings/mtd/partitions/linux,ubi.yaml | 10 ++++++++++ .../devicetree/bindings/mtd/partitions/ubi-volume.yaml | 5 +++++ 2 files changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/partitions/linux,ubi.yaml b/Documentation/devicetree/bindings/mtd/partitions/linux,ubi.yaml index 7084a1945b310..27e1ac1f252e4 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/linux,ubi.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/linux,ubi.yaml @@ -59,6 +59,16 @@ examples: ubi-volume-caldata { volid = <2>; volname = "rf"; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + eeprom@0 { + reg = <0x0 0x1000>; + }; + }; }; }; }; diff --git a/Documentation/devicetree/bindings/mtd/partitions/ubi-volume.yaml b/Documentation/devicetree/bindings/mtd/partitions/ubi-volume.yaml index 1e3f04dedc01d..19736b26056b2 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/ubi-volume.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/ubi-volume.yaml @@ -24,6 +24,11 @@ properties: description: Match UBI volume ID + nvmem-layout: + $ref: /schemas/nvmem/layouts/nvmem-layout.yaml# + description: + This container may reference an NVMEM layout parser. + anyOf: - required: - volid