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