arm64: dts: librem5: protect some partitions of the nor-flash
authorAngus Ainslie <angus@akkea.ca>
Fri, 19 Feb 2021 10:04:38 +0000 (11:04 +0100)
committerShawn Guo <shawnguo@kernel.org>
Mon, 15 Mar 2021 04:22:28 +0000 (12:22 +0800)
These sections should be read only as they contain important data.

Signed-off-by: Angus Ainslie <angus@akkea.ca>
Signed-off-by: Martin Kepplinger <martin.kepplinger@puri.sm>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi

index c2bbbdeb93e35ea6d46fa83464798dab6ab10581..2d248304432b83a4aa28ee6d9afbe88072121b93 100644 (file)
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <1000000>;
+               #address-cells = <1>;
+               #size-cells = <1>;
+
+               partition@0 {
+                       label = "protected0";
+                       reg = <0x0 0x30000>;
+                       read-only;
+               };
+
+               partition@30000 {
+                       label = "protected1";
+                       reg = <0x30000 0x10000>;
+                       read-only;
+               };
+
+               partition@40000 {
+                       label = "rw";
+                       reg = <0x40000 0x1C0000>;
+               };
        };
 };