* [PATCH] ARM: dts: dra7-evm: Fix NAND GPMC timings
@ 2014-09-05 12:04 Roger Quadros
2014-09-08 8:08 ` [PATCH] ARM: dts: dra7-evm: Fix NAND GPMC timings (for 3.17) Roger Quadros
0 siblings, 1 reply; 5+ messages in thread
From: Roger Quadros @ 2014-09-05 12:04 UTC (permalink / raw)
To: tony; +Cc: pekon, linux-omap, Roger Quadros, stable
The nand timings were scaled down by 2 to account for
the 2x rate returned by clk_get_rate(gpmc_fclk).
As the clock data got fixed by [1], revert back to actual
timings (i.e. scale them up by 2).
Without this NAND doesn't work on dra7-evm.
[1] - commit dd94324b983afe114ba9e7ee3649313b451f63ce
ARM: dts: dra7xx-clocks: Fix the l3 and l4 clock rates
Fixes: ff66a3c86e00 ("ARM: dts: dra7: add support for parallel NAND flash")
Cc: <stable@vger.kernel.org> [3.16]
Signed-off-by: Roger Quadros <rogerq@ti.com>
---
arch/arm/boot/dts/dra7-evm.dts | 27 ++++++++++++---------------
1 file changed, 12 insertions(+), 15 deletions(-)
diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot/dts/dra7-evm.dts
index 990ee6a..a120d8f 100644
--- a/arch/arm/boot/dts/dra7-evm.dts
+++ b/arch/arm/boot/dts/dra7-evm.dts
@@ -427,22 +427,19 @@
gpmc,device-width = <2>;
gpmc,sync-clk-ps = <0>;
gpmc,cs-on-ns = <0>;
- gpmc,cs-rd-off-ns = <40>;
- gpmc,cs-wr-off-ns = <40>;
+ gpmc,cs-rd-off-ns = <80>;
+ gpmc,cs-wr-off-ns = <80>;
gpmc,adv-on-ns = <0>;
- gpmc,adv-rd-off-ns = <30>;
- gpmc,adv-wr-off-ns = <30>;
- gpmc,we-on-ns = <5>;
- gpmc,we-off-ns = <25>;
- gpmc,oe-on-ns = <2>;
- gpmc,oe-off-ns = <20>;
- gpmc,access-ns = <20>;
- gpmc,wr-access-ns = <40>;
- gpmc,rd-cycle-ns = <40>;
- gpmc,wr-cycle-ns = <40>;
- gpmc,wait-pin = <0>;
- gpmc,wait-on-read;
- gpmc,wait-on-write;
+ gpmc,adv-rd-off-ns = <60>;
+ gpmc,adv-wr-off-ns = <60>;
+ gpmc,we-on-ns = <10>;
+ gpmc,we-off-ns = <50>;
+ gpmc,oe-on-ns = <4>;
+ gpmc,oe-off-ns = <40>;
+ gpmc,access-ns = <40>;
+ gpmc,wr-access-ns = <80>;
+ gpmc,rd-cycle-ns = <80>;
+ gpmc,wr-cycle-ns = <80>;
gpmc,bus-turnaround-ns = <0>;
gpmc,cycle2cycle-delay-ns = <0>;
gpmc,clk-activation-ns = <0>;
--
1.8.3.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: dts: dra7-evm: Fix NAND GPMC timings (for 3.17)
2014-09-05 12:04 [PATCH] ARM: dts: dra7-evm: Fix NAND GPMC timings Roger Quadros
@ 2014-09-08 8:08 ` Roger Quadros
2014-09-08 22:40 ` Tony Lindgren
0 siblings, 1 reply; 5+ messages in thread
From: Roger Quadros @ 2014-09-08 8:08 UTC (permalink / raw)
To: tony; +Cc: pekon, linux-omap, stable
Hi Tony,
This is needed for 3.17 otherwise NAND is broken on dra7-evm. Thanks.
cheers,
-roger
On 09/05/2014 03:04 PM, Roger Quadros wrote:
> The nand timings were scaled down by 2 to account for
> the 2x rate returned by clk_get_rate(gpmc_fclk).
>
> As the clock data got fixed by [1], revert back to actual
> timings (i.e. scale them up by 2).
>
> Without this NAND doesn't work on dra7-evm.
>
> [1] - commit dd94324b983afe114ba9e7ee3649313b451f63ce
> ARM: dts: dra7xx-clocks: Fix the l3 and l4 clock rates
>
> Fixes: ff66a3c86e00 ("ARM: dts: dra7: add support for parallel NAND flash")
> Cc: <stable@vger.kernel.org> [3.16]
> Signed-off-by: Roger Quadros <rogerq@ti.com>
> ---
> arch/arm/boot/dts/dra7-evm.dts | 27 ++++++++++++---------------
> 1 file changed, 12 insertions(+), 15 deletions(-)
>
> diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot/dts/dra7-evm.dts
> index 990ee6a..a120d8f 100644
> --- a/arch/arm/boot/dts/dra7-evm.dts
> +++ b/arch/arm/boot/dts/dra7-evm.dts
> @@ -427,22 +427,19 @@
> gpmc,device-width = <2>;
> gpmc,sync-clk-ps = <0>;
> gpmc,cs-on-ns = <0>;
> - gpmc,cs-rd-off-ns = <40>;
> - gpmc,cs-wr-off-ns = <40>;
> + gpmc,cs-rd-off-ns = <80>;
> + gpmc,cs-wr-off-ns = <80>;
> gpmc,adv-on-ns = <0>;
> - gpmc,adv-rd-off-ns = <30>;
> - gpmc,adv-wr-off-ns = <30>;
> - gpmc,we-on-ns = <5>;
> - gpmc,we-off-ns = <25>;
> - gpmc,oe-on-ns = <2>;
> - gpmc,oe-off-ns = <20>;
> - gpmc,access-ns = <20>;
> - gpmc,wr-access-ns = <40>;
> - gpmc,rd-cycle-ns = <40>;
> - gpmc,wr-cycle-ns = <40>;
> - gpmc,wait-pin = <0>;
> - gpmc,wait-on-read;
> - gpmc,wait-on-write;
> + gpmc,adv-rd-off-ns = <60>;
> + gpmc,adv-wr-off-ns = <60>;
> + gpmc,we-on-ns = <10>;
> + gpmc,we-off-ns = <50>;
> + gpmc,oe-on-ns = <4>;
> + gpmc,oe-off-ns = <40>;
> + gpmc,access-ns = <40>;
> + gpmc,wr-access-ns = <80>;
> + gpmc,rd-cycle-ns = <80>;
> + gpmc,wr-cycle-ns = <80>;
> gpmc,bus-turnaround-ns = <0>;
> gpmc,cycle2cycle-delay-ns = <0>;
> gpmc,clk-activation-ns = <0>;
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: dts: dra7-evm: Fix NAND GPMC timings (for 3.17)
2014-09-08 8:08 ` [PATCH] ARM: dts: dra7-evm: Fix NAND GPMC timings (for 3.17) Roger Quadros
@ 2014-09-08 22:40 ` Tony Lindgren
2014-09-22 8:58 ` Roger Quadros
0 siblings, 1 reply; 5+ messages in thread
From: Tony Lindgren @ 2014-09-08 22:40 UTC (permalink / raw)
To: Roger Quadros; +Cc: pekon, linux-omap, stable
* Roger Quadros <rogerq@ti.com> [140908 01:08]:
> Hi Tony,
>
> This is needed for 3.17 otherwise NAND is broken on dra7-evm. Thanks.
Thanks applying into omap-for-v3.17/fixes-v2.
Tony
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: dts: dra7-evm: Fix NAND GPMC timings (for 3.17)
2014-09-08 22:40 ` Tony Lindgren
@ 2014-09-22 8:58 ` Roger Quadros
2014-09-23 16:03 ` Tony Lindgren
0 siblings, 1 reply; 5+ messages in thread
From: Roger Quadros @ 2014-09-22 8:58 UTC (permalink / raw)
To: Tony Lindgren; +Cc: pekon, linux-omap, stable
Hi Tony,
On 09/09/2014 01:40 AM, Tony Lindgren wrote:
> * Roger Quadros <rogerq@ti.com> [140908 01:08]:
>> Hi Tony,
>>
>> This is needed for 3.17 otherwise NAND is broken on dra7-evm. Thanks.
>
> Thanks applying into omap-for-v3.17/fixes-v2.
>
I don't see this branch. Did you put this patch somewhere else?
cheers,
-roger
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ARM: dts: dra7-evm: Fix NAND GPMC timings (for 3.17)
2014-09-22 8:58 ` Roger Quadros
@ 2014-09-23 16:03 ` Tony Lindgren
0 siblings, 0 replies; 5+ messages in thread
From: Tony Lindgren @ 2014-09-23 16:03 UTC (permalink / raw)
To: Roger Quadros; +Cc: pekon, linux-omap, stable
* Roger Quadros <rogerq@ti.com> [140922 01:59]:
> Hi Tony,
>
> On 09/09/2014 01:40 AM, Tony Lindgren wrote:
> > * Roger Quadros <rogerq@ti.com> [140908 01:08]:
> >> Hi Tony,
> >>
> >> This is needed for 3.17 otherwise NAND is broken on dra7-evm. Thanks.
> >
> > Thanks applying into omap-for-v3.17/fixes-v2.
> >
>
> I don't see this branch. Did you put this patch somewhere else?
I had to redo the branch, it's in omap-for-v3.17/fixes-v3
that got merged into arm-soc fixes by Olof recently.
Regards,
Tony
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-09-23 16:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-05 12:04 [PATCH] ARM: dts: dra7-evm: Fix NAND GPMC timings Roger Quadros
2014-09-08 8:08 ` [PATCH] ARM: dts: dra7-evm: Fix NAND GPMC timings (for 3.17) Roger Quadros
2014-09-08 22:40 ` Tony Lindgren
2014-09-22 8:58 ` Roger Quadros
2014-09-23 16:03 ` Tony Lindgren
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.