blob: b7b48a5d3108b6b6fe6cde43f78c3d18fc679301 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0
Dinh Nguyen81577a32018-03-08 21:39:26 -06002/*
3 * Copyright (C) 2018 Intel Corporation
Dinh Nguyen81577a32018-03-08 21:39:26 -06004 */
5
6#include "socfpga_stratix10.dtsi"
7
8/ {
9 model = "SoCFPGA Stratix 10 SoCDK";
10
11 aliases {
Ooi, Joyce0c14bb52019-11-21 06:06:12 -080012 ethernet0 = &gmac0;
Ley Foon Tanb861cfb2019-06-13 16:17:23 +080013 i2c0 = &i2c1;
Dinh Nguyen81577a32018-03-08 21:39:26 -060014 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 {
Ley Foon Tan91845902019-11-08 10:56:26 +080040 #address-cells = <2>;
41 #size-cells = <2>;
Dinh Nguyen81577a32018-03-08 21:39:26 -060042 device_type = "memory";
Ley Foon Tan62e62782019-03-22 01:24:03 +080043 /* 4GB */
44 reg = <0 0x00000000 0 0x80000000>,
45 <1 0x80000000 0 0x80000000>;
Ley Foon Tan17b3f322018-07-12 19:13:33 +080046 u-boot,dm-pre-reloc;
Dinh Nguyen81577a32018-03-08 21:39:26 -060047 };
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 */
Ooi, Joyce7dad4442019-11-21 06:48:56 -080077 txc-skew-ps = <900>; /* 0ps */
Dinh Nguyen81577a32018-03-08 21:39:26 -060078 rxdv-skew-ps = <420>; /* 0ps */
79 rxc-skew-ps = <1680>; /* 780ps */
80 };
81 };
82};
83
Ley Foon Tanb861cfb2019-06-13 16:17:23 +080084&i2c1 {
85 status = "okay";
86};
87
Dinh Nguyen81577a32018-03-08 21:39:26 -060088&mmc {
89 status = "okay";
90 cap-sd-highspeed;
Ley Foon Tan00f7ae62018-05-18 22:05:35 +080091 cap-mmc-highspeed;
Dinh Nguyen81577a32018-03-08 21:39:26 -060092 broken-cd;
93 bus-width = <4>;
Ley Foon Tan00f7ae62018-05-18 22:05:35 +080094 drvsel = <3>;
95 smplsel = <0>;
Dinh Nguyen81577a32018-03-08 21:39:26 -060096};
97
Ley Foon Tan2c494e62019-04-03 13:45:02 +080098&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
Dinh Nguyen81577a32018-03-08 21:39:26 -0600133&uart0 {
134 status = "okay";
135};
136
137&usb0 {
138 status = "okay";
139};