Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1032709rbb; Sun, 25 Feb 2024 16:23:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUBQ6n6ZsumBrApveOY+PO3okdwvc9cJnZNqeoec6VTO/5X0w+ByW5WheSyFYUD9m0e3TA8KablAlr4p5qesGFW110sNyrfTvIOFw67fA== X-Google-Smtp-Source: AGHT+IE2vSf4F6PUKtapltB5SnJXZH3jBkDh0Yrxy56rx9N7gwOj2tRp5WiJnkX/jxk0eTvk5Oca X-Received: by 2002:aa7:c3c8:0:b0:565:f90c:1263 with SMTP id l8-20020aa7c3c8000000b00565f90c1263mr460066edr.9.1708907009246; Sun, 25 Feb 2024 16:23:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708907009; cv=pass; d=google.com; s=arc-20160816; b=up66rZeyIQF9R6FQdP6nuArmy7RDx3RLH1rs97GXJeHHvHbQMp4mnDcALioHaYgv2C 8oQ6uQQzEeom4LnuUqfoF3BNP4EpHcBkIuLpzSD1Ux9O0V2IPpQzYIgaibfi99SrH2gG vEdJ7sZJSvEVSne3YZR3fBAxn8XxnvCdZfYFrY4DlCYSb7oH4dn4tCUAgxyqZclgLVad H5yNLjbwbkKMN4DEU3d9c026iad4pftUYebxPVOBrNBRnc3TVyUhZo1yvt9YGxRyw+gS NmpHgywaFo7pLnZ+Ma8b5IAEb3JeKYf/yy3wsjrRAfyZMo/E3Pwf491DIR25jQssulZg E6Cg== ARC-Message-Signature: i=2; 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=+MwcgXoOIYtWNDkvFuM5zhdq6twu3sXkEfYhCPFLHFY=; fh=iCY7pZACTeEM/aV1VSRdKj3GWTB74ZtqN+MwTbm3QUU=; b=rCB+jlea+XcKPSjRr97TD0T+PKUSgWh2OwMiwFWjKUoHtZbvs+IJnul557kta5Hjjc jmeI1IEghJGljRgTt/re8SMoKpK8yFNyeomO/mv6SDxDn/cLx3E0Y1CnKiNJ/bU9mc/B ouffutW8RoHiOiwvqlfEo92qBrio/+qwyOxRT6k7K3quGt2I/GZuQsplqeQS6hCOvBK2 qI0NomGTVetWVj5xIIunk6hKm/HQr6YWFd/uBI/pihJpLJLZSGNN6vSvehtsyFaUYluA Fvn09Tz5FcLXi1jy2m2PCxZr5pMAa+14ngvlp/CTtXpys88d36YP1dJitsTvU/o1OX7J FSdg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-80356-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80356-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 u13-20020a056402110d00b0056472b1ce38si1562628edv.445.2024.02.25.16.23.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 16:23:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80356-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; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-80356-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80356-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 C7AC91F213ED for ; Mon, 26 Feb 2024 00:23:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A136C2F2D; Mon, 26 Feb 2024 00:23:06 +0000 (UTC) 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 90D8A101C4; Mon, 26 Feb 2024 00:23:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.142.180.65 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708906986; cv=none; b=Jrc43syaclhzp+ImM08PtpwqQTUcx1oUfHWKbqEL2KFN1mpUPQwaGroKb0bEpsn6CwJIGNDcEtHX0/ngomo4sIY6HLqfpB0lZi/EhtefC+H5gCo0PAe+HyojDafNwKXC9D2tkhv4IdzN6d8mLW/mxKNB9uZ+65vjH71kDqoyTWc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708906986; c=relaxed/simple; bh=N97TvJmYkqRtFZI8fRGBr8qsUHt2POR7C0eus3UEHh0=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Q14vubhqo6/hKQzh468R9Tid+BvGeWDfffoyDM6nFE20rTZK+uf1AKMumG2zOUddSAr8rYSL16C1iTwoWthC1AMXk9yblirprBUUctgqfBSp4LSCc0D7t1D277Y1kNQmlfK6rlUtk1LmKUoXDjbEifb4XGcV0cEkar3HBi+/jeY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=none smtp.client-ip=185.142.180.65 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 1reOlm-0001no-2S; Mon, 26 Feb 2024 00:22:58 +0000 Date: Mon, 26 Feb 2024 00:22:56 +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 v8 2/7] dt-bindings: mtd: ubi-volume: allow UBI volumes to provide NVMEM Message-ID: <6b45ddaa344cc3958fa25f2e8f15a73c006f58fa.1708906456.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.44.0