Add a new at91rm9200ek_dataflash board (based on at91rm9200ek board) which
enables dataflash connected to cs3 of spi0.

Signed-off-by: Boris BREZILLON <b.brezil...@overkiz.com>
---
 arch/arm/boot/dts/at91rm9200ek_dataflash.dts |   33 ++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 arch/arm/boot/dts/at91rm9200ek_dataflash.dts

diff --git a/arch/arm/boot/dts/at91rm9200ek_dataflash.dts 
b/arch/arm/boot/dts/at91rm9200ek_dataflash.dts
new file mode 100644
index 0000000..a43412e
--- /dev/null
+++ b/arch/arm/boot/dts/at91rm9200ek_dataflash.dts
@@ -0,0 +1,33 @@
+/*
+ * at91rm9200ek.dts - Device Tree file for Atmel AT91RM9200 evaluation kit with
+ *                    2 SPI dataflash
+ *
+ *  Copyright (C) 2013 Boris BREZILLON <b.brezil...@overkiz.com>
+ *
+ * Licensed under GPLv2 only
+ */
+/dts-v1/;
+#include "at91rm9200ek.dts"
+
+/ {
+       model = "Atmel AT91RM9200 evaluation kit with 2 SPI dataflash";
+       compatible = "atmel,at91rm9200ek-dataflash", "atmel,at91rm9200ek", 
"atmel,at91rm9200";
+
+       ahb {
+               apb {
+                       spi0: spi@fffe0000 {
+                               pinctrl-0 = <&pinctrl_spi0 &pinctrl_spi0_cs0
+                                            &pinctrl_spi0_cs3
+                                            &pinctrl_spi0_cs3_switch>;
+                               cs-gpios = <&pioA 3 GPIO_ACTIVE_HIGH>, <0>,
+                                          <0>, <&pioA 6 GPIO_ACTIVE_HIGH>;
+
+                               mtd_dataflash@3 {
+                                       compatible = "atmel,at45", 
"atmel,dataflash";
+                                       spi-max-frequency = <15000000>;
+                                       reg = <3>;
+                               };
+                       };
+               };
+       };
+};
-- 
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/

Reply via email to