1c66ec88fSEmmanuel Vadot// SPDX-License-Identifier:     GPL-2.0
2c66ec88fSEmmanuel Vadot/*
3c66ec88fSEmmanuel Vadot * Copyright (C) 2019, Intel Corporation
4c66ec88fSEmmanuel Vadot */
5c66ec88fSEmmanuel Vadot#include "socfpga_agilex.dtsi"
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadot/ {
8c66ec88fSEmmanuel Vadot	model = "SoCFPGA Agilex SoCDK";
9c9ccf3a3SEmmanuel Vadot	compatible = "intel,socfpga-agilex-socdk", "intel,socfpga-agilex";
10c66ec88fSEmmanuel Vadot
11c66ec88fSEmmanuel Vadot	aliases {
12c66ec88fSEmmanuel Vadot		serial0 = &uart0;
13c66ec88fSEmmanuel Vadot		ethernet0 = &gmac0;
14c66ec88fSEmmanuel Vadot		ethernet1 = &gmac1;
15c66ec88fSEmmanuel Vadot		ethernet2 = &gmac2;
16c66ec88fSEmmanuel Vadot	};
17c66ec88fSEmmanuel Vadot
18c66ec88fSEmmanuel Vadot	chosen {
19c66ec88fSEmmanuel Vadot		stdout-path = "serial0:115200n8";
20c66ec88fSEmmanuel Vadot	};
21c66ec88fSEmmanuel Vadot
22c66ec88fSEmmanuel Vadot	leds {
23c66ec88fSEmmanuel Vadot		compatible = "gpio-leds";
24c9ccf3a3SEmmanuel Vadot		led0 {
25c66ec88fSEmmanuel Vadot			label = "hps_led0";
26c66ec88fSEmmanuel Vadot			gpios = <&portb 20 GPIO_ACTIVE_HIGH>;
27c66ec88fSEmmanuel Vadot		};
28c66ec88fSEmmanuel Vadot
29c9ccf3a3SEmmanuel Vadot		led1 {
30c66ec88fSEmmanuel Vadot			label = "hps_led1";
31c66ec88fSEmmanuel Vadot			gpios = <&portb 19 GPIO_ACTIVE_HIGH>;
32c66ec88fSEmmanuel Vadot		};
33c66ec88fSEmmanuel Vadot
34c9ccf3a3SEmmanuel Vadot		led2 {
35c66ec88fSEmmanuel Vadot			label = "hps_led2";
36c66ec88fSEmmanuel Vadot			gpios = <&portb 21 GPIO_ACTIVE_HIGH>;
37c66ec88fSEmmanuel Vadot		};
38c66ec88fSEmmanuel Vadot	};
39c66ec88fSEmmanuel Vadot
40*aa1a8ff2SEmmanuel Vadot	memory@80000000 {
41c66ec88fSEmmanuel Vadot		device_type = "memory";
42c66ec88fSEmmanuel Vadot		/* We expect the bootloader to fill in the reg */
43*aa1a8ff2SEmmanuel Vadot		reg = <0 0x80000000 0 0>;
44c66ec88fSEmmanuel Vadot	};
45c66ec88fSEmmanuel Vadot};
46c66ec88fSEmmanuel Vadot
47c66ec88fSEmmanuel Vadot&gpio1 {
48c66ec88fSEmmanuel Vadot	status = "okay";
49c66ec88fSEmmanuel Vadot};
50c66ec88fSEmmanuel Vadot
51c66ec88fSEmmanuel Vadot&gmac0 {
52c66ec88fSEmmanuel Vadot	status = "okay";
53c66ec88fSEmmanuel Vadot	phy-mode = "rgmii";
54c66ec88fSEmmanuel Vadot	phy-handle = <&phy0>;
55c66ec88fSEmmanuel Vadot
56c66ec88fSEmmanuel Vadot	max-frame-size = <9000>;
57c66ec88fSEmmanuel Vadot
58c66ec88fSEmmanuel Vadot	mdio0 {
59c66ec88fSEmmanuel Vadot		#address-cells = <1>;
60c66ec88fSEmmanuel Vadot		#size-cells = <0>;
61c66ec88fSEmmanuel Vadot		compatible = "snps,dwmac-mdio";
62c66ec88fSEmmanuel Vadot		phy0: ethernet-phy@0 {
63c66ec88fSEmmanuel Vadot			reg = <4>;
64c66ec88fSEmmanuel Vadot
65c66ec88fSEmmanuel Vadot			txd0-skew-ps = <0>; /* -420ps */
66c66ec88fSEmmanuel Vadot			txd1-skew-ps = <0>; /* -420ps */
67c66ec88fSEmmanuel Vadot			txd2-skew-ps = <0>; /* -420ps */
68c66ec88fSEmmanuel Vadot			txd3-skew-ps = <0>; /* -420ps */
69c66ec88fSEmmanuel Vadot			rxd0-skew-ps = <420>; /* 0ps */
70c66ec88fSEmmanuel Vadot			rxd1-skew-ps = <420>; /* 0ps */
71c66ec88fSEmmanuel Vadot			rxd2-skew-ps = <420>; /* 0ps */
72c66ec88fSEmmanuel Vadot			rxd3-skew-ps = <420>; /* 0ps */
73c66ec88fSEmmanuel Vadot			txen-skew-ps = <0>; /* -420ps */
74c66ec88fSEmmanuel Vadot			txc-skew-ps = <900>; /* 0ps */
75c66ec88fSEmmanuel Vadot			rxdv-skew-ps = <420>; /* 0ps */
76c66ec88fSEmmanuel Vadot			rxc-skew-ps = <1680>; /* 780ps */
77c66ec88fSEmmanuel Vadot		};
78c66ec88fSEmmanuel Vadot	};
79c66ec88fSEmmanuel Vadot};
80c66ec88fSEmmanuel Vadot
81c66ec88fSEmmanuel Vadot&mmc {
82c66ec88fSEmmanuel Vadot	status = "okay";
83c66ec88fSEmmanuel Vadot	cap-sd-highspeed;
84c66ec88fSEmmanuel Vadot	broken-cd;
85c66ec88fSEmmanuel Vadot	bus-width = <4>;
868bab661aSEmmanuel Vadot	clk-phase-sd-hs = <0>, <135>;
87c66ec88fSEmmanuel Vadot};
88c66ec88fSEmmanuel Vadot
892eb4d8dcSEmmanuel Vadot&osc1 {
902eb4d8dcSEmmanuel Vadot	clock-frequency = <25000000>;
912eb4d8dcSEmmanuel Vadot};
922eb4d8dcSEmmanuel Vadot
93c66ec88fSEmmanuel Vadot&uart0 {
94c66ec88fSEmmanuel Vadot	status = "okay";
95c66ec88fSEmmanuel Vadot};
96c66ec88fSEmmanuel Vadot
97c66ec88fSEmmanuel Vadot&usb0 {
98c66ec88fSEmmanuel Vadot	status = "okay";
99c66ec88fSEmmanuel Vadot	disable-over-current;
100c66ec88fSEmmanuel Vadot};
101c66ec88fSEmmanuel Vadot
102c66ec88fSEmmanuel Vadot&watchdog0 {
103c66ec88fSEmmanuel Vadot	status = "okay";
104c66ec88fSEmmanuel Vadot};
105c66ec88fSEmmanuel Vadot
106c66ec88fSEmmanuel Vadot&qspi {
107c66ec88fSEmmanuel Vadot	status = "okay";
108c66ec88fSEmmanuel Vadot	flash@0 {
109c66ec88fSEmmanuel Vadot		#address-cells = <1>;
110c66ec88fSEmmanuel Vadot		#size-cells = <1>;
1116be33864SEmmanuel Vadot		compatible = "micron,mt25qu02g", "jedec,spi-nor";
112c66ec88fSEmmanuel Vadot		reg = <0>;
113c66ec88fSEmmanuel Vadot		spi-max-frequency = <100000000>;
114c66ec88fSEmmanuel Vadot
115c66ec88fSEmmanuel Vadot		m25p,fast-read;
1162eb4d8dcSEmmanuel Vadot		cdns,read-delay = <2>;
117c66ec88fSEmmanuel Vadot		cdns,tshsl-ns = <50>;
118c66ec88fSEmmanuel Vadot		cdns,tsd2d-ns = <50>;
119c66ec88fSEmmanuel Vadot		cdns,tchsh-ns = <4>;
120c66ec88fSEmmanuel Vadot		cdns,tslch-ns = <4>;
121c66ec88fSEmmanuel Vadot
122c66ec88fSEmmanuel Vadot		partitions {
123c66ec88fSEmmanuel Vadot			compatible = "fixed-partitions";
124c66ec88fSEmmanuel Vadot			#address-cells = <1>;
125c66ec88fSEmmanuel Vadot			#size-cells = <1>;
126c66ec88fSEmmanuel Vadot
127c66ec88fSEmmanuel Vadot			qspi_boot: partition@0 {
128c66ec88fSEmmanuel Vadot				label = "Boot and fpga data";
129*aa1a8ff2SEmmanuel Vadot				reg = <0x0 0x04200000>;
130c66ec88fSEmmanuel Vadot			};
131c66ec88fSEmmanuel Vadot
132*aa1a8ff2SEmmanuel Vadot			root: partition@4200000 {
133*aa1a8ff2SEmmanuel Vadot				label = "Root Filesystem - UBIFS";
134*aa1a8ff2SEmmanuel Vadot				reg = <0x04200000 0x0BE00000>;
135c66ec88fSEmmanuel Vadot			};
136c66ec88fSEmmanuel Vadot		};
137c66ec88fSEmmanuel Vadot	};
138c66ec88fSEmmanuel Vadot};
139