Received: by 2002:a05:7412:8d23:b0:f7:29d7:fb05 with SMTP id bj35csp451667rdb; Sat, 16 Dec 2023 16:10:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IEZJMbvqzMstYaL6yJ0uBdP0pGCIoGS5RMvMOqqTfeQHxQ3u1hr9FKTtFO9r4xKsB7JFdxj X-Received: by 2002:a05:620a:27c9:b0:77f:2948:fe8a with SMTP id i9-20020a05620a27c900b0077f2948fe8amr17676731qkp.19.1702771823882; Sat, 16 Dec 2023 16:10:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702771823; cv=none; d=google.com; s=arc-20160816; b=DzZjSU5hLHG15jF0L3TZ2oxh+YkB4j9FcSkbCbU/MyjrhSZVqoLmup+B8js0Fh+Ty8 GCEArShnNj2HVIHcv/HI2na5SZTEvDDiGwONWUzS5np6aczJUyLfm8W+CFWnM9JgT4A2 2seJJQ+rbTlCJZpFUngOMeqOxCr/mmi8RmZ6geKyAj30p4+htP+MM4lcS5RKYtnXvSPr fl3Q6zYTQA1iMQpdfKYxUem07kXslLOTPZRq7zlldDqirE4zN01qSJ7pNT8zCYaQ0BLA JdwNg93gvxxDRUEyaqcj+sSWz1YJhbg9sf57i03xDVfddypvxKEqOuSOlIclVJxwt7OA H53Q== 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=V1nIvXI5SvALj4tSx1JV1y1GifyfVYZyO9s0QG3ry5g=; fh=5bIxX+8Q2F12pGFVmnG3HzpNbtBBrVn5m/ZU/0LXEV8=; b=ZfM3l+csIV3uKGTQtEU8rVcWAqqLVzjWXOUo2WWOeiuEnj+ftnEH01dNV6LNO8G2kL n3gPTHCT9wNBXWVHDVbEbZw9QZYfe7UaLY7PTPKAAyZTnMhSz/rJDPJ8oKSocmiRC85s W8zep7XTrXhDmPsuqIgMtjgFmSnrMbCOCNrS5mrg74eqF/RLOiiAdEC2EPIum/V7oYkY gnUCNtmUI4xmCESV60KT5HG1OrfqV2DuBYiE+hq2fYu2LTdk0C/HkGcKUHP4J2ZQpbBy OSUVnp8spiQI43/SIuhSxevpENcfq7yu5zS3JT722VE4z+WWLhtVTndV+algtugW2RAD Lxsw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-2406-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2406-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id r22-20020a05620a299600b0077f2cb9c6aesi21466453qkp.673.2023.12.16.16.10.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 16:10:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2406-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-2406-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2406-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9F6691C2159F for ; Sun, 17 Dec 2023 00:10:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5EF4D1859; Sun, 17 Dec 2023 00:09:55 +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 6DA841102; Sun, 17 Dec 2023 00:09:53 +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 1rEej0-000651-2a; Sun, 17 Dec 2023 00:09:44 +0000 Date: Sun, 17 Dec 2023 00:09:41 +0000 From: Daniel Golle To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Daniel Golle , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 2/7] dt-bindings: mtd: ubi-volume: allow UBI volumes to provide NVMEM Message-ID: 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 c17d0caf07d97..098da3af13a26 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