From nobody Sun Feb 8 11:21:28 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 49B542E8DFD; Thu, 8 Jan 2026 17:53:39 +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=1767894819; cv=none; b=PlF9mVPYMX174w1DVyx9i3jbsy7Bl6sfLfaSwDIf09I1AnXFJjPVE5XSMAq+Ycur6GzT64r4BcitJvuSFqmrnVwrmnwZzZiraUKqk7ZqxzXNBC3VacktbjWA5cD8CKDFBRNOdswKkP4x+3uELniaT9VDDZ2XTaVzZbAH5rKzbdI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767894819; c=relaxed/simple; bh=6HFnUhWZUEk2RhQKjWWeyOvTXPTWq/QyXuHiHZxW6SE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XD5Ma81fINWdfDdRcLoEMjX9+En4pPKyhNXoycRl4n2fmRm/n2CU/ZiXoc98D1wz7jx+HsqzcxJ70Bmum+jwTN0ISZK2zbLfikJ4peUskL53JyVXsRVdGn6qchhA5TWASduD9zvSCg5anhHvFYbjgD51d1zqzyQG66IK5vLIjuE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oR53mHtu; 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="oR53mHtu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3951C116C6; Thu, 8 Jan 2026 17:53:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1767894819; bh=6HFnUhWZUEk2RhQKjWWeyOvTXPTWq/QyXuHiHZxW6SE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=oR53mHtuR+WC9a8UxTBOl0S0MXXcm+UnxBwAqixphHrAt9JEv3haRYXjPBWPQtXjF nUFJlqMMkFT81PQHYuX6AdlJrvU69Trlo658AJtnz2tprI48DKqWy/FjCP374CHkEb zk/l05dYUw9ZtbWjtUGuDjlq3At7y8NIP3aevNzhd8DDQG8cTabDGi2AsyOovnz6jN s742reOiRQPzEm++Hu0+2QR10FOxqYz+d7wvc7eauYtL0xavv5Ty6kdYFbTJMizdA2 x4RgllNX/96v50bQpeIL3fGaOcQMJsLd938KjTRIHvPpa6CXXQeXCHnXBpd/0GQH2R 44MIYPIHlGQ+g== From: "Rob Herring (Arm)" Date: Thu, 08 Jan 2026 11:53:10 -0600 Subject: [PATCH 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: <20260108-dt-mtd-partitions-v1-1-124a53ce6279@kernel.org> References: <20260108-dt-mtd-partitions-v1-0-124a53ce6279@kernel.org> In-Reply-To: <20260108-dt-mtd-partitions-v1-0-124a53ce6279@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 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. Signed-off-by: Rob Herring (Arm) Reviewed-by: Krzysztof Kozlowski Reviewed-by: William Zhang --- 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 11:21:28 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 589D82EB5AF; Thu, 8 Jan 2026 17:53:40 +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=1767894820; cv=none; b=AvhkNCphsZjmmu1H7o+g+vmD2+drDnsu2LTmhywZ6bidesqR8LLW5tap5UpsWtVqgQsd84K3/KQGL74q1bu4r+bymHFMvbXbQ8ECBAMcD8DoqK8Ld4iAo0QpAPVgXwPO+0YZY3GtDJgQy5cdNO6UBjs+N6rG6TItzu4h1+YzsE8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767894820; c=relaxed/simple; bh=ugA+9bTKP7viQx4bvjNE6uPV3wSRpbGlQ6T4noR20Pg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=vEysV/NKUqDBTDYD8BOq/nkvL+2wKzVVFU9CNL4lkBp4/ZMCZpPNeps9QQuBB10A24eD8Ih49oBj24xQz3PEYGf2H2IaQccU6KnRC8rb39Sop+DNTUsdt5XjTB2PR9SGAmHMmPFF86D8niswPlorVC1/0tzdWOl7fZYYDmLmxuo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aZdTvL7k; 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="aZdTvL7k" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F058FC16AAE; Thu, 8 Jan 2026 17:53:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1767894820; bh=ugA+9bTKP7viQx4bvjNE6uPV3wSRpbGlQ6T4noR20Pg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=aZdTvL7kKt6kaEBFVE5qpZEXckuIMzXmmjZVHjh2YN8Ovk7zMcsbWzWAizzJK6Nc7 mRKKIHQbU2UqRgANA3dCGZKBHaRVIRFmbDtHt93OOmCmGYyOS3OuI20gGNskRZ0/YF 9kvdcKarMVGz1Pd2qTjIFp0/SRJSRsWM+zN2p4hS8GXcGc4B4bz7wxildWrdsUPCuo C36LYtmX4x8QQ5+7xPabHDCQGCEUDxsOw0j54HpD4ulTfElA62+iC1T38XK0iLfvch ESs2dqw/rfLYCKySMhZqWaedoFRz9QPq203BATdvxt3TvjBHTCv7UGuP6TsEobBVEu 1vv+DkcImao0g== From: "Rob Herring (Arm)" Date: Thu, 08 Jan 2026 11:53:11 -0600 Subject: [PATCH 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: <20260108-dt-mtd-partitions-v1-2-124a53ce6279@kernel.org> References: <20260108-dt-mtd-partitions-v1-0-124a53ce6279@kernel.org> In-Reply-To: <20260108-dt-mtd-partitions-v1-0-124a53ce6279@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 "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") Signed-off-by: Rob Herring (Arm) Reviewed-by: Krzysztof Kozlowski Reviewed-by: Simon Glass --- .../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 11:21:28 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 787BD2E8B9F; Thu, 8 Jan 2026 17:53:41 +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=1767894821; cv=none; b=ZCcHavwBfWZW6z6MTvv4lk2SW+v0QesY/k5i5vxraG7u2E72Fp9teQMb5Z4IADQxONrH8q4ROBX1JSQuiUxGDTcwGfHWPXkjXA2FWudzCW98Tq9t6YVrLZlisYi0uX0NvxKhzWDx+pMvppbt4JibaIurIPatlUWyturGWv7Fzxs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767894821; c=relaxed/simple; bh=7wM7gQcNfjkcg4zQKx49cijiPbPUBHfJqKOeqY2x18c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HX9oODh8eGFAcyb6d3+y1mYfZQGOHoJYIBhqeyXnCfax5Q6SKChHs9IIYGGHg4WJW5gYYNLcHzaJyfX5wz9b7pOH7SQ4piV5geTPCeExFw7PAi+1ZqAKEmhzyzNNd5CjTVsIFXrhP8GoUexAQLwEjgLsmD4k6t4B6ZupUQqlAJE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=cpPynkNd; 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="cpPynkNd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07825C116D0; Thu, 8 Jan 2026 17:53:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1767894821; bh=7wM7gQcNfjkcg4zQKx49cijiPbPUBHfJqKOeqY2x18c=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=cpPynkNdNk9kmyZBTLJRY0+fMNizKS18LJcui3iEe/XzVFHSL8vkGv1QiGbvIZvOo IY9Na9oND6GtKTHaTIfvD4banc3R6rYrxUimBOSn7VeN0ky93N07Z9Ekpy5cE4wOsi JI+mNxdUilA37dnlJN5C8tPNjVJBOe+NXEXjfx6VPh2IVdtHLAIjB0OPMaruzEoAXB eyMNjJv6IJNImtpZo2IOlv1haM/H87rreGBZr3m4z6Z6hul7vyR0ujZKFUKckcZiR8 aIqSmi42+u0d/NVpJTvvEVxdAKuSpjVeEZtVzgoshNVWqITYhSNF0HP6ademptTLxg UoNnQNwApCayA== From: "Rob Herring (Arm)" Date: Thu, 08 Jan 2026 11:53:12 -0600 Subject: [PATCH 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: <20260108-dt-mtd-partitions-v1-3-124a53ce6279@kernel.org> References: <20260108-dt-mtd-partitions-v1-0-124a53ce6279@kernel.org> In-Reply-To: <20260108-dt-mtd-partitions-v1-0-124a53ce6279@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 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. Signed-off-by: Rob Herring (Arm) Reviewed-by: Krzysztof Kozlowski --- .../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 11:21:28 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 522112ECE9D; Thu, 8 Jan 2026 17:53:42 +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=1767894822; cv=none; b=JcGD2fstZPJySS2hh0xhwy8gZjBK8mWmIYthrhnjET+BcYfpu8JUacoPh43r1+U77NP9fGXxTXnJMDJ2hFqpbDsHHA3aQI/L1vF5HBYzlFJrhv8wB/DqqydFyOfvdKuGNVh0G9nZ1t0IOpkXkIu6/ZvT9NDCMgUHBdD3vq7jOJA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767894822; c=relaxed/simple; bh=yhzVtvkMvI4BlC+wimvaT+E0X5KJhQFWtWdpmAh4oCU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cJtcSgjL6e9OSjgBoRdIlGddhZTJnmb/imfGx5DKqYEAjX5GXIKvuZdGejUIxUT2tKS0E9JwMmb3jpsgHWwcIDPL8WI8oMvJEqIKa9oz+5thDNbxiBv55FJmT1xz5/ooLQ3mphL9DwcLxfUo14MkPQ/gj9Uq2vpi2b8YvE7w1Do= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hrPTojfn; 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="hrPTojfn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0CF46C2BCB9; Thu, 8 Jan 2026 17:53:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1767894822; bh=yhzVtvkMvI4BlC+wimvaT+E0X5KJhQFWtWdpmAh4oCU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=hrPTojfnbA6BUQ2nCn+Eco6pHIvwpP713P8KMcdQAkJfar0l4WyF4MARbr/5iQqFc aKuwCqkfqsvL/svapSP7eDK4IYH34WFkC29YDV3Ear0mi/YzpdcGEG2JIp+nGP3MkX D+Uctm+Vy1rbQ9SlYMZkNzVXI43LD2CKnTKljJusQecd5aXdGr0fT6pmV5/pWHgltY SuxH2DQOZ/J4oI+3QbvagUMoWuZ/tqoQE+bBNO9jI1qAgBUmdd4VdXVxhbijuJIU8w 5mb7hppSdIZL0YmPFCAOQqPpMwxzVXs9cpTgji1qpdHYOe8FQc2OuTezljyQkOymQk c64wOv3UdORuQ== From: "Rob Herring (Arm)" Date: Thu, 08 Jan 2026 11:53:13 -0600 Subject: [PATCH 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: <20260108-dt-mtd-partitions-v1-4-124a53ce6279@kernel.org> References: <20260108-dt-mtd-partitions-v1-0-124a53ce6279@kernel.org> In-Reply-To: <20260108-dt-mtd-partitions-v1-0-124a53ce6279@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 An "nvmem-layout" node can be used in any partition node, so add it. Signed-off-by: Rob Herring (Arm) Reviewed-by: Krzysztof Kozlowski --- 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 11:21:28 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 8FF372F1FDA; Thu, 8 Jan 2026 17:53:43 +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=1767894823; cv=none; b=ZKvMaIx/hnwKnaoZ5ob4/4aPe5w7vFjv/vhyU37FR0HmtUimEBzAwUpX31Q4OZ3aS+AOYwvysExq54OcJVkY5begyw81r8Ru+AbMr/1tH+ypiUaCXTeymTEHC+iGias0yhfFJcG4mTZMTfUDWc3n3iuWZ7hCfAfvP5uFwxIIsAU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767894823; c=relaxed/simple; bh=NybYYQFhDpQHAUmXrGSSV36BPz67jaqMd9fSLCbvpN8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KsZeXIEznXuJizYV7wolv6jjiRRLdDhO0yt3WnqE8iJ6cU21oKuS8EAG7KAzsmmatVoD1Fl1XuPHiCsl+OpTApCilmejqP8Em9qnX8OrbuE4YcE6Stkx5mJz6vtFoQ+aUJdFY89XQU42fi06YzEShsChdpF42RLE3uMD2Tb5MBI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ei0wKvGe; 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="ei0wKvGe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01464C19422; Thu, 8 Jan 2026 17:53:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1767894823; bh=NybYYQFhDpQHAUmXrGSSV36BPz67jaqMd9fSLCbvpN8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ei0wKvGePo3aTIWYuDO2bK2KKW2iFfn3CaBTvXVzfCr3NDQyqMkH8GzPxg31Xw+1q RAUE+l8TmuvWNDwLojUwGtKynHCBp37M7siBiwLBA90LObzQGRzn5eBoYvwISLgA04 zqLl7YAX/6Mn6Lidm7lJhDofrU0J65a05DcMl9RPwuA/cE3Xfd/VCkmTyaK2gMq4Rv 43W0oopf1UuoR2G/YLFg1PL9e7g8+k5Hh83ACmQ1FFuvywAYeyPXNhLXBO6yAfbTbz tplYapwuY8+d2QIuf/JKPY2cnWGoT84A0AZ4EU7YyIEwEbRvXVy8cmVIiZhWOhA6Vd /NWR2wyRf6iZw== From: "Rob Herring (Arm)" Date: Thu, 08 Jan 2026 11:53:14 -0600 Subject: [PATCH 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: <20260108-dt-mtd-partitions-v1-5-124a53ce6279@kernel.org> References: <20260108-dt-mtd-partitions-v1-0-124a53ce6279@kernel.org> In-Reply-To: <20260108-dt-mtd-partitions-v1-0-124a53ce6279@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) --- .../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 e3978d2bc056..dc6421150c84 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 11:21:28 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 6977F2F6921; Thu, 8 Jan 2026 17:53:44 +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=1767894824; cv=none; b=EuKuH7jiWRGAID17RGrjj03d914K0NyyeB63T/nSx9hGXS+KRdJI6dENPEt0TW5W5e3wy0zBXorYETDyjoT87ByBoNhy8SNurb6//P2g+KJQn38y6YfYTizX9QFejqok0MVumb34IxI9rvxzlPROp8CuJiegdhdlmpLA4HCbAeI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767894824; c=relaxed/simple; bh=lUNIN0XoCUOF2F73xvfV7xbbCcqdqmvMqSrqv9berDc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=t+YpHipOGyBIDYw8nwFPQ+uU2no5ChSBhZWVFJeSJwW+VtTgazuq7Gk1hbl4t6LBKUxuqFZJb9J+AAmHbyGDkbp3zfb8mj6Wfw3s0N1CwbSQNGGFIiNloZgglEhN1PFHZrFB62sNmEvu38lsSmUx+egMa9OducvfCtesP/E1zzY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=I6xgCKdF; 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="I6xgCKdF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0F14C4AF09; Thu, 8 Jan 2026 17:53:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1767894824; bh=lUNIN0XoCUOF2F73xvfV7xbbCcqdqmvMqSrqv9berDc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=I6xgCKdFzABhYvUsxvCriCmVJY8lS1a4GUgQkn5eRoC6JG3oukwA8jNOtJl2BxyE8 qnS5E9F3w5aHx90CRkZEUbO8f9/qF+tDpoK14Bz0HeP669WKvJAu90zxUW34n7ORxj 0bggzpXyVXb8pSAqHBVRRhfY+gB5hCa59VE6UZOy8q/qAAN4ZPBJQR2NZhXXQdkRty 8hFZsm6foCe/63Mpxw7ZnuLnEieZREPKiHXXVJdyPEWHnjke2U8FjCuuiUYcJyZnvt lmuvAVgPLI54vCZZ27HL363KOEcvTtREgNKgXvvo8CP67dzY4r1kREBC0TaSYqKiDA QuucSBMGwg1Ug== From: "Rob Herring (Arm)" Date: Thu, 08 Jan 2026 11:53:15 -0600 Subject: [PATCH 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: <20260108-dt-mtd-partitions-v1-6-124a53ce6279@kernel.org> References: <20260108-dt-mtd-partitions-v1-0-124a53ce6279@kernel.org> In-Reply-To: <20260108-dt-mtd-partitions-v1-0-124a53ce6279@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) --- .../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 e9b1a6869910..d4b6013aefcc 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 11:21:28 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 271C22ECE9D; Thu, 8 Jan 2026 17:53:45 +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=1767894825; cv=none; b=YUnUqM8yH5lsyu24jlSeElztGW489bfAQYsXGRv2HxagUa9R3LY436Ngpyn4KVksChDDoAEuFMKjEn6yjSWKmHboQzw+u1+O31IQ9DooHhxqsYJiSYDjqaOGLk+m8ys9gDn+bnBv6NWIbazOyjpuVxyyoHmEBwKzNtCaP8bSDR0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767894825; c=relaxed/simple; bh=fSFFqBjSxmW6GjXDFPoquLzIaZS4HePaiQdXXsrYlE8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=u9u0wXxQyTZbl6IPrL9FCzg0i+14UlZsIEGiNddB3d5w81GeQ5Cg5r4P/NeWtzGyUGFyChYTMSOqu3IMwQfwHea7rX2ieXVExXy5g07D2gLzZvzGZWlMnc7iE7PWVXCqUVEbcnX1JC63fUkGLro8Vvifb5t7ae6e0HUDKZilRhI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jGh6A2+u; 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="jGh6A2+u" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2F2EC2BCB0; Thu, 8 Jan 2026 17:53:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1767894825; bh=fSFFqBjSxmW6GjXDFPoquLzIaZS4HePaiQdXXsrYlE8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=jGh6A2+u5nsJXjQ+fzgDDdzvC9frMZdMIvyH0bUHl4Xth0CWs9n2x6YJhywVP3hLb 3EUNIV1rClzM28yE3yggl9KK6CaiceWaZlqIxmr4Ccib6Q/qmkief/jHriAEsahbLF /SqGrRvwgnCMpQmkMx6dBx1YK8tyq0jHT9LYcMWJldWEu7Bo/FhEnhtbV6nNXl5FX6 Ujjz68snNWp5DpDfIko7EnXZGgKFZEW9jlvvWCbG9q8Q38RSKfxiClyqKT8FVinxVa /8eLeK9SNLnio5D8Z6CXHofHDoO5l8kcfmeSViRs3g1S/DxxM28GSAdKRsqpbGhv7V zi03CiNtXQNxA== From: "Rob Herring (Arm)" Date: Thu, 08 Jan 2026 11:53:16 -0600 Subject: [PATCH 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: <20260108-dt-mtd-partitions-v1-7-124a53ce6279@kernel.org> References: <20260108-dt-mtd-partitions-v1-0-124a53ce6279@kernel.org> In-Reply-To: <20260108-dt-mtd-partitions-v1-0-124a53ce6279@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 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'. Signed-off-by: Rob Herring (Arm) Reviewed-by: Krzysztof Kozlowski --- 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 11:21:28 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 27B262FC86C; Thu, 8 Jan 2026 17:53:46 +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=1767894826; cv=none; b=iikUELyaFzSJYaFwRDALJAsJie23q/KJw18Eewf5yZ4ZPcRshX1c7feVDCTcTVGzXI4tavV6FILCf8aUOGSxJybMdaYeJZQxzWkDnqWlk1uSk2GrEKjEKl6My8cR3pBb/lsj1MJ8FkxVdaZuSn559B0Y+evovB7/F3BLpDp8Lvo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767894826; c=relaxed/simple; bh=/xLQMDY+Z5c201pwV6drsWJD9hut61CKQg2Ohei6ByU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TbXsM7/OBrQxfVo4Q8VrYLP8JEhfZv3nor8kz0pX95VrsSm1mRDKF7PPA/ZkmK0Av6Pjh7BM3VBoE4Zuu3vl3WcBL15PnbbIyoE8W9+k+UQ8nvGKM6TT5y9x/gOXtbkwCfr27IDcU+8hJwu7jC9hp8lskEK1Gbs0KUGryMjNX4U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Le3Uy+re; 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="Le3Uy+re" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2ED7C116D0; Thu, 8 Jan 2026 17:53:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1767894826; bh=/xLQMDY+Z5c201pwV6drsWJD9hut61CKQg2Ohei6ByU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Le3Uy+re5r+KiKpy56t2y4K9CEu4ZDEzyHjguCdB/ACk9BBEVX52msmhek+a1JC8i +Dxg2XGl/sHOd3TvvDyaSTjg5T6Gu8s9L6C31IX5yjnvOSTSxPzhIJVsnkeSVm0XqS DebMcdMrbbPoKwjOah/UB6smg0xrtgu+xxIPG8zKO7QYRCkEdQDz8yYfn7fLtHEKLX tMaB8Q0lHTLzYd37UOXD/fT0cfB+TsaRjGI+qwJ43+qRLkq7QZHISsKomp+2Qx4GF/ tYFtGEqjl0AG8x9POlueSHN/4+ZfkVHxSJtN578ANldkC0NE/X6TcHZhQHiIPkUNJP R2tB/uFOrqwMA== From: "Rob Herring (Arm)" Date: Thu, 08 Jan 2026 11:53:17 -0600 Subject: [PATCH 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: <20260108-dt-mtd-partitions-v1-8-124a53ce6279@kernel.org> References: <20260108-dt-mtd-partitions-v1-0-124a53ce6279@kernel.org> In-Reply-To: <20260108-dt-mtd-partitions-v1-0-124a53ce6279@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 11:21:28 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 555022EB840; Thu, 8 Jan 2026 17:53:47 +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=1767894827; cv=none; b=XC5UqKHmDdOqaHoWKtmoxdJxo+/lgyunaxmja+688FhkIL7Ye1o4NeMPsN5TJM8pirxkZ9+P6wWl0jeK5muLfqoOWX4Ey7K9ksILBnnHlwg0Oyj1PnWYjCEaN5fWMfyHgpLF7xQnFMIxpTfjiLR+pAqieTih9VKsfUk8G3sKuQU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767894827; c=relaxed/simple; bh=o179MySf1APoPto2yIG5U1pvyJ0fB8P2TMeBdS62e6w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nf3IE824uQcNWl/2oOWGOivEZAUkDgVhPh6FphZs7nTeHTrlAjUY7oNqwfCfbBieepLnkdxuU0a4QZPWnR3iL3kZXcRyvx6lgIa4X3/VSI9YSWtvfPempUYouuLTm9j4kzAizbipnSX+u1/QfmsiVcPjxoOl5QyU3TsG+t1gqAQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=d/o45RtR; 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="d/o45RtR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8346C16AAE; Thu, 8 Jan 2026 17:53:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1767894827; bh=o179MySf1APoPto2yIG5U1pvyJ0fB8P2TMeBdS62e6w=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=d/o45RtRybacz6ufKqkh+Al2O+cQbWcamqbsyUZzpih0w1IHAoGUZrg4KNnujgEvs JIJeJvuMZ6I/RRht2VmpWIshQBnEDX7TdLpzEsEgmAQZdNjTOPeHCyEF679QRG353q Le/VxjQSb7DBPsd7G4xcNXiltToIXlSs+ixkxqPBOeG+6Rzu8veRrOIYlC7pORO7uR p31eobeHlEXD9w3OmJC6j6czh2KSqg4u/UeZO51oooN1m8V78B1Nuc+wgJ6U5GhcsW wLpD+h3M5+CZbLYTtFWsrEZoRuMqdo6e8uI38RixXRZCzlCvkmI0OSUW1Zy/5N8gma 9UyQazByQWi1A== From: "Rob Herring (Arm)" Date: Thu, 08 Jan 2026 11:53:18 -0600 Subject: [PATCH 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: <20260108-dt-mtd-partitions-v1-9-124a53ce6279@kernel.org> References: <20260108-dt-mtd-partitions-v1-0-124a53ce6279@kernel.org> In-Reply-To: <20260108-dt-mtd-partitions-v1-0-124a53ce6279@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 11:21:28 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 2421F3009D2; Thu, 8 Jan 2026 17:53:48 +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=1767894828; cv=none; b=sqHzve+xY5IUJlh0YO8E2nOIlciYEn7RKvCEEkluvDJndmQDJtqXxGlDiSYz+SRy7+YDzYIMJHuf0MdiPdZd8wpCAQNKkfwAHaKd5YQtX6bI9yrME5rIUiwhRsIP6CNSMKrE8P/AUa6LNkZhwQZNiGlHbltE4ZIon53kRHd6zBo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767894828; c=relaxed/simple; bh=wdvUQM+8BY+Bt8JP0cCiids1upbUXbpsIS4p8ioPoGQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=iY9uU3BqK0NmqeOjG+Tn1nI6GjJ79OLyZHV369+GuMYDBRcLHbnfwf/VJ51hledVv57kH8WWsg+Ck8s4w5qEfYpTudiSLxaWI1Yl94JCMuvFzowpOs6zfg99eC7tdxYsBOQSISX7QQjsxPER+HE/0WjWd2SXLKVHDWl5hKYDhXc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Nu/D6EP8; 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="Nu/D6EP8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C30C6C19423; Thu, 8 Jan 2026 17:53:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1767894828; bh=wdvUQM+8BY+Bt8JP0cCiids1upbUXbpsIS4p8ioPoGQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Nu/D6EP8B8dZxYKxKr5x/rm/zhljyecJZGPn4Yj8bGnBNizlJIIipdD99OsSI2Qh8 1dz2DEnyApPbS7dKCxeOiFr5NcVsdbUJwnBK+rqNXWQDyNvMs9nu0vdtGFwmm1meR6 GXk6nB2sz0boyPPqQqHU4DgTgAQ3UHMrePittHtQX/nhCIzjHYpezqDQw9jzugre9g DRPCzYKm2CdKvlVzX5K8wo+NG+/5S0W1QjuhWZLAXNdpDPSHlXfU8c3Um3iDVTCxqo gD1kiUc+UnuUtjVZ90xBds9ctGvnLb6g+Yie9m94BPwD+j6/6eiRc4A+84d2GbEXYy sJeurBCa06lLg== From: "Rob Herring (Arm)" Date: Thu, 08 Jan 2026 11:53:19 -0600 Subject: [PATCH 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: <20260108-dt-mtd-partitions-v1-10-124a53ce6279@kernel.org> References: <20260108-dt-mtd-partitions-v1-0-124a53ce6279@kernel.org> In-Reply-To: <20260108-dt-mtd-partitions-v1-0-124a53ce6279@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 4af185204b4b..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 d4b97d7181b5..032287c16cd7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4429,11 +4429,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