Skip to contentSkip to conversation

add Atmel EBI (External Bus Interface) DT nodes for AT91SAM9263

PATCH New Alexander Stein 3 participants 6 messages Dec 19, 2014 – Dec 29, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover add Atmel EBI (External Bus Interface) DT nodes for AT91SAM9263

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(+)
Signature · 1 line
2.2.1
#1 lore raw

PATCH 1/3 ARM: at91/dt: add matrix node in at91sam9263 dtsi

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

---
 arch/arm/boot/dts/at91sam9263.dtsi | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm/boot/dts/at91sam9263.dtsi +5 -0
index fd8d242..8cc5337 100644
@@ -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>;
Signature · 1 line
2.2.1
#2 lore raw

PATCH 2/3 ARM: at91/dt: add SMC0/1 nodes in at91sam9263 dtsi

In reply to Alexander Stein

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

---
 arch/arm/boot/dts/at91sam9263.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/arm/boot/dts/at91sam9263.dtsi +10 -0
index 8cc5337..914990b 100644
@@ -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>;
Signature · 1 line
2.2.1
#3 lore raw

PATCH 3/3 ARM: at91/dt: add EBI (External Bus Interface) node in at91sam9263 dtsi

In reply to Alexander Stein

Add EBI node to at91sam9263 dtsi.

---
 arch/arm/boot/dts/at91sam9263.dtsi | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
arch/arm/boot/dts/at91sam9263.dtsi +29 -0
index 914990b..9d9ab2a 100644
@@ -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>;
Signature · 1 line
2.2.1
#4 lore raw

cover add Atmel EBI (External Bus Interface) DT nodes for AT91SAM9263

In reply to Alexander Stein

The whole series is

Quoted 24 lines · Alexander Stein

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(+)
Signature · 1 line
2.2.1
Signature · 3 lines
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#5 lore raw

cover add Atmel EBI (External Bus Interface) DT nodes for AT91SAM9263

In reply to Alexander Stein

Hi Alexander,

Quoted 8 lines · On Fri, 19 Dec 2014 09:51:37 +0100 Alexander Stein <[email protected]> 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

Regards,

Boris

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