arm64: dts: armada-3720-espressobin: wire up spi flash
Subsystems (2)
PATCH 1/1 arm64: dts: armada-3720-espressobin: wire up spi flash
From: Ellie Reeves <[email protected]>
This is the storage the machine boots from by default. The partitioning is taken from the U-Boot that is shipped with the board. There is some more space on the flash that isn't used.
Signed-off-by Ellie Reeves <[email protected]>
Signed-off-by Uwe Kleine-K?nig <[email protected]>
--- .../boot/dts/marvell/armada-3720-espressobin.dts | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+)
arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts +27 -0
@@ -108,6 +108,33 @@ status = "okay"; }; +&spi0 { + status = "okay"; + + flash at 0 { + reg = <0>; + compatible = "winbond,w25q32dw", "jedec,spi-flash"; + spi-max-frequency = <104000000>; + m25p,fast-read; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition at 0 { + label = "uboot"; + reg = <0 0x180000>; + }; + + partition at 180000 { + label = "ubootenv"; + reg = <0x180000 0x10000>; + }; + }; + }; +}; + /* Exported on the micro USB connector J5 through an FTDI */ &uart0 { pinctrl-names = "default";
Signature · 1 line
2.16.2
Gregory CLEMENT
maintainerPATCH 1/1 arm64: dts: armada-3720-espressobin: wire up spi flash
Hi Uwe,
Quoted 5 lines · Uwe Kleine-K?nig
From: Ellie Reeves <[email protected]>
This is the storage the machine boots from by default. The partitioning is taken from the U-Boot that is shipped with the board. There is some more space on the flash that isn't used.
I tested this patch and was able to read the uboot environement from Linux.
Quoted 3 lines
Signed-off-by Ellie Reeves <[email protected]>Signed-off-by Uwe Kleine-K?nig <[email protected]>
Applied on mvebu/dt64-for-4.18
Thanks,
Gregory
Quoted 50 lines
--- .../boot/dts/marvell/armada-3720-espressobin.dts | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+)arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts +27
-0@@ -108,6 +108,33 @@ status = "okay"; }; +&spi0 { + status = "okay"; + + flash at 0 { + reg = <0>; + compatible = "winbond,w25q32dw", "jedec,spi-flash"; + spi-max-frequency = <104000000>; + m25p,fast-read; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition at 0 { + label = "uboot"; + reg = <0 0x180000>; + }; + + partition at 180000 { + label = "ubootenv"; + reg = <0x180000 0x10000>; + }; + }; + }; +}; + /* Exported on the micro USB connector J5 through an FTDI */ &uart0 { pinctrl-names = "default";Signature · 7 lines
2.16.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel at lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Signature · 3 lines
Gregory Clement, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering http://bootlin.com