From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F105D3D6464; Wed, 21 Jan 2026 19:56:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769025416; cv=none; b=RIxyfMjp/3mTrns2missj9l4A7ODELXbFwsb9BRtCUi+j3ggoKhPQFsKk7evt3TyZ663zPDbxVaZvh80fEbyxo/Q21xtYFI/achVGqyaQrqKIQHcI/fW+KtGdxa1JPTQiN/vIU6JwBAh1Hyr+QMcdr9xvJYWTEtAHVm4+i3dACQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769025416; c=relaxed/simple; bh=O2g4aZxguQSd3/Hhutlh4goIwEfHLGt72wUIY/7+5pE=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=fcqjf6nzpzp9Wh6IWyn5M9+HhHDPHh3HKxczPgTEmxOQ1pzHs7jZF5hXQQVM1DTKD40jBEce6ST5BYJEyrjSpka2gDA9PMVGMi4FqDbEfS82xEe3RjrQna/Bpe+YdggtwRpedf6iXAtsxLeW6S0FXcgHZLTktfjIHNmXOnkaMB0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DIZCFNUq; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DIZCFNUq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B0D6CC4CEF1; Wed, 21 Jan 2026 19:56:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1769025415; bh=O2g4aZxguQSd3/Hhutlh4goIwEfHLGt72wUIY/7+5pE=; h=From:Subject:Date:To:Cc:From; b=DIZCFNUqn4U1f9tXUbuxL+XFPQF+6044rzFpWFYeEnc7lSbRPPchLdba5j8tbqRIi Ewdwehg03Jf+Zcl8jlur20CU8WyiAZTANNGQac1SW2rPM7EMXM+fAZMdKMpjXR1PFx 2ZMo28+2BX20B4iBvUElMWVKVe+droUyp0nM+l4YdL9KPSYvQUQ7dGfgAeU4lGl49k CC4xk/1iyrwHuJPbCrJ86J5X+fHh5cb5FbHKcbeugyATIEy0zvLeHYM1Ck2IGXRi37 UlesgQ/tARMiKxhbULrurMM8GOaKXaUl+5ITAjcRapfxrP4vP088JsaWNLo4WYe1Ru CZoaCRBCZ0VWg== From: "Rob Herring (Arm)" Subject: [PATCH v3 00/10] dt-bindings: mtd: Partition binding fixes and restructuring Date: Wed, 21 Jan 2026 13:56:33 -0600 Message-Id: <20260121-dt-mtd-partitions-v3-0-ec3af93c8f93@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAHEvcWkC/33NzQ6CMAzA8VcxPTuzdfLlyfcwHgYrsKhAumXRE N7dwUkT4/HftL/O4IkdeTjtZmCKzrtxSKH3O2h6M3QknE0NKDGXSpbCBvEIVkyGgwtp2Qvd2qy k2tjWSEh3E1Prnpt5uabunQ8jv7YXUa3Tf1pUQgqFR5PphnIsqvONeKD7YeQOVi7iB6GqXwQmo iiorqusNFrhF7EsyxuIbSGl9gAAAA== X-Change-ID: 20260108-dt-mtd-partitions-3fd58ebadfa0 To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Krzysztof Kozlowski , Conor Dooley , Brian Norris , Kamal Dasu , William Zhang , Nick Terrell , David Sterba , =?utf-8?q?Rafa=C5=82_Mi=C5=82ecki?= , Simon Glass , Linus Walleij , Ulf Hansson , Marcus Folkesson , Tony Lindgren , Roger Quadros , Hauke Mehrtens Cc: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, Krzysztof Kozlowski , Simon Glass X-Mailer: b4 0.15-dev The partition bindings fail to restrict undefined properties. This is primarily on fixed-partitions which can be nested and partition nodes without a compatible string. This series fixes those issues and then several problems exposed by restricting undefined properties. As part of this, the schema structure is reworked to follow more conventional structure of applying schemas by compatible and a schema only checks 1 level of nodes (unless possible child nodes are fixed). In theory, we could have all sorts of combinations of different partition types nesting, and those may or may not work. No attempt is made to support them here. Only the known cases are supported. Rob Signed-off-by: Rob Herring (Arm) --- Changes in v3: - Add $ref to partition.yaml for brcm,bcm4908-partitions child nodes in patch 10. Patches 1-9 unchanged. - Link to v2: https://patch.msgid.link/20260119-dt-mtd-partitions-v2-0-77ebb958a312@kernel.org Changes in v2: - Rebase on mtd/next - Link to v1: https://patch.msgid.link/20260108-dt-mtd-partitions-v1-0-124a53ce6279@kernel.org --- Rob Herring (Arm) (10): dt-bindings: mtd: brcm,brcmnand: Drop "brcm,brcmnand" compatible for iProc dt-bindings: mtd: fixed-partitions: Move "compression" to partition node dt-bindings: mtd: partitions: Move "sercomm,scpart-id" to partition.yaml dt-bindings: mtd: partitions: Allow "nvmem-layout" in generic partition nodes dt-bindings: mtd: partitions: Define "#{address,size}-cells" in specific schemas dt-bindings: mtd: partitions: Drop partitions.yaml dt-bindings: mtd: Ensure partition node properties are documented dt-bindings: mtd: fixed-partitions: Restrict undefined properties dt-bindings: mtd: partitions: Convert brcm,trx to DT schema dt-bindings: mtd: partitions: Combine simple partition bindings .../devicetree/bindings/mmc/mmc-card.yaml | 20 ++----- .../devicetree/bindings/mtd/brcm,brcmnand.yaml | 1 - Documentation/devicetree/bindings/mtd/mtd.yaml | 10 +--- .../mtd/partitions/arm,arm-firmware-suite.yaml | 2 - .../devicetree/bindings/mtd/partitions/binman.yaml | 53 ------------------ .../mtd/partitions/brcm,bcm4908-partitions.yaml | 8 +-- .../partitions/brcm,bcm947xx-cfe-partitions.yaml | 2 - .../mtd/partitions/brcm,bcm963xx-imagetag.txt | 45 --------------- .../bindings/mtd/partitions/brcm,trx.txt | 42 -------------- .../bindings/mtd/partitions/brcm,trx.yaml | 65 ++++++++++++++++++++++ .../bindings/mtd/partitions/fixed-partitions.yaml | 43 ++++---------- .../mtd/partitions/linksys,ns-partitions.yaml | 10 +--- .../bindings/mtd/partitions/partition.yaml | 44 ++++++++++++++- .../bindings/mtd/partitions/partitions.yaml | 42 -------------- .../bindings/mtd/partitions/redboot-fis.yaml | 4 -- .../devicetree/bindings/mtd/partitions/seama.yaml | 44 --------------- .../bindings/mtd/partitions/simple-partition.yaml | 61 ++++++++++++++++++++ .../partitions/tplink,safeloader-partitions.yaml | 2 +- .../devicetree/bindings/mtd/partitions/u-boot.yaml | 2 +- .../devicetree/bindings/mtd/ti,davinci-nand.yaml | 4 +- .../devicetree/bindings/mtd/ti,gpmc-onenand.yaml | 2 +- MAINTAINERS | 5 -- 22 files changed, 196 insertions(+), 315 deletions(-) --- base-commit: 779c59274d03cc5c07237a2c845dfb71cff77705 change-id: 20260108-dt-mtd-partitions-3fd58ebadfa0 Best regards, -- Rob Herring (Arm)