From nobody Sun Feb 8 07:59:46 2026 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 561EB3EDAB3; Wed, 21 Jan 2026 19:56:57 +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=1769025417; cv=none; b=AHHkMhaJyTTiv0sjJYbFA6fd28aTExX0xCu7HDBdrTl6ai71Uo38j0jebMI1U5bBqxnG37hH7vpEHz75lZcttEGEKoFYGpkPpwesr/ggVj9NREcAv+4NlDTh6y4yx0hRItoZeWbXfu9bRkXrKcCE7oOji55kLxS8aMBrS9UnXWY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769025417; c=relaxed/simple; bh=/ZlnKnKx7utqc5wND/d2GRMNuYYpxYnoMehK3GUY9hQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kJnl/+87e1TyglRuhq31pp+raMc86hvrS4E+ha6QsPmzHGDj17ZGi0pk14J8XCE79GHD58krPhbB8Je0TGOoC8ZP8xIh54zvfVsDXmzmE20sp4JZ9XKrVcWAMexK79drf51zij34gOtFk9PYN0jydKxIVNCWCX8Eu1r8sBtwMxI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=B3b/aQth; 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="B3b/aQth" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE381C4CEF1; Wed, 21 Jan 2026 19:56:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1769025416; bh=/ZlnKnKx7utqc5wND/d2GRMNuYYpxYnoMehK3GUY9hQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=B3b/aQthrQzJU9J5LRmk/7/delrvkOOR5vjzUHVjx0YypDVYWHp7m93d8aznCFT2L rtewlrw6IXMuQJSyRLFxOcsFxMn42ruoInR/7VH3qqoeA0enRNNART74n/huMd1574 Luhsc8F+hg+EA22YOdzzqVfnQr934geK0fH780D7M/Vi+4+IEMA+7hD+1/fpS4ZdhA 5vyIXnDL+B9azBNcnFPTXJi5Iyfmvz3ZbqICjSNNoiSlDpPez7h2ZCj95yHxyDdlJV b5cbTu/RM/KNfMaaXN+CiQz9Ag8iT5HDDjM6pyGvpEKOQbCbPBn5x758Q6t6LJqO6H 8Fr6tEI9zn8Rg== From: "Rob Herring (Arm)" Date: Wed, 21 Jan 2026 13:56:34 -0600 Subject: [PATCH v3 01/10] dt-bindings: mtd: brcm,brcmnand: Drop "brcm,brcmnand" compatible for iProc 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: quoted-printable Message-Id: <20260121-dt-mtd-partitions-v3-1-ec3af93c8f93@kernel.org> References: <20260121-dt-mtd-partitions-v3-0-ec3af93c8f93@kernel.org> In-Reply-To: <20260121-dt-mtd-partitions-v3-0-ec3af93c8f93@kernel.org> 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 X-Mailer: b4 0.15-dev Some users of "brcm,nand-iproc" include "brcm,brcmnand" and some don't. The "brcm,brcmnand" compatible is not useful for iProc systems as there's a separate driver for iProc. So drop it as a fallback. Reviewed-by: William Zhang Reviewed-by: Krzysztof Kozlowski Signed-off-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/mtd/brcm,brcmnand.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mtd/brcm,brcmnand.yaml b/Doc= umentation/devicetree/bindings/mtd/brcm,brcmnand.yaml index 064e840aeaa1..3105f8e6cbd6 100644 --- a/Documentation/devicetree/bindings/mtd/brcm,brcmnand.yaml +++ b/Documentation/devicetree/bindings/mtd/brcm,brcmnand.yaml @@ -66,7 +66,6 @@ properties: items: - const: brcm,nand-iproc - const: brcm,brcmnand-v6.1 - - const: brcm,brcmnand - description: BCM63168 SoC-specific NAND controller items: - const: brcm,nand-bcm63168 --=20 2.51.0 From nobody Sun Feb 8 07:59:46 2026 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 8AD633ED114; Wed, 21 Jan 2026 19:56:58 +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=1769025418; cv=none; b=MoHwU8oo2fcmUGLLX0Plb53WGWzUjMIaFjC4/MRfKzyNOcBREsB482YXj/isH1ex5gGfTfOBamX/H9zAq+WBq1aOg9gVSNtKzqC8MtV2vsHaUgLRYdMlRpM+Rc03U1NS+Cc4K6YzGrAf2EDDEyJkrfKniUrQhxZKWcAruKi9oT0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769025418; c=relaxed/simple; bh=g/uMQusRPTzXLgyH55SF2Z0Ew27f2Lx3R56DScAIcKE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=s+2wr87li5ebYdXj5Qm7Lk8ggL3oh5hAqKs6K6rlhCuVCxtO/LiRPSFRq2H72Jr4A6GTAmBCxpRQDq6p0WpRK6nUsoKtJPEfliekeeCfSFMjqgDQk/5MafC2K1+muVShJhDNOqt1QF2rkh19/KYHg4IjQG6vTCISIWASnr1sB0U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IrGElcB8; 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="IrGElcB8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CBFEDC16AAE; Wed, 21 Jan 2026 19:56:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1769025417; bh=g/uMQusRPTzXLgyH55SF2Z0Ew27f2Lx3R56DScAIcKE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=IrGElcB8dYuUTWb4K7XbmUuwf+I+WOorHUdkmLqYugNSORCl2+7CmZt1DqYk3+OaA p1mzlcT5HI6xN022HMhJcnghYULddj9InrfM4dUn03NMPmnCPElsXxAwDU8j3ZU7r5 UVSu483SHIdSVqI3jQotsY3JL61vVTxIbYk8u62ev8prOV5t5CTTWN12GL0uqcQVpg 3rzN35vlNhqoKnPzpM+e9K1ng+C7SBfnjWZPXjX/Wuy25arCc03EJbKuVDphT68lHc BseVvMg6vk3zC4zZqkbs6SfOmXSWXXxsUC6SZZgsJAL+U0erAlMR9gmwbQntolMyG1 ieFAo/xekdGGg== From: "Rob Herring (Arm)" Date: Wed, 21 Jan 2026 13:56:35 -0600 Subject: [PATCH v3 02/10] dt-bindings: mtd: fixed-partitions: Move "compression" to partition node 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: quoted-printable Message-Id: <20260121-dt-mtd-partitions-v3-2-ec3af93c8f93@kernel.org> References: <20260121-dt-mtd-partitions-v3-0-ec3af93c8f93@kernel.org> In-Reply-To: <20260121-dt-mtd-partitions-v3-0-ec3af93c8f93@kernel.org> 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, Simon Glass , Krzysztof Kozlowski X-Mailer: b4 0.15-dev The "compression" property is defined in the wrong place as it applies to individual partitions nodes, not all nodes. Fixes: 8baba8d52ff5 ("dt-bindings: mtd: fixed-partitions: Add compression p= roperty") Reviewed-by: Simon Glass Reviewed-by: Krzysztof Kozlowski Signed-off-by: Rob Herring (Arm) --- .../bindings/mtd/partitions/fixed-partitions.yaml | 18 --------------= ---- .../devicetree/bindings/mtd/partitions/partition.yaml | 18 ++++++++++++++= ++++ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/Documentation/devicetree/bindings/mtd/partitions/fixed-partiti= ons.yaml b/Documentation/devicetree/bindings/mtd/partitions/fixed-partition= s.yaml index 62086366837c..73d74c0f5cb7 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml @@ -29,24 +29,6 @@ properties: =20 "#size-cells": true =20 - compression: - $ref: /schemas/types.yaml#/definitions/string - description: | - Compression algorithm used to store the data in this partition, chos= en - from a list of well-known algorithms. - - The contents are compressed using this algorithm. - - enum: - - none - - bzip2 - - gzip - - lzop - - lz4 - - lzma - - xz - - zstd - patternProperties: "@[0-9a-f]+$": $ref: partition.yaml# diff --git a/Documentation/devicetree/bindings/mtd/partitions/partition.yam= l b/Documentation/devicetree/bindings/mtd/partitions/partition.yaml index 80d0452a2a33..0b989037a005 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/partition.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/partition.yaml @@ -108,6 +108,24 @@ properties: with the padding bytes, so may grow. If =E2=80=98align-end=E2=80=99 = is not provided, no alignment is performed. =20 + compression: + $ref: /schemas/types.yaml#/definitions/string + description: | + Compression algorithm used to store the data in this partition, chos= en + from a list of well-known algorithms. + + The contents are compressed using this algorithm. + + enum: + - none + - bzip2 + - gzip + - lzop + - lz4 + - lzma + - xz + - zstd + if: not: required: [ reg ] --=20 2.51.0 From nobody Sun Feb 8 07:59:46 2026 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 63DBE3EF0B7; Wed, 21 Jan 2026 19:56:59 +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=1769025419; cv=none; b=rDIrHiUXtyr2NhsHSloj9hsyOWkUi+FlORO0ipV1f5OqNqXD6TlwcdS1PakUDCBJKELZx21zW7LCB0FCPAKZCS5ipfKD0dTewDzBP/0VEiah8Tu5Fanihlvyky6bjBSPcX9riSWeYRhRyP3X1tRTO5vs3ddMBkyqOsQtNYa2vPI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769025419; c=relaxed/simple; bh=q5vfvsNNHukkTxi4H/nQ+vW1T6KSyihaVNfG3gXPrN0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EbGgyP0JJyPnPPerq+bFCePpLfG0q0OxRYUHVtrxdiz2BfL/YKhrzVG77cDYFg1JyS/rO8LlObjeLms9l9EL+Lgaqgm33VA0EoRWyVkOstAlKIulNmnm/zx2HYL5EzGUitYdg8OzKO1tmX/WaZtKGotXdH960vO4rN6teeQEJZk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GwNB7NoE; 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="GwNB7NoE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3FBBC4CEF1; Wed, 21 Jan 2026 19:56:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1769025419; bh=q5vfvsNNHukkTxi4H/nQ+vW1T6KSyihaVNfG3gXPrN0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=GwNB7NoERjnv/TWEUdI4m+Mbl66+sWj7fdEihgLCZ2hmkMR3CArfpqzDAr36xJ+/o V/4Wiy6KPSWtn4MyEDQoFreDR3jephPTE7RrcYM3aSO27GrSpIkbzrS/fW67Nktf8S hdkgnEkjR3KmCIW7UPX2V+cD/xjFYLWSCW75u1R6dJxtId5usgEpLyhonju6xxH7pt vaMN9vBymJsXFHrId0pIAjPrvksISS8PYghA8G+i5MjkWxgQG/ewX1JIBFPUH6qjZ5 hCNanwtEkprVksKJ/bPgrirHDzc//CocUE3ZAefROXXFaMcago5BX4xe+72pfmQ2ED IEH1WzLWsn4gQ== From: "Rob Herring (Arm)" Date: Wed, 21 Jan 2026 13:56:36 -0600 Subject: [PATCH v3 03/10] dt-bindings: mtd: partitions: Move "sercomm,scpart-id" to partition.yaml 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: quoted-printable Message-Id: <20260121-dt-mtd-partitions-v3-3-ec3af93c8f93@kernel.org> References: <20260121-dt-mtd-partitions-v3-0-ec3af93c8f93@kernel.org> In-Reply-To: <20260121-dt-mtd-partitions-v3-0-ec3af93c8f93@kernel.org> 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 X-Mailer: b4 0.15-dev Defining child node properties specific to the parent schema doesn't work unless all the child node properties are known. They aren't known because any partition can define its own properties. The solution to this is typically something like spi-peripheral-props.yaml, but that's overkill for this single property. Just move it to partition.yaml instead. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Rob Herring (Arm) --- .../devicetree/bindings/mtd/partitions/fixed-partitions.yaml | 10 ------= ---- .../devicetree/bindings/mtd/partitions/partition.yaml | 9 ++++++= +++ 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/Documentation/devicetree/bindings/mtd/partitions/fixed-partiti= ons.yaml b/Documentation/devicetree/bindings/mtd/partitions/fixed-partition= s.yaml index 73d74c0f5cb7..b504d4376d0b 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml @@ -33,16 +33,6 @@ patternProperties: "@[0-9a-f]+$": $ref: partition.yaml# =20 - properties: - sercomm,scpart-id: - description: Partition id in Sercomm partition map. Mtd parser - uses this id to find a record in the partition map containing - offset and size of the current partition. The values from - partition map overrides partition offset and size defined in - reg property of the dts. Frequently these values are the same, - but may differ if device has bad eraseblocks on a flash. - $ref: /schemas/types.yaml#/definitions/uint32 - required: - "#address-cells" - "#size-cells" diff --git a/Documentation/devicetree/bindings/mtd/partitions/partition.yam= l b/Documentation/devicetree/bindings/mtd/partitions/partition.yaml index 0b989037a005..568fac50f921 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/partition.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/partition.yaml @@ -126,6 +126,15 @@ properties: - xz - zstd =20 + sercomm,scpart-id: + description: Partition id in Sercomm partition map. Mtd parser + uses this id to find a record in the partition map containing + offset and size of the current partition. The values from + partition map overrides partition offset and size defined in + reg property of the dts. Frequently these values are the same, + but may differ if device has bad eraseblocks on a flash. + $ref: /schemas/types.yaml#/definitions/uint32 + if: not: required: [ reg ] --=20 2.51.0 From nobody Sun Feb 8 07:59:46 2026 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 BA2762BE035; Wed, 21 Jan 2026 19:57:00 +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=1769025420; cv=none; b=Ojk/W2KE1ZKyiboBt1TXI5/C8EkRuiiZ74K/DIXbXoZ9oh6Aje73V55Y1cgQ6SgFvc+x7H9qXhr5l90S7L49SqEhMaQMrcI5S17xTRb7/IjyZ/bxVc9Q3iPTa/jVh1GrChkhZ7x6XVrUmSbmECfXQ4WRQVDF2grm1iM2gV5fb0E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769025420; c=relaxed/simple; bh=OsjbooI0PzsSGUgngyI7clHgsjttkcXNF84NTeIQn64=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ECB3WPXMc97Xc1hsJ5+WRbLBSwGupOuRDTBw7y4jE+6Om0dmI0XTVV7kLQVvMpFauEnQb3BGgb44Q13YZnGXxi5ZJ5f249WZXusDWee2DZhailsPvZijCnwu3dIBmY4KBjr5siQNVMiwerEnpVHmjNhl5Y0KoLbwVHbNS1FCJSM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nAMgMGsA; 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="nAMgMGsA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D362DC4CEF1; Wed, 21 Jan 2026 19:56:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1769025420; bh=OsjbooI0PzsSGUgngyI7clHgsjttkcXNF84NTeIQn64=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=nAMgMGsAlFypN4Ya2goe99Kc/ynhx11xJAcCtHPXg+DD1DaBZeFLBLUzVUtT0zcn3 B7oWBBg71kLI6delh0CBhqJHStvuws/Eba2MC08DMRf7TwoZbBK1+CWCyQYph8Lw9I /t938+stLXCjaERmVrW5MuO6I2xzCRNiuUF6YY4RRuirkjUNtprI0WpqrU87ZS2cZ/ Cn6d5o3sk6RjxS7AVcvEM1EF+vn9NiNUBDqjMkvKcSTepD1PSwSFrR0Qfe/6iwRZm3 rI1CUk/IFLnuBmfzEwdQdWRISU4xBiXWInmijLXz0NthsliZR7vNRhYHRdeD0xx2KV R+G9i3bAYdoFA== From: "Rob Herring (Arm)" Date: Wed, 21 Jan 2026 13:56:37 -0600 Subject: [PATCH v3 04/10] dt-bindings: mtd: partitions: Allow "nvmem-layout" in generic partition nodes 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: quoted-printable Message-Id: <20260121-dt-mtd-partitions-v3-4-ec3af93c8f93@kernel.org> References: <20260121-dt-mtd-partitions-v3-0-ec3af93c8f93@kernel.org> In-Reply-To: <20260121-dt-mtd-partitions-v3-0-ec3af93c8f93@kernel.org> 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 X-Mailer: b4 0.15-dev An "nvmem-layout" node can be used in any partition node, so add it. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/mtd/partitions/partition.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/partitions/partition.yam= l b/Documentation/devicetree/bindings/mtd/partitions/partition.yaml index 568fac50f921..fe2f7d622e8b 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/partition.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/partition.yaml @@ -135,6 +135,9 @@ properties: but may differ if device has bad eraseblocks on a flash. $ref: /schemas/types.yaml#/definitions/uint32 =20 + nvmem-layout: + $ref: /schemas/nvmem/layouts/nvmem-layout.yaml + if: not: required: [ reg ] --=20 2.51.0 From nobody Sun Feb 8 07:59:46 2026 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 8EC603EF0A4; Wed, 21 Jan 2026 19:57:01 +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=1769025421; cv=none; b=FVVnNeM5Uhr0oiEEuQwGN8XjdcUAJ4gae0QsGlDPuYJ8Y2dlyeFBk419yiEAmM+m9QRY83f3BtN/Pj6NQMr2AQXFGVcJF0dgp1peNyiooMvC9kicN9lh4/suPetV2VdaaZ/7diTxdNoTa0j91vX7qoBizXW4cYZqI0H1FnfRtcc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769025421; c=relaxed/simple; bh=lNztnI4QcVHyFig2NE9Jca79n6y7e/q4hG9Afn4a2J8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=edRb46M+SPFOGzr3WeMkooD9bApX8W15OcY/sFYNbi5jXzJ5K3ILvJT+v7GehS7zUm/pr9E67NGh9qbus2CM788pMP8W74yPydu/98cVHv+2b8eMu3lx0jBrRez0JVEFwBdTqdlXKRCOCA0MxnFn8E1T82ww2i9fqxA4xauRhpk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=c2c7upRn; 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="c2c7upRn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9A5EC19424; Wed, 21 Jan 2026 19:57:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1769025421; bh=lNztnI4QcVHyFig2NE9Jca79n6y7e/q4hG9Afn4a2J8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=c2c7upRnt8HsVzca0u4hvucw45+nRTSBGjjsZDsvurEJ2eVuXjB02zP0M2Q22KLAv wTabPm4JWD8j2Y2i1uH2EGoOdvkrZFlFg8MFgD04SwWt5QeCSvtrHZrOSDvOAaBtmk VsnZwUQekO+4dpbHUvaGV2XrMFG1BUyeM3S9haVpjtgIV4W6rXuErAbhcn6MNuKAWG g+UggfSlaq4WURxyVBUWwrcrhizLzdQwc0O8rkQj9vyH+B3tPy8jQjNcWyQsY9ns4P pDGCElumR75VnrbbMeE5fi5K6L3qTEn2fuFBAtjS3BLKSnMxjuOHbrktzlBYt1iEMp EOcXhMPxauSIQ== From: "Rob Herring (Arm)" Date: Wed, 21 Jan 2026 13:56:38 -0600 Subject: [PATCH v3 05/10] dt-bindings: mtd: partitions: Define "#{address,size}-cells" in specific schemas 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: quoted-printable Message-Id: <20260121-dt-mtd-partitions-v3-5-ec3af93c8f93@kernel.org> References: <20260121-dt-mtd-partitions-v3-0-ec3af93c8f93@kernel.org> In-Reply-To: <20260121-dt-mtd-partitions-v3-0-ec3af93c8f93@kernel.org> 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 X-Mailer: b4 0.15-dev Whether "#address-cells" and "#size-cells" are used or not depends on the specific partition type, so drop them from partitions.yaml and define them in the specific partition schemas as needed. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Rob Herring (Arm) --- .../devicetree/bindings/mtd/partitions/fixed-partitions.yaml | 6 ++= ++-- Documentation/devicetree/bindings/mtd/partitions/partitions.yaml | 6 --= ---- Documentation/devicetree/bindings/mtd/partitions/redboot-fis.yaml | 4 --= -- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/Documentation/devicetree/bindings/mtd/partitions/fixed-partiti= ons.yaml b/Documentation/devicetree/bindings/mtd/partitions/fixed-partition= s.yaml index b504d4376d0b..26bef777353d 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml @@ -25,9 +25,11 @@ properties: - const: sercomm,sc-partitions - const: fixed-partitions =20 - "#address-cells": true + "#address-cells": + enum: [ 1, 2 ] =20 - "#size-cells": true + "#size-cells": + enum: [ 1, 2 ] =20 patternProperties: "@[0-9a-f]+$": diff --git a/Documentation/devicetree/bindings/mtd/partitions/partitions.ya= ml b/Documentation/devicetree/bindings/mtd/partitions/partitions.yaml index 1dda2c80747b..76199506d690 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/partitions.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/partitions.yaml @@ -26,12 +26,6 @@ oneOf: properties: compatible: true =20 - '#address-cells': - enum: [1, 2] - - '#size-cells': - enum: [1, 2] - patternProperties: "^partition(-.+|@[0-9a-f]+)$": $ref: partition.yaml diff --git a/Documentation/devicetree/bindings/mtd/partitions/redboot-fis.y= aml b/Documentation/devicetree/bindings/mtd/partitions/redboot-fis.yaml index ba7445cd69e8..ba627f51840b 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/redboot-fis.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/redboot-fis.yaml @@ -28,10 +28,6 @@ properties: device. On a flash memory with 32KB eraseblocks, 0 means the first eraseblock at 0x00000000, 1 means the second eraseblock at 0x0000800= 0 and so on. =20 - '#address-cells': false - - '#size-cells': false - required: - compatible - fis-index-block --=20 2.51.0 From nobody Sun Feb 8 07:59:46 2026 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 0543E3F0771; Wed, 21 Jan 2026 19:57:02 +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=1769025423; cv=none; b=UnVpt9Y0fcrF0PUQyWTmJxxhyIK4t0VW8pkzkGdZ+dJjr7FvE+z59wL8sG5qs2WQgFq7Nks0jY+4PFJSEf6FT3Zo0EZ/XVq5RN38gY49YWSd2EAU5I+njrLj1abIEz89ex4nnV43xDGxkX31iFKUGfmYkUuK41lfoL2A0BRNKos= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769025423; c=relaxed/simple; bh=5A/41JoleGtwPhEbTeB2+oh7nKqvAGckt/bdNBSRYKg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=E9hQ9tc3T4JL/7P/z/4jz0fAS943OoDgoOqwlYExU2PhTGqPDLFc7kdUlW4O12DN9DLO+941v3reWDPkiZitJiWL1aMNJRmCj1vNIMP499Ux3P66W6+xKdijjUiS6crCPCmn7K8wCNM2UKR/te4T7rLICrmcr6pgrr/bMh0GHnk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Gs/dofXf; 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="Gs/dofXf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CEFC7C16AAE; Wed, 21 Jan 2026 19:57:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1769025421; bh=5A/41JoleGtwPhEbTeB2+oh7nKqvAGckt/bdNBSRYKg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Gs/dofXf43m3eN0zvBXr1BbpK79G2sqc8fYJ8nT+SBF+QVgCs/jB40s4dUvD8tdUQ nvJZwp7I0oE3jHS93ROh1yuEUXXza/lHjeeHmxdSiDzjCR6R9k7P9d8YSYr38JuMGy HYZJRz/4nC4qAah8dpHvZb9NkC+nb4o1iFvK408lHAp13BRzDjpNsD6yL+UfyFpJ+F l9VmRSJzHT3hP1vNX/VDzMY1FL80wncxEDtYAm3Dfrdaj+j3V8mnWzKGokLANrnSul 7RUd8KwNhbCDhSfa/37V+NmjavF96aNVAqAuSIFPa6iioazA/57HRe46YHWRrH3kZ9 +F45t+F/nKSlg== From: "Rob Herring (Arm)" Date: Wed, 21 Jan 2026 13:56:39 -0600 Subject: [PATCH v3 06/10] dt-bindings: mtd: partitions: Drop partitions.yaml 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: quoted-printable Message-Id: <20260121-dt-mtd-partitions-v3-6-ec3af93c8f93@kernel.org> References: <20260121-dt-mtd-partitions-v3-0-ec3af93c8f93@kernel.org> In-Reply-To: <20260121-dt-mtd-partitions-v3-0-ec3af93c8f93@kernel.org> 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 X-Mailer: b4 0.15-dev The partitions.yaml schema is an unusual structure in that it includes all possible partition types, and it disables the normal matching by compatible strings. As partitions.yaml has nothing to match on, it is only applied when explicitly referenced. The use of "oneOf" also results in misleading warnings which are difficult to understand. Drop partitions.yaml and rely on the standard compatible matching instead. The "mmc-card" case previously allowed any partition type, but now only allows "fixed-partitions". There aren't any users and the original intent appeared to be only for "fixed-partitions". Acked-by: Ulf Hansson # For MMC Reviewed-by: Krzysztof Kozlowski Signed-off-by: Rob Herring (Arm) --- .../devicetree/bindings/mmc/mmc-card.yaml | 20 ++++-------- Documentation/devicetree/bindings/mtd/mtd.yaml | 2 +- .../mtd/partitions/arm,arm-firmware-suite.yaml | 2 -- .../mtd/partitions/brcm,bcm4908-partitions.yaml | 2 -- .../partitions/brcm,bcm947xx-cfe-partitions.yaml | 2 -- .../mtd/partitions/linksys,ns-partitions.yaml | 2 -- .../bindings/mtd/partitions/partitions.yaml | 36 ------------------= ---- .../devicetree/bindings/mtd/ti,davinci-nand.yaml | 4 ++- 8 files changed, 10 insertions(+), 60 deletions(-) diff --git a/Documentation/devicetree/bindings/mmc/mmc-card.yaml b/Document= ation/devicetree/bindings/mmc/mmc-card.yaml index 1d91d4272de0..a61d6c96df75 100644 --- a/Documentation/devicetree/bindings/mmc/mmc-card.yaml +++ b/Documentation/devicetree/bindings/mmc/mmc-card.yaml @@ -32,21 +32,13 @@ properties: =20 patternProperties: "^partitions(-boot[12]|-gp[14])?$": - $ref: /schemas/mtd/partitions/partitions.yaml + type: object + additionalProperties: true =20 - patternProperties: - "^partition@[0-9a-f]+$": - $ref: /schemas/mtd/partitions/partition.yaml - - properties: - reg: - description: Must be multiple of 512 as it's converted - internally from bytes to SECTOR_SIZE (512 bytes) - - required: - - reg - - unevaluatedProperties: false + properties: + compatible: + contains: + const: fixed-partitions =20 required: - compatible diff --git a/Documentation/devicetree/bindings/mtd/mtd.yaml b/Documentation= /devicetree/bindings/mtd/mtd.yaml index bbb56216a4e2..e56dba83f00a 100644 --- a/Documentation/devicetree/bindings/mtd/mtd.yaml +++ b/Documentation/devicetree/bindings/mtd/mtd.yaml @@ -30,7 +30,7 @@ properties: deprecated: true =20 partitions: - $ref: /schemas/mtd/partitions/partitions.yaml + type: object =20 required: - compatible diff --git a/Documentation/devicetree/bindings/mtd/partitions/arm,arm-firmw= are-suite.yaml b/Documentation/devicetree/bindings/mtd/partitions/arm,arm-f= irmware-suite.yaml index 97618847ee35..76c88027b6d2 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/arm,arm-firmware-sui= te.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/arm,arm-firmware-sui= te.yaml @@ -9,8 +9,6 @@ title: ARM Firmware Suite (AFS) Partitions maintainers: - Linus Walleij =20 -select: false - description: | The ARM Firmware Suite is a flash partitioning system found on the ARM reference designs: Integrator AP, Integrator CP, Versatile AB, diff --git a/Documentation/devicetree/bindings/mtd/partitions/brcm,bcm4908-= partitions.yaml b/Documentation/devicetree/bindings/mtd/partitions/brcm,bcm= 4908-partitions.yaml index 94f0742b375c..159b32d12803 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/brcm,bcm4908-partiti= ons.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/brcm,bcm4908-partiti= ons.yaml @@ -17,8 +17,6 @@ description: | maintainers: - Rafa=C5=82 Mi=C5=82ecki =20 -select: false - properties: compatible: const: brcm,bcm4908-partitions diff --git a/Documentation/devicetree/bindings/mtd/partitions/brcm,bcm947xx= -cfe-partitions.yaml b/Documentation/devicetree/bindings/mtd/partitions/brc= m,bcm947xx-cfe-partitions.yaml index 939e7b50db22..3484e06d6bcb 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/brcm,bcm947xx-cfe-pa= rtitions.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/brcm,bcm947xx-cfe-pa= rtitions.yaml @@ -35,8 +35,6 @@ description: | maintainers: - Rafa=C5=82 Mi=C5=82ecki =20 -select: false - properties: compatible: const: brcm,bcm947xx-cfe-partitions diff --git a/Documentation/devicetree/bindings/mtd/partitions/linksys,ns-pa= rtitions.yaml b/Documentation/devicetree/bindings/mtd/partitions/linksys,ns= -partitions.yaml index c5fa78ff7125..02ecb51fcece 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/linksys,ns-partition= s.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/linksys,ns-partition= s.yaml @@ -18,8 +18,6 @@ description: | maintainers: - Rafa=C5=82 Mi=C5=82ecki =20 -select: false - properties: compatible: const: linksys,ns-partitions diff --git a/Documentation/devicetree/bindings/mtd/partitions/partitions.ya= ml b/Documentation/devicetree/bindings/mtd/partitions/partitions.yaml deleted file mode 100644 index 76199506d690..000000000000 --- a/Documentation/devicetree/bindings/mtd/partitions/partitions.yaml +++ /dev/null @@ -1,36 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mtd/partitions/partitions.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Partitions - -description: | - This binding is generic and describes the content of the partitions cont= ainer - node. All partition parsers must be referenced here. - -maintainers: - - Miquel Raynal - -oneOf: - - $ref: arm,arm-firmware-suite.yaml - - $ref: brcm,bcm4908-partitions.yaml - - $ref: brcm,bcm947xx-cfe-partitions.yaml - - $ref: fixed-partitions.yaml - - $ref: linksys,ns-partitions.yaml - - $ref: qcom,smem-part.yaml - - $ref: redboot-fis.yaml - - $ref: tplink,safeloader-partitions.yaml - -properties: - compatible: true - -patternProperties: - "^partition(-.+|@[0-9a-f]+)$": - $ref: partition.yaml - -required: - - compatible - -unevaluatedProperties: false diff --git a/Documentation/devicetree/bindings/mtd/ti,davinci-nand.yaml b/D= ocumentation/devicetree/bindings/mtd/ti,davinci-nand.yaml index ed24b0ea86e5..7619b19e7a04 100644 --- a/Documentation/devicetree/bindings/mtd/ti,davinci-nand.yaml +++ b/Documentation/devicetree/bindings/mtd/ti,davinci-nand.yaml @@ -24,7 +24,9 @@ properties: - description: AEMIF control registers. =20 partitions: - $ref: /schemas/mtd/partitions/partitions.yaml + type: object + required: + - compatible =20 ti,davinci-chipselect: description: --=20 2.51.0 From nobody Sun Feb 8 07:59:46 2026 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 326E53D6677; Wed, 21 Jan 2026 19:57:03 +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=1769025424; cv=none; b=U8EYxP7ju0n1MyLQfgiak9nWL7YAGkFcvHy9HeWLN2CVuzYBQoa3WeUwmgzozdqgEW4D3MZ6m4ijIWgtQ2WBcWceEXKYDjxoalIGKM7rANDNlaf/zInvZ2TogYhFkPd9GwMNbe6pYeUgBwlnfqX7RBlTvoun193/OxsevAyaMjI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769025424; c=relaxed/simple; bh=bA0IrXZIRAmvLVMEUnj2msq0bjns/r0LlSygkXY7W14=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ElySa7p+v6K5x5QsCCW8g27Ayh7ESypHIKrGI/BXVdbCLhLaWEFCwc2xfTAF/nBwdIGD0solDnA6gQXlqtfjWV/BgcfZSNFwPdd6Mgohe6nQ9Wrqua9xtVrz7Q3d44PUvGPW7jUIJ14lrv3NA1KaLb0bSXplawWMa82z6fis+mI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ru4sJb+a; 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="ru4sJb+a" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C862DC4CEF1; Wed, 21 Jan 2026 19:57:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1769025422; bh=bA0IrXZIRAmvLVMEUnj2msq0bjns/r0LlSygkXY7W14=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ru4sJb+aJUJEHhmUlzhvQv36xoUGNyPg+YRCDt4jJBk0qYnPq6baZoCfgzYB3Gl5y owypAn504JSqmytb9A9I7TZ3kSJFtk+2TAsNkRhcdcHOA9VB//gD069/DzpU0/T5Ia MVnIyQcsIvG9+Zq/iEjRC5/D8F3zC9tL1E70um/6I1D/iDKuhkCVrnU9b0INMqoCrh JVUBgg/ATkL2p99x5eDOU8ZUdDqO2idOuBdlFajKBg9M4MTHUKUDvanXewwNMAz8we rK+S8Tb54JolMRoYhafvB1buf6uSML9xfUERS85XoSRCCbEkf8KJdK7PeCVSM5smAX 8yns/iR/aMHcg== From: "Rob Herring (Arm)" Date: Wed, 21 Jan 2026 13:56:40 -0600 Subject: [PATCH v3 07/10] dt-bindings: mtd: Ensure partition node properties are documented 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: quoted-printable Message-Id: <20260121-dt-mtd-partitions-v3-7-ec3af93c8f93@kernel.org> References: <20260121-dt-mtd-partitions-v3-0-ec3af93c8f93@kernel.org> In-Reply-To: <20260121-dt-mtd-partitions-v3-0-ec3af93c8f93@kernel.org> 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 X-Mailer: b4 0.15-dev Partition nodes without a compatible have no restrictions on additional properties. Fix this by ensuring 'unevaluatedProperties' is set when there's no compatible property. If there is a compatible property, then there should be a specific schema for it which will enforce 'unevaluatedProperties'. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/mtd/mtd.yaml | 8 ++------ .../devicetree/bindings/mtd/partitions/fixed-partitions.yaml | 2 +- .../devicetree/bindings/mtd/partitions/partition.yaml | 12 ++++++++= ++++ .../mtd/partitions/tplink,safeloader-partitions.yaml | 2 +- Documentation/devicetree/bindings/mtd/partitions/u-boot.yaml | 2 +- Documentation/devicetree/bindings/mtd/ti,gpmc-onenand.yaml | 2 +- 6 files changed, 18 insertions(+), 10 deletions(-) diff --git a/Documentation/devicetree/bindings/mtd/mtd.yaml b/Documentation= /devicetree/bindings/mtd/mtd.yaml index e56dba83f00a..5a2d06c96c0d 100644 --- a/Documentation/devicetree/bindings/mtd/mtd.yaml +++ b/Documentation/devicetree/bindings/mtd/mtd.yaml @@ -36,12 +36,8 @@ properties: - compatible =20 patternProperties: - "@[0-9a-f]+$": - $ref: partitions/partition.yaml - deprecated: true - - "^partition@[0-9a-f]+": - $ref: partitions/partition.yaml + "(^partition)?@[0-9a-f]+$": + $ref: /schemas/mtd/partitions/partition.yaml#/$defs/partition-node deprecated: true =20 "^otp(-[0-9]+)?$": diff --git a/Documentation/devicetree/bindings/mtd/partitions/fixed-partiti= ons.yaml b/Documentation/devicetree/bindings/mtd/partitions/fixed-partition= s.yaml index 26bef777353d..4d79f786fcd5 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml @@ -33,7 +33,7 @@ properties: =20 patternProperties: "@[0-9a-f]+$": - $ref: partition.yaml# + $ref: partition.yaml#/$defs/partition-node =20 required: - "#address-cells" diff --git a/Documentation/devicetree/bindings/mtd/partitions/partition.yam= l b/Documentation/devicetree/bindings/mtd/partitions/partition.yaml index fe2f7d622e8b..51fd48af55ec 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/partition.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/partition.yaml @@ -149,6 +149,18 @@ then: # This is a generic file other binding inherit from and extend additionalProperties: true =20 +$defs: + partition-node: + type: object + if: + not: + required: [ compatible ] + then: + $ref: '#' + unevaluatedProperties: false + else: + $ref: '#' + examples: - | partitions { diff --git a/Documentation/devicetree/bindings/mtd/partitions/tplink,safelo= ader-partitions.yaml b/Documentation/devicetree/bindings/mtd/partitions/tpl= ink,safeloader-partitions.yaml index a24bbaac3a90..40e6eaab03ce 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/tplink,safeloader-pa= rtitions.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/tplink,safeloader-pa= rtitions.yaml @@ -38,7 +38,7 @@ properties: =20 patternProperties: "^partition-.*$": - $ref: partition.yaml# + $ref: partition.yaml#/$defs/partition-node =20 required: - partitions-table-offset diff --git a/Documentation/devicetree/bindings/mtd/partitions/u-boot.yaml b= /Documentation/devicetree/bindings/mtd/partitions/u-boot.yaml index 327fa872c001..d51bdcb7e585 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/u-boot.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/u-boot.yaml @@ -29,7 +29,7 @@ properties: =20 patternProperties: "^partition-.*$": - $ref: partition.yaml# + $ref: partition.yaml#/$defs/partition-node =20 unevaluatedProperties: false =20 diff --git a/Documentation/devicetree/bindings/mtd/ti,gpmc-onenand.yaml b/D= ocumentation/devicetree/bindings/mtd/ti,gpmc-onenand.yaml index 7d3ace4f5505..8db991dee7eb 100644 --- a/Documentation/devicetree/bindings/mtd/ti,gpmc-onenand.yaml +++ b/Documentation/devicetree/bindings/mtd/ti,gpmc-onenand.yaml @@ -36,7 +36,7 @@ properties: =20 patternProperties: "@[0-9a-f]+$": - $ref: /schemas/mtd/partitions/partition.yaml + $ref: /schemas/mtd/partitions/partition.yaml#/$defs/partition-node =20 allOf: - $ref: /schemas/memory-controllers/ti,gpmc-child.yaml --=20 2.51.0 From nobody Sun Feb 8 07:59:46 2026 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 65C193F075E; Wed, 21 Jan 2026 19:57:05 +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=1769025425; cv=none; b=o/3SZvpg6A9Vv3Y8CZonyAVQONAWglkdQ1g1/xECK+jwZqOQu3cVeKRFFngCjtbCgf/6Psaw9lSRXjHpOAL17s+P9s6lnutiDmC+w3P3FfXvFWvAOgoGMevVRmzWoQkyFV7PZhK+sgUCi61WkcQCf4AZ6CRgy9zpIeidl3vrF68= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769025425; c=relaxed/simple; bh=hqmmibdeyEIA8HNBIkJ+3aEvL37E5fI2EktVUAcmCS8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qbWqlXd28PDEV3CGBFMFqJ6zyDXHeNoILgDXa5hQNXXKLOjGMEOpHOiddBZ9rkryVqBsbti6A1TUi8pQ8l0LGLznSBIyYunZ0/JBI04q+wiCjWF4b+Dq0x2Fj9/unP6EEv5LC9bLJg+PpXYdmIYrgMCn6duD4ZtYQJw4HR3MXhQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IsPbwjxS; 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="IsPbwjxS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2C94C19422; Wed, 21 Jan 2026 19:57:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1769025423; bh=hqmmibdeyEIA8HNBIkJ+3aEvL37E5fI2EktVUAcmCS8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=IsPbwjxSd8RkF1rK+DN5NR3Dxc/glKA9poYj4V9fJePMCs72ej85Qz6wuvWWxYf3A PWspl3Y9vXmkrv3hBB3/ZylxG60kOzFb69XezwvGygIOr2K6vQyejy299ovegD0OLf mFCUwl3f9ANqvonrsuW0DsI3ZU4sRwxW4qPCnL5SEHDFjW573AHeg0EGwwPDFst5TF /JsrDZ8MIjBloxT8ZAjbDfkIMuX+0hJCpJsIu/KCYN6ebheMyeXTEJhVb0sTkM+r73 Ok71EmZTy95s2V9kD9bYTqNpwh2AN2NNYEbXBO0jj6iFChMtdVqTCe9YTHDK5MbSw0 bSdp2Ton2B20g== From: "Rob Herring (Arm)" Date: Wed, 21 Jan 2026 13:56:41 -0600 Subject: [PATCH v3 08/10] dt-bindings: mtd: fixed-partitions: Restrict undefined properties 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: quoted-printable Message-Id: <20260121-dt-mtd-partitions-v3-8-ec3af93c8f93@kernel.org> References: <20260121-dt-mtd-partitions-v3-0-ec3af93c8f93@kernel.org> In-Reply-To: <20260121-dt-mtd-partitions-v3-0-ec3af93c8f93@kernel.org> 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 X-Mailer: b4 0.15-dev The fixed-partitions schema allowed undefined properties in order to avoid warnings when there are nested fixed-partitions. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Rob Herring (Arm) --- .../devicetree/bindings/mtd/partitions/fixed-partitions.yaml | 7 +++= ++-- Documentation/devicetree/bindings/mtd/partitions/partition.yaml | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/mtd/partitions/fixed-partiti= ons.yaml b/Documentation/devicetree/bindings/mtd/partitions/fixed-partition= s.yaml index 4d79f786fcd5..984823108f9c 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml @@ -39,7 +39,11 @@ required: - "#address-cells" - "#size-cells" =20 -additionalProperties: true +# fixed-partitions can be nested +allOf: + - $ref: partition.yaml# + +unevaluatedProperties: false =20 examples: - | @@ -115,7 +119,6 @@ examples: compatible =3D "fixed-partitions"; label =3D "calibration"; reg =3D <0xf00000 0x100000>; - ranges =3D <0 0xf00000 0x100000>; #address-cells =3D <1>; #size-cells =3D <1>; =20 diff --git a/Documentation/devicetree/bindings/mtd/partitions/partition.yam= l b/Documentation/devicetree/bindings/mtd/partitions/partition.yaml index 51fd48af55ec..2397d97ecac5 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/partition.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/partition.yaml @@ -144,7 +144,7 @@ if: then: properties: $nodename: - pattern: '^partition-.*$' + pattern: '^partitions?(-.+)?$' =20 # This is a generic file other binding inherit from and extend additionalProperties: true --=20 2.51.0 From nobody Sun Feb 8 07:59:46 2026 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 655E13EDACF; Wed, 21 Jan 2026 19:57:05 +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=1769025425; cv=none; b=lJONfBm6JF7FNKEeBfKevdO/deF8RdkDUMhf+6otq6/Z6vI14aAWdRbWjQ5oct2baVmHlHfgo3xPGHEcmZHvT5hb/XfGkVSCbmPkQxy8PYS8Ag2FljwIfl3m2wkt11HYEEwEbPr2zglpGvmF62XwISLJHlDsaDIJllK1JOrd2og= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769025425; c=relaxed/simple; bh=6bTsyC3swP6BR3RHzzbYpQ94rLBiUEN72oKtqXPZ8W8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=A9RLx/BnxQO9XxECrZkO69dJdusuMUBHGlUUAuRuDC5Os721HYY8hmn48nQBz/l7x3UpE2uYdN7fhU1xQgxHOxPsNjaJue6nOE7y03ObA/vu7o5R5D4e60ZpqIvQ+6voyttRNHiuMkSvfiEBgwQ26EqI7k/tmRdyU2CHAc8f4sQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fLKlHWEl; 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="fLKlHWEl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6790C19425; Wed, 21 Jan 2026 19:57:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1769025424; bh=6bTsyC3swP6BR3RHzzbYpQ94rLBiUEN72oKtqXPZ8W8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=fLKlHWElS6KV5noT9celW8c9chnO/ITX63bCA5Jj09AvgEpCkgJNcEutmeh5Ldpie X0rGMIcla8T/zuACAO353ZQieDjXEFcmpyv41BADOkB6iEqF9uowmbuZh7tHubszkW UQwLAq9SiJoqNu6gj/RFoAvdYpMEKDJfVfUiGwpRqeEB373KCHleSIBs5zjMq7Yc7A bmdZLFjOEK4nUe/W6RgaZxVYuAMVt9JHhAG/kmDFXrt7S3SXbA1L1vl6Aw0oy9mHjH zNQIWM1ZtYDAdszswSpGteu+UNBS4sc39qvyXjhkCHTGQ9xuLiOAABmZZBX3EbjJPg FZHpjLFIVNT7g== From: "Rob Herring (Arm)" Date: Wed, 21 Jan 2026 13:56:42 -0600 Subject: [PATCH v3 09/10] dt-bindings: mtd: partitions: Convert brcm,trx to DT schema 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: quoted-printable Message-Id: <20260121-dt-mtd-partitions-v3-9-ec3af93c8f93@kernel.org> References: <20260121-dt-mtd-partitions-v3-0-ec3af93c8f93@kernel.org> In-Reply-To: <20260121-dt-mtd-partitions-v3-0-ec3af93c8f93@kernel.org> 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 X-Mailer: b4 0.15-dev Convert the brcm,trx partition binding to DT schema format. As the "linksys,ns-firmware" compatible also uses "brcm,trx" as a fallback, move it to the converted binding. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Rob Herring (Arm) --- .../bindings/mtd/partitions/brcm,trx.txt | 42 -------------- .../bindings/mtd/partitions/brcm,trx.yaml | 65 ++++++++++++++++++= ++++ .../mtd/partitions/linksys,ns-partitions.yaml | 8 +-- 3 files changed, 66 insertions(+), 49 deletions(-) diff --git a/Documentation/devicetree/bindings/mtd/partitions/brcm,trx.txt = b/Documentation/devicetree/bindings/mtd/partitions/brcm,trx.txt deleted file mode 100644 index c2175d3c82ec..000000000000 --- a/Documentation/devicetree/bindings/mtd/partitions/brcm,trx.txt +++ /dev/null @@ -1,42 +0,0 @@ -Broadcom TRX Container Partition -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D - -TRX is Broadcom's official firmware format for the BCM947xx boards. It's u= sed by -most of the vendors building devices based on Broadcom's BCM47xx SoCs and = is -supported by the CFE bootloader. - -Design of the TRX format is very minimalistic. Its header contains -identification fields, CRC32 checksum and the locations of embedded partit= ions. -Its purpose is to store a few partitions in a format that can be distribut= ed as -a standalone file and written in a flash memory. - -Container can hold up to 4 partitions. The first partition has to contain a -device executable binary (e.g. a kernel) as it's what the CFE bootloader s= tarts -executing. Other partitions can be used for operating system purposes. Thi= s is -useful for systems that keep kernel and rootfs separated. - -TRX doesn't enforce any strict partition boundaries or size limits. All -partitions have to be less than the 4GiB max size limit. - -There are two existing/known TRX variants: -1) v1 which contains 3 partitions -2) v2 which contains 4 partitions - -There aren't separated compatible bindings for them as version can be triv= ialy -detected by a software parsing TRX header. - -Required properties: -- compatible : (required) must be "brcm,trx" - -Optional properties: - -- brcm,trx-magic: TRX magic, if it is different from the default magic - 0x30524448 as a u32. - -Example: - -flash@0 { - partitions { - compatible =3D "brcm,trx"; - }; -}; diff --git a/Documentation/devicetree/bindings/mtd/partitions/brcm,trx.yaml= b/Documentation/devicetree/bindings/mtd/partitions/brcm,trx.yaml new file mode 100644 index 000000000000..71458b2c05fe --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/partitions/brcm,trx.yaml @@ -0,0 +1,65 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mtd/partitions/brcm,trx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom TRX Container Partition + +maintainers: + - Hauke Mehrtens + - Rafa=C5=82 Mi=C5=82ecki + +description: > + TRX is Broadcom's official firmware format for the BCM947xx boards. It's= used by + most of the vendors building devices based on Broadcom's BCM47xx SoCs an= d is + supported by the CFE bootloader. + + Design of the TRX format is very minimalistic. Its header contains + identification fields, CRC32 checksum and the locations of embedded part= itions. + Its purpose is to store a few partitions in a format that can be distrib= uted as + a standalone file and written in a flash memory. + + Container can hold up to 4 partitions. The first partition has to contai= n a + device executable binary (e.g. a kernel) as it's what the CFE bootloader= starts + executing. Other partitions can be used for operating system purposes. T= his is + useful for systems that keep kernel and rootfs separated. + + TRX doesn't enforce any strict partition boundaries or size limits. All + partitions have to be less than the 4GiB max size limit. + + There are two existing/known TRX variants: + 1) v1 which contains 3 partitions + 2) v2 which contains 4 partitions + + There aren't separated compatible bindings for them as version can be tr= ivially + detected by a software parsing TRX header. + +properties: + compatible: + oneOf: + - items: + - const: linksys,ns-firmware + - const: brcm,trx + - const: brcm,trx + + brcm,trx-magic: + description: TRX magic, if it is different from the default magic. + $ref: /schemas/types.yaml#/definitions/uint32 + default: 0x30524448 + +required: + - compatible + +allOf: + - $ref: partition.yaml# + +unevaluatedProperties: false + +examples: + - | + flash { + partitions { + compatible =3D "brcm,trx"; + }; + }; diff --git a/Documentation/devicetree/bindings/mtd/partitions/linksys,ns-pa= rtitions.yaml b/Documentation/devicetree/bindings/mtd/partitions/linksys,ns= -partitions.yaml index 02ecb51fcece..61d7e701b110 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/linksys,ns-partition= s.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/linksys,ns-partition= s.yaml @@ -30,13 +30,7 @@ properties: =20 patternProperties: "^partition@[0-9a-f]+$": - $ref: partition.yaml# - properties: - compatible: - items: - - const: linksys,ns-firmware - - const: brcm,trx - unevaluatedProperties: false + $ref: partition.yaml#/$defs/partition-node =20 required: - "#address-cells" --=20 2.51.0 From nobody Sun Feb 8 07:59:46 2026 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 BCD5940FD90; Wed, 21 Jan 2026 19:57:06 +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=1769025426; cv=none; b=aDx5G2hFkghnEwKDXo5SVJQ6ddB2BllZcsunofzcS3WN+7oH7yTeRdaW/0xcJ42aF0Q20Z11ggx5NEKo91okiqXmHyxde6YE8yY3vxR59NBDASLjsesJaXqhmt92BZxjc8ZvMOZCZy1YJgRKYZX10GNRucymwsNntz/MLzN+tzQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769025426; c=relaxed/simple; bh=n3Q69h1zMEMSvW5ZzgCOXYmarGF2KajKkMB4dfwSc78=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YdVV3L1bFMKOXIEdg7Eo6s9EmjHIqBGPAdtkJFtMgOFGpUkBqjutQLXTnL1Ii2hOnj04NgMjq0PJZqk/fnuh3OJJcmBxeK6TWM7dOVTqQfIRDerk8ixAxS1lNEefbY6uXO/7RZexZA6Oga3uGl4tQEFctSmGftoU1xJDo0OFXNs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sXC2qbqe; 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="sXC2qbqe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB46CC19422; Wed, 21 Jan 2026 19:57:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1769025425; bh=n3Q69h1zMEMSvW5ZzgCOXYmarGF2KajKkMB4dfwSc78=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=sXC2qbqee3jiXBJd10dUAVH6Ig7P9ZfT09/8pPlRBpSPdtMO+O2UU8i/E0g8rM0eU Wi5poWvJCllNCFdjIYeSI3mnmqdxn/MtG1bgaghlR7QbqCxmkAR7fK6GIAm5ZYePjo cEP2Ulo9ZY5yY/T5XwREtH5ahP8MlPsOAxVwfTbX25fxck7Fd2sgSDd5etXB1dWEwR wDVTK93vBJ3jSuBh1CXMtzdvWBN+lqnFQqEoMTGgMhhSnJombYNzr7Lzbrf6E69FgY htbZcE4D1asYdJYzD+JDpGKMeQSdGyqOW7qSblcWOJv17QAH7YFevnuoB2aWUCxmJv OQVB+M1BTIpqw== From: "Rob Herring (Arm)" Date: Wed, 21 Jan 2026 13:56:43 -0600 Subject: [PATCH v3 10/10] dt-bindings: mtd: partitions: Combine simple partition bindings 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: quoted-printable Message-Id: <20260121-dt-mtd-partitions-v3-10-ec3af93c8f93@kernel.org> References: <20260121-dt-mtd-partitions-v3-0-ec3af93c8f93@kernel.org> In-Reply-To: <20260121-dt-mtd-partitions-v3-0-ec3af93c8f93@kernel.org> 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 X-Mailer: b4 0.15-dev Several partition node bindings are just a compatible plus properties defined in partition.yaml. Move all of these bindings to a single schema file. Signed-off-by: Rob Herring (Arm) --- v3: - Add $ref to partition.yaml for brcm,bcm4908-partitions child nodes --- .../devicetree/bindings/mtd/partitions/binman.yaml | 53 ------------------- .../mtd/partitions/brcm,bcm4908-partitions.yaml | 6 +-- .../mtd/partitions/brcm,bcm963xx-imagetag.txt | 45 ---------------- .../devicetree/bindings/mtd/partitions/seama.yaml | 44 ---------------- .../bindings/mtd/partitions/simple-partition.yaml | 61 ++++++++++++++++++= ++++ MAINTAINERS | 5 -- 6 files changed, 62 insertions(+), 152 deletions(-) diff --git a/Documentation/devicetree/bindings/mtd/partitions/binman.yaml b= /Documentation/devicetree/bindings/mtd/partitions/binman.yaml deleted file mode 100644 index bb4b08546184..000000000000 --- a/Documentation/devicetree/bindings/mtd/partitions/binman.yaml +++ /dev/null @@ -1,53 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mtd/partitions/binman.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Binman entries - -description: | - This corresponds to a binman 'entry'. It is a single partition which hol= ds - data of a defined type. - - Binman uses the type to indicate what data file / type to place in the - partition. There are quite a number of binman-specific entry types, such= as - section, fill and files, to be added later. - -maintainers: - - Simon Glass - -allOf: - - $ref: /schemas/mtd/partitions/partition.yaml# - -properties: - compatible: - enum: - - u-boot # u-boot.bin from U-Boot project - - tfa-bl31 # bl31.bin or bl31.elf from TF-A project - -required: - - compatible - -unevaluatedProperties: false - -examples: - - | - partitions { - compatible =3D "fixed-partitions"; - #address-cells =3D <1>; - #size-cells =3D <1>; - - partition@100000 { - compatible =3D "u-boot"; - reg =3D <0x100000 0xf00000>; - align-size =3D <0x1000>; - align-end =3D <0x10000>; - }; - - partition@200000 { - compatible =3D "tfa-bl31"; - reg =3D <0x200000 0x100000>; - align =3D <0x4000>; - }; - }; diff --git a/Documentation/devicetree/bindings/mtd/partitions/brcm,bcm4908-= partitions.yaml b/Documentation/devicetree/bindings/mtd/partitions/brcm,bcm= 4908-partitions.yaml index 159b32d12803..d9fefb46d2fa 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/brcm,bcm4908-partiti= ons.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/brcm,bcm4908-partiti= ons.yaml @@ -29,11 +29,7 @@ properties: =20 patternProperties: "^partition@[0-9a-f]+$": - $ref: partition.yaml# - properties: - compatible: - const: brcm,bcm4908-firmware - unevaluatedProperties: false + $ref: partition.yaml#/$defs/partition-node =20 required: - "#address-cells" diff --git a/Documentation/devicetree/bindings/mtd/partitions/brcm,bcm963xx= -imagetag.txt b/Documentation/devicetree/bindings/mtd/partitions/brcm,bcm96= 3xx-imagetag.txt deleted file mode 100644 index f8b7418ed817..000000000000 --- a/Documentation/devicetree/bindings/mtd/partitions/brcm,bcm963xx-imaget= ag.txt +++ /dev/null @@ -1,45 +0,0 @@ -Broadcom BCM963XX ImageTag Partition Container -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D - -Some Broadcom BCM63XX SoC based devices contain additional, non discoverab= le -partitions or non standard bootloader partition sizes. For these a mixed l= ayout -needs to be used with an explicit firmware partition. - -The BCM963XX ImageTag is a simple firmware header describing the offsets a= nd -sizes of the rootfs and kernel parts contained in the firmware. - -Required properties: -- compatible : must be "brcm,bcm963xx-imagetag" - -Example: - -flash@1e000000 { - compatible =3D "cfi-flash"; - reg =3D <0x1e000000 0x2000000>; - bank-width =3D <2>; - - partitions { - compatible =3D "fixed-partitions"; - #address-cells =3D <1>; - #size-cells =3D <1>; - - cfe@0 { - reg =3D <0x0 0x10000>; - read-only; - }; - - firmware@10000 { - reg =3D <0x10000 0x7d0000>; - compatible =3D "brcm,bcm963xx-imagetag"; - }; - - caldata@7e0000 { - reg =3D <0x7e0000 0x10000>; - read-only; - }; - - nvram@7f0000 { - reg =3D <0x7f0000 0x10000>; - }; - }; -}; diff --git a/Documentation/devicetree/bindings/mtd/partitions/seama.yaml b/= Documentation/devicetree/bindings/mtd/partitions/seama.yaml deleted file mode 100644 index 4c1cbf43e81a..000000000000 --- a/Documentation/devicetree/bindings/mtd/partitions/seama.yaml +++ /dev/null @@ -1,44 +0,0 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/mtd/partitions/seama.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Seattle Image Partitions - -description: The SEAttle iMAge (SEAMA) partition is a type of partition - used for NAND flash devices. This type of flash image is found in some - D-Link routers such as DIR-645, DIR-842, DIR-859, DIR-860L, DIR-885L, - DIR890L and DCH-M225, as well as in WD and NEC routers on the ath79 - (MIPS), Broadcom BCM53xx, and RAMIPS platforms. This partition type - does not have children defined in the device tree, they need to be - detected by software. - -allOf: - - $ref: partition.yaml# - -maintainers: - - Linus Walleij - -properties: - compatible: - const: seama - -required: - - compatible - -unevaluatedProperties: false - -examples: - - | - partitions { - compatible =3D "fixed-partitions"; - #address-cells =3D <1>; - #size-cells =3D <1>; - - partition@0 { - compatible =3D "seama"; - reg =3D <0x0 0x800000>; - label =3D "firmware"; - }; - }; diff --git a/Documentation/devicetree/bindings/mtd/partitions/simple-partit= ion.yaml b/Documentation/devicetree/bindings/mtd/partitions/simple-partitio= n.yaml new file mode 100644 index 000000000000..14f5006c54a8 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/partitions/simple-partition.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mtd/partitions/simple-partition.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Simple partition types + +description: + Simple partition types which only define a "compatible" value and no cus= tom + properties. + +maintainers: + - Rafa=C5=82 Mi=C5=82ecki + - Simon Glass + +allOf: + - $ref: partition.yaml# + +properties: + compatible: + oneOf: + - const: brcm,bcm4908-firmware + description: + Broadcom BCM4908 CFE bootloader firmware partition + + - const: brcm,bcm963xx-imagetag + description: + The BCM963XX ImageTag is a simple firmware header describing the + offsets and sizes of the rootfs and kernel parts contained in the + firmware. + + - const: seama + description: + The SEAttle iMAge (SEAMA) partition is a type of partition used = for + NAND flash devices. This type of flash image is found in some D-= Link + routers such as DIR-645, DIR-842, DIR-859, DIR-860L, DIR-885L, D= IR890L + and DCH-M225, as well as in WD and NEC routers on the ath79 (MIP= S), + Broadcom BCM53xx, and RAMIPS platforms. This partition type does= not + have children defined in the device tree, they need to be detect= ed by + software. + + - const: u-boot + description: > + u-boot.bin from U-Boot project. + + This corresponds to a binman 'entry'. It is a single partition w= hich holds + data of a defined type. + + Binman uses the type to indicate what data file / type to place = in the + partition. There are quite a number of binman-specific entry typ= es, such as + section, fill and files, to be added later. + + - const: tfa-bl31 + description: > + bl31.bin or bl31.elf from TF-A project + + This corresponds to a binman 'entry'. It is a single partition w= hich holds + data of a defined type. + +unevaluatedProperties: false diff --git a/MAINTAINERS b/MAINTAINERS index c856aed83bb0..c3087c282ee3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4403,11 +4403,6 @@ F: Documentation/filesystems/bfs.rst F: fs/bfs/ F: include/uapi/linux/bfs_fs.h =20 -BINMAN -M: Simon Glass -S: Supported -F: Documentation/devicetree/bindings/mtd/partitions/binman* - BITMAP API M: Yury Norov R: Rasmus Villemoes --=20 2.51.0