2018-11-06 04:27:27 +08:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2014-04-03 00:13:11 +08:00
|
|
|
/*
|
2018-11-06 04:27:27 +08:00
|
|
|
* Copyright (C) 2014 Steffen Trumtrar <s.trumtrar@pengutronix.de>
|
2014-04-03 00:13:11 +08:00
|
|
|
*/
|
|
|
|
|
2014-04-03 10:31:31 +08:00
|
|
|
#include "socfpga_cyclone5.dtsi"
|
2014-04-03 00:13:11 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "EBV SOCrates";
|
|
|
|
compatible = "ebv,socrates", "altr,socfpga-cyclone5", "altr,socfpga";
|
|
|
|
|
2018-10-10 02:14:48 +08:00
|
|
|
aliases {
|
|
|
|
ethernet0 = &gmac1;
|
|
|
|
};
|
|
|
|
|
2014-04-03 00:13:11 +08:00
|
|
|
chosen {
|
2018-08-08 17:09:44 +08:00
|
|
|
bootargs = "earlyprintk";
|
|
|
|
stdout-path = "serial0:115200n8";
|
2014-04-03 00:13:11 +08:00
|
|
|
};
|
|
|
|
|
2017-02-28 00:38:39 +08:00
|
|
|
memory@0 {
|
2014-04-03 00:13:11 +08:00
|
|
|
name = "memory";
|
|
|
|
device_type = "memory";
|
|
|
|
reg = <0x0 0x40000000>; /* 1GB */
|
|
|
|
};
|
2015-05-29 22:33:03 +08:00
|
|
|
|
|
|
|
leds: gpio-leds {
|
|
|
|
};
|
2014-04-03 00:13:11 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&gmac1 {
|
2016-03-20 07:57:05 +08:00
|
|
|
phy-mode = "rgmii";
|
2014-04-03 00:13:11 +08:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2015-05-29 22:33:02 +08:00
|
|
|
&gpio0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2014-04-03 00:14:50 +08:00
|
|
|
&i2c0 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
rtc: rtc@68 {
|
2016-06-26 17:34:06 +08:00
|
|
|
compatible = "st,m41t82";
|
2014-04-03 00:14:50 +08:00
|
|
|
reg = <0x68>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-05-29 22:33:03 +08:00
|
|
|
&leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
2017-02-28 00:42:21 +08:00
|
|
|
led0 {
|
2015-05-29 22:33:03 +08:00
|
|
|
label = "led:green:heartbeat";
|
|
|
|
gpios = <&porta 28 1>;
|
|
|
|
linux,default-trigger = "heartbeat";
|
|
|
|
};
|
|
|
|
|
2017-02-28 00:42:21 +08:00
|
|
|
led1 {
|
2015-05-29 22:33:03 +08:00
|
|
|
label = "led:green:D7";
|
|
|
|
gpios = <&portb 19 1>;
|
|
|
|
};
|
|
|
|
|
2017-02-28 00:42:21 +08:00
|
|
|
led2 {
|
2015-05-29 22:33:03 +08:00
|
|
|
label = "led:green:D8";
|
|
|
|
gpios = <&portb 25 1>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2014-04-03 00:13:11 +08:00
|
|
|
&mmc {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2016-10-18 15:43:03 +08: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";
|
|
|
|
};
|
|
|
|
};
|