]> git.sur5r.net Git - u-boot/commitdiff
arm64: mvebu: Armada 3700: Add SPI device tree nodes
authorStefan Roese <sr@denx.de>
Thu, 19 May 2016 08:41:01 +0000 (10:41 +0200)
committerStefan Roese <sr@denx.de>
Tue, 27 Sep 2016 15:29:53 +0000 (17:29 +0200)
This patch adds the SPI device tree nodes that are still missing to
the Armada 3700 dts files.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Nadav Haklai <nadavh@marvell.com>
Cc: Kostya Porotchkin <kostap@marvell.com>
Cc: Wilson Ding <dingwei@marvell.com>
Cc: Victor Gu <xigu@marvell.com>
Cc: Hua Jing <jinghua@marvell.com>
Cc: Terry Zhou <bjzhou@marvell.com>
Cc: Hanna Hawa <hannah@marvell.com>
Cc: Haim Boot <hayim@marvell.com>
Reviewed-by: Jagan Teki <jteki@openedev.com>
arch/arm/dts/armada-3720-db.dts
arch/arm/dts/armada-37xx.dtsi

index 86110a6ae33095ac5af652a80052ac566b5f9c7b..7bfa840e854e874cc6835280687586e3d59eca62 100644 (file)
                stdout-path = "serial0:115200n8";
        };
 
+       aliases {
+               spi0 = &spi0;
+       };
+
        memory {
                device_type = "memory";
                reg = <0x00000000 0x00000000 0x00000000 0x20000000>;
        status = "okay";
 };
 
+&spi0 {
+       status = "okay";
+
+       spi-flash@0 {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               compatible = "st,m25p128", "spi-flash";
+               reg = <0>; /* Chip select 0 */
+               spi-max-frequency = <50000000>;
+               m25p,fast-read;
+       };
+};
+
 /* Exported on the micro USB connector CON32 through an FTDI */
 &uart0 {
        status = "okay";
index 9e2efb882983558e1cc34fa9bdd2f135b64f60b8..bb14f543b5aac37f6a2399e12d274dc6499e8f86 100644 (file)
                                reg = <0x1d00000 0x10000>, /* GICD */
                                      <0x1d40000 0x40000>; /* GICR */
                        };
+
+                       spi0: spi@10600 {
+                               compatible = "marvell,armada-3700-spi";
+                               reg = <0x10600 0x50>;
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               #clock-cells = <0>;
+                               clock-frequency = <160000>;
+                               spi-max-frequency = <40000>;
+                               status = "disabled";
+                       };
                };
        };
 };