arm64: dts: freescale: tqma9352: Add partitions subnode to spi-nor
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Tue, 23 Apr 2024 11:31:46 +0000 (13:31 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 3 Jun 2024 01:11:08 +0000 (09:11 +0800)
commit0cd7587c6ca012aa237c33c462582f942f6243e8
tree77b0d3103d027a8b5c0646b483f5ca931898c2bf
parentede231f3507219d09330aabf7fba965311be4fe6
arm64: dts: freescale: tqma9352: Add partitions subnode to spi-nor

The bootloader adds MTD partitions in this subnode if present, or in the
spi-nor node itself otherwise. Direct children cause warnings like:
425e0000.spi: ofpart partition /soc@0/bus@42000000/spi@425e0000/flash@0/
  partition@600000 (/soc@0/bus@42000000/spi@425e0000/flash@0) #size-cells
  is wrongly set to <0>, assuming <1> for parsing partitions.

This is due flexspi node having #size-cells = <0>. Setting #size-cells in
MTD nodes itself is deprecated by mtd.yaml.
Fix all this by adding an empty partitions node which the bootloader will
fill with configured MTD partitions.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx93-tqma9352.dtsi