blob: 915b8f6380eb9c411ed6bb16e4b5fae5e29b2ba9 [file] [log] [blame]
Siew Chin Lim8208e9a2021-08-10 11:26:40 +08001// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2020-2021, Intel Corporation
4 */
5#include "socfpga_agilex.dtsi"
6
7/ {
8 model = "eASIC N5X SoCDK";
9
10 aliases {
11 serial0 = &uart0;
12 ethernet0 = &gmac0;
13 ethernet1 = &gmac1;
14 ethernet2 = &gmac2;
15 };
16
17 chosen {
18 stdout-path = "serial0:115200n8";
19 };
20
21 memory {
22 device_type = "memory";
23 /* We expect the bootloader to fill in the reg */
24 reg = <0 0 0 0>;
25 };
26
27 soc {
28 clocks {
29 osc1 {
30 clock-frequency = <25000000>;
31 };
32 };
33 };
34};
35
36&gmac0 {
37 status = "okay";
38 phy-mode = "rgmii";
39 phy-handle = <&phy0>;
40 max-frame-size = <9000>;
41
42 mdio0 {
43 #address-cells = <1>;
44 #size-cells = <0>;
45 compatible = "snps,dwmac-mdio";
46 phy0: ethernet-phy@0 {
47 reg = <4>;
48
49 txd0-skew-ps = <0>; /* -420ps */
50 txd1-skew-ps = <0>; /* -420ps */
51 txd2-skew-ps = <0>; /* -420ps */
52 txd3-skew-ps = <0>; /* -420ps */
53 rxd0-skew-ps = <420>; /* 0ps */
54 rxd1-skew-ps = <420>; /* 0ps */
55 rxd2-skew-ps = <420>; /* 0ps */
56 rxd3-skew-ps = <420>; /* 0ps */
57 txen-skew-ps = <0>; /* -420ps */
58 txc-skew-ps = <900>; /* 0ps */
59 rxdv-skew-ps = <420>; /* 0ps */
60 rxc-skew-ps = <1680>; /* 780ps */
61 };
62 };
63};
64
65&gpio1 {
66 status = "okay";
67};
68
69&mmc {
70 status = "okay";
71 cap-sd-highspeed;
72 broken-cd;
73 bus-width = <4>;
74};
75
76&qspi {
77 status = "okay";
78 flash0: flash@0 {
79 #address-cells = <1>;
80 #size-cells = <1>;
81 compatible = "mt25qu02g";
82 reg = <0>;
83 spi-max-frequency = <100000000>;
84
85 m25p,fast-read;
86 cdns,page-size = <256>;
87 cdns,block-size = <16>;
88 cdns,read-delay = <3>;
89 cdns,tshsl-ns = <50>;
90 cdns,tsd2d-ns = <50>;
91 cdns,tchsh-ns = <4>;
92 cdns,tslch-ns = <4>;
93
94 partitions {
95 compatible = "fixed-partitions";
96 #address-cells = <1>;
97 #size-cells = <1>;
98
99 qspi_boot: partition@0 {
100 label = "Boot and fpga data";
101 reg = <0x0 0x034B0000>;
102 };
103
104 qspi_rootfs: partition@34B0000 {
105 label = "Root Filesystem - JFFS2";
106 reg = <0x034B0000 0x0EB50000>;
107 };
108 };
109 };
110};
111
112&uart0 {
113 status = "okay";
114};
115
116&usb0 {
117 status = "okay";
118};
119
120&usb1 {
121 status = "okay";
122};