linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] add Atmel EBI (External Bus Interface) DT nodes for AT91SAM9263
@ 2014-12-19  8:51 Alexander Stein
  2014-12-19  8:51 ` [PATCH 1/3] ARM: at91/dt: add matrix node in at91sam9263 dtsi Alexander Stein
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Alexander Stein @ 2014-12-19  8:51 UTC (permalink / raw)
  To: linux-arm-kernel

This is based on and requires Boris' work on an EBI driver for AT91. Please
refer to https://lkml.org/lkml/2014/12/3/806.
The reason I added no pinctrl is that those pins from EBI1 in my case are not
muxable. They are fixed so there is nothing I can test here.
I used this patchset and the EBI to configure a PSRAM to be used by the
atmel_lcdfb driver which works so far.
This also means EBI0 is rather untested, but it should behave like EBI1 if
the numbers are correct.

Best regards,
Alexander

Alexander Stein (3):
  ARM: at91/dt: add matrix node in at91sam9263 dtsi
  ARM: at91/dt: add SMC0/1  nodes in at91sam9263 dtsi
  ARM: at91/dt: add EBI (External Bus Interface) node in at91sam9263
    dtsi

 arch/arm/boot/dts/at91sam9263.dtsi | 44 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

-- 
2.2.1

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

* [PATCH 1/3] ARM: at91/dt: add matrix node in at91sam9263 dtsi
  2014-12-19  8:51 [PATCH 0/3] add Atmel EBI (External Bus Interface) DT nodes for AT91SAM9263 Alexander Stein
@ 2014-12-19  8:51 ` Alexander Stein
  2014-12-19  8:51 ` [PATCH 2/3] ARM: at91/dt: add SMC0/1 nodes " Alexander Stein
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Alexander Stein @ 2014-12-19  8:51 UTC (permalink / raw)
  To: linux-arm-kernel

Add matrix node in at91sam9263 dtsi so that it can be referenced by other
devices.

Signed-off-by: Alexander Stein <alexanders83@web.de>
---
 arch/arm/boot/dts/at91sam9263.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/boot/dts/at91sam9263.dtsi b/arch/arm/boot/dts/at91sam9263.dtsi
index fd8d242..8cc5337 100644
--- a/arch/arm/boot/dts/at91sam9263.dtsi
+++ b/arch/arm/boot/dts/at91sam9263.dtsi
@@ -356,6 +356,11 @@
 				reg = <0xffffe800 0x200>;
 			};
 
+			matrix: matrix at ffffec00 {
+				compatible = "atmel,at91sam9263-matrix", "syscon";
+				reg = <0xffffec00 0x200>;
+			};
+
 			pit: timer at fffffd30 {
 				compatible = "atmel,at91sam9260-pit";
 				reg = <0xfffffd30 0xf>;
-- 
2.2.1

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

* [PATCH 2/3] ARM: at91/dt: add SMC0/1  nodes in at91sam9263 dtsi
  2014-12-19  8:51 [PATCH 0/3] add Atmel EBI (External Bus Interface) DT nodes for AT91SAM9263 Alexander Stein
  2014-12-19  8:51 ` [PATCH 1/3] ARM: at91/dt: add matrix node in at91sam9263 dtsi Alexander Stein
@ 2014-12-19  8:51 ` Alexander Stein
  2014-12-19  8:51 ` [PATCH 3/3] ARM: at91/dt: add EBI (External Bus Interface) node " Alexander Stein
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Alexander Stein @ 2014-12-19  8:51 UTC (permalink / raw)
  To: linux-arm-kernel

Add the SMC0/1 (Static Memory Controller) nodes in at91sam9263sama5d3 dtsi.

Signed-off-by: Alexander Stein <alexanders83@web.de>
---
 arch/arm/boot/dts/at91sam9263.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm/boot/dts/at91sam9263.dtsi b/arch/arm/boot/dts/at91sam9263.dtsi
index 8cc5337..914990b 100644
--- a/arch/arm/boot/dts/at91sam9263.dtsi
+++ b/arch/arm/boot/dts/at91sam9263.dtsi
@@ -351,11 +351,21 @@
 				reg = <0xffffe200 0x200>;
 			};
 
