blob: eb00ae37f3165a14c923f2d210dc00a52441f5c1 [file] [log] [blame]
Dinh Nguyen475dc862014-09-04 16:45:56 -05001/*
Dinh Nguyen88c8e4c2015-03-09 22:57:04 -05002 * Copyright (C) 2015 Altera Corporation <www.altera.com>
Dinh Nguyen475dc862014-09-04 16:45:56 -05003 *
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 */
Dinh Nguyen475dc862014-09-04 16:45:56 -050017#include "socfpga_arria10.dtsi"
18
19/ {
20 model = "Altera SOCFPGA Arria 10";
21 compatible = "altr,socfpga-arria10", "altr,socfpga";
22
Dinh Nguyenefb66722016-05-03 08:59:01 -050023 aliases {
24 ethernet0 = &gmac0;
Matthew Gerlachb65c0ef2016-05-12 10:24:42 -070025 serial0 = &uart1;
Dinh Nguyenefb66722016-05-03 08:59:01 -050026 };
27
Dinh Nguyen475dc862014-09-04 16:45:56 -050028 chosen {
Dinh Nguyenefc19852015-07-14 17:19:02 -050029 bootargs = "earlyprintk";
Matthew Gerlachb65c0ef2016-05-12 10:24:42 -070030 stdout-path = "serial0:115200n8";
Dinh Nguyen475dc862014-09-04 16:45:56 -050031 };
32
33 memory {
34 name = "memory";
35 device_type = "memory";
36 reg = <0x0 0x40000000>; /* 1GB */
37 };
38
Thor Thayeracf3b202016-06-02 17:52:28 +000039 a10leds {
40 compatible = "gpio-leds";
41
42 a10sr_led0 {
43 label = "a10sr-led0";
44 gpios = <&a10sr_gpio 0 1>;
45 };
46
47 a10sr_led1 {
48 label = "a10sr-led1";
49 gpios = <&a10sr_gpio 1 1>;
50 };
51
52 a10sr_led2 {
53 label = "a10sr-led2";
54 gpios = <&a10sr_gpio 2 1>;
55 };
56
57 a10sr_led3 {
58 label = "a10sr-led3";
59 gpios = <&a10sr_gpio 3 1>;
60 };
61 };
62
Dinh Nguyen475dc862014-09-04 16:45:56 -050063 soc {
64 clkmgr@ffd04000 {
65 clocks {
66 osc1 {
67 clock-frequency = <25000000>;
68 };
69 };
70 };
Dinh Nguyen475dc862014-09-04 16:45:56 -050071 };
72};
Dinh Nguyen74568da2015-04-02 13:26:35 -050073
Dinh Nguyen112cadf2015-06-02 21:31:00 -050074&gmac0 {
75 phy-mode = "rgmii";
76 phy-addr = <0xffffffff>; /* probe for phy addr */
77
78 /*
79 * These skews assume the user's FPGA design is adding 600ps of delay
80 * for TX_CLK on Arria 10.
81 *
82 * All skews are offset since hardware skew values for the ksz9031
83 * range from a negative skew to a positive skew.
84 * See the micrel-ksz90x1.txt Documentation file for details.
85 */
86 txd0-skew-ps = <0>; /* -420ps */
87 txd1-skew-ps = <0>; /* -420ps */
88 txd2-skew-ps = <0>; /* -420ps */
89 txd3-skew-ps = <0>; /* -420ps */
90 rxd0-skew-ps = <420>; /* 0ps */
91 rxd1-skew-ps = <420>; /* 0ps */
92 rxd2-skew-ps = <420>; /* 0ps */
93 rxd3-skew-ps = <420>; /* 0ps */
94 txen-skew-ps = <0>; /* -420ps */
95 txc-skew-ps = <1860>; /* 960ps */
96 rxdv-skew-ps = <420>; /* 0ps */
97 rxc-skew-ps = <1680>; /* 780ps */
98 max-frame-size = <3800>;
99 status = "okay";
100};
101
Thor Thayer07e75f42016-06-02 17:52:27 +0000102&gpio1 {
103 status = "okay";
104};
105
Thor Thayer5984be02016-06-02 17:52:26 +0000106&spi1 {
107 status = "okay";
108
109 resource-manager@0 {
110 compatible = "altr,a10sr";
111 reg = <0>;
112 spi-max-frequency = <100000>;
113 /* low-level active IRQ at GPIO1_5 */
114 interrupt-parent = <&portb>;
115 interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
116 interrupt-controller;
117 #interrupt-cells = <2>;
118
119 a10sr_gpio: gpio-controller {
120 compatible = "altr,a10sr-gpio";
121 gpio-controller;
122 #gpio-cells = <2>;
123 };
124 };
125};
126
Dinh Nguyen19c21382015-09-22 14:50:37 -0500127&i2c1 {
128 speed-mode = <0>;
129 status = "okay";
130
131 /*
132 * adjust the falling times to decrease the i2c frequency to 50Khz
133 * because the LCD module does not work at the standard 100Khz
134 */
135 i2c-sda-falling-time-ns = <6000>;
136 i2c-scl-falling-time-ns = <6000>;
137
138 eeprom@51 {
139 compatible = "atmel,24c32";
140 reg = <0x51>;
141 pagesize = <32>;
142 };
143
144 rtc@68 {
145 compatible = "dallas,ds1339";
146 reg = <0x68>;
147 };
148};
149
Dinh Nguyen74568da2015-04-02 13:26:35 -0500150&uart1 {
151 status = "okay";
152};
Dinh Nguyen19c21382015-09-22 14:50:37 -0500153
154&usb0 {
155 status = "okay";
156};