Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp239346rdh; Mon, 18 Dec 2023 18:33:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IH84Ra9nVtyxGa0YuraxPNTOYQ6MJyPVelci1L7U4VJ9MjmS2c2HndnXGqq5+d5GvhUKJaP X-Received: by 2002:a2e:a9a7:0:b0:2cc:78bb:701e with SMTP id x39-20020a2ea9a7000000b002cc78bb701emr1066101ljq.103.1702953181316; Mon, 18 Dec 2023 18:33:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702953181; cv=none; d=google.com; s=arc-20160816; b=xRYJEVuuPNqSN0UQO/zuHQPh/MsHMFlk7U8PKnIbpzmSVNO1R+t/0QlXBSOKAmOfn0 MLkTDz+O61/6xl51UMo6PEWH0JYzvhKEZUh5YN6adC2TLG2oy1fQPjBtLqUgtuljVAfX NRcTTXu1pewF52K1VK66VifITDLc4DkZFMPbVSb15JKqGFsWCweCV9zLt6cKrlJus888 wIdFpkk9TBE60HqygmGZbxGK/jIvyFrGsgYemn9eND1Swe2OJcQDcwBzo4MDqOneHVZZ YiZsRe1r6g2Sd0sRHtD/mRLoIzfJk1CqrgqbKe7AqtsRAiwqsMPSsfqo8qRDEEMKTCKm fvng== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4600-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id p4-20020a50cd84000000b005537921702asi674601edi.243.2023.12.18.18.33.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 18:33:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4600-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-4600-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4600-linux.lists.archive=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 06C041F23C15 for ; Tue, 19 Dec 2023 02:33:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 087FB749F; Tue, 19 Dec 2023 02:32:22 +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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 -- 2.43.0