Merge branch 'master' of git://git.denx.de/u-boot-spi
[platform/kernel/u-boot.git] / arch / arm / dts / socfpga_cyclone5_is1.dts
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  *  Copyright (C) 2012 Altera Corporation <www.altera.com>
4  */
5
6 #include "socfpga_cyclone5.dtsi"
7
8 / {
9         model = "SoCFPGA Cyclone V IS1";
10         compatible = "anonymous,socfpga-is1", "altr,socfpga-cyclone5", "altr,socfpga";
11
12         chosen {
13                 bootargs = "console=ttyS0,115200";
14                 stdout-path = "serial0:115200n8";
15         };
16
17         memory {
18                 name = "memory";
19                 device_type = "memory";
20                 reg = <0x0 0x10000000>;
21         };
22
23         aliases {
24                 ethernet0 = &gmac1;
25                 udc0 = &usb1;
26         };
27
28         regulator_3_3v: 3-3-v-regulator {
29                 compatible = "regulator-fixed";
30                 regulator-name = "3.3V";
31                 regulator-min-microvolt = <3300000>;
32                 regulator-max-microvolt = <3300000>;
33         };
34
35         soc {
36                 u-boot,dm-pre-reloc;
37         };
38 };
39
40 &gmac1 {
41         status = "okay";
42         phy-mode = "rgmii";
43
44         rxd0-skew-ps = <0>;
45         rxd1-skew-ps = <0>;
46         rxd2-skew-ps = <0>;
47         rxd3-skew-ps = <0>;
48         txen-skew-ps = <0>;
49         txc-skew-ps = <2600>;
50         rxdv-skew-ps = <0>;
51         rxc-skew-ps = <2000>;
52 };
53
54 &gpio1 {
55         status = "okay";
56 };
57
58 &porta {
59         bank-name = "porta";
60 };
61
62 &i2c0 {
63         status = "okay";
64
65         eeprom@51 {
66                 compatible = "atmel,24c32";
67                 reg = <0x51>;
68                 pagesize = <32>;
69         };
70
71         rtc@68 {
72                 compatible = "dallas,ds1339";
73                 reg = <0x68>;
74         };
75 };
76
77 &mmc0 {
78         status = "okay";
79         u-boot,dm-pre-reloc;
80
81         cd-gpios = <&portb 18 0>;
82         vmmc-supply = <&regulator_3_3v>;
83         vqmmc-supply = <&regulator_3_3v>;
84 };
85
86 &qspi {
87         status = "okay";
88         u-boot,dm-pre-reloc;
89
90         flash0: n25q00@0 {
91                 u-boot,dm-pre-reloc;
92                 #address-cells = <1>;
93                 #size-cells = <1>;
94                 compatible = "n25q00", "spi-flash";
95                 reg = <0>;      /* chip select */
96                 spi-max-frequency = <100000000>;
97                 m25p,fast-read;
98                 page-size = <256>;
99                 block-size = <16>; /* 2^16, 64KB */
100                 cdns,tshsl-ns = <50>;
101                 cdns,tsd2d-ns = <50>;
102                 cdns,tchsh-ns = <4>;
103                 cdns,tslch-ns = <4>;
104         };
105 };
106
107 &usb1 {
108         status = "okay";
109 };
110
111 &uart0 {
112         u-boot,dm-pre-reloc;
113 };
114
115 &watchdog0 {
116         status = "disabled";
117 };