Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp730422rdg; Thu, 10 Aug 2023 19:02:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHeYe0I61WZ3BIkOv6fvs4ZctrYAgSeLY+SXhBlXYOjDdUqmeMezYZRdonfQFKIHLYwzrnM X-Received: by 2002:a17:902:c950:b0:1b8:8682:62fb with SMTP id i16-20020a170902c95000b001b8868262fbmr5505366pla.4.1691719362615; Thu, 10 Aug 2023 19:02:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691719362; cv=none; d=google.com; s=arc-20160816; b=jm0qRMDxwFG7KV4syEEhsrA7msfIE0XhgHOg6WQsOphiOA6KFYqevm1j3gQ/Sb09KD YzQvWz3OY8w/VjtMU5/qYHzXemEIiFZJDbtARnkuTBXpcUl947QCAQR7IKo3ry9DjQ65 S3YsMAsI14Hc0XX+TRrTfQwkYzXipDWZ9za7kXVYggNLHfHDsVnb+f+bZfD6GPeSNfIn GsMDGZ6OBuxJ7zInN4RaS1mIVoY/Vb8IgWGJyC7dhoW784RSYNmWEL80a9G1kd3JpYd3 FbHamo5KW5JuC91O9C89GzP5HMsn7V4XS/dABhNuqC030hW4OSNHxeBgWrAKqaJsgG9r BPgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date; bh=CrLwN11sEqzcq63sH3TOkU2u/Ixvid/xlOoELWdv4yY=; fh=fqW8oMY9ydixFpWZdFhmrmd4m3lvFBw58fIoJyq/l8o=; b=sa8wTTTC6/htB8yDm5i0ZlSGMksAGTP4hB9/S3ATyNROeypkz/8kaevq95V2KC7FsC c3N+wKNO9Ol57L2lA7TV3vuLeeYih+Y5UGA7tcY7NtJjo+zRQzONK2pUpCCii7TMxaF/ bedbd219cjWCtOWqqFu7oD/DVmRyiK5lwsA6BaLJQY3fkacVNLwO2TuNsT6CuuQsgUyg RBDmEH7H5yMpmzg4mpheJhdsBztxc/WKUG2pchcC2OWychASEzKArOsxcJar4xIs3UWL 4ISAhstfg65NLS7/kxvSiYjhnp1biJNEYgqt2Lq0ejt7VO7tke7xbuIOtMkn8PYZWh21 oopA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f15-20020a170902ce8f00b001bb3316f71dsi2561321plg.481.2023.08.10.19.02.28; Thu, 10 Aug 2023 19:02:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232298AbjHKBhL (ORCPT + 99 others); Thu, 10 Aug 2023 21:37:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232462AbjHKBhK (ORCPT ); Thu, 10 Aug 2023 21:37:10 -0400 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90F052D5F; Thu, 10 Aug 2023 18:37:09 -0700 (PDT) Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1qUH5K-00053b-0T; Fri, 11 Aug 2023 01:37:02 +0000 Date: Fri, 11 Aug 2023 02:36:55 +0100 From: Daniel Golle To: Randy Dunlap , 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 v4 2/8] dt-bindings: mtd: nvmem-cells: add support for UBI volumes Message-ID: <7df4543f5dacef006bd7067117cf959b59842d69.1691717480.git.daniel@makrotopia.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org UBI volumes may be used to contain NVMEM bits, typically device MAC addresses or wireless radio calibration data. Signed-off-by: Daniel Golle --- .../devicetree/bindings/mtd/partitions/linux,ubi.yaml | 3 ++- .../devicetree/bindings/mtd/partitions/nvmem-cells.yaml | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/mtd/partitions/linux,ubi.yaml b/Documentation/devicetree/bindings/mtd/partitions/linux,ubi.yaml index a06c1666d5184..e834441fe5e6a 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/linux,ubi.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/linux,ubi.yaml @@ -56,9 +56,10 @@ examples: compatible = "linux,ubi"; volumes { - ubi-volume-caldata { + wifi_caldata: ubi-volume-caldata { volume-id = <2>; volume-name = "rf"; + compatible = "nvmem-cells"; }; }; }; diff --git a/Documentation/devicetree/bindings/mtd/partitions/nvmem-cells.yaml b/Documentation/devicetree/bindings/mtd/partitions/nvmem-cells.yaml index 5474d63268dc5..b92a0b35df094 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/nvmem-cells.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/nvmem-cells.yaml @@ -17,9 +17,12 @@ maintainers: - Ansuel Smith allOf: - - $ref: /schemas/mtd/partitions/partition.yaml# - $ref: /schemas/nvmem/nvmem.yaml# +oneOf: + - $ref: /schemas/mtd/partitions/partition.yaml# + - $ref: /schemas/mtd/partitions/ubi-volume.yaml# + properties: compatible: const: nvmem-cells -- 2.41.0