blob: f175ef2ead9d76ac1c08bb9c969d10dcf2aa644e [file] [log] [blame]
Marek Vasut86565832014-12-30 21:05:53 +01001/*
2 * Copyright (C) 2012 Altera Corporation <www.altera.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#include "socfpga_cyclone5.dtsi"
8
9/ {
10 model = "Altera SOCFPGA Cyclone V SoC Development Kit";
11 compatible = "altr,socfpga-cyclone5", "altr,socfpga";
12
13 chosen {
14 bootargs = "console=ttyS0,115200";
15 };
16
17 memory {
18 name = "memory";
19 device_type = "memory";
20 reg = <0x0 0x40000000>; /* 1GB */
21 };
22
23 aliases {
Stefan Roese72887e32016-04-18 14:22:04 +020024 /* this allow the ethaddr uboot environment variable contents
Marek Vasut86565832014-12-30 21:05:53 +010025 * to be added to the gmac1 device tree blob.
26 */
27 ethernet0 = &gmac1;
Marek Vasutb9353262015-12-05 19:24:22 +010028 udc0 = &usb1;
Marek Vasut86565832014-12-30 21:05:53 +010029 };
30
31 regulator_3_3v: 3-3-v-regulator {
32 compatible = "regulator-fixed";
33 regulator-name = "3.3V";
34 regulator-min-microvolt = <3300000>;
35 regulator-max-microvolt = <3300000>;
36 };
Marek Vasutfd8eab52015-12-22 04:15:21 +010037
38 soc {
39 u-boot,dm-pre-reloc;
40 };
Marek Vasut86565832014-12-30 21:05:53 +010041};
42
43&gmac1 {
44 status = "okay";
45 phy-mode = "rgmii";
46
47 rxd0-skew-ps = <0>;
48 rxd1-skew-ps = <0>;
49 rxd2-skew-ps = <0>;
50 rxd3-skew-ps = <0>;
51 txen-skew-ps = <0>;
52 txc-skew-ps = <2600>;
53 rxdv-skew-ps = <0>;
54 rxc-skew-ps = <2000>;
55};
56
Georges Savoundararadje9a1fd72017-03-27 22:56:04 -070057&gpio0 {
58 status = "okay";
59};
60
Marek Vasut86565832014-12-30 21:05:53 +010061&gpio1 {
62 status = "okay";
63};
64
Georges Savoundararadje9a1fd72017-03-27 22:56:04 -070065&gpio2 {
66 status = "okay";
67};
68
Marek Vasut86565832014-12-30 21:05:53 +010069&i2c0 {
70 status = "okay";
71
72 eeprom@51 {
73 compatible = "atmel,24c32";
74 reg = <0x51>;
75 pagesize = <32>;
76 };
77
78 rtc@68 {
79 compatible = "dallas,ds1339";
80 reg = <0x68>;
81 };
82};
83
84&mmc0 {
Dinh Nguyen2fcd3262015-10-12 11:59:04 -050085 status = "okay";
86 u-boot,dm-pre-reloc;
87
Marek Vasut86565832014-12-30 21:05:53 +010088 cd-gpios = <&portb 18 0>;
89 vmmc-supply = <&regulator_3_3v>;
90 vqmmc-supply = <&regulator_3_3v>;
91};
92
Pavel Machekf17632c2015-04-23 09:14:01 +020093&qspi {
94 status = "okay";
Marek Vasut33dde732016-02-11 15:54:10 +010095 u-boot,dm-pre-reloc;
Pavel Machekf17632c2015-04-23 09:14:01 +020096
97 flash0: n25q00@0 {
Marek Vasut33dde732016-02-11 15:54:10 +010098 u-boot,dm-pre-reloc;
Pavel Machekf17632c2015-04-23 09:14:01 +020099 #address-cells = <1>;
100 #size-cells = <1>;
101 compatible = "n25q00";
102 reg = <0>; /* chip select */
Chin Liang See43306e32015-10-17 08:32:56 -0500103 spi-max-frequency = <100000000>;
Pavel Machekf17632c2015-04-23 09:14:01 +0200104 m25p,fast-read;
105 page-size = <256>;
106 block-size = <16>; /* 2^16, 64KB */
107 read-delay = <4>; /* delay value in read data capture register */
108 tshsl-ns = <50>;
109 tsd2d-ns = <50>;
110 tchsh-ns = <4>;
111 tslch-ns = <4>;
112 };
Marek Vasut86565832014-12-30 21:05:53 +0100113};
Marek Vasutb9353262015-12-05 19:24:22 +0100114
115&usb1 {
116 status = "okay";
117};