arm: socfpga: dts: Add spi0/1 dts nodes for the Designware master SPI devices
[platform/kernel/u-boot.git] / arch / arm / dts / socfpga_cyclone5_socrates.dts
1 /*
2  *  Copyright (C) 2014 Steffen Trumtrar <s.trumtrar@pengutronix.de>
3  *
4  * SPDX-License-Identifier:     GPL-2.0+
5  */
6
7 #include "socfpga_cyclone5.dtsi"
8
9 / {
10         model = "EBV SOCrates";
11         compatible = "ebv,socrates", "altr,socfpga-cyclone5", "altr,socfpga";
12
13         chosen {
14                 bootargs = "console=ttyS0,115200";
15         };
16
17         aliases {
18                 spi0 = "/spi@ff705000";         /* QSPI */
19         };
20
21         memory {
22                 name = "memory";
23                 device_type = "memory";
24                 reg = <0x0 0x40000000>; /* 1GB */
25         };
26 };
27
28 &gmac1 {
29         status = "okay";
30 };
31
32 &i2c0 {
33         status = "okay";
34
35         rtc: rtc@68 {
36                 compatible = "stm,m41t82";
37                 reg = <0x68>;
38         };
39 };
40
41 &mmc {
42         status = "okay";
43 };
44
45 &qspi {
46         status = "okay";
47
48         flash0: n25q00@0 {
49                 #address-cells = <1>;
50                 #size-cells = <1>;
51                 compatible = "n25q00";
52                 reg = <0>;      /* chip select */
53                 spi-max-frequency = <50000000>;
54                 m25p,fast-read;
55                 page-size = <256>;
56                 block-size = <16>; /* 2^16, 64KB */
57                 read-delay = <4>;  /* delay value in read data capture register */
58                 tshsl-ns = <50>;
59                 tsd2d-ns = <50>;
60                 tchsh-ns = <4>;
61                 tslch-ns = <4>;
62         };
63 };