From patchwork Fri Aug 11 01:36:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 134282 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp814210vqi; Thu, 10 Aug 2023 19:36:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFifSzWH00YaPz7ty/J7tjd40HnVNDdVk0WPnW25HvWVRCwOK/om6fduuFoRsGnVuWQmDRa X-Received: by 2002:a05:6402:550:b0:523:a45f:419a with SMTP id i16-20020a056402055000b00523a45f419amr536882edx.41.1691721374722; Thu, 10 Aug 2023 19:36:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691721374; cv=none; d=google.com; s=arc-20160816; b=pV8w1NLBPWO5QGHZCWpZ43UeFTdgaV0kOUGsnYL6w12bKRlFKXAwTMuSIZUMHmUYff Hl1c8VTcgkHGRyreZqf1tcEAIDXM4lRv9yG7vXWGtDgchZ6ov10I5adL+BDdI7VcpKzX f4l12tIeO9ldmqVWymU1nG+NV8Rxy2EtIqr38LrMvlP0L5Jyq9bk6GVMQN0a88ms+4jv cIWGd4vDcvutzUAF+Z8MHNvo0q6o5qGCd+aXkbLfaY9BSenoyXOJ7ZYBQRKz17gu/xMm k+oxoZm9SPyFwmA9McEkaLnjZ4cl4C8NAtb7qj65zLwXKRH/83LhZLRlV42bJ8ARFBIR 6kmg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j15-20020aa7c40f000000b005231005e43asi2560013edq.2.2023.08.10.19.35.51; Thu, 10 Aug 2023 19:36:14 -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 S230297AbjHKBhM (ORCPT + 99 others); Thu, 10 Aug 2023 21:37:12 -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-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773898431746034282 X-GMAIL-MSGID: 1773898431746034282 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