1/*
2 * Copyright Altera Corporation (C) 2015. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
11 * more details.
12 *
13 * You should have received a copy of the GNU General Public License along with
14 * this program.  If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#include "socfpga_stratix10.dtsi"
18
19/ {
20	model = "SoCFPGA Stratix 10 SoCDK";
21
22	aliases {
23		serial0 = &uart0;
24	};
25
26	chosen {
27		stdout-path = "serial0:115200n8";
28	};
29
30	leds {
31		compatible = "gpio-leds";
32		hps0 {
33			label = "hps_led0";
34			gpios = <&portb 20 GPIO_ACTIVE_HIGH>;
35		};
36
37		hps1 {
38			label = "hps_led1";
39			gpios = <&portb 19 GPIO_ACTIVE_HIGH>;
40		};
41
42		hps2 {
43			label = "hps_led2";
44			gpios = <&portb 21 GPIO_ACTIVE_HIGH>;
45		};
46	};
47
48	memory {
49		device_type = "memory";
50		/* We expect the bootloader to fill in the reg */
51		reg = <0 0 0 0>;
52	};
53};
54
55&gpio1 {
56	status = "okay";
57};
58
59&gmac0 {
60	status = "okay";
61	phy-mode = "rgmii";
62	phy-handle = <&phy0>;
63
64	max-frame-size = <3800>;
65
66	mdio0 {
67		#address-cells = <1>;
68		#size-cells = <0>;
69		compatible = "snps,dwmac-mdio";
70		phy0: ethernet-phy@0 {
71			reg = <4>;
72
73			txd0-skew-ps = <0>; /* -420ps */
74			txd1-skew-ps = <0>; /* -420ps */
75			txd2-skew-ps = <0>; /* -420ps */
76			txd3-skew-ps = <0>; /* -420ps */
77			rxd0-skew-ps = <420>; /* 0ps */
78			rxd1-skew-ps = <420>; /* 0ps */
79			rxd2-skew-ps = <420>; /* 0ps */
80			rxd3-skew-ps = <420>; /* 0ps */
81			txen-skew-ps = <0>; /* -420ps */
82			txc-skew-ps = <1860>; /* 960ps */
83			rxdv-skew-ps = <420>; /* 0ps */
84			rxc-skew-ps = <1680>; /* 780ps */
85		};
86	};
87};
88
89&mmc {
90	status = "okay";
91	cap-sd-highspeed;
92	broken-cd;
93	bus-width = <4>;
94};
95
96&uart0 {
97	status = "okay";
98};
99
100&usb0 {
101	status = "okay";
102	disable-over-current;
103};
104
105&watchdog0 {
106	status = "okay";
107};
108