arm64: dts: freescale: tqma8mq: Add partitions subnode to spi-nor
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Tue, 23 Apr 2024 11:31:50 +0000 (13:31 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 3 Jun 2024 01:11:08 +0000 (09:11 +0800)
The bootloader adds MTD partitions in this subnode if present, or in the
spi-nor node itself otherwise.
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. Remove the deprecated properties
as well.

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

index 5ca6b22525469b9fc1818d7202e5a220bc2b0c05..01e5092e4c40a98ab394bb844311e63a48c211b8 100644 (file)
        flash0: flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               #address-cells = <1>;
-               #size-cells = <1>;
                spi-max-frequency = <84000000>;
                spi-tx-bus-width = <1>;
                spi-rx-bus-width = <4>;
+
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+               };
        };
 };