blob: 58baa710d4092d876c1511f72ae39149e2c2f7e8 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -06002/*
3 * Copyright (C) 2018 Intel Corporation
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -06004 */
5
6#include "socfpga_stratix10.dtsi"
7
8/ {
9 model = "SoCFPGA Stratix 10 SoCDK";
10
11 aliases {
Ley Foon Tana14e34c2019-06-13 16:17:23 +080012 i2c0 = &i2c1;
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -060013 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 {
Ley Foon Tane4b81462019-11-08 10:56:26 +080039 #address-cells = <2>;
40 #size-cells = <2>;
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -060041 device_type = "memory";
Ley Foon Tanb9ff1532019-03-22 01:24:03 +080042 /* 4GB */
43 reg = <0 0x00000000 0 0x80000000>,
44 <1 0x80000000 0 0x80000000>;
Ley Foon Tanad259df2018-07-12 19:13:33 +080045 u-boot,dm-pre-reloc;
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -060046 };
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 */
Ooi, Joycec94f1c62019-11-21 06:48:56 -080076 txc-skew-ps = <900>; /* 0ps */
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -060077 rxdv-skew-ps = <420>; /* 0ps */
78 rxc-skew-ps = <1680>; /* 780ps */
79 };
80 };
81};
82
Ley Foon Tana14e34c2019-06-13 16:17:23 +080083&i2c1 {
84 status = "okay";
85};
86
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -060087&mmc {
88 status = "okay";
89 cap-sd-highspeed;
Ley Foon Tan80a77ad2018-05-18 22:05:35 +080090 cap-mmc-highspeed;
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -060091 broken-cd;
92 bus-width = <4>;
Ley Foon Tan80a77ad2018-05-18 22:05:35 +080093 drvsel = <3>;
94 smplsel = <0>;
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -060095};
96
Ley Foon Tan2f59cf12019-04-03 13:45:02 +080097&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
Dinh Nguyen41ca4ca2018-03-08 21:39:26 -0600132&uart0 {
133 status = "okay";
134};
135
136&usb0 {
137 status = "okay";
138};