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