From nobody Mon Feb 9 23:42:34 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