linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: orion5x: add mtd flash support to linkstation lswtgl
@ 2016-01-27 15:10 Roger Shimizu
  2016-01-27 17:32 ` Andrew Lunn
  0 siblings, 1 reply; 6+ messages in thread
From: Roger Shimizu @ 2016-01-27 15:10 UTC (permalink / raw)
  To: linux-arm-kernel

MTD flash stores u-boot and u-boot environment on linkstation lswtgl.
The latter one can be easily read/write by u-boot-tools package in Debian.

Signed-off-by: Roger Shimizu <rogershimizu@gmail.com>
---
 arch/arm/boot/dts/orion5x-linkstation-lswtgl.dts | 30 ++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/arch/arm/boot/dts/orion5x-linkstation-lswtgl.dts b/arch/arm/boot/dts/orion5x-linkstation-lswtgl.dts
index 420788229e6f..16eabc524b27 100644
--- a/arch/arm/boot/dts/orion5x-linkstation-lswtgl.dts
+++ b/arch/arm/boot/dts/orion5x-linkstation-lswtgl.dts
@@ -228,6 +228,36 @@
 	};
 };
 
+&devbus_bootcs {
+	status = "okay";
+	devbus,keep-config;
+
+	flash at 0 {
+		compatible = "jedec-flash";
+		reg = <0 0x40000>;
+		bank-width = <1>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+
+		partition at 0 {
+			label = "header";
+			reg = <0 0x30000>;
+			read-only;
+		};
+
+		partition at 30000 {
+			label = "uboot";
+			reg = <0x30000 0xF000>;
+			read-only;
+		};
+
+		partition at 3F000 {
+			label = "uboot_env";
+			reg = <0x3F000 0x1000>;
+		};
+	};
+};
+
 &mdio {
 	status = "okay";
 
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-02-02  2:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-27 15:10 [PATCH] ARM: dts: orion5x: add mtd flash support to linkstation lswtgl Roger Shimizu
2016-01-27 17:32 ` Andrew Lunn
2016-01-27 18:22   ` Roger Shimizu
2016-01-28 13:45     ` Roger Shimizu
2016-01-29 13:48       ` Roger Shimizu
2016-02-02  2:20         ` Andrew Lunn

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).