[PATCH 04/11] arm64: dts: mediatek: mt7981b-openwrt-one: Remove useless cells from flash@0

AngeloGioacchino Del Regno posted 11 patches 1 month ago
[PATCH 04/11] arm64: dts: mediatek: mt7981b-openwrt-one: Remove useless cells from flash@0
Posted by AngeloGioacchino Del Regno 1 month ago
In spi2's flash@0 there is only one `partitions` subnode: this
alone makes specifying address and size cells useless, but then
this subnode has no address and no size, which even makes the
currently declared address/size cells wrong.

Fixes: 869b3bb5ada2 ("arm64: dts: mediatek: mt7981b-openwrt-one: Enable SPI NOR")
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
 arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts b/arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts
index 3de368c73bc8..48b80af90438 100644
--- a/arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts
+++ b/arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dts
@@ -213,8 +213,6 @@ flash@0 {
 		compatible = "jedec,spi-nor";
 		reg = <0>;
 		spi-max-frequency = <40000000>;
-		#address-cells = <1>;
-		#size-cells = <1>;
 
 		partitions {
 			compatible = "fixed-partitions";
-- 
2.52.0
Re: [PATCH 04/11] arm64: dts: mediatek: mt7981b-openwrt-one: Remove useless cells from flash@0
Posted by Chen-Yu Tsai 4 weeks ago
On Fri, Jan 9, 2026 at 7:48 PM AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com> wrote:
>
> In spi2's flash@0 there is only one `partitions` subnode: this
> alone makes specifying address and size cells useless, but then
> this subnode has no address and no size, which even makes the
> currently declared address/size cells wrong.
>
> Fixes: 869b3bb5ada2 ("arm64: dts: mediatek: mt7981b-openwrt-one: Enable SPI NOR")
> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>

Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>