2018-11-02 10:54:52 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2015-09-01 22:41:52 +00:00
|
|
|
/*
|
2018-11-02 10:54:52 +00:00
|
|
|
* Copyright Altera Corporation (C) 2015. All rights reserved.
|
2015-09-01 22:41:52 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "socfpga_cyclone5.dtsi"
|
|
|
|
|
|
|
|
/ {
|
2018-11-02 10:54:52 +00:00
|
|
|
model = "Terasic DE-0(Atlas)";
|
|
|
|
compatible = "terasic,de0-atlas", "altr,socfpga-cyclone5", "altr,socfpga";
|
2015-09-01 22:41:52 +00:00
|
|
|
|
|
|
|
chosen {
|
2018-11-02 10:54:52 +00:00
|
|
|
bootargs = "earlyprintk";
|
2018-08-13 19:34:33 +00:00
|
|
|
stdout-path = "serial0:115200n8";
|
2015-09-01 22:41:52 +00:00
|
|
|
};
|
|
|
|
|
2018-11-02 10:54:52 +00:00
|
|
|
memory@0 {
|
|
|
|
name = "memory";
|
|
|
|
device_type = "memory";
|
|
|
|
reg = <0x0 0x40000000>; /* 1GB */
|
|
|
|
};
|
|
|
|
|
2015-09-01 22:41:52 +00:00
|
|
|
aliases {
|
|
|
|
ethernet0 = &gmac1;
|
|
|
|
};
|
|
|
|
|
2018-11-02 10:54:52 +00:00
|
|
|
regulator_3_3v: 3-3-v-regulator {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "3.3V";
|
|
|
|
regulator-min-microvolt = <3300000>;
|
|
|
|
regulator-max-microvolt = <3300000>;
|
2015-09-01 22:41:52 +00:00
|
|
|
};
|
|
|
|
|
2018-11-02 10:54:52 +00:00
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
hps0 {
|
|
|
|
label = "hps_led0";
|
|
|
|
gpios = <&portb 24 0>;
|
|
|
|
linux,default-trigger = "heartbeat";
|
|
|
|
};
|
2015-09-01 22:41:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&gmac1 {
|
|
|
|
status = "okay";
|
|
|
|
phy-mode = "rgmii";
|
|
|
|
|
2018-11-02 10:54:52 +00:00
|
|
|
txd0-skew-ps = <0>; /* -420ps */
|
|
|
|
txd1-skew-ps = <0>; /* -420ps */
|
|
|
|
txd2-skew-ps = <0>; /* -420ps */
|
|
|
|
txd3-skew-ps = <0>; /* -420ps */
|
|
|
|
rxd0-skew-ps = <420>; /* 0ps */
|
|
|
|
rxd1-skew-ps = <420>; /* 0ps */
|
|
|
|
rxd2-skew-ps = <420>; /* 0ps */
|
|
|
|
rxd3-skew-ps = <420>; /* 0ps */
|
|
|
|
txen-skew-ps = <0>; /* -420ps */
|
|
|
|
txc-skew-ps = <1860>; /* 960ps */
|
|
|
|
rxdv-skew-ps = <420>; /* 0ps */
|
|
|
|
rxc-skew-ps = <1680>; /* 780ps */
|
|
|
|
|
|
|
|
max-frame-size = <3800>;
|
2015-09-01 22:41:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&gpio0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio2 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2018-04-04 22:18:22 +00:00
|
|
|
&i2c0 {
|
|
|
|
status = "okay";
|
2018-11-02 10:54:52 +00:00
|
|
|
clock-frequency = <100000>;
|
2018-04-04 22:18:22 +00:00
|
|
|
|
2018-11-02 10:54:52 +00:00
|
|
|
adxl345: adxl345@53 {
|
2018-04-04 22:18:22 +00:00
|
|
|
compatible = "adi,adxl345";
|
|
|
|
reg = <0x53>;
|
|
|
|
|
|
|
|
interrupt-parent = <&portc>;
|
|
|
|
interrupts = <3 2>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-09-01 22:41:52 +00:00
|
|
|
&mmc0 {
|
2018-11-02 10:54:52 +00:00
|
|
|
vmmc-supply = <®ulator_3_3v>;
|
|
|
|
vqmmc-supply = <®ulator_3_3v>;
|
2015-09-01 22:41:52 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
2015-12-05 18:24:22 +00:00
|
|
|
|
2018-11-02 10:54:52 +00:00
|
|
|
&uart0 {
|
2015-12-05 18:24:22 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
2018-08-13 19:34:33 +00:00
|
|
|
|
2018-11-02 10:54:52 +00:00
|
|
|
&usb1 {
|
|
|
|
status = "okay";
|
2018-08-13 19:34:33 +00:00
|
|
|
};
|