Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4595437rwb; Tue, 8 Aug 2023 10:40:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IENiqTqARFeLDg+vbu0C98ay/01o70XGJLaAh0UF5Y9+kepEvwe1BKDEC/pEpJHOrru8Mfx X-Received: by 2002:a9d:66cf:0:b0:6b9:b1b0:fcd1 with SMTP id t15-20020a9d66cf000000b006b9b1b0fcd1mr313615otm.31.1691516432086; Tue, 08 Aug 2023 10:40:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691516432; cv=none; d=google.com; s=arc-20160816; b=wBFr2DO/Vbn8dISrUBBXg8+C6XVuEtxr5yI8FIEkY6rxKF1hvtzr5LOh9UKqt0VWYc Tr5Xt56z+ifJwgo5/l4JIibr7tMuEjK0oNPVvm/5hCXjPLHNovdYtOSxh8lxOakulSK3 DPXaXW+4xnbISGfQ8l8GQQ5aTB+YywzHPROlJfhOpMC2D/UYsPO8al7HZnBfrQU31Hot EQd9KFoIEEj8q9N8AH5Xpvx3bCykaiBV4Jy7SE+TdIluqnwrMSVH28pFQnlBoDIZ1MFJ sEIP4pNJ0K38IqtZxaV2emdW265rK57dnweiUhCeirKKXZTAKbJxLVXtUTLQuLSRi7EO QSmQ== 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=GRVJbtFyVG4jUCHrEA7PdoIIHZXBKFKZ1spioTLMh5o=; fh=fqW8oMY9ydixFpWZdFhmrmd4m3lvFBw58fIoJyq/l8o=; b=ZmTLzzrrkZjBLcCgBOZ9sh5cnU0lD/ft3FFjRvYb3foj++RFasmPCs3v01EhHmZr1h 8sSq7+rZJgJ+PknL4lQhZoIQIuTzNKm8XeCJandFg1I4DW/4D7NpJU397qCVomyG88eL d+/X/Zg/dm50/e1Ls6ce2UE1kWBMqzB/X19PRupwn7t+j/A+yLpKDEdCmIqk45GLb5qZ 2jqib6drQIJkJ0d6FjvqWGC2+togYHSwEdxKefyF0s8BdexZAzfnWmj8AjJ4j/qQ4LhA CaVFFhmL9BtTvIQH4Ku8A7FphH8WWvxR6xCyNtRdRetMekOW2/ygUIfoJWYnL3XwHA/0 TTYg== 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 bv193-20020a632eca000000b00564ac9862d9si7406850pgb.232.2023.08.08.10.40.17; Tue, 08 Aug 2023 10:40:32 -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 S234048AbjHHRLZ (ORCPT + 99 others); Tue, 8 Aug 2023 13:11:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229737AbjHHRK5 (ORCPT ); Tue, 8 Aug 2023 13:10:57 -0400 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16D2D1B31E; Tue, 8 Aug 2023 09:04:29 -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 1qTPBb-0007YB-1E; Tue, 08 Aug 2023 16:03:55 +0000 Date: Tue, 8 Aug 2023 17:03:47 +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 v3 2/8] dt-bindings: mtd: nvmem-cells: allow UBI volumes to provide NVMEM Message-ID: <6f4ac2fee932a585b5bbdae0d00db4bcef7d1ca3.1691510312.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 79cfa0a3eaa7d..56e71e3eb56bd 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 { volid = <2>; volname = "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