Skip to content

Commit 8443e48

Browse files
aakoskintmlind
authored andcommitted
ARM: OMAP: dts: N950/N9: fix onenand timings
Commit a758f50 ("mtd: onenand: omap2: Configure driver from DT") started using DT specified timings for GPMC, and as a result the OneNAND stopped working on N950/N9 as we had wrong values in the DT. Fix by updating the values to bootloader timings that have been tested to be working on both Nokia N950 and N9. Fixes: a758f50 ("mtd: onenand: omap2: Configure driver from DT") Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Tony Lindgren <tony@atomide.com>
1 parent bfeffd1 commit 8443e48

File tree

1 file changed

+28
-14
lines changed

1 file changed

+28
-14
lines changed

arch/arm/boot/dts/omap3-n950-n9.dtsi

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,19 @@
370370
compatible = "ti,omap2-onenand";
371371
reg = <0 0 0x20000>; /* CS0, offset 0, IO size 128K */
372372

373+
/*
374+
* These timings are based on CONFIG_OMAP_GPMC_DEBUG=y reported
375+
* bootloader set values when booted with v4.19 using both N950
376+
* and N9 devices (OneNAND Manufacturer: Samsung):
377+
*
378+
* gpmc cs0 before gpmc_cs_program_settings:
379+
* cs0 GPMC_CS_CONFIG1: 0xfd001202
380+
* cs0 GPMC_CS_CONFIG2: 0x00181800
381+
* cs0 GPMC_CS_CONFIG3: 0x00030300
382+
* cs0 GPMC_CS_CONFIG4: 0x18001804
383+
* cs0 GPMC_CS_CONFIG5: 0x03171d1d
384+
* cs0 GPMC_CS_CONFIG6: 0x97080000
385+
*/
373386
gpmc,sync-read;
374387
gpmc,sync-write;
375388
gpmc,burst-length = <16>;
@@ -379,26 +392,27 @@
379392
gpmc,device-width = <2>;
380393
gpmc,mux-add-data = <2>;
381394
gpmc,cs-on-ns = <0>;
382-
gpmc,cs-rd-off-ns = <87>;
383-
gpmc,cs-wr-off-ns = <87>;
395+
gpmc,cs-rd-off-ns = <122>;
396+
gpmc,cs-wr-off-ns = <122>;
384397
gpmc,adv-on-ns = <0>;
385-
gpmc,adv-rd-off-ns = <10>;
386-
gpmc,adv-wr-off-ns = <10>;
387-
gpmc,oe-on-ns = <15>;
388-
gpmc,oe-off-ns = <87>;
398+
gpmc,adv-rd-off-ns = <15>;
399+
gpmc,adv-wr-off-ns = <15>;
400+
gpmc,oe-on-ns = <20>;
401+
gpmc,oe-off-ns = <122>;
389402
gpmc,we-on-ns = <0>;
390-
gpmc,we-off-ns = <87>;
391-
gpmc,rd-cycle-ns = <112>;
392-
gpmc,wr-cycle-ns = <112>;
393-
gpmc,access-ns = <81>;
403+
gpmc,we-off-ns = <122>;
404+
gpmc,rd-cycle-ns = <148>;
405+
gpmc,wr-cycle-ns = <148>;
406+
gpmc,access-ns = <117>;
394407
gpmc,page-burst-access-ns = <15>;
395408
gpmc,bus-turnaround-ns = <0>;
396409
gpmc,cycle2cycle-delay-ns = <0>;
397410
gpmc,wait-monitoring-ns = <0>;
398-
gpmc,clk-activation-ns = <5>;
399-
gpmc,wr-data-mux-bus-ns = <30>;
400-
gpmc,wr-access-ns = <81>;
401-
gpmc,sync-clk-ps = <15000>;
411+
gpmc,clk-activation-ns = <10>;
412+
gpmc,wr-data-mux-bus-ns = <40>;
413+
gpmc,wr-access-ns = <117>;
414+
415+
gpmc,sync-clk-ps = <15000>; /* TBC; Where this value came? */
402416

403417
/*
404418
* MTD partition table corresponding to Nokia's MeeGo 1.2

0 commit comments

Comments
 (0)