]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - src/arm/socfpga_cyclone5_socrates.dts
Import DTS files from Linux 4.20
[FreeBSD/FreeBSD.git] / src / arm / socfpga_cyclone5_socrates.dts
1 /*
2  *  Copyright (C) 2014 Steffen Trumtrar <s.trumtrar@pengutronix.de>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16  */
17
18 #include "socfpga_cyclone5.dtsi"
19
20 / {
21         model = "EBV SOCrates";
22         compatible = "ebv,socrates", "altr,socfpga-cyclone5", "altr,socfpga";
23
24         aliases {
25                 ethernet0 = &gmac1;
26         };
27
28         chosen {
29                 bootargs = "earlyprintk";
30                 stdout-path = "serial0:115200n8";
31         };
32
33         memory@0 {
34                 name = "memory";
35                 device_type = "memory";
36                 reg = <0x0 0x40000000>; /* 1GB */
37         };
38
39         leds: gpio-leds {
40         };
41 };
42
43 &gmac1 {
44         phy-mode = "rgmii";
45         status = "okay";
46 };
47
48 &gpio0 {
49         status = "okay";
50 };
51
52 &gpio1 {
53         status = "okay";
54 };
55
56 &i2c0 {
57         status = "okay";
58
59         rtc: rtc@68 {
60                 compatible = "st,m41t82";
61                 reg = <0x68>;
62         };
63 };
64
65 &leds {
66         compatible = "gpio-leds";
67
68         led0 {
69                 label = "led:green:heartbeat";
70                 gpios = <&porta 28 1>;
71                 linux,default-trigger = "heartbeat";
72         };
73
74         led1 {
75                 label = "led:green:D7";
76                 gpios = <&portb 19 1>;
77         };
78
79         led2 {
80                 label = "led:green:D8";
81                 gpios = <&portb 25 1>;
82         };
83 };
84
85 &mmc {
86         status = "okay";
87 };
88
89 &qspi {
90         status = "okay";
91
92         flash: flash@0 {
93                 #address-cells = <1>;
94                 #size-cells = <1>;
95                 compatible = "n25q256a";
96                 reg = <0>;
97                 spi-max-frequency = <100000000>;
98                 m25p,fast-read;
99                 cdns,read-delay = <4>;
100                 cdns,tshsl-ns = <50>;
101                 cdns,tsd2d-ns = <50>;
102                 cdns,tchsh-ns = <4>;
103                 cdns,tslch-ns = <4>;
104                 status = "okay";
105         };
106 };