devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 2/2] ARM: dts: omap3-igep0030: Add NAND flash support
@ 2013-05-10 19:40 Javier Martinez Canillas
  2013-05-27  8:40 ` Benoit Cousson
  0 siblings, 1 reply; 5+ messages in thread
From: Javier Martinez Canillas @ 2013-05-10 19:40 UTC (permalink / raw)
  To: Benoît Cousson
  Cc: Tony Lindgren, Russell King, Enric Balletbo i Serra,
	Ezequiel Garcia, linux-omap, devicetree-discuss,
	Javier Martinez Canillas

The IGEP COM Module has an 512MB NAND flash memory.

Add a device node for this NAND and its parition layout.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
---

Changes since v1:
 - I just realized that sent a wrong version of the patch, sorry for the noise

 arch/arm/boot/dts/omap3-igep0030.dts |   50 ++++++++++++++++++++++++++++++++++
 1 files changed, 50 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/omap3-igep0030.dts b/arch/arm/boot/dts/omap3-igep0030.dts
index 9dc48d2..f65bc3a 100644
--- a/arch/arm/boot/dts/omap3-igep0030.dts
+++ b/arch/arm/boot/dts/omap3-igep0030.dts
@@ -42,3 +42,53 @@
 		};
 	};
 };
+
+&gpmc {
+	ranges = <0 0 0x00000000 0x20000000>;
+
+	nand@0,0 {
+		linux,mtd-name= "micron,mt29c4g96maz";
+		reg = <0 0 0>;
+		nand-bus-width = <16>;
+		ti,nand-ecc-opt = "bch8";
+
+		gpmc,sync-clk-ps = <0>;
+		gpmc,cs-on-ns = <0>;
+		gpmc,cs-rd-off-ns = <44>;
+		gpmc,cs-wr-off-ns = <44>;
+		gpmc,adv-on-ns = <6>;
+		gpmc,adv-rd-off-ns = <34>;
+		gpmc,adv-wr-off-ns = <44>;
+		gpmc,we-off-ns = <40>;
+		gpmc,oe-off-ns = <54>;
+		gpmc,access-ns = <64>;
+		gpmc,rd-cycle-ns = <82>;
+		gpmc,wr-cycle-ns = <82>;
+		gpmc,wr-access-ns = <40>;
+		gpmc,wr-data-mux-bus-ns = <0>;
+
+		#address-cells = <1>;
+		#size-cells = <1>;
+
+		partition@0 {
+			label = "SPL";
+			reg = <0 0x100000>;
+		};
+		partition@0x80000 {
+			label = "U-Boot";
+			reg = <0x100000 0x180000>;
+		};
+		partition@0x1c0000 {
+			label = "Environment";
+			reg = <0x280000 0x100000>;
+		};
+		partition@0x280000 {
+			label = "Kernel";
+			reg = <0x380000 0x300000>;
+		};
+		partition@0x780000 {
+			label = "Filesystem";
+			reg = <0x680000 0x1f980000>;
+		};
+	};
+};
-- 
1.7.7.6


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

* Re: [PATCH v2 2/2] ARM: dts: omap3-igep0030: Add NAND flash support
  2013-05-10 19:40 [PATCH v2 2/2] ARM: dts: omap3-igep0030: Add NAND flash support Javier Martinez Canillas
@ 2013-05-27  8:40 ` Benoit Cousson
  2013-05-27  8:50   ` Javier Martinez Canillas
  0 siblings, 1 reply; 5+ messages in thread
From: Benoit Cousson @ 2013-05-27  8:40 UTC (permalink / raw)
  To: Javier Martinez Canillas
  Cc: Tony Lindgren, Russell King, Enric Balletbo i Serra,
	Ezequiel Garcia, linux-omap, devicetree-discuss

Hi Javier,

On 05/10/2013 09:40 PM, Javier Martinez Canillas wrote:
> The IGEP COM Module has an 512MB NAND flash memory.
> 
> Add a device node for this NAND and its parition layout.
> 
> Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
> ---
> 
> Changes since v1:
>  - I just realized that sent a wrong version of the patch, sorry for the noise

And what about the first one? For igep0020?

Thanks,
Benoit

> 
>  arch/arm/boot/dts/omap3-igep0030.dts |   50 ++++++++++++++++++++++++++++++++++
>  1 files changed, 50 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/omap3-igep0030.dts b/arch/arm/boot/dts/omap3-igep0030.dts
> index 9dc48d2..f65bc3a 100644
> --- a/arch/arm/boot/dts/omap3-igep0030.dts
> +++ b/arch/arm/boot/dts/omap3-igep0030.dts
> @@ -42,3 +42,53 @@
>  		};
>  	};
>  };
> +
> +&gpmc {
> +	ranges = <0 0 0x00000000 0x20000000>;
> +
> +	nand@0,0 {
> +		linux,mtd-name= "micron,mt29c4g96maz";
> +		reg = <0 0 0>;
> +		nand-bus-width = <16>;
> +		ti,nand-ecc-opt = "bch8";
> +
> +		gpmc,sync-clk-ps = <0>;
> +		gpmc,cs-on-ns = <0>;
> +		gpmc,cs-rd-off-ns = <44>;
> +		gpmc,cs-wr-off-ns = <44>;
> +		gpmc,adv-on-ns = <6>;
> +		gpmc,adv-rd-off-ns = <34>;
> +		gpmc,adv-wr-off-ns = <44>;
> +		gpmc,we-off-ns = <40>;
> +		gpmc,oe-off-ns = <54>;
> +		gpmc,access-ns = <64>;
> +		gpmc,rd-cycle-ns = <82>;
> +		gpmc,wr-cycle-ns = <82>;
> +		gpmc,wr-access-ns = <40>;
> +		gpmc,wr-data-mux-bus-ns = <0>;
> +
> +		#address-cells = <1>;
> +		#size-cells = <1>;
> +
> +		partition@0 {
> +			label = "SPL";
> +			reg = <0 0x100000>;
> +		};
> +		partition@0x80000 {
> +			label = "U-Boot";
> +			reg = <0x100000 0x180000>;
> +		};
> +		partition@0x1c0000 {
> +			label = "Environment";
> +			reg = <0x280000 0x100000>;
> +		};
> +		partition@0x280000 {
> +			label = "Kernel";
> +			reg = <0x380000 0x300000>;
> +		};
> +		partition@0x780000 {
> +			label = "Filesystem";
> +			reg = <0x680000 0x1f980000>;
> +		};
> +	};
> +};
> 


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

* Re: [PATCH v2 2/2] ARM: dts: omap3-igep0030: Add NAND flash support
  2013-05-27  8:40 ` Benoit Cousson
