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