1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2017, Intel Corporation
4 *
5 * based on socfpga_cyclone5_de0_nano_soc.dts
6 */
7
8#include "socfpga_cyclone5.dtsi"
9
10/ {
11	model = "Terasic DE10-Nano";
12	compatible = "altr,socfpga-cyclone5", "altr,socfpga";
13
14	chosen {
15		bootargs = "console=ttyS0,115200";
16	};
17
18	aliases {
19		ethernet0 = &gmac1;
20		udc0 = &usb1;
21	};
22
23	memory {
24		name = "memory";
25		device_type = "memory";
26		reg = <0x0 0x40000000>; /* 1GB */
27	};
28
29	soc {
30		u-boot,dm-pre-reloc;
31	};
32};
33
34&gmac1 {
35	status = "okay";
36	phy-mode = "rgmii";
37
38	rxd0-skew-ps = <420>;
39	rxd1-skew-ps = <420>;
40	rxd2-skew-ps = <420>;
41	rxd3-skew-ps = <420>;
42	txen-skew-ps = <0>;
43	txc-skew-ps = <1860>;
44	rxdv-skew-ps = <420>;
45	rxc-skew-ps = <1680>;
46};
47
48&gpio0 {
49	status = "okay";
50};
51
52&gpio1 {
53	status = "okay";
54};
55
56&gpio2 {
57	status = "okay";
58};
59
60&mmc0 {
61	status = "okay";
62	u-boot,dm-pre-reloc;
63};
64
65&usb1 {
66	status = "okay";
67};
68