Merge tag 'amlogic-dt64' of git://git.kernel.org/pub/scm/linux/kernel/git/khilman...
[sfrench/cifs-2.6.git] / arch / arm64 / boot / dts / altera / socfpga_stratix10_socdk.dts
1 /*
2  * Copyright Altera Corporation (C) 2015. All rights reserved.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms and conditions of the GNU General Public License,
6  * version 2, as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope it will be useful, but WITHOUT
9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
11  * more details.
12  *
13  * You should have received a copy of the GNU General Public License along with
14  * this program.  If not, see <http://www.gnu.org/licenses/>.
15  */
16
17 #include "socfpga_stratix10.dtsi"
18
19 / {
20         model = "SoCFPGA Stratix 10 SoCDK";
21
22         aliases {
23                 serial0 = &uart0;
24         };
25
26         chosen {
27                 stdout-path = "serial0:115200n8";
28         };
29
30         memory {
31                 device_type = "memory";
32                 /* We expect the bootloader to fill in the reg */
33                 reg = <0 0 0 0>;
34         };
35 };
36
37 &gmac0 {
38         status = "okay";
39         phy-mode = "rgmii";
40         phy-handle = <&phy0>;
41
42         max-frame-size = <3800>;
43
44         mdio0 {
45                 #address-cells = <1>;
46                 #size-cells = <0>;
47                 compatible = "snps,dwmac-mdio";
48                 phy0: ethernet-phy@0 {
49                         reg = <4>;
50
51                         txd0-skew-ps = <0>; /* -420ps */
52                         txd1-skew-ps = <0>; /* -420ps */
53                         txd2-skew-ps = <0>; /* -420ps */
54                         txd3-skew-ps = <0>; /* -420ps */
55                         rxd0-skew-ps = <420>; /* 0ps */
56                         rxd1-skew-ps = <420>; /* 0ps */
57                         rxd2-skew-ps = <420>; /* 0ps */
58                         rxd3-skew-ps = <420>; /* 0ps */
59                         txen-skew-ps = <0>; /* -420ps */
60                         txc-skew-ps = <1860>; /* 960ps */
61                         rxdv-skew-ps = <420>; /* 0ps */
62                         rxc-skew-ps = <1680>; /* 780ps */
63                 };
64         };
65 };
66
67 &mmc {
68         status = "okay";
69         num-slots = <1>;
70         cap-sd-highspeed;
71         broken-cd;
72         bus-width = <4>;
73 };
74
75 &uart0 {
76         status = "okay";
77 };