[PATCH 6/9] ARM: at91/dt: add spi0 support to at91rm9200ek board

2013-08-28 Thread Boris BREZILLON
Add spi0 cs3 switch pinctrl pin definitions: this pin is used to select
between mmc0 slot0 and spi dataflash connected to cs3.

Enable spi0 controller and define the mtd_dataflash connected to cs0.

Signed-off-by: Boris BREZILLON 
---
 arch/arm/boot/dts/at91rm9200ek.dts |   20 
 1 file changed, 20 insertions(+)

diff --git a/arch/arm/boot/dts/at91rm9200ek.dts 
b/arch/arm/boot/dts/at91rm9200ek.dts
index 2bad423..b3e7425 100644
--- a/arch/arm/boot/dts/at91rm9200ek.dts
+++ b/arch/arm/boot/dts/at91rm9200ek.dts
@@ -56,6 +56,13 @@
;
};
};
+
+   spi0 {
+   pinctrl_spi0_cs3_switch: 
spi0_cs3_switch-0 {
+   atmel,pins =
+   ;
+   };
+   };
};
 
dbgu: serial@f200 {
@@ -119,6 +126,19 @@
wp-gpios = < 17 GPIO_ACTIVE_HIGH>;
};
};
+
+   spi0: spi@fffe {
+   pinctrl-0 = <_spi0 _spi0_cs0>;
+   cs-gpios = < 3 GPIO_ACTIVE_HIGH>, <0>,
+  <0>, <0>;
+   status = "okay";
+
+   mtd_dataflash@0 {
+   compatible = "atmel,at45", 
"atmel,dataflash";
+   spi-max-frequency = <1500>;
+   reg = <0>;
+   };
+   };
};
 
usb0: ohci@0030 {
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 6/9] ARM: at91/dt: add spi0 support to at91rm9200ek board

2013-08-28 Thread Boris BREZILLON
Add spi0 cs3 switch pinctrl pin definitions: this pin is used to select
between mmc0 slot0 and spi dataflash connected to cs3.

Enable spi0 controller and define the mtd_dataflash connected to cs0.

Signed-off-by: Boris BREZILLON b.brezil...@overkiz.com
---
 arch/arm/boot/dts/at91rm9200ek.dts |   20 
 1 file changed, 20 insertions(+)

diff --git a/arch/arm/boot/dts/at91rm9200ek.dts 
b/arch/arm/boot/dts/at91rm9200ek.dts
index 2bad423..b3e7425 100644
--- a/arch/arm/boot/dts/at91rm9200ek.dts
+++ b/arch/arm/boot/dts/at91rm9200ek.dts
@@ -56,6 +56,13 @@
AT91_PIOB 22 
AT91_PERIPH_GPIO (AT91_PINCTRL_OUTPUT | AT91_PINCTRL_OUTPUT_VAL(1));
};
};
+
+   spi0 {
+   pinctrl_spi0_cs3_switch: 
spi0_cs3_switch-0 {
+   atmel,pins =
+   AT91_PIOB 22 
AT91_PERIPH_GPIO (AT91_PINCTRL_OUTPUT | AT91_PINCTRL_OUTPUT_VAL(0));
+   };
+   };
};
 
dbgu: serial@f200 {
@@ -119,6 +126,19 @@
wp-gpios = pioA 17 GPIO_ACTIVE_HIGH;
};
};
+
+   spi0: spi@fffe {
+   pinctrl-0 = pinctrl_spi0 pinctrl_spi0_cs0;
+   cs-gpios = pioA 3 GPIO_ACTIVE_HIGH, 0,
+  0, 0;
+   status = okay;
+
+   mtd_dataflash@0 {
+   compatible = atmel,at45, 
atmel,dataflash;
+   spi-max-frequency = 1500;
+   reg = 0;
+   };
+   };
};
 
usb0: ohci@0030 {
-- 
1.7.9.5

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/