summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorFrieder Schrempf <[email protected]>2022-08-24 15:59:07 +0200
committerStefano Babic <[email protected]>2022-10-20 17:35:51 +0200
commit2a6f0230619a821eae034c741fc20d586776b9ad (patch)
treef4daa883b938f09c0af9039ea3b99f54e72ba0d3 /arch
parent0761beef9826085fb604502eb76e95b829b9e183 (diff)
imx: kontron-sl-mx8mm: Add redundant environment and SPI NOR partitions
Enable the redundant environment feature to allow falling back in case of storage corruption. The partition layout for the SPI NOR device is added to the devicetree. Signed-off-by: Frieder Schrempf <[email protected]> Reviewed-by: Fabio Estevam <[email protected]>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/dts/imx8mm-kontron-n801x-som.dtsi21
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/dts/imx8mm-kontron-n801x-som.dtsi b/arch/arm/dts/imx8mm-kontron-n801x-som.dtsi
index 8f90eb02550..3b66e560927 100644
--- a/arch/arm/dts/imx8mm-kontron-n801x-som.dtsi
+++ b/arch/arm/dts/imx8mm-kontron-n801x-som.dtsi
@@ -70,6 +70,27 @@
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>;
+ };
+ };
};
};