ARM: shmobile: koelsch dts: Add QSPI nodes
authorGeert Uytterhoeven <geert+renesas@linux-m68k.org>
Tue, 4 Feb 2014 15:24:04 +0000 (16:24 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Thu, 6 Feb 2014 11:36:12 +0000 (20:36 +0900)
Add pinctrl and SPI devices for QSPI on Koelsch.
Add Spansion s25fl512s SPI FLASH and MTD partitions.

Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r8a7791-koelsch.dts

index 74f098596b5c93f400172f4e42c815217eb480f8..d4b9bba38685967dcc049e74e1019c4cf89ec4f6 100644 (file)
                renesas,groups = "scif1_data_d";
                renesas,function = "scif1";
        };
+
+       qspi_pins: spi {
+               renesas,groups = "qspi_ctrl", "qspi_data4";
+               renesas,function = "qspi";
+       };
 };
 
 &sata0 {
        status = "okay";
 };
+
+&spi {
+       pinctrl-0 = <&qspi_pins>;
+       pinctrl-names = "default";
+
+       status = "okay";
+
+       flash: flash@0 {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "spansion,s25fl512s";
+               reg = <0>;
+               spi-max-frequency = <30000000>;
+               m25p,fast-read;
+
+               partition@0 {
+                       label = "loader";
+                       reg = <0x00000000 0x00080000>;
+                       read-only;
+               };
+               partition@80000 {
+                       label = "bootenv";
+                       reg = <0x00080000 0x00080000>;
+                       read-only;
+               };
+               partition@100000 {
+                       label = "data";
+                       reg = <0x00100000 0x03f00000>;
+               };
+       };
+};