xref: /linux/arch/arm64/boot/dts/intel/socfpga_agilex3_socdk.dts (revision 0cac5ce06e524755b3dac1e0a060b05992076d93)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2025, Altera Corporation
4 */
5#include "socfpga_agilex5.dtsi"
6
7/ {
8	model = "SoCFPGA Agilex3 SoCDK";
9	compatible = "intel,socfpga-agilex3-socdk", "intel,socfpga-agilex3",
10		     "intel,socfpga-agilex5";
11
12	aliases {
13		serial0 = &uart0;
14		ethernet2 = &gmac2;
15	};
16
17	chosen {
18		stdout-path = "serial0:115200n8";
19	};
20
21	cpus {
22		/delete-node/ cpu@2;
23		/delete-node/ cpu@3;
24	};
25
26	leds {
27		compatible = "gpio-leds";
28
29		led0 {
30			label = "hps_led0";
31			gpios = <&porta 1 GPIO_ACTIVE_HIGH>;
32		};
33
34		led1 {
35			label = "hps_led1";
36			gpios = <&porta 12 GPIO_ACTIVE_HIGH>;
37		};
38
39	};
40
41	memory@80000000 {
42		device_type = "memory";
43		/* We expect the bootloader to fill in the reg */
44		reg = <0x0 0x80000000 0x0 0x0>;
45	};
46};
47
48&gmac2 {
49	status = "okay";
50	phy-mode = "rgmii-id";
51	phy-handle = <&emac2_phy0>;
52	max-frame-size = <9000>;
53
54	mdio0 {
55		compatible = "snps,dwmac-mdio";
56		#address-cells = <1>;
57		#size-cells = <0>;
58
59		emac2_phy0: ethernet-phy@0 {
60			reg = <0>;
61			rxc-skew-ps = <0>;
62			rxdv-skew-ps = <0>;
63			rxd0-skew-ps = <0>;
64			rxd1-skew-ps = <0>;
65			rxd2-skew-ps = <0>;
66			rxd3-skew-ps = <0>;
67			txc-skew-ps = <0>;
68			txen-skew-ps = <60>;
69			txd0-skew-ps = <60>;
70			txd1-skew-ps = <60>;
71			txd2-skew-ps = <60>;
72			txd3-skew-ps = <60>;
73		};
74	};
75};
76
77&gpio0 {
78	status = "okay";
79};
80
81&gpio1 {
82	status = "okay";
83};
84
85&osc1 {
86	clock-frequency = <25000000>;
87};
88
89&qspi {
90	status = "okay";
91	flash@0 {
92		compatible = "jedec,spi-nor";
93		reg = <0>;
94		spi-max-frequency = <100000000>;
95		m25p,fast-read;
96		cdns,read-delay = <2>;
97		cdns,tshsl-ns = <50>;
98		cdns,tsd2d-ns = <50>;
99		cdns,tchsh-ns = <4>;
100		cdns,tslch-ns = <4>;
101		spi-tx-bus-width = <4>;
102		spi-rx-bus-width = <4>;
103
104		partitions {
105			compatible = "fixed-partitions";
106			#address-cells = <1>;
107			#size-cells = <1>;
108
109			qspi_boot: partition@0 {
110				label = "u-boot";
111				reg = <0x0 0x00c00000>;
112			};
113
114			root: partition@c00000 {
115				label = "root";
116				reg = <0x00c00000 0x03400000>;
117			};
118		};
119	};
120};
121
122&smmu {
123	status = "okay";
124};
125
126&uart0 {
127	status = "okay";
128};
129
130&watchdog0 {
131	status = "okay";
132};
133