blob: 58a5faf6ea22552be61cc9f4b4b28156c3683ac8 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Pavel Machek9802e872016-06-07 12:37:23 +02002/*
3 * Copyright (C) 2012 Altera Corporation <www.altera.com>
Pavel Machek9802e872016-06-07 12:37:23 +02004 */
5
6#include "socfpga_cyclone5.dtsi"
Simon Goldschmidt64a12bf2019-03-01 20:12:29 +01007#include "socfpga-common-u-boot.dtsi"
Pavel Machek9802e872016-06-07 12:37:23 +02008
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";
Simon Goldschmidt3854a1a2018-08-13 21:34:33 +020015 stdout-path = "serial0:115200n8";
Pavel Machek9802e872016-06-07 12:37:23 +020016 };
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 };
Pavel Machek9802e872016-06-07 12:37:23 +020035};
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>;
James Byrne457107f2019-03-04 17:40:33 +000046 txc-skew-ps = <1560>;
Pavel Machek9802e872016-06-07 12:37:23 +020047 rxdv-skew-ps = <0>;
James Byrne457107f2019-03-04 17:40:33 +000048 rxc-skew-ps = <1200>;
Pavel Machek9802e872016-06-07 12:37:23 +020049};
50
51&gpio1 {
52 status = "okay";
53};
54
Simon Goldschmidt15616b52018-11-02 11:54:52 +010055&porta {
56 bank-name = "porta";
57};
58
Pavel Machek9802e872016-06-07 12:37:23 +020059&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";
Simon Glassd3a98cb2023-02-13 08:56:33 -070076 bootph-all;
Pavel Machek9802e872016-06-07 12:37:23 +020077
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";
Simon Glassd3a98cb2023-02-13 08:56:33 -070085 bootph-all;
Pavel Machek9802e872016-06-07 12:37:23 +020086
87 flash0: n25q00@0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070088 bootph-all;
Pavel Machek9802e872016-06-07 12:37:23 +020089 #address-cells = <1>;
90 #size-cells = <1>;
Neil Armstronga009fa72019-02-10 10:16:20 +000091 compatible = "n25q00", "jedec,spi-nor";
Pavel Machek9802e872016-06-07 12:37:23 +020092 reg = <0>; /* chip select */
93 spi-max-frequency = <100000000>;
94 m25p,fast-read;
95 page-size = <256>;
96 block-size = <16>; /* 2^16, 64KB */
Jason Rushfeaa3f92018-01-23 17:13:10 -060097 cdns,tshsl-ns = <50>;
98 cdns,tsd2d-ns = <50>;
99 cdns,tchsh-ns = <4>;
100 cdns,tslch-ns = <4>;
Pavel Machek9802e872016-06-07 12:37:23 +0200101 };
102};
103
104&usb1 {
105 status = "okay";
106};
Simon Goldschmidt3854a1a2018-08-13 21:34:33 +0200107
108&uart0 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700109 bootph-all;
Simon Goldschmidt3854a1a2018-08-13 21:34:33 +0200110};
Simon Goldschmidt15616b52018-11-02 11:54:52 +0100111
112&watchdog0 {
113 status = "disabled";
114};