@ 2013-05-27  8:50   ` Javier Martinez Canillas
  2013-05-27  8:54     ` Benoit Cousson
  0 siblings, 1 reply; 5+ messages in thread
From: Javier Martinez Canillas @ 2013-05-27  8:50 UTC (permalink / raw)
  To: Benoit Cousson
  Cc: Tony Lindgren, Russell King, Enric Balletbo i Serra,
	Ezequiel Garcia, linux-omap, devicetree-discuss

On 05/27/2013 10:40 AM, Benoit Cousson wrote:
> Hi Javier,
>

Hi Benoit,

> On 05/10/2013 09:40 PM, Javier Martinez Canillas wrote:
>> The IGEP COM Module has an 512MB NAND flash memory.
>> 
>> Add a device node for this NAND and its parition layout.
>> 
>> Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
>> ---
>> 
>> Changes since v1:
>>  - I just realized that sent a wrong version of the patch, sorry for the noise
> 
> And what about the first one? For igep0020?
> 
> Thanks,
> Benoit
> 

For the igep0020 the first one was already correct. I just sent the wrong one
for the igep0030 and that's why I had to send a v2 for this patch. Sorry for the
confusion.

Best regards,
Javier

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

* Re: [PATCH v2 2/2] ARM: dts: omap3-igep0030: Add NAND flash support
  2013-05-27  8:50   ` Javier Martinez Canillas
@ 2013-05-27  8:54     ` Benoit Cousson
  2013-05-27  9:08       ` Javier Martinez Canillas
  0 siblings, 1 reply; 5+ messages in thread
From: Benoit Cousson @ 2013-05-27  8:54 UTC (permalink / raw)
  To: Javier Martinez Canillas
  Cc: Tony Lindgren, Russell King, Enric Balletbo i Serra,
	Ezequiel Garcia, linux-omap, devicetree-discuss

On 05/27/2013 10:50 AM, Javier Martinez Canillas wrote:
> On 05/27/2013 10:40 AM, Benoit Cousson wrote:
>> Hi Javier,
>>
> 
> Hi Benoit,
> 
>> On 05/10/2013 09:40 PM, Javier Martinez Canillas wrote:
>>> The IGEP COM Module has an 512MB NAND flash memory.
>>>
>>> Add a device node for this NAND and its parition layout.
>>>
>>> Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
>>> ---
>>>
>>> Changes since v1:
>>>  - I just realized that sent a wrong version of the patch, sorry for the noise
>>
>> And what about the first one? For igep0020?
>>
>> Thanks,
>> Benoit
>>
> 
> For the igep0020 the first one was already correct. I just sent the wrong one
> for the igep0030 and that's why I had to send a v2 for this patch. Sorry for the
> confusion.

OK, I've just applied the v1 igep0020 and v2 igep0030 after fixing the
changelog typo" "parition".

Patches are available here:
git://git.kernel.org/pub/scm/linux/kernel/git/bcousson/linux-omap-dt.git
for_3.11/dts

Regards,
Benoit




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

* Re: [PATCH v2 2/2] ARM: dts: omap3-igep0030: Add NAND flash support
  2013-05-27  8:54     ` Benoit Cousson
