blob: bb29da6d6c926c24138bf3aa5b9e69f015a4b288 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Stefan Roesebf5ed2e2015-11-18 11:06:09 +01002/*
3 * Copyright (C) 2015 Stefan Roese <sr@denx.de>
Stefan Roesebf5ed2e2015-11-18 11:06:09 +01004 */
5
6#include "socfpga_cyclone5.dtsi"
Simon Goldschmidt64a12bf2019-03-01 20:12:29 +01007#include "socfpga-common-u-boot.dtsi"
Stefan Roesebf5ed2e2015-11-18 11:06:09 +01008
9/ {
10 model = "SoCFPGA Cyclone V SR1500";
11 compatible = "anonymous,socfpga-sr1500", "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";
Stefan Roesebf5ed2e2015-11-18 11:06:09 +010016 };
17
18 aliases {
19 /*
Stefan Roese72887e32016-04-18 14:22:04 +020020 * This allows the ethaddr uboot environment variable
Stefan Roesebf5ed2e2015-11-18 11:06:09 +010021 * contents to be added to the gmac1 device tree blob.
22 */
23 ethernet0 = &gmac1;
24 };
25
26 memory@0 {
27 name = "memory";
28 device_type = "memory";
29 reg = <0x0 0x40000000>; /* 1GB */
30 };
Stefan Roesebf5ed2e2015-11-18 11:06:09 +010031};
32
33&gmac1 {
34 status = "okay";
35 phy-mode = "rgmii";
36};
37
38&gpio0 {
39 status = "okay";
40};
41
42&gpio1 {
43 status = "okay";
44};
45
46&gpio2 {
47 status = "okay";
48};
49
Simon Goldschmidt15616b52018-11-02 11:54:52 +010050&porta {
51 bank-name = "porta";
52};
53
54&portb {
55 bank-name = "portb";
56};
57
58&portc {
59 bank-name = "portc";
60};
61
Stefan Roesebf5ed2e2015-11-18 11:06:09 +010062&i2c0 {
63 status = "okay";
64 speed-mode = <0>;
65};
66
67&i2c1 {
68 status = "okay";
69 speed-mode = <0>;
70};
71
72&mmc0 {
73 status = "okay";
74 bus-width = <8>;
75 u-boot,dm-pre-reloc;
76};
77
78&uart0 {
79 status = "okay";
Simon Goldschmidt3854a1a2018-08-13 21:34:33 +020080 u-boot,dm-pre-reloc;
Stefan Roesebf5ed2e2015-11-18 11:06:09 +010081};
82
83&usb1 {
84 status = "okay";
85};
86
87&watchdog0 {
88 status = "okay";
89};
90
91&qspi {
92 status = "okay";
93 u-boot,dm-pre-reloc;
94
95 flash0: n25q00@0 {
96 u-boot,dm-pre-reloc;
97 #address-cells = <1>;
98 #size-cells = <1>;
Neil Armstronga009fa72019-02-10 10:16:20 +000099 compatible = "n25q00", "jedec,spi-nor";
Stefan Roesebf5ed2e2015-11-18 11:06:09 +0100100 reg = <0>; /* chip select */
Stefan Roese85e84392016-03-03 16:57:39 +0100101 spi-max-frequency = <100000000>;
Stefan Roesebf5ed2e2015-11-18 11:06:09 +0100102 m25p,fast-read;
103 page-size = <256>;
104 block-size = <16>; /* 2^16, 64KB */
Jason Rushfeaa3f92018-01-23 17:13:10 -0600105 cdns,tshsl-ns = <50>;
106 cdns,tsd2d-ns = <50>;
107 cdns,tchsh-ns = <4>;
108 cdns,tslch-ns = <4>;
Stefan Roesebf5ed2e2015-11-18 11:06:09 +0100109 };
110};