2014-04-02 11:13:11 -05:00
/*
* Copyright (C) 2014 Steffen Trumtrar <s.trumtrar@pengutronix.de>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
2014-04-02 21:31:31 -05:00
#include "socfpga_cyclone5.dtsi"
2014-04-02 11:13:11 -05:00
/ {
model = "EBV SOCrates";
compatible = "ebv,socrates", "altr,socfpga-cyclone5", "altr,socfpga";
chosen {
bootargs = "console=ttyS0,115200";
};
2017-02-27 10:38:39 -06:00
memory@0 {
2014-04-02 11:13:11 -05:00
name = "memory";
device_type = "memory";
reg = <0x0 0x40000000>; /* 1GB */
};
2015-05-29 14:33:03 +00:00
leds: gpio-leds {
};
2014-04-02 11:13:11 -05:00
};
&gmac1 {
2016-03-19 23:57:05 +00:00
phy-mode = "rgmii";
2014-04-02 11:13:11 -05:00
status = "okay";
};
2015-05-29 14:33:02 +00:00
&gpio0 {
status = "okay";
};
&gpio1 {
status = "okay";
};
2014-04-02 11:14:50 -05:00
&i2c0 {
status = "okay";
rtc: rtc@68 {
2016-06-26 02:34:06 -07:00
compatible = "st,m41t82";
2014-04-02 11:14:50 -05:00
reg = <0x68>;
};
};
2015-05-29 14:33:03 +00:00
&leds {
compatible = "gpio-leds";
2017-02-27 10:42:21 -06:00
led0 {
2015-05-29 14:33:03 +00:00
label = "led:green:heartbeat";
gpios = <&porta 28 1>;
linux,default-trigger = "heartbeat";
};
2017-02-27 10:42:21 -06:00
led1 {
2015-05-29 14:33:03 +00:00
label = "led:green:D7";
gpios = <&portb 19 1>;
};
2017-02-27 10:42:21 -06:00
led2 {
2015-05-29 14:33:03 +00:00
label = "led:green:D8";
gpios = <&portb 25 1>;
};
};
2014-04-02 11:13:11 -05:00
&mmc {
status = "okay";
};
2016-10-18 07:43:03 +00:00
&qspi {
status = "okay";
flash: flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "n25q256a";
reg = <0>;
spi-max-frequency = <100000000>;
m25p,fast-read;
cdns,read-delay = <4>;
cdns,tshsl-ns = <50>;
cdns,tsd2d-ns = <50>;
cdns,tchsh-ns = <4>;
cdns,tslch-ns = <4>;
status = "okay";
};
};