From nobody Sun Feb 8 15:25:22 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 23DAB24DCEB; Tue, 20 Jan 2026 01:48: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=1768873738; cv=none; b=D0u0BNgO6Wr+iG/H7GVLfIXScr4ak0pRCj74OV842MF7JpZaloeUJU3nrZBrAeQsleEg9b8ydtA2uU+ifvE6j7Vq9+1t0rx3ej0c7xhc4ACa2s9Cjd/lHLK0Dgdv0loxcYKsCf40LtRMIfzsVXtM93hG3M1YxSGmSAxc2iOvNKE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768873738; c=relaxed/simple; bh=/ZlnKnKx7utqc5wND/d2GRMNuYYpxYnoMehK3GUY9hQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Yt7TU136db/nq3GY7fLJ1/QLGnoL451EGivVQB8mvMJMDeEw0z4vWhTOtWywXSa55CHV+sOki+QOtyg5MfWwGo8pviEzkRs2F700FKQVZszmmltqc8/tmHe2ZP+TMFwlRFXc0w6Akg9Y6Emn1OukuSeyqK0pT2CWX/UCDoOyY/4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jEEJuJlj; 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="jEEJuJlj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B110BC19424; Tue, 20 Jan 2026 01:48:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1768873737; bh=/ZlnKnKx7utqc5wND/d2GRMNuYYpxYnoMehK3GUY9hQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=jEEJuJljiPATumdLNELfSGh7SGdYUJPcXbVE72c0SE+CmKNtyUkkUcwSSI/xF8p8J nIQlT/T/JDUB+L+uusoha0kDwwf2R8Dw4MR+sX+NwKkVeRFi2jt9ZPEtZ2fk198SXJ +7hodq5wcKqUa8qP4OjlULgqBhRU00zCvGqvxdQFk/tFeHClxFByruqorCUCAxLeng tCufp3bTckdf6sPsdwrhN7e5Vn1GReYH3WGkLMtIeLn0UWh3qpToDfeYCpR1/SDHHA 585R1tsBEZjSctmvOMO6THZYJvMLDIe/rvapAvmRvgVonendHKK3sKYH0KdbeVb5P7 WLwlZ47KalCcw== From: "Rob Herring (Arm)" Date: Mon, 19 Jan 2026 19:48:22 -0600 Subject: [PATCH v2 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: <20260119-dt-mtd-partitions-v2-1-77ebb958a312@kernel.org> References: <20260119-dt-mtd-partitions-v2-0-77ebb958a312@kernel.org> In-Reply-To: <20260119-dt-mtd-partitions-v2-0-77ebb958a312@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 15:25:22 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 0C8BB263C8C; Tue, 20 Jan 2026 01:48: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=1768873739; cv=none; b=D9YYzB+yWCMM6JwWDXW7RiHjGW8XXeQr01MOegIJtN+gQ4J/eEi3QEC87ulwSiD/lzjnJ4H/LFXAjNQBxxM2YkdfCrrLT4M0fvAUsxgv1vzJdWl0L3vOyDI2XfDWvS5tYG7IT1yO8VjmdN13IFBCgfIzsmWncrivdd85Eq/d2rk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768873739; c=relaxed/simple; bh=g/uMQusRPTzXLgyH55SF2Z0Ew27f2Lx3R56DScAIcKE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lihcEzKmI6+JQHJBDL0wmcR9X2WAi8dcIMeBja92qZ+vp9aq0JCsTyW1tjD117CImJ+OFTOyIc340xkL3dq66WCfHxUlLrF0664G9tdRcWgAPeon3VPGdM74LpnhT0UdYgENnF1IYXjhmhEjspRNvBf1HjR9tzorwXX0zqsiadc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ncyo4giv; 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="Ncyo4giv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C09D0C116C6; Tue, 20 Jan 2026 01:48:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1768873738; bh=g/uMQusRPTzXLgyH55SF2Z0Ew27f2Lx3R56DScAIcKE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Ncyo4giv2phgkfri7JiliRauLyWNGyPHeJ7eBayc+j+tixYyhVmHowa/m4lPQ1UH1 5LpZkYZ/yBich6u93+kfAo9UaIPDemKL4XZX4mlpbf2NfCFeKBdRn/B3aLX0/ptu8c k0rviGH3w/irU75dZ1gyGKjIMQiv9SeWr1oyQLgvjs9MnfjsZ79a5YE5XWZdGGCgid QC9Fy4buIEv5Aw+XF7ZZUy+OXXBpkvm10vpB5eHf0SVE3uxpe2qLONpFFeb2bKZxG7 mm4dyEo2nU94gC8AXqsWaqPIStNQIPoN3BCJuW5Q85oUxzyFLvXfgFvImwhAER7nUm xOD7dw562bH2g== From: "Rob Herring (Arm)" Date: Mon, 19 Jan 2026 19:48:23 -0600 Subject: [PATCH v2 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: <20260119-dt-mtd-partitions-v2-2-77ebb958a312@kernel.org> References: <20260119-dt-mtd-partitions-v2-0-77ebb958a312@kernel.org> In-Reply-To: <20260119-dt-mtd-partitions-v2-0-77ebb958a312@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 15:25:22 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 4CB2C1917CD; Tue, 20 Jan 2026 01:49: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=1768873742; cv=none; b=qBa3gyV5PmP1hAymNQKiEbul0yFiADXBh1SZ9jr/jf685AdFedPRXobjYmT7DZUjL2cO4wU6uFlhaLi6WQnoaxDy0nD/+aY5IiOpv60R8UBesqmKtQ+wb2rVdJoH7024gUJK0qcyUxNtoP2HC5uCkG0EyW07vqDsIH7vR3Uwo9E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768873742; c=relaxed/simple; bh=q5vfvsNNHukkTxi4H/nQ+vW1T6KSyihaVNfG3gXPrN0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=fzS6N4fvNyr5cTEU5OrqZO2J4Lwc+kEBS6wyTY2WDhKec3uIPpQ20RqMvTQYXS5d3OVnQ/agAQJFYXaARDHC1ioU1lSZc2aqrIMyqZ834j/kp7k3yShD9D4cezC3c3/qhbJ/x2zPWQ0aqIoPp2iiYkVE8OvPKMjKj8hDgSOLkS4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=I45RNspJ; 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="I45RNspJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C38FDC19424; Tue, 20 Jan 2026 01:48:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1768873739; bh=q5vfvsNNHukkTxi4H/nQ+vW1T6KSyihaVNfG3gXPrN0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=I45RNspJXWYKEUnxcSO2lXzj/5Dpg58vxrK9SloidKD84/a91jUkJthgia9PzoW6P 1dL6PyCAAYSjVM1I6qSDE+A2crfQRVV7rhOJpnNobv4r8xWVmAI/0RvAoo9LoVHz4s GsQDli82LH6Ag7uP7sZ0QI4UK2PxcFxXoYDW533wXG7PO+Vqc0VAT+tdWcIRNZSWkR bMWRQ7vJdWU8+nlD/RPMgQDYZvBDiiOgXygh+HNGvuPEyqAP5RR05WMw1Sj9SQsYtm lUQym+h0eJzPW6Mlgbr8WPnrURXoYwz2Pyqi/xOdObN8vLhLCGv1ubosh+lkRchRaN 7k+m504I1UEVA== From: "Rob Herring (Arm)" Date: Mon, 19 Jan 2026 19:48:24 -0600 Subject: [PATCH v2 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: <20260119-dt-mtd-partitions-v2-3-77ebb958a312@kernel.org> References: <20260119-dt-mtd-partitions-v2-0-77ebb958a312@kernel.org> In-Reply-To: <20260119-dt-mtd-partitions-v2-0-77ebb958a312@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 15:25:22 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 3341C21CC62; Tue, 20 Jan 2026 01:49: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=1768873744; cv=none; b=llayaBzaMMknw9T33Lpn7AbhyUhwhPiBPzCyqel36mEnGLUArxsI17RAJPqsIMd2Cun7tveeSoM986UNy0ocqEW/xIVND/NV0Ffm4cKbRkDeyTPCsEWIPLWAHS65RJVRpxJDrvhew+7HVPviIE3WOy/LMOlGuvvatyPHZCMbCZo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768873744; c=relaxed/simple; bh=OsjbooI0PzsSGUgngyI7clHgsjttkcXNF84NTeIQn64=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YZEGtaed1ZyEl6SFzdMqWdb2g0jGE/T5cqvKzG9WGg0ihmu7NvB+s4w+Zhgr+0csNnuVKV4098xVXddSTsYRo5OStTjPJQBK64ZEpajyoS3YKTCPE5pVx+KMJGMAIzhOsK3CLwZ+eGZ37gGuxUr5VArKU97VIOpoBASpQmbOprI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WMyU05kf; 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="WMyU05kf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4D7CC2BC86; Tue, 20 Jan 2026 01:49:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1768873740; bh=OsjbooI0PzsSGUgngyI7clHgsjttkcXNF84NTeIQn64=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=WMyU05kfD6wMw3HNL51ohB+EWjX6Q11jMpErJ66tyqDx823smK+VyGSYwd0lpHM1j yHmOPy0SxO1gU5B9Kh38d4kr9FSMTCz6aHhNK0cQdsq/Ewr7K/eG80QD96swb0Jpa5 t4m1hdz5rTUxD49SBS2HEs0nq1az6+Bh7ek3qTzV2+x3Sjbl90xU6MecvMMUjheopH n3j4OvlvWVk5s1A1gqL6D0K8od0q2PM2JgFPgd3zUab7VHsCnsHoHI60iBWG1hcuRF AT467ptvtQYTmK+LT7EOEeEtpyKl7T+PkmDvF+f5+DxhIe0cUaw5UU/LpHULSBxA1K HKgtKUhDaQJaQ== From: "Rob Herring (Arm)" Date: Mon, 19 Jan 2026 19:48:25 -0600 Subject: [PATCH v2 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: <20260119-dt-mtd-partitions-v2-4-77ebb958a312@kernel.org> References: <20260119-dt-mtd-partitions-v2-0-77ebb958a312@kernel.org> In-Reply-To: <20260119-dt-mtd-partitions-v2-0-77ebb958a312@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 15:25:22 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 3937D29DB64; Tue, 20 Jan 2026 01:49: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=1768873748; cv=none; b=e7kfGrcRbexvfgZfxPeJr3H6MFRr7PreiE85GNQNPgEI/9LdGqYmwgBxKCLg7RQ83RMTxKvhyiG+yvfEc6y5EkD0TgyFcyJE9s0aF6I2waeA86RLHJDt7SWqIX+686BG3+PR0BhRsIuLFIaMLuvVLl2KWHT0jhOy1iWVo8vxUnI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768873748; c=relaxed/simple; bh=VzyB3Sqk9o+hcLkpFFFmVEc5a4M2ouj/OHzJ3QrwqD8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=of30gu1ntw0vCt2mjE8LY2m2NHpYUNUMNWr4ZxAc+iXMhXtlE+nDDnE8oot4zlYxEUb41JWFcE+nIESfai5Pnh972gnf3idE44eSrAtOM2aI4/u83g1iUDSFUdoVqSgBQqJbJLz0gbyeWe2jScvECycF8Ze2mOrpflF7jjTEmUs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NpBfhL9I; 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="NpBfhL9I" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB6ABC16AAE; Tue, 20 Jan 2026 01:49:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1768873741; bh=VzyB3Sqk9o+hcLkpFFFmVEc5a4M2ouj/OHzJ3QrwqD8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=NpBfhL9IcyNxS5y2b8VewOF9RgOioarlWc4+wuFcd5a78+AGmvwx9gANDTEb5axHg u9zmPJpqRjEWBKD+mwNca/siGGcMMblZMyO6QCbM09kO0zUpqGJPcjtswsTC+6P78P FoTyAQmRdUWrLs5IaM1sh7qaJJItyyToqMX45ZmzPE/LS5CZHA+p5FoInE6WO/nReP 0szQwbsw9JNAYtVGnqLHs4hvj2Sa9mDn0oM24SPwEWH5nDgqTy1BokF7Jb31240sWE OaELpbM6vcGKssKvAN/PQw3tD8XGiy/KnQoA32fcsBvjpYH/qZ1G3aKeJnN5WIcoKc GudGW/aph/CcA== From: "Rob Herring (Arm)" Date: Mon, 19 Jan 2026 19:48:26 -0600 Subject: [PATCH v2 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: <20260119-dt-mtd-partitions-v2-5-77ebb958a312@kernel.org> References: <20260119-dt-mtd-partitions-v2-0-77ebb958a312@kernel.org> In-Reply-To: <20260119-dt-mtd-partitions-v2-0-77ebb958a312@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 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. Signed-off-by: Rob Herring (Arm) Reviewed-by: Krzysztof Kozlowski --- .../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 15:25:22 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 21FD6263C8C; Tue, 20 Jan 2026 01:49: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=1768873743; cv=none; b=DoEIhtsgREFDnnxFhNG/VbyMlTycwkYdH5UGWZOR7ASvNBFe5n7FxkFePD5KKSFJ0AYVt998OX0oGN3moHafRFvbHH6p4+ehoMtOMJKYEE8C4f/jlP7yxRiyAJnz0ZX3AlC0AbOlQu4+kLbXFN+n3pYVdzNJZPOhnaATYn9cCzA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768873743; c=relaxed/simple; bh=u9XogACAWuZoPpTu9SErURhp0C70hFt25CE+G1LBUM8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tj9jut0nPdcx3SY9CtwhQarzRloTNYrSzZLJV+1NTktcdjcA8dKQciv5XU2bgtdbtIgGz0Zasb6Ey67RlnMuRXngAbBRZQMN1t7eTwUilvWMlkcuBl9xY5g1/8mstas+65VB0ga3n34VjUUIRYtogKjUs3KXkxX9FO8o9liUkGY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=E44DkN3y; 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="E44DkN3y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE08CC19424; Tue, 20 Jan 2026 01:49:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1768873743; bh=u9XogACAWuZoPpTu9SErURhp0C70hFt25CE+G1LBUM8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=E44DkN3yIfmRsob8Me4+RPJ4mYIP3bItuwYPU968H6HgpD9nEBDl/DgRRhdLlWQ+U 4d54RXV3BS0aiAs2pGr6jNp64q9/lFiOwhcfqSxisHGbFMG9FL6qjCcDzG4Ip+UOLI 16b7baH2BsV65t0IVSZawSrYrhir5ALfjri9dBhNkq4WIHSUagvSj3fiA4ImcGP6Vk zlacEv68QRKbUUJ3kuK7CkmCMqNhgp7m/mQ6LcvDOmizzskg+JNoIcHuFyYzIsdV3Z hbi2EjqEOFvKUjBgJRJcdFWHYaQCF4d6ecCFcRhfSfmEfTKsKYnB4r2boGqMFL7vTa KtdkLSOPtT4qQ== From: "Rob Herring (Arm)" Date: Mon, 19 Jan 2026 19:48:27 -0600 Subject: [PATCH v2 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: <20260119-dt-mtd-partitions-v2-6-77ebb958a312@kernel.org> References: <20260119-dt-mtd-partitions-v2-0-77ebb958a312@kernel.org> In-Reply-To: <20260119-dt-mtd-partitions-v2-0-77ebb958a312@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 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". Signed-off-by: Rob Herring (Arm) Acked-by: Ulf Hansson # For MMC Reviewed-by: Krzysztof Kozlowski --- .../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 15:25:22 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 2C6092571D7; Tue, 20 Jan 2026 01:49:04 +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=1768873744; cv=none; b=Slkv8tFaD2+t7oG2HqPQ4mGnkO5LyedA1JwLMz7p+QiknmVjN7UPtVbpo4anw+v9+gI2VKXjk8jvywkD2512QnwY2GvB+K8BYDVPGeUud86ViT4/CPflQdWQI+ZJ+x6iDPp3lwrpI6Q15rob1eaBSRkzKPkLmxh2IN5wy37YcU8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768873744; c=relaxed/simple; bh=bA0IrXZIRAmvLVMEUnj2msq0bjns/r0LlSygkXY7W14=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mpVENwjweSBmXIQ8wA/Hdj81I7QPSVhX7am48dOmCoXf3YHOMrEKJACFNG09P2+qAGVRxj/I9NJeCXn168xR7fER3FGbjFX/8L7Jx6DcOZSWGL5iOI1aF+ffHYOBHZj3DAMk29hDPyjqHs8VWOU683brt+kUFiPjwKewlq0QHjk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LFSo0VK8; 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="LFSo0VK8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EDDA8C116C6; Tue, 20 Jan 2026 01:49:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1768873744; bh=bA0IrXZIRAmvLVMEUnj2msq0bjns/r0LlSygkXY7W14=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=LFSo0VK8ZQkQyMtOm1Ln4QZX4JoDeHszql1qkilSoA+STW58kTZF81UEbzAp3AXBi y1RwHvZPqb0x0PtyHNOp1yCci/qaCjS3Gyw6iJwI+Fk7gSGewZ56n4xcOttPRNnhIy B/CDuPjUHHwCy20Q9ngdx5nFdy9l2/AI9nMpv/Z7tKPRDTvxhwztSUxitf6aj8+L/u cWCqSU2T7EpgXpt+pGvwE/+rt9eLtLSXbAWZ+jpQOcwiBYme0Q6JtaJUrWhyncGLvX uil7/PcE3BBte/AkLZDb2MX7jhlnJl9T9SGYeHupZKL4QelV1/5UttRn0c8Wj1OJrn iElVqNHSFeAlQ== From: "Rob Herring (Arm)" Date: Mon, 19 Jan 2026 19:48:28 -0600 Subject: [PATCH v2 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: <20260119-dt-mtd-partitions-v2-7-77ebb958a312@kernel.org> References: <20260119-dt-mtd-partitions-v2-0-77ebb958a312@kernel.org> In-Reply-To: <20260119-dt-mtd-partitions-v2-0-77ebb958a312@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 15:25:22 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 2803C285CB6; Tue, 20 Jan 2026 01:49: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=1768873746; cv=none; b=supilsacqMU3dsbWY8CeRGNMUKACzAjSSmgX2CBIdh1O/2eomLtjxSwf1qFujA6lBcMfDMyboOnA0aR1MSMyXKrWPTQKV+XZOl2/UgawPmHVfBjjLppNb9jVsbzZuNyh2F/5Z1TTnurx4geIHK3aypyhsJAk4MfoydArRzvNWio= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768873746; c=relaxed/simple; bh=/xLQMDY+Z5c201pwV6drsWJD9hut61CKQg2Ohei6ByU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=k9Q4YjegA9a6bAob7jLzOJNHmbi2/BiX4p1kTPlo7AwkiaLyzTAms2Q3LEAGaLJFTBOJIL7M5NXeszTK5sLTxIef7zTho3+fz2ozPCw5aCxC+sZ9A/EWzkW4iNZ6ISEKHtmSVtOt8iIHPJ3EpqKGxqMYp1+lpgk3vneITimyutU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=p1lAb+jD; 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="p1lAb+jD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E84F3C116C6; Tue, 20 Jan 2026 01:49:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1768873745; bh=/xLQMDY+Z5c201pwV6drsWJD9hut61CKQg2Ohei6ByU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=p1lAb+jD/p3Y44MKW3bTvXJ5NYdQMa8AEUSC5uJr1IAxeLOcLRfuu8VWjz7Pb8B0v dmkyYekGm/JrrhZcLt9e3Sp6VY1uYmG5nAkXKq7YOxFTcSh2erkUivaUNhdjWo3k/N oOzaIqfmAwSbEp/iTpvMeUhcuGiz9P5ErYRZRXqH8EtoASk7vORDUfIFqWWLRJOgUW hNqTnLeNrl02C9Rr+Op4CV7Ov/UcaCyMdL+n06rVylYtg975nDJhU3uv+N8BgIUYlc 7vaIZbU0VMcUvHOybwZK7Y9j8Uol8cvpjdTMuUzwRqVI7zgoaNiudzGORTq2VHxeB+ f+M4t3L42kWtA== From: "Rob Herring (Arm)" Date: Mon, 19 Jan 2026 19:48:29 -0600 Subject: [PATCH v2 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: <20260119-dt-mtd-partitions-v2-8-77ebb958a312@kernel.org> References: <20260119-dt-mtd-partitions-v2-0-77ebb958a312@kernel.org> In-Reply-To: <20260119-dt-mtd-partitions-v2-0-77ebb958a312@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 The fixed-partitions schema allowed undefined properties in order to avoid warnings when there are nested fixed-partitions. 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 15:25:22 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 5D840274650; Tue, 20 Jan 2026 01:49: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=1768873748; cv=none; b=YiSdnRxq1mNLbtTG1Je4T2wVz4S9n78mCgJywapPKtNbZUL/nniPEjqAZ8XwD4XFlEyrrT4jXdxVM4Xo8oi3vNC6ntoTAR9ks4dHGcdLcYVDxybAzNB/N8Xw8VbYZjmTlCzbOKMeECcK7KNgd4bMp0jc0wQcWViQwD1S3vhEJIY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768873748; c=relaxed/simple; bh=o179MySf1APoPto2yIG5U1pvyJ0fB8P2TMeBdS62e6w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=I/Rq44twrADckFX+tOxKjIXc24gB4HiRenBAYUo1KGqKasvysomf6g3J8ElCk7d90Gib3IzCWxbm9U5WRwO7JD8UWTtHGLWMHn80g+rCSpLLwWuVlAukKeLMbd/YRSHT/zKSorOGwFzAbwj7KWyw3sA6K6vgsq5ww2Km2/LxgqU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=X2ZHFYY5; 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="X2ZHFYY5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D951BC19424; Tue, 20 Jan 2026 01:49:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1768873746; bh=o179MySf1APoPto2yIG5U1pvyJ0fB8P2TMeBdS62e6w=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=X2ZHFYY5tmlAaCPmN+q2SRGEMqo5f9G74bEdvO8XAC3unxsBMviFi5DMXxGyrAcp8 L7D7FAW7vnWa44eamIafkYQghnMv/a6EsPqkfaEFaGlLPVOx2fS7lk15fN+qkof+Vh 02+kiLkwMcaqFudizihrU1J+ee3u7imJ8I6mbyhMkAT/gyD5JlvwMTSHd/0oV1iOK1 eX7QXn9XZgkmuBC2N7+hity2bgkp4P3R/mZvq0wfw5+vK76YpVigL1GIdF4QzzHcgX W+PJSHduFbIygd2LccUqldcurr3B7IF7y+dmh9EM9477X6J29yIOKxZ6lKF6Vv6NLX HjORT2KaILvSQ== From: "Rob Herring (Arm)" Date: Mon, 19 Jan 2026 19:48:30 -0600 Subject: [PATCH v2 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: <20260119-dt-mtd-partitions-v2-9-77ebb958a312@kernel.org> References: <20260119-dt-mtd-partitions-v2-0-77ebb958a312@kernel.org> In-Reply-To: <20260119-dt-mtd-partitions-v2-0-77ebb958a312@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 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. 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 15:25:22 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 257AF299AA3; Tue, 20 Jan 2026 01:49:07 +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=1768873747; cv=none; b=UEBP4ZvwkIe1aF3h2CSJKd7SLI3y0PRlQe62eabH4iLllbRRrUE7g4nFzJJtoQVuq26BYT9w/FmkSDxDoC60WzcnAFsYzi+9+C9rgn4VUcNQoT/LUA7izuunIeTZ6DCrhTqGW5fln7Fh+oZfW+G3N4giBGLTFxDAG4WnqgjBwlU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768873747; c=relaxed/simple; bh=u8njuo9gBPPAVuFVoNc+/jcJfkp5k0uOtG0VDac+wEw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=o5p0tneMmedmmndOKgZaGAAJFuid/nNYHwE9theOus5C0vCzjvrB6GLC/9fdL3rMONc76iRqDwlXaff/wQjQNn3oN24wceN3L/Bnx9cOWxgMZcwvazbJYTzKSIlcY3sKAnGLRzfIRT9nYoMFFimDSgH/LT5NsyVwMKbqMhqgegk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=EuwXnPBu; 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="EuwXnPBu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CFD79C2BC87; Tue, 20 Jan 2026 01:49:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1768873747; bh=u8njuo9gBPPAVuFVoNc+/jcJfkp5k0uOtG0VDac+wEw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=EuwXnPBuc01R4GPCu3dBZ68OCS2fkiclvOeKWYD4g0SeAeN6E8uuPQR2j1NVBIfAa BlOPjUCf5OlM1jrPCEJsfQIWllJrf3Xj9cahw5Ma8LrraxNEnlJ3gaNJuxXu4Qi1ht JDKz7tCK1Fky9frLxpRHPn6rR73HTKIqfCrBgBMCHeW2JD5wLLHjtQ9gZozyIgSgoH WaMKazqPhELqsgMk7ao1XpOs2RTTqDZ1DoyuRtN3v5VD881Rfhd7Dq16fY8CvN/5jI dPQQszn6U5sWyyY3+QWf/o/aXQbumFNoOpSmrEN+Gwr409kww8UI1zZ6guTnmjXt3h naPDXr3E5KMWQ== From: "Rob Herring (Arm)" Date: Mon, 19 Jan 2026 19:48:31 -0600 Subject: [PATCH v2 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: <20260119-dt-mtd-partitions-v2-10-77ebb958a312@kernel.org> References: <20260119-dt-mtd-partitions-v2-0-77ebb958a312@kernel.org> In-Reply-To: <20260119-dt-mtd-partitions-v2-0-77ebb958a312@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) --- .../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..a6edf145df57 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 + type: object =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