]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ARM: dts: tqma6ul: Add partitions subnode to spi-nor
authorMarkus Niebel <Markus.Niebel@ew.tq-group.com>
Wed, 19 Feb 2025 08:17:42 +0000 (09:17 +0100)
committerShawn Guo <shawnguo@kernel.org>
Tue, 11 Mar 2025 01:51:16 +0000 (09:51 +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: Markus Niebel <Markus.Niebel@ew.tq-group.com>
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/nxp/imx/imx6ul-tqma6ul-common.dtsi

index 1e4022cba3cc54f9157c0631bdbeb529adefd487..2dd635a615cb8fb0972342cafd13e787b5441a5c 100644 (file)
        flash0: flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               #address-cells = <1>;
-               #size-cells = <1>;
                spi-max-frequency = <33000000>;
                spi-rx-bus-width = <4>;
                spi-tx-bus-width = <1>;
                vcc-supply = <&reg_vldo4>;
+
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+               };
        };
 };