* [PATCH] arm64: dts: armada-3720-espressobin: wire up spi flash
@ 2018-03-25 19:57 Uwe Kleine-König
2018-04-06 9:42 ` Gregory CLEMENT
0 siblings, 1 reply; 2+ messages in thread
From: Uwe Kleine-König @ 2018-03-25 19:57 UTC (permalink / raw)
To: linux-arm-kernel
From: Ellie Reeves <ellierevves@gmail.com>
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 <ellierevves@gmail.com>
Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>
---
.../boot/dts/marvell/armada-3720-espressobin.dts | 27 ++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts b/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts
index 882d6e4a04e4..5f98c2fecca4 100644
--- a/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts
+++ b/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts
@@ -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";
--
2.16.2
^ permalink raw reply related [flat|nested] 2+ messages in thread* [PATCH] arm64: dts: armada-3720-espressobin: wire up spi flash
2018-03-25 19:57 [PATCH] arm64: dts: armada-3720-espressobin: wire up spi flash Uwe Kleine-König
@ 2018-04-06 9:42 ` Gregory CLEMENT
0 siblings, 0 replies; 2+ messages in thread
From: Gregory CLEMENT @ 2018-04-06 9:42 UTC (permalink / raw)
To: linux-arm-kernel
Hi Uwe,
On dim., mars 25 2018, Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de> wrote:
> From: Ellie Reeves <ellierevves@gmail.com>
>
> 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.
>
> Signed-off-by: Ellie Reeves <ellierevves@gmail.com>
> Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>
Applied on mvebu/dt64-for-4.18
Thanks,
Gregory
> ---
> .../boot/dts/marvell/armada-3720-espressobin.dts | 27 ++++++++++++++++++++++
> 1 file changed, 27 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts b/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts
> index 882d6e4a04e4..5f98c2fecca4 100644
> --- a/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts
> +++ b/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts
> @@ -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";
> --
> 2.16.2
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
--
Gregory Clement, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
http://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-04-06 9:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-25 19:57 [PATCH] arm64: dts: armada-3720-espressobin: wire up spi flash Uwe Kleine-König
2018-04-06 9:42 ` Gregory CLEMENT
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).