From nobody Thu Apr 9 12:22:20 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C0334C433FE for ; Mon, 14 Nov 2022 09:05:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236739AbiKNJFQ (ORCPT ); Mon, 14 Nov 2022 04:05:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236873AbiKNJE0 (ORCPT ); Mon, 14 Nov 2022 04:04:26 -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 CA4721DDD5; Mon, 14 Nov 2022 01:03:59 -0800 (PST) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 15A47FF80A; Mon, 14 Nov 2022 09:03:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1668416637; 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=I4XXOMBEfkOnV0QqjTL56rdfmw5ub9qZ5YqwWMsqScM=; b=PyF8XpzkEOT588yhvLs5BREzHcO14FndTUUNfuU1EVSDQIma8+TH5yYBkK3Spl1OahmPln RqJ8dqzyUUYgJic6TcjT/UistfhpCZvHl0H5vpb1PyLam2BPka+Jo5biGKqD3M3+/PbTuS 6b6aN5d6vfJ2X1xAnwKAVyRVxO8fHdtBxUzMDCDqD2VKWdeV2P0Q7z7knDfS2b3wyai6m3 +Ng54sox6PA/Q0tfZsZRhJYwHlE9dkcDoIqMXK8fNeC773/IzJam+1s9e+15KpM29gHQs0 JsEkZgvP96xsLkK+U9ZpC9DSt0cdUYpPVflm9P+2qQqOmiPzD1HSicbT+W3MbQ== 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 , , Miquel Raynal , Rob Herring Subject: [PATCH v3 15/17] dt-bindings: mtd: Argue in favor of keeping additionalProperties set to true Date: Mon, 14 Nov 2022 10:03:13 +0100 Message-Id: <20221114090315.848208-16-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: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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 =20 +# This is a generic file other binding inherit from additionalProperties: true =20 examples: diff --git a/Documentation/devicetree/bindings/mtd/nand-chip.yaml b/Documen= tation/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 =20 +# 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/D= ocumentation/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" =20 +# This is a generic file other binding inherit from and extend additionalProperties: true =20 examples: diff --git a/Documentation/devicetree/bindings/mtd/partitions/partition.yam= l 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-.*$' =20 +# This is a generic file other binding inherit from and extend additionalProperties: true --=20 2.34.1