1// SPDX-License-Identifier: GPL-2.0+
2/*
3 *  Copyright (C) 2012 Altera Corporation <www.altera.com>
4 */
5
6#include "socfpga_cyclone5.dtsi"
7
8/ {
9	model = "Altera SOCFPGA Cyclone V SoC Development Kit";
10	compatible = "altr,socfpga-cyclone5", "altr,socfpga";
11
12	chosen {
13		bootargs = "console=ttyS0,115200";
14		stdout-path = "serial0:115200n8";
15	};
16
17	memory {
18		name = "memory";
19		device_type = "memory";
20		reg = <0x0 0x40000000>; /* 1GB */
21	};
22
23	aliases {
24		/* this allow the ethaddr uboot environment variable contents
25		 * to be added to the gmac1 device tree blob.
26		 */
27		ethernet0 = &gmac1;
28		udc0 = &usb1;
29	};
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	};
37
38	soc {
39		u-boot,dm-pre-reloc;
40	};
41};
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
57&gpio0 {
58	status = "okay";
59};
60
61&gpio1 {
62	status = "okay";
63};
64
65&gpio2 {
66	status = "okay";
67};
68
69&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 {
85	status = "okay";
86	u-boot,dm-pre-reloc;
87
88	cd-gpios = <&portb 18 0>;
89	vmmc-supply = <&regulator_3_3v>;
90	vqmmc-supply = <&regulator_3_3v>;
91};
92
93&qspi {
94	status = "okay";
95	u-boot,dm-pre-reloc;
96
97	flash0: n25q00@0 {
98		u-boot,dm-pre-reloc;
99		#address-cells = <1>;
100		#size-cells = <1>;
101		compatible = "n25q00", "spi-flash";
102		reg = <0>;      /* chip select */
103		spi-max-frequency = <100000000>;
104		m25p,fast-read;
105		page-size = <256>;
106		block-size = <16>; /* 2^16, 64KB */
107		cdns,tshsl-ns = <50>;
108		cdns,tsd2d-ns = <50>;
109		cdns,tchsh-ns = <4>;
110		cdns,tslch-ns = <4>;
111	};
112};
113
114&usb1 {
115	status = "okay";
116};
117
118&uart0 {
119	u-boot,dm-pre-reloc;
120};
121