linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: andrew@lunn.ch (Andrew Lunn)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: dts: orion5x: add mtd flash support to linkstation lswtgl
Date: Wed, 27 Jan 2016 18:32:31 +0100	[thread overview]
Message-ID: <20160127173231.GI20194@lunn.ch> (raw)
In-Reply-To: <1453907405-30434-1-git-send-email-rogershimizu@gmail.com>

On Thu, Jan 28, 2016 at 12:10:05AM +0900, Roger Shimizu wrote:
> 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>;
> +

Hi Roger

Same comment i just sent to Thomas:

The partition table should be a subnode of the mtd node and should be named
'partitions'. This node should have the following property:
- compatible : (required) must be "fixed-partitions"
Partitions are then defined in subnodes of the partitions node.

For backwards compatibility partitions as direct subnodes of the mtd device are
supported. This use is discouraged.

	   Andrew


> +		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
> 

  reply	other threads:[~2016-01-27 17:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

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=20160127173231.GI20194@lunn.ch \
    --to=andrew@lunn.ch \
    --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).