blob: 7186a29b8b861189bc5a6db0c66183ad826e94ce [file] [log] [blame]
Marek Vasut34a31582015-11-19 10:15:05 -06001/*
2 * Copyright (C) 2015 Marek Vasut <marex@denx.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_mcv.dtsi"
19
20/ {
Marek Vasutdfd35b72015-12-17 23:38:18 +000021 model = "DENX MCV EVK";
22 compatible = "altr,socfpga-cyclone5", "altr,socfpga";
Marek Vasut34a31582015-11-19 10:15:05 -060023
Marek Vasutdfd35b72015-12-17 23:38:18 +000024 aliases {
25 ethernet0 = &gmac0;
26 stmpe-i2c0 = &stmpe1;
27 };
Marek Vasut34a31582015-11-19 10:15:05 -060028
Marek Vasutdfd35b72015-12-17 23:38:18 +000029 chosen {
30 stdout-path = "serial0:115200n8";
31 };
Marek Vasut34a31582015-11-19 10:15:05 -060032};
33
34&can0 {
Marek Vasutdfd35b72015-12-17 23:38:18 +000035 status = "okay";
Marek Vasut34a31582015-11-19 10:15:05 -060036};
37
38&can1 {
Marek Vasutdfd35b72015-12-17 23:38:18 +000039 status = "okay";
Marek Vasut34a31582015-11-19 10:15:05 -060040};
41
42&gmac0 {
Marek Vasutdfd35b72015-12-17 23:38:18 +000043 phy-mode = "rgmii";
44 status = "okay";
Marek Vasut34a31582015-11-19 10:15:05 -060045};
46
Marek Vasutdfd35b72015-12-17 23:38:18 +000047&gpio0 { /* GPIO 0 ... 28 */
48 status = "okay";
Marek Vasut34a31582015-11-19 10:15:05 -060049};
50
Marek Vasutdfd35b72015-12-17 23:38:18 +000051&gpio1 { /* GPIO 29 ... 57 */
52 status = "okay";
Marek Vasut34a31582015-11-19 10:15:05 -060053};
54
Marek Vasutdfd35b72015-12-17 23:38:18 +000055&gpio2 { /* GPIO 58..66 (HLGPI 0..13 at offset 13) */
56 status = "okay";
Marek Vasut34a31582015-11-19 10:15:05 -060057};
58
59&i2c0 {
Marek Vasutdfd35b72015-12-17 23:38:18 +000060 status = "okay";
61 speed-mode = <0>;
Marek Vasut34a31582015-11-19 10:15:05 -060062
Marek Vasutdfd35b72015-12-17 23:38:18 +000063 stmpe1: stmpe811@41 {
64 compatible = "st,stmpe811";
65 #address-cells = <1>;
66 #size-cells = <0>;
67 reg = <0x41>;
68 id = <0>;
69 blocks = <0x5>;
70 irq-gpio = <&portb 28 0x4>; /* GPIO 57, trig. level HI */
Marek Vasut34a31582015-11-19 10:15:05 -060071
Marek Vasutdfd35b72015-12-17 23:38:18 +000072 stmpe_touchscreen {
73 compatible = "st,stmpe-ts";
74 reg = <0>;
75 ts,sample-time = <4>;
76 ts,mod-12b = <1>;
77 ts,ref-sel = <0>;
78 ts,adc-freq = <1>;
79 ts,ave-ctrl = <1>;
80 ts,touch-det-delay = <3>;
81 ts,settling = <4>;
82 ts,fraction-z = <7>;
83 ts,i-drive = <1>;
84 };
85 };
Marek Vasut34a31582015-11-19 10:15:05 -060086};
87
88&uart0 {
Marek Vasutdfd35b72015-12-17 23:38:18 +000089 status = "okay";
Marek Vasut34a31582015-11-19 10:15:05 -060090};
91
92&usb1 {
Marek Vasutdfd35b72015-12-17 23:38:18 +000093 status = "okay";
Marek Vasut34a31582015-11-19 10:15:05 -060094};