* [PATCH] ARM: dts: imx6qdl-nitrogen6x: Add SPI NOR partitions
@ 2017-11-24 11:21 Otavio Salvador
2017-11-24 13:44 ` Fabio Estevam
0 siblings, 1 reply; 2+ messages in thread
From: Otavio Salvador @ 2017-11-24 11:21 UTC (permalink / raw)
To: linux-arm-kernel
Cc: Gary Bisson, Otavio Salvador, Fabio Estevam, devicetree,
Sascha Hauer, linux-kernel, Rob Herring, Mark Rutland,
Russell King, Shawn Guo
This adds the partitions definition for the SPI NOR to provide
backward compatibility with the documented[1] layout used with
Boundary Devices BSP.
1. https://boundarydevices.com/boot-flash-access-linux/
It exports to Linux:
mtd0: U-Boot
mtd1: U-Boot Environment
mtd2: Bootsplash
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi b/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi
index 4bdf29169d2a..f8b267875e1c 100644
--- a/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi
@@ -276,6 +276,23 @@
compatible = "sst,sst25vf016b", "jedec,spi-nor";
spi-max-frequency = <20000000>;
reg = <0>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "U-Boot";
+ reg = <0x0 0xc0000>;
+ };
+
+ partition@c0000 {
+ label = "U-Boot Environment";
+ reg = <0xc0000 0x2000>;
+ };
+
+ partition@c2000 {
+ label = "Bootsplash";
+ reg = <0xc2000 0x13e000>;
+ };
};
};
--
2.15.0
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] ARM: dts: imx6qdl-nitrogen6x: Add SPI NOR partitions
2017-11-24 11:21 [PATCH] ARM: dts: imx6qdl-nitrogen6x: Add SPI NOR partitions Otavio Salvador
@ 2017-11-24 13:44 ` Fabio Estevam
0 siblings, 0 replies; 2+ messages in thread
From: Fabio Estevam @ 2017-11-24 13:44 UTC (permalink / raw)
To: Otavio Salvador
Cc: linux-arm-kernel, Gary Bisson, Fabio Estevam, devicetree,
Sascha Hauer, linux-kernel, Rob Herring, Mark Rutland,
Russell King, Shawn Guo
On Fri, Nov 24, 2017 at 9:21 AM, Otavio Salvador
<otavio@ossystems.com.br> wrote:
> diff --git a/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi b/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi
> index 4bdf29169d2a..f8b267875e1c 100644
> --- a/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi
> +++ b/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi
> @@ -276,6 +276,23 @@
> compatible = "sst,sst25vf016b", "jedec,spi-nor";
> spi-max-frequency = <20000000>;
> reg = <0>;
> + #address-cells = <1>;
> + #size-cells = <1>;
> +
> + partition@0 {
> + label = "U-Boot";
What about calling it something more generic, like "bootloader"?
U-Boot is not the only bootloader that can run on this board.
You could also consider passing the 'read-only' property like it is
done in imx6sx-nitrogen6sx.dts.
> + reg = <0x0 0xc0000>;
> + };
> +
> + partition@c0000 {
> + label = "U-Boot Environment";
Maybe just 'env' and add 'read-only' property here as well.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-11-24 13:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-24 11:21 [PATCH] ARM: dts: imx6qdl-nitrogen6x: Add SPI NOR partitions Otavio Salvador
2017-11-24 13:44 ` Fabio Estevam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®