Message ID | 20221114090315.848208-15-miquel.raynal@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2043711wru; Mon, 14 Nov 2022 01:06:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf6pSWXXLrL2OPtGiT9cFHkJOtjzWxn8pS1RxugXHhCk7dBFEE/5eZrmuw7WuJWkGHgjpz3S X-Received: by 2002:a17:90a:c393:b0:213:8126:867c with SMTP id h19-20020a17090ac39300b002138126867cmr12709076pjt.183.1668416793898; Mon, 14 Nov 2022 01:06:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668416793; cv=none; d=google.com; s=arc-20160816; b=sne0fr3lclxwC/W4gVGFfRPON64pE2OC+40n4cBASbd03s4Bfhwr8UldVm7wUWtzGP +l3MitapILnr9aCGySpBjb1wWSWKMiIlGFXkhrPSmEu2gr/3JBskTc/6Rr5qL9Tmvy9H jroKiLBbQFM2SF8zq1HAOQf1F24WZ0YnbTayoPbnuGbWrTkvXSiLi5GsLmDdDQaq+30a N7ZqbR+cP5CalIwTYYB64tKkHrqW4TyHEBFxusvaUo9AWh87ay6oAzaYuiaFm5l0IyGr O9Ay2Evxep5uGJf3AHKsNMOt9mw12X/fyhpJuEiHjuepuK6GCma9Z5CScnz7kqIM308R XsAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SGgLQJiM767wl93pGV+At61F3Cl0A+eitZYipi117FY=; b=XWBLaJ1n5KRlcXrIsQQOU7zboi7yvU9cx2bzBGWAn1gPIRd+vHVNSdKVR2sReUgUJC z2NwAThi3pQFJiUEKZdLH4XIRgxfgF3CMxJyrbDkBOzo1+MIjztANHvODy+SdJp9P8YX Mfa2FCXLlZ/MXOmTj++8wVzwTA5EEr1J6JdEOpr+DiqziGTU2gb3yDhH+sqWBCKM6o5s CywGn6QzeIrucV+sfhdY8a0ab3ZTtva6jTgSlOtr4/bbK1u9Xpk4EP1m2DV6+ewBJZiZ Pk8Ac+aPfjCsrZSb7vP0nnIH+zWMsvy0tnuk7NoHDtnanZeFxgy9Wt7rn7KWcrQnBOAG k5GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=pdcgHVIj; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 9-20020a630e49000000b0043c00d4d5a3si8710548pgo.93.2022.11.14.01.06.20; Mon, 14 Nov 2022 01:06:33 -0800 (PST) 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; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=pdcgHVIj; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236804AbiKNJE4 (ORCPT <rfc822;winker.wchi@gmail.com> + 99 others); Mon, 14 Nov 2022 04:04:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236856AbiKNJEV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 14 Nov 2022 04:04:21 -0500 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F2EC1DA5A; Mon, 14 Nov 2022 01:03:56 -0800 (PST) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 39DD3FF810; Mon, 14 Nov 2022 09:03:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1668416634; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SGgLQJiM767wl93pGV+At61F3Cl0A+eitZYipi117FY=; b=pdcgHVIjKG1D0HsuTRi8Wg5NCj25/XO1IB4F76Tg6izZ6E9L615VdI2WlPZ6h1pSeqFj1Z AQGCPIb7R3UUMXHzFYgo49rUloHBxbMiMw5Lk+bF7X5d1ETNL15xTg0oGQ5GVd+x+51KYE cJPSTFemhrwXnYFc3YS6rjHnl87dzjex4HKePGD5hKaOfNmf9etJoCId6QXWQN9qSahk0l v9mNb5LZbdt3tAi78R9kwTpxap8//+jb93So5CKT/esHM2An7Y2DSXE+cF0j+R3Xz2jcr/ +X1XtshAmLSDhx7Xc6ybCMYeGPH22Vtrn4SbE4YgJ2D4XWHC8eIVEabFayN/8A== From: Miquel Raynal <miquel.raynal@bootlin.com> To: Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, devicetree@vger.kernel.org Cc: Richard Weinberger <richard@nod.at>, Vignesh Raghavendra <vigneshr@ti.com>, Tudor Ambarus <Tudor.Ambarus@microchip.com>, Pratyush Yadav <pratyush@kernel.org>, Michael Walle <michael@walle.cc>, <linux-mtd@lists.infradead.org>, Thomas Petazzoni <thomas.petazzoni@bootlin.com>, <linux-kernel@vger.kernel.org>, Miquel Raynal <miquel.raynal@bootlin.com>, Rob Herring <robh@kernel.org> Subject: [PATCH v3 14/17] dt-bindings: mtd: nvmem-cells: Inherit from MTD partitions Date: Mon, 14 Nov 2022 10:03:12 +0100 Message-Id: <20221114090315.848208-15-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221114090315.848208-1-miquel.raynal@bootlin.com> References: <20221114090315.848208-1-miquel.raynal@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749461807909144610?= X-GMAIL-MSGID: =?utf-8?q?1749461807909144610?= |
Series |
Improve MTD bindings
|
|
Commit Message
Miquel Raynal
Nov. 14, 2022, 9:03 a.m. UTC
The aim of MTD nvmem-cells is to treat MTD partitions as NVMEM providers. Hence, MTD partition properties are valid here. Let's reference mtd/partition.yaml which gives us a chance to drop "additionalProperties: true" in favor of "unevaluatedProperties: false". Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Rob Herring <robh@kernel.org> --- .../devicetree/bindings/mtd/partitions/nvmem-cells.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Comments
On Mon, 2022-11-14 at 09:03:12 UTC, Miquel Raynal wrote: > The aim of MTD nvmem-cells is to treat MTD partitions as NVMEM > providers. Hence, MTD partition properties are valid here. Let's > reference mtd/partition.yaml which gives us a chance to drop > "additionalProperties: true" in favor of "unevaluatedProperties: > false". > > Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> > Reviewed-by: Rob Herring <robh@kernel.org> Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next. Miquel
diff --git a/Documentation/devicetree/bindings/mtd/partitions/nvmem-cells.yaml b/Documentation/devicetree/bindings/mtd/partitions/nvmem-cells.yaml index ca18892eacc7..5474d63268dc 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/nvmem-cells.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/nvmem-cells.yaml @@ -17,6 +17,7 @@ maintainers: - Ansuel Smith <ansuelsmth@gmail.com> allOf: + - $ref: /schemas/mtd/partitions/partition.yaml# - $ref: /schemas/nvmem/nvmem.yaml# properties: @@ -26,7 +27,7 @@ properties: required: - compatible -additionalProperties: true +unevaluatedProperties: false examples: - |