blob: 0d452ae300a8c4e91e23b30b495f741765b79c67 [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";
14 };
15
Marek Vasutad3c96a2015-12-05 19:24:22 +010016 aliases {
Stefan Roeseeefea762016-04-18 14:22:05 +020017 /*
18 * This allows the ethaddr uboot environment variable
19 * contents to be added to the gmac1 device tree blob.
20 */
21 ethernet0 = &gmac1;
Marek Vasutad3c96a2015-12-05 19:24:22 +010022 udc0 = &usb1;
23 };
24
Stefan Roese76ba23f2014-11-07 14:10:41 +010025 memory {
26 name = "memory";
27 device_type = "memory";
28 reg = <0x0 0x40000000>; /* 1GB */
29 };
Marek Vasut567356a2015-11-23 17:06:27 +010030
31 soc {
32 u-boot,dm-pre-reloc;
33 };
Stefan Roese76ba23f2014-11-07 14:10:41 +010034};
35
36&gmac1 {
37 status = "okay";
Marek Vasut6433f592015-08-03 15:32:37 +020038 phy-mode = "rgmii";
Marek Vasutf95f5fd2015-12-05 17:53:40 +010039
40 rxd0-skew-ps = <0>;
41 rxd1-skew-ps = <0>;
42 rxd2-skew-ps = <0>;
43 rxd3-skew-ps = <0>;
44 txen-skew-ps = <0>;
45 txc-skew-ps = <2600>;
46 rxdv-skew-ps = <0>;
47 rxc-skew-ps = <2000>;
Stefan Roese76ba23f2014-11-07 14:10:41 +010048};
49
50&i2c0 {
51 status = "okay";
52
53 rtc: rtc@68 {
54 compatible = "stm,m41t82";
55 reg = <0x68>;
56 };
57};
58
Marek Vasutaa66c842015-08-02 22:55:24 +020059&mmc0 {
Stefan Roese76ba23f2014-11-07 14:10:41 +010060 status = "okay";
Marek Vasut567356a2015-11-23 17:06:27 +010061 u-boot,dm-pre-reloc;
Stefan Roese76ba23f2014-11-07 14:10:41 +010062};
Stefan Roese2948d192014-11-07 12:37:50 +010063
64&qspi {
65 status = "okay";
66
67 flash0: n25q00@0 {
68 #address-cells = <1>;
69 #size-cells = <1>;
Simon Goldschmidt505fd842018-01-29 07:36:37 +010070 compatible = "n25q00", "spi-flash";
Stefan Roese2948d192014-11-07 12:37:50 +010071 reg = <0>; /* chip select */
72 spi-max-frequency = <50000000>;
73 m25p,fast-read;
74 page-size = <256>;
75 block-size = <16>; /* 2^16, 64KB */
Jason Rushfeaa3f92018-01-23 17:13:10 -060076 cdns,tshsl-ns = <50>;
77 cdns,tsd2d-ns = <50>;
78 cdns,tchsh-ns = <4>;
79 cdns,tslch-ns = <4>;
Stefan Roese2948d192014-11-07 12:37:50 +010080 };
81};
Marek Vasutad3c96a2015-12-05 19:24:22 +010082
83&usb1 {
Marek Vasutab4c0cf2016-04-27 15:07:03 +020084 disable-over-current;
Marek Vasutad3c96a2015-12-05 19:24:22 +010085 status = "okay";
86};