Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Copyright Altera Corporation (C) 2015. All rights reserved.
0004  */
0005 
0006 #include "socfpga_cyclone5.dtsi"
0007 
0008 / {
0009         model = "Terasic DE-0(Atlas)";
0010         compatible = "terasic,de0-atlas", "altr,socfpga-cyclone5", "altr,socfpga";
0011 
0012         chosen {
0013                 bootargs = "earlyprintk";
0014                 stdout-path = "serial0:115200n8";
0015         };
0016 
0017         memory@0 {
0018                 name = "memory";
0019                 device_type = "memory";
0020                 reg = <0x0 0x40000000>; /* 1GB */
0021         };
0022 
0023         aliases {
0024                 ethernet0 = &gmac1;
0025         };
0026 
0027         regulator_3_3v: regulator {
0028                 compatible = "regulator-fixed";
0029                 regulator-name = "3.3V";
0030                 regulator-min-microvolt = <3300000>;
0031                 regulator-max-microvolt = <3300000>;
0032         };
0033 
0034         leds {
0035                 compatible = "gpio-leds";
0036                 hps0 {
0037                         label = "hps_led0";
0038                         gpios = <&portb 24 0>;
0039                         linux,default-trigger = "heartbeat";
0040                 };
0041         };
0042 };
0043 
0044 &gmac1 {
0045         status = "okay";
0046         phy-mode = "rgmii";
0047 
0048         txd0-skew-ps = <0>; /* -420ps */
0049         txd1-skew-ps = <0>; /* -420ps */
0050         txd2-skew-ps = <0>; /* -420ps */
0051         txd3-skew-ps = <0>; /* -420ps */
0052         rxd0-skew-ps = <420>; /* 0ps */
0053         rxd1-skew-ps = <420>; /* 0ps */
0054         rxd2-skew-ps = <420>; /* 0ps */
0055         rxd3-skew-ps = <420>; /* 0ps */
0056         txen-skew-ps = <0>; /* -420ps */
0057         txc-skew-ps = <1860>; /* 960ps */
0058         rxdv-skew-ps = <420>; /* 0ps */
0059         rxc-skew-ps = <1680>; /* 780ps */
0060 
0061         max-frame-size = <3800>;
0062 };
0063 
0064 &gpio0 {
0065         status = "okay";
0066 };
0067 
0068 &gpio1 {
0069         status = "okay";
0070 };
0071 
0072 &gpio2 {
0073         status = "okay";
0074 };
0075 
0076 &i2c0 {
0077         status = "okay";
0078         clock-frequency = <100000>;
0079 
0080         adxl345: adxl345@53 {
0081                 compatible = "adi,adxl345";
0082                 reg = <0x53>;
0083 
0084                 interrupt-parent = <&portc>;
0085                 interrupts = <3 2>;
0086         };
0087 };
0088 
0089 &mmc0 {
0090         vmmc-supply = <&regulator_3_3v>;
0091         vqmmc-supply = <&regulator_3_3v>;
0092         status = "okay";
0093 };
0094 
0095 &uart0 {
0096         status = "okay";
0097 };
0098 
0099 &usb1 {
0100         status = "okay";
0101 };