aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/cn7130_ubnt_edgerouter-6p.dts
blob: 7d31885928893af6d62a4bc395e531e53001b1b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT

#include "cn7130_ubnt_edgerouter-e300.dtsi"

/ {
	compatible = "ubnt,edgerouter-6p", "cavium,cn7130";
	model = "Ubiquiti EdgeRouter 6P";
};

&smi0 {
	phy8: ethernet-phy@8 {
		device_type = "ethernet-phy";
		interrupts = <17 8>;
		interrupt-parent = <&gpio>;
		compatible = "vitesse,vsc8514", "ethernet-phy-ieee802.3-c22";
		reg = <8>;
	};

	phy9: ethernet-phy@9 {
		device_type = "ethernet-phy";
		interrupts = <17 8>;
		interrupt-parent = <&gpio>;
		compatible = "vitesse,vsc8514", "ethernet-phy-ieee802.3-c22";
		reg = <9>;
	};
};

&pip {
	interface@0 {
		ethernet@0 {
			label = "lan5";
			status = "okay";
			phy-mode = "sgmii";
			phy-handle = <&phy4>;
			mtd-mac-address = <&eeprom 0>;
		};
	};

	interface@1 {
		status = "okay";

		ethernet@0 {
			label = "lan3";
			status = "okay";
			phy-mode = "sgmii";
			phy-handle = <&phy8>;
			mtd-mac-address = <&eeprom 0>;
			mtd-mac-address-increment = <(4)>;
		};

		ethernet@1 {
			label = "lan4";
			status = "okay";
			phy-mode = "sgmii";
			phy-handle = <&phy9>;
			mtd-mac-address = <&eeprom 0>;
			mtd-mac-address-increment = <(5)>;
		};
	};
};