blob: 93c3fa4a48aad05f588ae7d4772205bb23bec5cb [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Stefan Roese76ba23f2014-11-07 14:10:41 +01002/*
Simon Goldschmidt15616b52018-11-02 11:54:52 +01003 * Copyright (C) 2014 Steffen Trumtrar <s.trumtrar@pengutronix.de>
Stefan Roese76ba23f2014-11-07 14:10:41 +01004 */
5
6#include "socfpga_cyclone5.dtsi"
7
8/ {
9 model = "EBV SOCrates";
10 compatible = "ebv,socrates", "altr,socfpga-cyclone5", "altr,socfpga";
11
Marek Vasutad3c96a2015-12-05 19:24:22 +010012 aliases {
Stefan Roeseeefea762016-04-18 14:22:05 +020013 ethernet0 = &gmac1;
Simon Goldschmidt15616b52018-11-02 11:54:52 +010014 };
15
16 chosen {
17 bootargs = "earlyprintk";
18 stdout-path = "serial0:115200n8";
Marek Vasutad3c96a2015-12-05 19:24:22 +010019 };
20
Simon Goldschmidt15616b52018-11-02 11:54:52 +010021 memory@0 {
Stefan Roese76ba23f2014-11-07 14:10:41 +010022 name = "memory";
23 device_type = "memory";
24 reg = <0x0 0x40000000>; /* 1GB */
25 };
Marek Vasut567356a2015-11-23 17:06:27 +010026
Simon Goldschmidt15616b52018-11-02 11:54:52 +010027 leds: gpio-leds {
Marek Vasut567356a2015-11-23 17:06:27 +010028 };
Stefan Roese76ba23f2014-11-07 14:10:41 +010029};
30
31&gmac1 {
Marek Vasut6433f592015-08-03 15:32:37 +020032 phy-mode = "rgmii";
Simon Goldschmidt15616b52018-11-02 11:54:52 +010033 status = "okay";
34};
35
36&gpio0 {
37 status = "okay";
38};
Marek Vasutf95f5fd2015-12-05 17:53:40 +010039
Simon Goldschmidt15616b52018-11-02 11:54:52 +010040&gpio1 {
41 status = "okay";
Stefan Roese76ba23f2014-11-07 14:10:41 +010042};
43
44&i2c0 {
45 status = "okay";
46
47 rtc: rtc@68 {
Simon Goldschmidt15616b52018-11-02 11:54:52 +010048 compatible = "st,m41t82";
Stefan Roese76ba23f2014-11-07 14:10:41 +010049 reg = <0x68>;
50 };
51};
52
Simon Goldschmidt15616b52018-11-02 11:54:52 +010053&leds {
54 compatible = "gpio-leds";
55
56 led0 {
57 label = "led:green:heartbeat";
58 gpios = <&porta 28 1>;
59 linux,default-trigger = "heartbeat";
60 };
61
62 led1 {
63 label = "led:green:D7";
64 gpios = <&portb 19 1>;
65 };
66
67 led2 {
68 label = "led:green:D8";
69 gpios = <&portb 25 1>;
70 };
71};
72
73&mmc {
Stefan Roese76ba23f2014-11-07 14:10:41 +010074 status = "okay";
75};
Stefan Roese2948d192014-11-07 12:37:50 +010076
77&qspi {
78 status = "okay";
Simon Goldschmidt5025e6f2018-08-06 15:05:09 +020079 u-boot,dm-pre-reloc;
Stefan Roese2948d192014-11-07 12:37:50 +010080
Simon Goldschmidt15616b52018-11-02 11:54:52 +010081 flash: flash@0 {
Stefan Roese2948d192014-11-07 12:37:50 +010082 #address-cells = <1>;
83 #size-cells = <1>;
Simon Goldschmidt15616b52018-11-02 11:54:52 +010084 compatible = "n25q256a";
85 reg = <0>;
86 spi-max-frequency = <100000000>;
Stefan Roese2948d192014-11-07 12:37:50 +010087 m25p,fast-read;
Simon Goldschmidt15616b52018-11-02 11:54:52 +010088 cdns,read-delay = <4>;
Jason Rushfeaa3f92018-01-23 17:13:10 -060089 cdns,tshsl-ns = <50>;
90 cdns,tsd2d-ns = <50>;
91 cdns,tchsh-ns = <4>;
92 cdns,tslch-ns = <4>;
Simon Goldschmidt15616b52018-11-02 11:54:52 +010093 status = "okay";
Simon Goldschmidt5025e6f2018-08-06 15:05:09 +020094 u-boot,dm-pre-reloc;
Stefan Roese2948d192014-11-07 12:37:50 +010095 };
96};