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#include "socfpga-common-u-boot.dtsi"
8
9/ {
10	model = "SoCFPGA Cyclone V IS1";
11	compatible = "anonymous,socfpga-is1", "altr,socfpga-cyclone5", "altr,socfpga";
12
13	chosen {
14		bootargs = "console=ttyS0,115200";
15		stdout-path = "serial0:115200n8";
16	};
17
18	memory {
19		name = "memory";
20		device_type = "memory";
21		reg = <0x0 0x10000000>;
22	};
23
24	aliases {
25		ethernet0 = &gmac1;
26		udc0 = &usb1;
27	};
28
29	regulator_3_3v: 3-3-v-regulator {
30		compatible = "regulator-fixed";
31		regulator-name = "3.3V";
32		regulator-min-microvolt = <3300000>;
33		regulator-max-microvolt = <3300000>;
34	};
35};
36
37&gmac1 {
38	status = "okay";
39	phy-mode = "rgmii";
40
41	rxd0-skew-ps = <0>;
42	rxd1-skew-ps = <0>;
43	rxd2-skew-ps = <0>;
44	rxd3-skew-ps = <0>;
45	txen-skew-ps = <0>;
46	txc-skew-ps = <1560>;
47	rxdv-skew-ps = <0>;
48	rxc-skew-ps = <1200>;
49};
50
51&gpio1 {
52	status = "okay";
53};
54
55&porta {
56	bank-name = "porta";
57};
58
59&i2c0 {
60	status = "okay";
61
62	eeprom@51 {
63		compatible = "atmel,24c32";
64		reg = <0x51>;
65		pagesize = <32>;
66	};
67
68	rtc@68 {
69		compatible = "dallas,ds1339";
70		reg = <0x68>;
71	};
72};
73
74&mmc0 {
75	status = "okay";
76	u-boot,dm-pre-reloc;
77
78	cd-gpios = <&portb 18 0>;
79	vmmc-supply = <&regulator_3_3v>;
80	vqmmc-supply = <&regulator_3_3v>;
81};
82
83&qspi {
84	status = "okay";
85	u-boot,dm-pre-reloc;
86
87	flash0: n25q00@0 {
88		u-boot,dm-pre-reloc;
89		#address-cells = <1>;
90		#size-cells = <1>;
91		compatible = "n25q00", "jedec,spi-nor";
92		reg = <0>;      /* chip select */
93		spi-max-frequency = <100000000>;
94		m25p,fast-read;
95		page-size = <256>;
96		block-size = <16>; /* 2^16, 64KB */
97		cdns,tshsl-ns = <50>;
98		cdns,tsd2d-ns = <50>;
99		cdns,tchsh-ns = <4>;
100		cdns,tslch-ns = <4>;
101	};
102};
103
104&usb1 {
105	status = "okay";
106};
107
108&uart0 {
109	u-boot,dm-pre-reloc;
110};
111
112&watchdog0 {
113	status = "disabled";
114};
115