58baa710d4092d876c1511f72ae39149e2c2f7e8
[oweals/u-boot.git] / arch / arm / dts / socfpga_stratix10_socdk.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Copyright (C) 2018 Intel Corporation
4  */
5
6 #include "socfpga_stratix10.dtsi"
7
8 / {
9         model = "SoCFPGA Stratix 10 SoCDK";
10
11         aliases {
12                 i2c0 = &i2c1;
13                 serial0 = &uart0;
14         };
15
16         chosen {
17                 stdout-path = "serial0:115200n8";
18         };
19
20         leds {
21                 compatible = "gpio-leds";
22                 hps0 {
23                         label = "hps_led0";
24                         gpios = <&portb 20 GPIO_ACTIVE_HIGH>;
25                 };
26
27                 hps1 {
28                         label = "hps_led1";
29                         gpios = <&portb 19 GPIO_ACTIVE_HIGH>;
30                 };
31
32                 hps2 {
33                         label = "hps_led2";
34                         gpios = <&portb 21 GPIO_ACTIVE_HIGH>;
35                 };
36         };
37
38         memory {
39                 #address-cells = <2>;
40                 #size-cells = <2>;
41                 device_type = "memory";
42                 /* 4GB */
43                 reg = <0 0x00000000 0 0x80000000>,
44                       <1 0x80000000 0 0x80000000>;
45                 u-boot,dm-pre-reloc;
46         };
47 };
48
49 &gpio1 {
50         status = "okay";
51 };
52
53 &gmac0 {
54         status = "okay";
55         phy-mode = "rgmii";
56         phy-handle = <&phy0>;
57
58         max-frame-size = <3800>;
59
60         mdio0 {
61                 #address-cells = <1>;
62                 #size-cells = <0>;
63                 compatible = "snps,dwmac-mdio";
64                 phy0: ethernet-phy@0 {
65                         reg = <4>;
66
67                         txd0-skew-ps = <0>; /* -420ps */
68                         txd1-skew-ps = <0>; /* -420ps */
69                         txd2-skew-ps = <0>; /* -420ps */
70                         txd3-skew-ps = <0>; /* -420ps */
71                         rxd0-skew-ps = <420>; /* 0ps */
72                         rxd1-skew-ps = <420>; /* 0ps */
73                         rxd2-skew-ps = <420>; /* 0ps */
74                         rxd3-skew-ps = <420>; /* 0ps */
75                         txen-skew-ps = <0>; /* -420ps */
76                         txc-skew-ps = <900>; /* 0ps */
77                         rxdv-skew-ps = <420>; /* 0ps */
78                         rxc-skew-ps = <1680>; /* 780ps */
79                 };
80         };
81 };
82
83 &i2c1 {
84         status = "okay";
85 };
86
87 &mmc {
88         status = "okay";
89         cap-sd-highspeed;
90         cap-mmc-highspeed;
91         broken-cd;
92         bus-width = <4>;
93         drvsel = <3>;
94         smplsel = <0>;
95 };
96
97 &qspi {
98         flash0: flash@0 {
99                 #address-cells = <1>;
100                 #size-cells = <1>;
101                 compatible = "n25q00a";
102                 reg = <0>;
103                 spi-max-frequency = <50000000>;
104
105                 m25p,fast-read;
106                 cdns,page-size = <256>;
107                 cdns,block-size = <16>;
108                 cdns,read-delay = <1>;
109                 cdns,tshsl-ns = <50>;
110                 cdns,tsd2d-ns = <50>;
111                 cdns,tchsh-ns = <4>;
112                 cdns,tslch-ns = <4>;
113
114                 partitions {
115                         compatible = "fixed-partitions";
116                         #address-cells = <1>;
117                         #size-cells = <1>;
118
119                         qspi_boot: partition@0 {
120                                 label = "Boot and fpga data";
121                                 reg = <0x0 0x4000000>;
122                         };
123
124                         qspi_rootfs: partition@4000000 {
125                                 label = "Root Filesystem - JFFS2";
126                                 reg = <0x4000000 0x4000000>;
127                         };
128                 };
129         };
130 };
131
132 &uart0 {
133         status = "okay";
134 };
135
136 &usb0 {
137         status = "okay";
138 };