OSDN Git Service

arm64: dts: imx8mm-kontron: Add SPI NOR partition layout
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Mon, 22 Aug 2022 08:03:53 +0000 (10:03 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sat, 17 Sep 2022 08:34:23 +0000 (16:34 +0800)
This is the layout used by the bootloader. Add it to the kernel
devicetree to make the same layout available in Linux and have
the devicetrees synced.

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mm-kontron-sl.dtsi

index ce9c276..0679728 100644 (file)
                compatible = "mxicy,mx25r1635f", "jedec,spi-nor";
                spi-max-frequency = <80000000>;
                reg = <0>;
+
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 {
+                               label = "u-boot";
+                               reg = <0x0 0x1e0000>;
+                       };
+
+                       partition@1e0000 {
+                               label = "env";
+                               reg = <0x1e0000 0x10000>;
+                       };
+
+                       partition@1f0000 {
+                               label = "env_redundant";
+                               reg = <0x1f0000 0x10000>;
+                       };
+               };
        };
 };