blob: 8cde9906a073e5a51fa455bfc8fc9bb23fc0bb8c [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Stefan Roese76ba23f2014-11-07 14:10:41 +01002/*
3 * Copyright (C) 2014 Steffen Trumtrar <s.trumtrar@pengutronix.de>
Stefan Roese76ba23f2014-11-07 14:10:41 +01004 */
5
6#include "socfpga_cyclone5.dtsi"
7
8/ {
9 model = "EBV SOCrates";
10 compatible = "ebv,socrates", "altr,socfpga-cyclone5", "altr,socfpga";
11
12 chosen {
13 bootargs = "console=ttyS0,115200";
Simon Goldschmidt3854a1a2018-08-13 21:34:33 +020014 stdout-path = "serial0:115200n8";
Stefan Roese76ba23f2014-11-07 14:10:41 +010015 };
16
Marek Vasutad3c96a2015-12-05 19:24:22 +010017 aliases {
Stefan Roeseeefea762016-04-18 14:22:05 +020018 /*
19 * This allows the ethaddr uboot environment variable
20 * contents to be added to the gmac1 device tree blob.
21 */
22 ethernet0 = &gmac1;
Marek Vasutad3c96a2015-12-05 19:24:22 +010023 udc0 = &usb1;
24 };
25
Stefan Roese76ba23f2014-11-07 14:10:41 +010026 memory {
27 name = "memory";
28 device_type = "memory";
29 reg = <0x0 0x40000000>; /* 1GB */
30 };
Marek Vasut567356a2015-11-23 17:06:27 +010031
32 soc {
33 u-boot,dm-pre-reloc;
34 };
Stefan Roese76ba23f2014-11-07 14:10:41 +010035};
36
37&gmac1 {
38 status = "okay";
Marek Vasut6433f592015-08-03 15:32:37 +020039 phy-mode = "rgmii";
Marek Vasutf95f5fd2015-12-05 17:53:40 +010040
41 rxd0-skew-ps = <0>;
42 rxd1-skew-ps = <0>;
43 rxd2-skew-ps = <0>;
44 rxd3-skew-ps = <0>;
45 txen-skew-ps = <0>;
46 txc-skew-ps = <2600>;
47 rxdv-skew-ps = <0>;
48 rxc-skew-ps = <2000>;
Stefan Roese76ba23f2014-11-07 14:10:41 +010049};
50
51&i2c0 {
52 status = "okay";
53
54 rtc: rtc@68 {
55 compatible = "stm,m41t82";
56 reg = <0x68>;
57 };
58};
59
Marek Vasutaa66c842015-08-02 22:55:24 +020060&mmc0 {
Stefan Roese76ba23f2014-11-07 14:10:41 +010061 status = "okay";
Marek Vasut567356a2015-11-23 17:06:27 +010062 u-boot,dm-pre-reloc;
Stefan Roese76ba23f2014-11-07 14:10:41 +010063};
Stefan Roese2948d192014-11-07 12:37:50 +010064
65&qspi {
66 status = "okay";
67
68 flash0: n25q00@0 {
69 #address-cells = <1>;
70 #size-cells = <1>;
Simon Goldschmidt505fd842018-01-29 07:36:37 +010071 compatible = "n25q00", "spi-flash";
Stefan Roese2948d192014-11-07 12:37:50 +010072 reg = <0>; /* chip select */
73 spi-max-frequency = <50000000>;
74 m25p,fast-read;
75 page-size = <256>;
76 block-size = <16>; /* 2^16, 64KB */
Jason Rushfeaa3f92018-01-23 17:13:10 -060077 cdns,tshsl-ns = <50>;
78 cdns,tsd2d-ns = <50>;
79 cdns,tchsh-ns = <4>;
80 cdns,tslch-ns = <4>;
Stefan Roese2948d192014-11-07 12:37:50 +010081 };
82};
Marek Vasutad3c96a2015-12-05 19:24:22 +010083
84&usb1 {
Marek Vasutab4c0cf2016-04-27 15:07:03 +020085 disable-over-current;
Marek Vasutad3c96a2015-12-05 19:24:22 +010086 status = "okay";
87};
Simon Goldschmidt3854a1a2018-08-13 21:34:33 +020088
89&uart0 {
90 u-boot,dm-pre-reloc;
91};