@ 2013-05-27  9:08       ` Javier Martinez Canillas
  0 siblings, 0 replies; 5+ messages in thread
From: Javier Martinez Canillas @ 2013-05-27  9:08 UTC (permalink / raw)
  To: Benoit Cousson
  Cc: Tony Lindgren, Russell King, Enric Balletbo i Serra,
	Ezequiel Garcia, linux-omap, devicetree-discuss

On 05/27/2013 10:54 AM, Benoit Cousson wrote:
> On 05/27/2013 10:50 AM, Javier Martinez Canillas wrote:
>> On 05/27/2013 10:40 AM, Benoit Cousson wrote:
>>> Hi Javier,
>>>
>> 
>> Hi Benoit,
>> 
>>> On 05/10/2013 09:40 PM, Javier Martinez Canillas wrote:
>>>> The IGEP COM Module has an 512MB NAND flash memory.
>>>>
>>>> Add a device node for this NAND and its parition layout.
>>>>
>>>> Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
>>>> ---
>>>>
>>>> Changes since v1:
>>>>  - I just realized that sent a wrong version of the patch, sorry for the noise
>>>
>>> And what about the first one? For igep0020?
>>>
>>> Thanks,
>>> Benoit
>>>
>> 
>> For the igep0020 the first one was already correct. I just sent the wrong one
>> for the igep0030 and that's why I had to send a v2 for this patch. Sorry for the
>> confusion.
> 
> OK, I've just applied the v1 igep0020 and v2 igep0030 after fixing the
> changelog typo" "parition".
> 
> Patches are available here:
> git://git.kernel.org/pub/scm/linux/kernel/git/bcousson/linux-omap-dt.git
> for_3.11/dts
> 
> Regards,
> Benoit
> 
> 
> 

Perfect, thanks a lot!

Best regards,
Javier

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

end of thread, other threads:[~2013-05-27  9:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-10 19:40 [PATCH v2 2/2] ARM: dts: omap3-igep0030: Add NAND flash support Javier Martinez Canillas
2013-05-27  8:40 ` Benoit Cousson
2013-05-27  8:50   ` Javier Martinez Canillas
2013-05-27  8:54     ` Benoit Cousson
2013-05-27  9:08       ` Javier Martinez Canillas

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