ARM: dts: Update Nanobone dts file to add external FRAM chip
authorMark Jackson <mpfj-list@newflow.co.uk>
Thu, 15 Dec 2016 10:52:13 +0000 (10:52 +0000)
committerTony Lindgren <tony@atomide.com>
Thu, 5 Jan 2017 17:08:11 +0000 (09:08 -0800)
From v4.2+ the GPMC code has been changed to reset all the bootloader
GPMC settings when the kernel starts.

As such, this DTS file now needs the external FRAM defined.

Signed-off-by: Mark Jackson <mpfj@newflow.co.uk>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am335x-nano.dts

index 483d585c89084ca305f11e5015fade982e14dbc8..807494bc722ba3934c61fe378a46f2079a5be33e 100644 (file)
 
        #address-cells = <2>;
        #size-cells = <1>;
-       ranges = <0 0 0x08000000 0x08000000>;   /* CS0: NOR 128M */
+       ranges = <0 0 0x08000000 0x08000000>,   /* CS0: NOR 128M */
+                <1 0 0x1c000000 0x01000000>;   /* CS1: FRAM 16M */
 
        nor@0,0 {
                reg = <0 0x00000000 0x08000000>;
                        reg = <0x04000000 0x04000000>; /* 64MB */
                };
        };
+
+       fram@1,0 {
+               reg = <1 0x00000000 0x01000000>;
+               bank-width = <2>;
+
+               gpmc,mux-add-data = <2>;
+
+               gpmc,sync-clk-ps = <0>;
+               gpmc,cs-on-ns = <0>;
+               gpmc,cs-rd-off-ns = <160>;
+               gpmc,cs-wr-off-ns = <160>;
+               gpmc,adv-on-ns = <10>;
+               gpmc,adv-rd-off-ns = <20>;
+               gpmc,adv-wr-off-ns = <20>;
+               gpmc,oe-on-ns = <30>;
+               gpmc,oe-off-ns = <150>;
+               gpmc,we-on-ns = <30>;
+               gpmc,we-off-ns = <150>;
+               gpmc,rd-cycle-ns = <160>;
+               gpmc,wr-cycle-ns = <160>;
+               gpmc,access-ns = <130>;
+               gpmc,page-burst-access-ns = <10>;
+               gpmc,cycle2cycle-samecsen;
+               gpmc,cycle2cycle-diffcsen;
+               gpmc,cycle2cycle-delay-ns = <10>;
+               gpmc,wr-data-mux-bus-ns = <30>;
+               gpmc,wr-access-ns = <0>;
+       };
 };
 
 &mac {