From patchwork Tue Aug 8 16:03:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 132633 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2292302vqr; Tue, 8 Aug 2023 10:51:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH72JOecKGdad8QxWZ6420DvkkcNS1L7GmG9bHq6Q/PvSunrzSTciOS8lsMD9UAMisr+pgB X-Received: by 2002:a05:6a20:3205:b0:13e:a442:c895 with SMTP id hl5-20020a056a20320500b0013ea442c895mr210323pzc.48.1691517091560; Tue, 08 Aug 2023 10:51:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691517091; cv=none; d=google.com; s=arc-20160816; b=lYHjDI7GhyTlLkc9iMlmRJZUrJ1KYeW1pH5TRfZ5CYDfMKdV0/5s3IlTMZD8aOR3+/ tobANoZyilKSazE8JNg41f4OR/L7fJvWDnSVr2kvlc2XI2R7vm21mTU0vrzJgJdJDYuG kyn6KKVnEbBPGwQCdW98JUTejOSElBJR7pbunei4LVmq+cAt0pKhNploZqC/6BNcTZvR cztkSONXqz2bif+SMDl0KqGogySu/fDAQTCNxoRwib5E83LbLe2PQBp1x6U2CD8dKrey 9vLE1aruIdq8Ry8z6rux3QUUWHZrLZHWqeSqyz/dnFN3isN8mrLWvXzncOpsoJwIHiOb F0RA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n184-20020a6340c1000000b00553e8d95742si7462468pga.654.2023.08.08.10.51.18; Tue, 08 Aug 2023 10:51:31 -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 S234061AbjHHRL0 (ORCPT + 99 others); Tue, 8 Aug 2023 13:11:26 -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-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: 1773684225855920870 X-GMAIL-MSGID: 1773684225855920870 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