1// SPDX-License-Identifier: GPL-2.0+
2/*
3 *  Copyright (C) 2014 Steffen Trumtrar <s.trumtrar@pengutronix.de>
4 */
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
16	aliases {
17		/*
18		 * This allows the ethaddr uboot environment variable
19		 * contents to be added to the gmac1 device tree blob.
20		 */
21		ethernet0 = &gmac1;
22		udc0 = &usb1;
23	};
24
25	memory {
26		name = "memory";
27		device_type = "memory";
28		reg = <0x0 0x40000000>; /* 1GB */
29	};
30
31	soc {
32		u-boot,dm-pre-reloc;
33	};
34};
35
36&gmac1 {
37	status = "okay";
38	phy-mode = "rgmii";
39
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>;
48};
49
50&i2c0 {
51	status = "okay";
52
53	rtc: rtc@68 {
54		compatible = "stm,m41t82";
55		reg = <0x68>;
56	};
57};
58
59&mmc0 {
60	status = "okay";
61	u-boot,dm-pre-reloc;
62};
63
64&qspi {
65	status = "okay";
66
67	flash0: n25q00@0 {
68		#address-cells = <1>;
69		#size-cells = <1>;
70		compatible = "n25q00", "spi-flash";
71		reg = <0>;      /* chip select */
72		spi-max-frequency = <50000000>;
73		m25p,fast-read;
74		page-size = <256>;
75		block-size = <16>; /* 2^16, 64KB */
76		cdns,tshsl-ns = <50>;
77		cdns,tsd2d-ns = <50>;
78		cdns,tchsh-ns = <4>;
79		cdns,tslch-ns = <4>;
80	};
81};
82
83&usb1 {
84	disable-over-current;
85	status = "okay";
86};
87