xref: /freebsd-src/sys/contrib/device-tree/src/arm64/intel/socfpga_agilex_socdk_nand.dts (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
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";
242eb4d8dcSEmmanuel Vadot		led0 {
25c66ec88fSEmmanuel Vadot			label = "hps_led0";
26c66ec88fSEmmanuel Vadot			gpios = <&portb 20 GPIO_ACTIVE_HIGH>;
27c66ec88fSEmmanuel Vadot		};
28c66ec88fSEmmanuel Vadot
292eb4d8dcSEmmanuel Vadot		led1 {
30c66ec88fSEmmanuel Vadot			label = "hps_led1";
31c66ec88fSEmmanuel Vadot			gpios = <&portb 19 GPIO_ACTIVE_HIGH>;
32c66ec88fSEmmanuel Vadot		};
33c66ec88fSEmmanuel Vadot
342eb4d8dcSEmmanuel 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&gmac2 {
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&nand {
82c66ec88fSEmmanuel Vadot	status = "okay";
83c66ec88fSEmmanuel Vadot
84c66ec88fSEmmanuel Vadot	flash@0 {
85c66ec88fSEmmanuel Vadot		#address-cells = <1>;
86c66ec88fSEmmanuel Vadot		#size-cells = <1>;
87c66ec88fSEmmanuel Vadot		reg = <0>;
88c66ec88fSEmmanuel Vadot		nand-bus-width = <16>;
89c66ec88fSEmmanuel Vadot
90c66ec88fSEmmanuel Vadot		partition@0 {
91c66ec88fSEmmanuel Vadot			label = "u-boot";
92c66ec88fSEmmanuel Vadot			reg = <0 0x200000>;
93c66ec88fSEmmanuel Vadot		};
94c66ec88fSEmmanuel Vadot		partition@200000 {
95e67e8565SEmmanuel Vadot			label = "root";
96e67e8565SEmmanuel Vadot			reg = <0x200000 0x3fe00000>;
97c66ec88fSEmmanuel Vadot		};
98c66ec88fSEmmanuel Vadot	};
99c66ec88fSEmmanuel Vadot};
100c66ec88fSEmmanuel Vadot
1012eb4d8dcSEmmanuel Vadot&osc1 {
1022eb4d8dcSEmmanuel Vadot	clock-frequency = <25000000>;
1032eb4d8dcSEmmanuel Vadot};
1042eb4d8dcSEmmanuel Vadot
105c66ec88fSEmmanuel Vadot&uart0 {
106c66ec88fSEmmanuel Vadot	status = "okay";
107c66ec88fSEmmanuel Vadot};
108c66ec88fSEmmanuel Vadot
109c66ec88fSEmmanuel Vadot&usb0 {
110c66ec88fSEmmanuel Vadot	status = "okay";
111c66ec88fSEmmanuel Vadot	disable-over-current;
112c66ec88fSEmmanuel Vadot};
113c66ec88fSEmmanuel Vadot
114c66ec88fSEmmanuel Vadot&watchdog0 {
115c66ec88fSEmmanuel Vadot	status = "okay";
116c66ec88fSEmmanuel Vadot};
117