linux-renesas-soc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: ape6evm: Add NOR FLASH
@ 2019-03-20 19:45 Geert Uytterhoeven
  2019-03-21 16:37 ` Niklas Söderlund
  0 siblings, 1 reply; 3+ messages in thread
From: Geert Uytterhoeven @ 2019-03-20 19:45 UTC (permalink / raw)
  To: Simon Horman, Magnus Damm, Chris Brandt
  Cc: linux-renesas-soc, devicetree, Geert Uytterhoeven

Describe the 128 MiB CFI NOR FLASH, which contains the boot loader and
its environment.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/arm/boot/dts/r8a73a4-ape6evm.dts | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/arch/arm/boot/dts/r8a73a4-ape6evm.dts b/arch/arm/boot/dts/r8a73a4-ape6evm.dts
index 5c691e79e2b6e5fc..fa01de098dbcc0ac 100644
--- a/arch/arm/boot/dts/r8a73a4-ape6evm.dts
+++ b/arch/arm/boot/dts/r8a73a4-ape6evm.dts
@@ -173,6 +173,33 @@
 };
 
 &bsc {
+	flash@0 {
+		compatible = "cfi-flash", "mtd-rom";
+		reg = <0x0 0x08000000>;
+		bank-width = <2>;
+
+		partitions {
+			compatible = "fixed-partitions";
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			partition@0 {
+				label = "uboot";
+				reg = <0x00000000 0x00040000>;
+				read-only;
+			};
+			partition@40000 {
+				label = "uboot-env";
+				reg = <0x00040000 0x00040000>;
+				read-only;
+			};
+			partition@80000 {
+				label = "flash";
+				reg = <0x00080000 0x07f80000>;
+			};
+		};
+	};
+
 	ethernet@8000000 {
 		compatible = "smsc,lan9220", "smsc,lan9115";
 		reg = <0x08000000 0x1000>;
-- 
2.17.1


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

* Re: [PATCH] ARM: dts: ape6evm: Add NOR FLASH
  2019-03-20 19:45 [PATCH] ARM: dts: ape6evm: Add NOR FLASH Geert Uytterhoeven
@ 2019-03-21 16:37 ` Niklas Söderlund
  2019-03-22 10:15   ` Simon Horman
  0 siblings, 1 reply; 3+ messages in thread
From: Niklas Söderlund @ 2019-03-21 16:37 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Simon Horman, Magnus Damm, Chris Brandt, linux-renesas-soc, devicetree

Hi Geert,

Thanks for your work, you are a life saver :-)

On 2019-03-20 20:45:22 +0100, Geert Uytterhoeven wrote:
> Describe the 128 MiB CFI NOR FLASH, which contains the boot loader and
> its environment.
> 
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

Tested-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>

> ---
>  arch/arm/boot/dts/r8a73a4-ape6evm.dts | 27 +++++++++++++++++++++++++++
>  1 file changed, 27 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/r8a73a4-ape6evm.dts b/arch/arm/boot/dts/r8a73a4-ape6evm.dts
> index 5c691e79e2b6e5fc..fa01de098dbcc0ac 100644
> --- a/arch/arm/boot/dts/r8a73a4-ape6evm.dts
> +++ b/arch/arm/boot/dts/r8a73a4-ape6evm.dts
> @@ -173,6 +173,33 @@
>  };
>  
>  &bsc {
> +	flash@0 {
> +		compatible = "cfi-flash", "mtd-rom";
> +		reg = <0x0 0x08000000>;
> +		bank-width = <2>;
> +
> +		partitions {
> +			compatible = "fixed-partitions";
> +			#address-cells = <1>;
> +			#size-cells = <1>;
> +
> +			partition@0 {
> +				label = "uboot";
> +				reg = <0x00000000 0x00040000>;
> +				read-only;
> +			};
> +			partition@40000 {
> +				label = "uboot-env";
> +				reg = <0x00040000 0x00040000>;
> +				read-only;
> +			};
> +			partition@80000 {
> +				label = "flash";
> +				reg = <0x00080000 0x07f80000>;
> +			};
> +		};
> +	};
> +
>  	ethernet@8000000 {
>  		compatible = "smsc,lan9220", "smsc,lan9115";
>  		reg = <0x08000000 0x1000>;
> -- 
> 2.17.1
> 

-- 
Regards,
Niklas Söderlund

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

* Re: [PATCH] ARM: dts: ape6evm: Add NOR FLASH
  2019-03-21 16:37 ` Niklas Söderlund
@ 2019-03-22 10:15   ` Simon Horman
  0 siblings, 0 replies; 3+ messages in thread
From: Simon Horman @ 2019-03-22 10:15 UTC (permalink / raw)
  To: Niklas Söderlund
  Cc: Geert Uytterhoeven, Magnus Damm, Chris Brandt, linux-renesas-soc,
	devicetree

On Thu, Mar 21, 2019 at 05:37:38PM +0100, Niklas Söderlund wrote:
> Hi Geert,
> 
> Thanks for your work, you are a life saver :-)
> 
> On 2019-03-20 20:45:22 +0100, Geert Uytterhoeven wrote:
> > Describe the 128 MiB CFI NOR FLASH, which contains the boot loader and
> > its environment.
> > 
> > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> 
> Tested-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>

Thanks, applied for v5.2.

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

end of thread, other threads:[~2019-03-22 10:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-20 19:45 [PATCH] ARM: dts: ape6evm: Add NOR FLASH Geert Uytterhoeven
2019-03-21 16:37 ` Niklas Söderlund
2019-03-22 10:15   ` Simon Horman

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