From patchwork Fri Nov 4 16:47:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 15700 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp519496wru; Fri, 4 Nov 2022 09:51:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7wDX4WCTKUGEO+eO7nahn7inDa558rLXdDbNatG1YjrQ/TercIuLggOq54vKAvLo4hgkOw X-Received: by 2002:a17:907:2d11:b0:7ae:38b3:b56c with SMTP id gs17-20020a1709072d1100b007ae38b3b56cmr3371550ejc.195.1667580669658; Fri, 04 Nov 2022 09:51:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667580669; cv=none; d=google.com; s=arc-20160816; b=tC/I5bY7ERyZABteSVRAVSBIMC6GIEwWNZip1Bo2K7yZe1RkvgPVmq96WBgySLczE2 p2eeb8wkMhjPGImuKVKJMlC4Ftg7aCukvoTLbrjE36OYF/58gL/T+GiyeWgSJB9XOr2T d+YJfUd42QQUV3djIgFrGcogg3xqgUSm3SyBb/qL8FFdnYyt3dA0FmS3B2oZleOhJPrm wV7UPBAC90Xc7aCecqhHL6tPmsVwA0Blz/GRNTIrQ6c5Zx9zciFDohIpVQ1nwYNTfPIK eKRUdz3hSwbv5OmczNw31zwyDCRoCr62vUjFg+KzqL0Ysqw7ZzCclrLLo802ZR20ZBU1 8+0Q== 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=I4XXOMBEfkOnV0QqjTL56rdfmw5ub9qZ5YqwWMsqScM=; b=i7VRoem437MhhgRAmHWNSO2hjg7YWoFJkwecswc2dirMo3j5bqvHs4Biu2FEoPrIdu 0U7VM78+zkBabhrS86VCfAJKMlX510rIxzi/stZZfp1zpvGbLoxDiPJ2mzZlfw0dNtTT xmNn5Pd0PsCZDMjnbVUUl4yCkNQJjEk0MhdAHwULdDY42s81rmohWLYsyM8mJc5Nr43f zONcj0an2zE1eFTQwAiJ1CRn6YjRDYvTo+EdcVqUZUWQW2DfKwmHelCYZ90FLiizh+Z0 /58gHMIkqOcxQYEXowoxCeFudJssgQtTn3agP95sJsRiD/7KqTgf5yZ3NUovGDn6jEJK 2bgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=kACEsRxz; 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 gs13-20020a1709072d0d00b0078d9b2facaesi6370447ejc.339.2022.11.04.09.50.43; Fri, 04 Nov 2022 09:51:09 -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; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=kACEsRxz; 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 S231983AbiKDQsx (ORCPT + 99 others); Fri, 4 Nov 2022 12:48:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231949AbiKDQrr (ORCPT ); Fri, 4 Nov 2022 12:47:47 -0400 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 192C14AF05; Fri, 4 Nov 2022 09:47:37 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id D92CB40003; Fri, 4 Nov 2022 16:47:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1667580456; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=I4XXOMBEfkOnV0QqjTL56rdfmw5ub9qZ5YqwWMsqScM=; b=kACEsRxzfU7VRr3rXIFdBQuRKCNwXA/whF8DcKXCqTUeTFQ3e3W5msdthKkpzSBrUpMRJy atsfrvsau1gDCjGTk2uov+YZlkdvqTTfC7h4TPZIVcUCoLrfNqUlSdpgv1uOICC46hF5F8 LFGy6zX7/NUWmkbNoNdSuwnifcjVD9EPgXSz/s+L0rywdOq6hYPo4v/okslvgXFgR/lQv3 44rCmB2dQXYaZICplkg4B+NQI91NMz/FHT6Xptkc22toY3dnQl8uvccj3ZIK32v2IposLc vEh14j7OYkskKv0xJSMttYiN+qlDl4NQFMp9vnWqexlqBRgG3SugyJq7cLq8xg== From: Miquel Raynal To: Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org Cc: Richard Weinberger , Vignesh Raghavendra , Tudor Ambarus , Pratyush Yadav , Michael Walle , , Thomas Petazzoni , Srinivas Kandagatla , , Miquel Raynal , Rob Herring Subject: [PATCH v2 15/17] dt-bindings: mtd: Argue in favor of keeping additionalProperties set to true Date: Fri, 4 Nov 2022 17:47:16 +0100 Message-Id: <20221104164718.1290859-16-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221104164718.1290859-1-miquel.raynal@bootlin.com> References: <20221104164718.1290859-1-miquel.raynal@bootlin.com> MIME-Version: 1.0 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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748585068385401823?= X-GMAIL-MSGID: =?utf-8?q?1748585068385401823?= In most cases we try to avoid it but in some cases this is needed. Clarify why by adding a small comment. Signed-off-by: Miquel Raynal Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/mtd/mtd.yaml | 1 + Documentation/devicetree/bindings/mtd/nand-chip.yaml | 1 + Documentation/devicetree/bindings/mtd/nand-controller.yaml | 1 + Documentation/devicetree/bindings/mtd/partitions/partition.yaml | 1 + 4 files changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/mtd.yaml b/Documentation/devicetree/bindings/mtd/mtd.yaml index 2494ec2d80e3..9ee285b7d162 100644 --- a/Documentation/devicetree/bindings/mtd/mtd.yaml +++ b/Documentation/devicetree/bindings/mtd/mtd.yaml @@ -60,6 +60,7 @@ patternProperties: required: - compatible +# This is a generic file other binding inherit from additionalProperties: true examples: diff --git a/Documentation/devicetree/bindings/mtd/nand-chip.yaml b/Documentation/devicetree/bindings/mtd/nand-chip.yaml index 8d5d2d3ef56b..6e2dc025d694 100644 --- a/Documentation/devicetree/bindings/mtd/nand-chip.yaml +++ b/Documentation/devicetree/bindings/mtd/nand-chip.yaml @@ -70,4 +70,5 @@ properties: required: - reg +# This file can be referenced by more specific devices (like spi-nands) additionalProperties: true diff --git a/Documentation/devicetree/bindings/mtd/nand-controller.yaml b/Documentation/devicetree/bindings/mtd/nand-controller.yaml index 3f2a1480e1eb..220aa2c8c0b5 100644 --- a/Documentation/devicetree/bindings/mtd/nand-controller.yaml +++ b/Documentation/devicetree/bindings/mtd/nand-controller.yaml @@ -129,6 +129,7 @@ required: - "#address-cells" - "#size-cells" +# This is a generic file other binding inherit from and extend additionalProperties: true examples: diff --git a/Documentation/devicetree/bindings/mtd/partitions/partition.yaml b/Documentation/devicetree/bindings/mtd/partitions/partition.yaml index f1a02d840b12..8bdec706ba9b 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/partition.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/partition.yaml @@ -60,4 +60,5 @@ then: $nodename: pattern: '^partition-.*$' +# This is a generic file other binding inherit from and extend additionalProperties: true