linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: rogershimizu@gmail.com (Roger Shimizu)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/3] ARM: dts: orion5x: fix the missing mtd flash on linkstation lswtgl
Date: Sat,  6 Feb 2016 01:33:16 +0900	[thread overview]
Message-ID: <1454689998-9579-2-git-send-email-rogershimizu@gmail.com> (raw)
In-Reply-To: <1454689998-9579-1-git-send-email-rogershimizu@gmail.com>

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 | 31 ++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

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

  reply	other threads:[~2016-02-05 16:33 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-05 16:33 [PATCH 0/3] fix and new support for orion5x based linkstation Roger Shimizu
2016-02-05 16:33 ` Roger Shimizu [this message]
2016-02-05 20:40   ` [PATCH 1/3] ARM: dts: orion5x: fix the missing mtd flash on linkstation lswtgl Andrew Lunn
2016-02-08 11:09     ` Roger Shimizu
2016-02-05 16:33 ` [PATCH 2/3] ARM: dts: orion5x: split linkstation lswtgl into common and device parts Roger Shimizu
2016-02-05 20:48   ` Andrew Lunn
2016-02-05 16:33 ` [PATCH 3/3] ARM: dts: orion5x: add device tree for buffalo linkstation ls-gl Roger Shimizu
2016-02-05 20:49   ` Andrew Lunn
2016-02-06  5:59 ` [PATCH v2 0/3] fix and new support for orion5x based linkstation Roger Shimizu
2016-02-06  5:59   ` [PATCH v2 1/3] ARM: dts: orion5x: fix the missing mtd flash on linkstation lswtgl Roger Shimizu
2016-02-06  5:59   ` [PATCH v2 2/3] ARM: dts: orion5x: split linkstation lswtgl into common and device parts Roger Shimizu
2016-02-06  5:59   ` [PATCH v2 3/3] ARM: dts: orion5x: add device tree for buffalo linkstation ls-gl Roger Shimizu
2016-02-08 15:52   ` [PATCH v2 0/3] fix and new support for orion5x based linkstation Gregory CLEMENT
2016-02-08 16:09     ` Gregory CLEMENT

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1454689998-9579-2-git-send-email-rogershimizu@gmail.com \
    --to=rogershimizu@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).