linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Update Nanobone dts file to add external FRAM chip
@ 2016-12-15 10:52 Mark Jackson
  2017-01-04 10:55 ` Mark Jackson
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Jackson @ 2016-12-15 10:52 UTC (permalink / raw)
  To: Tony Lindgren; +Cc: linux-omap, lkml

>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>
---
 arch/arm/boot/dts/am335x-nano.dts | 31 ++++++++++++++++++++++++++++++-
 1 file changed, 30 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/am335x-nano.dts b/arch/arm/boot/dts/am335x-nano.dts
index 483d585..807494b 100644
--- a/arch/arm/boot/dts/am335x-nano.dts
+++ b/arch/arm/boot/dts/am335x-nano.dts
@@ -249,7 +249,8 @@
 
 	#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>;
@@ -342,6 +343,34 @@
 			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 {
-- 
2.7.4

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

* Re: [PATCH] Update Nanobone dts file to add external FRAM chip
  2016-12-15 10:52 [PATCH] Update Nanobone dts file to add external FRAM chip Mark Jackson
@ 2017-01-04 10:55 ` Mark Jackson
  2017-01-05 17:09   ` Tony Lindgren
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Jackson @ 2017-01-04 10:55 UTC (permalink / raw)
  To: Tony Lindgren; +Cc: linux-omap, lkml

On 15/12/16 10:52, Mark Jackson wrote:
>>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>

<snip>

Tony, any update on this patch ?

Cheers
Mark J

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

* Re: [PATCH] Update Nanobone dts file to add external FRAM chip
  2017-01-04 10:55 ` Mark Jackson
@ 2017-01-05 17:09   ` Tony Lindgren
  0 siblings, 0 replies; 3+ messages in thread
From: Tony Lindgren @ 2017-01-05 17:09 UTC (permalink / raw)
  To: Mark Jackson; +Cc: linux-omap, lkml

* Mark Jackson <mpfj-list@newflow.co.uk> [170104 02:56]:
> On 15/12/16 10:52, Mark Jackson wrote:
> >>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>
> 
> <snip>
> 
> Tony, any update on this patch ?

Applying into omap-for-v4.11/dt thanks. I usually don't get around to
applying new stuff until around -rc2 or after the fixes are out of
the way. And then I usually don't apply much anything except fixes
after -rc6 FYI.

Regards,

Tony

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

end of thread, other threads:[~2017-01-05 17:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-15 10:52 [PATCH] Update Nanobone dts file to add external FRAM chip Mark Jackson
2017-01-04 10:55 ` Mark Jackson
2017-01-05 17:09   ` Tony Lindgren

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