blob: c7a6cf2db8902bd1e18c88badb2b1774808ab413 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Marek Vasutb415bad2015-06-21 17:28:53 +02002/*
3 * Copyright (C) 2014 Steffen Trumtrar <s.trumtrar@pengutronix.de>
Marek Vasutb415bad2015-06-21 17:28:53 +02004 */
5
6#include "socfpga_cyclone5.dtsi"
7
8/ {
9 model = "Terasic SoCkit";
10 compatible = "altr,socfpga-cyclone5", "altr,socfpga";
11
12 chosen {
13 bootargs = "console=ttyS0,115200";
Simon Goldschmidt3854a1a2018-08-13 21:34:33 +020014 stdout-path = "serial0:115200n8";
Marek Vasutb415bad2015-06-21 17:28:53 +020015 };
16
Marek Vasut90576c92015-12-05 19:24:22 +010017 aliases {
Marek Vasutb415bad2015-06-21 17:28:53 +020018 ethernet0 = &gmac1;
Marek Vasut90576c92015-12-05 19:24:22 +010019 udc0 = &usb1;
20 };
Marek Vasutb415bad2015-06-21 17:28:53 +020021
22 memory {
23 name = "memory";
24 device_type = "memory";
25 reg = <0x0 0x40000000>; /* 1GB */
26 };
27
28 soc {
29 u-boot,dm-pre-reloc;
30 };
31};
32
33&gmac1 {
34 status = "okay";
35 phy-mode = "rgmii";
36
37 rxd0-skew-ps = <0>;
38 rxd1-skew-ps = <0>;
39 rxd2-skew-ps = <0>;
40 rxd3-skew-ps = <0>;
41 txen-skew-ps = <0>;
42 txc-skew-ps = <2600>;
43 rxdv-skew-ps = <0>;
44 rxc-skew-ps = <2000>;
45};
46
47&gpio0 {
48 status = "okay";
49};
50
51&gpio1 {
52 status = "okay";
53};
54
55&gpio2 {
56 status = "okay";
57};
58
59&i2c0 {
60 status = "okay";
61
62 rtc: rtc@68 {
63 compatible = "stm,m41t82";
64 reg = <0x68>;
65 };
66};
67
68&mmc0 {
69 status = "okay";
70 u-boot,dm-pre-reloc;
71};
72
73&qspi {
74 status = "okay";
75 u-boot,dm-pre-reloc;
76
77 flash0: n25q00@0 {
78 u-boot,dm-pre-reloc;
79 #address-cells = <1>;
80 #size-cells = <1>;
81 compatible = "n25q00", "spi-flash";
82 reg = <0>; /* chip select */
83 spi-max-frequency = <50000000>;
84 m25p,fast-read;
85 page-size = <256>;
86 block-size = <16>; /* 2^16, 64KB */
Jason Rushfeaa3f92018-01-23 17:13:10 -060087 cdns,tshsl-ns = <50>;
88 cdns,tsd2d-ns = <50>;
89 cdns,tchsh-ns = <4>;
90 cdns,tslch-ns = <4>;
Marek Vasutb415bad2015-06-21 17:28:53 +020091 };
92};
Marek Vasut90576c92015-12-05 19:24:22 +010093
94&usb1 {
95 status = "okay";
96};
Simon Goldschmidt3854a1a2018-08-13 21:34:33 +020097
98&uart0 {
99 u-boot,dm-pre-reloc;
100};