Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0+
0002 /*
0003  * Copyright (C) 2014 Steffen Trumtrar <s.trumtrar@pengutronix.de>
0004  */
0005 
0006 #include "socfpga_cyclone5.dtsi"
0007 
0008 / {
0009         model = "EBV SOCrates";
0010         compatible = "ebv,socrates", "altr,socfpga-cyclone5", "altr,socfpga";
0011 
0012         aliases {
0013                 ethernet0 = &gmac1;
0014         };
0015 
0016         chosen {
0017                 bootargs = "earlyprintk";
0018                 stdout-path = "serial0:115200n8";
0019         };
0020 
0021         memory@0 {
0022                 name = "memory";
0023                 device_type = "memory";
0024                 reg = <0x0 0x40000000>; /* 1GB */
0025         };
0026 
0027         leds: gpio-leds {
0028         };
0029 };
0030 
0031 &gmac1 {
0032         phy-mode = "rgmii";
0033         status = "okay";
0034 };
0035 
0036 &gpio0 {
0037         status = "okay";
0038 };
0039 
0040 &gpio1 {
0041         status = "okay";
0042 };
0043 
0044 &i2c0 {
0045         status = "okay";
0046 
0047         rtc: rtc@68 {
0048                 compatible = "st,m41t82";
0049                 reg = <0x68>;
0050         };
0051 };
0052 
0053 &leds {
0054         compatible = "gpio-leds";
0055 
0056         led0 {
0057                 label = "led:green:heartbeat";
0058                 gpios = <&porta 28 1>;
0059                 linux,default-trigger = "heartbeat";
0060         };
0061 
0062         led1 {
0063                 label = "led:green:D7";
0064                 gpios = <&portb 19 1>;
0065         };
0066 
0067         led2 {
0068                 label = "led:green:D8";
0069                 gpios = <&portb 25 1>;
0070         };
0071 };
0072 
0073 &mmc {
0074         status = "okay";
0075 };
0076 
0077 &qspi {
0078         status = "okay";
0079 
0080         flash: flash@0 {
0081                 #address-cells = <1>;
0082                 #size-cells = <1>;
0083                 compatible = "micron,n25q256a", "jedec,spi-nor";
0084                 reg = <0>;
0085                 spi-max-frequency = <100000000>;
0086                 m25p,fast-read;
0087                 cdns,read-delay = <4>;
0088                 cdns,tshsl-ns = <50>;
0089                 cdns,tsd2d-ns = <50>;
0090                 cdns,tchsh-ns = <4>;
0091                 cdns,tslch-ns = <4>;
0092                 status = "okay";
0093         };
0094 };