+			smc0: smc0 at ffffe400 {
+				compatible = "atmel,at91sam9260-smc", "syscon";
+				reg = <0xffffe400 0x200>;
+			};
+
 			ramc1: ramc at ffffe800 {
 				compatible = "atmel,at91sam9260-sdramc";
 				reg = <0xffffe800 0x200>;
 			};
 
+			smc1: smc1 at ffffea00 {
+				compatible = "atmel,at91sam9260-smc", "syscon";
+				reg = <0xffffea00 0x200>;
+			};
+
 			matrix: matrix at ffffec00 {
 				compatible = "atmel,at91sam9263-matrix", "syscon";
 				reg = <0xffffec00 0x200>;
-- 
2.2.1

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

* [PATCH 3/3] ARM: at91/dt: add EBI (External Bus Interface) node in at91sam9263 dtsi
  2014-12-19  8:51 [PATCH 0/3] add Atmel EBI (External Bus Interface) DT nodes for AT91SAM9263 Alexander Stein
  2014-12-19  8:51 ` [PATCH 1/3] ARM: at91/dt: add matrix node in at91sam9263 dtsi Alexander Stein
  2014-12-19  8:51 ` [PATCH 2/3] ARM: at91/dt: add SMC0/1 nodes " Alexander Stein
@ 2014-12-19  8:51 ` Alexander Stein
  2014-12-21 11:14 ` [PATCH 0/3] add Atmel EBI (External Bus Interface) DT nodes for AT91SAM9263 Alexandre Belloni
  2014-12-29 15:33 ` Boris Brezillon
  4 siblings, 0 replies; 6+ messages in thread
From: Alexander Stein @ 2014-12-19  8:51 UTC (permalink / raw)
  To: linux-arm-kernel

Add EBI node to at91sam9263 dtsi.

Signed-off-by: Alexander Stein <alexanders83@web.de>
---
 arch/arm/boot/dts/at91sam9263.dtsi | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/arch/arm/boot/dts/at91sam9263.dtsi b/arch/arm/boot/dts/at91sam9263.dtsi
index 914990b..9d9ab2a 100644
--- a/arch/arm/boot/dts/at91sam9263.dtsi
+++ b/arch/arm/boot/dts/at91sam9263.dtsi
@@ -994,6 +994,22 @@
 			status = "disabled";
 		};
 
+		ebi0: ebi0 at 10000000 {
+			compatible = "atmel,at91sam9263-ebi0", "simple-bus";
+			#address-cells = <2>;
+			#size-cells = <1>;
+			atmel,smc = <&smc0>;
+			atmel,matrix = <&matrix>;
+			reg = <0x10000000 0x60000000>;
+			ranges = <0x0 0x0 0x10000000 0x10000000
+				  0x1 0x0 0x20000000 0x10000000
+				  0x2 0x0 0x30000000 0x10000000
+				  0x3 0x0 0x40000000 0x10000000
+				  0x4 0x0 0x50000000 0x10000000
+				  0x5 0x0 0x60000000 0x10000000>;
+			clocks = <&mck>;
+		};
+
 		nand0: nand at 40000000 {
 			compatible = "atmel,at91rm9200-nand";
 			#address-cells = <1>;
@@ -1012,6 +1028,19 @@
 			status = "disabled";
 		};
 
+		ebi1: ebi1 at 70000000 {
+			compatible = "atmel,at91sam9263-ebi1", "simple-bus";
+			#address-cells = <2>;
+			#size-cells = <1>;
+			atmel,smc = <&smc1>;
+			atmel,matrix = <&matrix>;
+			reg = <0x70000000 0x30000000>;
+			ranges = <0x0 0x0 0x70000000 0x10000000
+				  0x1 0x0 0x80000000 0x10000000
+				  0x2 0x0 0x90000000 0x10000000>;
+			clocks = <&mck>;
+		};
+
 		usb0: ohci at 00a00000 {
 			compatible = "atmel,at91rm9200-ohci", "usb-ohci";
 			reg = <0x00a00000 0x100000>;
-- 
2.2.1

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

* [PATCH 0/3] add Atmel EBI (External Bus Interface) DT nodes for AT91SAM9263
  2014-12-19  8:51 [PATCH 0/3] add Atmel EBI (External Bus Interface) DT nodes for AT91SAM9263 Alexander Stein
                   ` (2 preceding siblings ...)
  2014-12-19  8:51 ` [PATCH 3/3] ARM: at91/dt: add EBI (External Bus Interface) node " Alexander Stein
@ 2014-12-21 11:14 ` Alexandre Belloni
  2014-12-29 15:33 ` Boris Brezillon
  4 siblings, 0 replies; 6+ messages in thread
From: Alexandre Belloni @ 2014-12-21 11:14 UTC (permalink / raw)
  To: linux-arm-kernel

The whole series is
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>

On 19/12/2014 at 09:51:37 +0100, Alexander Stein wrote :
> This is based on and requires Boris' work on an EBI driver for AT91. Please
> refer to https://lkml.org/lkml/2014/12/3/806.
> The reason I added no pinctrl is that those pins from EBI1 in my case are not
> muxable. They are fixed so there is nothing I can test here.
> I used this patchset and the EBI to configure a PSRAM to be used by the
> atmel_lcdfb driver which works so far.
> This also means EBI0 is rather untested, but it should behave like EBI1 if
> the numbers are correct.
> 
> Best regards,
> Alexander
> 
> Alexander Stein (3):
>   ARM: at91/dt: add matrix node in at91sam9263 dtsi
>   ARM: at91/dt: add SMC0/1  nodes in at91sam9263 dtsi
>   ARM: at91/dt: add EBI (External Bus Interface) node in at91sam9263
>     dtsi
> 
>  arch/arm/boot/dts/at91sam9263.dtsi | 44 ++++++++++++++++++++++++++++++++++++++
>  1 file changed, 44 insertions(+)
> 
> -- 
> 2.2.1
> 

-- 
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

* [PATCH 0/3] add Atmel EBI (External Bus Interface) DT nodes for AT91SAM9263
  2014-12-19  8:51 [PATCH 0/3] add Atmel EBI (External Bus Interface) DT nodes for AT91SAM9263 Alexander Stein
                   ` (3 preceding siblings ...)
  2014-12-21 11:14 ` [PATCH 0/3] add Atmel EBI (External Bus Interface) DT nodes for AT91SAM9263 Alexandre Belloni
@ 2014-12-29 15:33 ` Boris Brezillon
  4 siblings, 0 replies; 6+ messages in thread
From: Boris Brezillon @ 2014-12-29 15:33 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Alexander,

On Fri, 19 Dec 2014 09:51:37 +0100
Alexander Stein <alexanders83@web.de> wrote:

> This is based on and requires Boris' work on an EBI driver for AT91. Please
> refer to https://lkml.org/lkml/2014/12/3/806.
> The reason I added no pinctrl is that those pins from EBI1 in my case are not
> muxable. They are fixed so there is nothing I can test here.
> I used this patchset and the EBI to configure a PSRAM to be used by the
> atmel_lcdfb driver which works so far.
> This also means EBI0 is rather untested, but it should behave like EBI1 if
> the numbers are correct.

Thanks for your patches.
Unless there are other changes in the EBI/SMC bindings (which I'm not
sure since the EBI driver has not been accepted yet) you have my

Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>

Regards,

Boris


-- 
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

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

end of thread, other threads:[~2014-12-29 15:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-19  8:51 [PATCH 0/3] add Atmel EBI (External Bus Interface) DT nodes for AT91SAM9263 Alexander Stein
2014-12-19  8:51 ` [PATCH 1/3] ARM: at91/dt: add matrix node in at91sam9263 dtsi Alexander Stein
2014-12-19  8:51 ` [PATCH 2/3] ARM: at91/dt: add SMC0/1 nodes " Alexander Stein
2014-12-19  8:51 ` [PATCH 3/3] ARM: at91/dt: add EBI (External Bus Interface) node " Alexander Stein
2014-12-21 11:14 ` [PATCH 0/3] add Atmel EBI (External Bus Interface) DT nodes for AT91SAM9263 Alexandre Belloni
2014-12-29 15:33 ` Boris Brezillon

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