xref: /freebsd/sys/contrib/device-tree/src/arm/marvell/armada-385-clearfog-gtr-l8.dts (revision 01950c46b8155250f64374fb72fc11faa44bf099)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2f126890aSEmmanuel Vadot
3f126890aSEmmanuel Vadot#include "armada-385-clearfog-gtr.dtsi"
4f126890aSEmmanuel Vadot
5f126890aSEmmanuel Vadot/ {
6f126890aSEmmanuel Vadot	model = "SolidRun Clearfog GTR L8";
7*01950c46SEmmanuel Vadot	compatible = "solidrun,clearfog-gtr-l8", "marvell,armada385",
8*01950c46SEmmanuel Vadot		     "marvell,armada380";
9*01950c46SEmmanuel Vadot
10*01950c46SEmmanuel Vadot	/* CON25 */
11*01950c46SEmmanuel Vadot	sfp1: sfp-1 {
12*01950c46SEmmanuel Vadot		compatible = "sff,sfp";
13*01950c46SEmmanuel Vadot		pinctrl-0 = <&cf_gtr_sfp1_pins>;
14*01950c46SEmmanuel Vadot		pinctrl-names = "default";
15*01950c46SEmmanuel Vadot		i2c-bus = <&i2c0>;
16*01950c46SEmmanuel Vadot		mod-def0-gpio = <&gpio0 24 GPIO_ACTIVE_LOW>;
17*01950c46SEmmanuel Vadot		tx-disable-gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>;
18*01950c46SEmmanuel Vadot	};
19f126890aSEmmanuel Vadot};
20f126890aSEmmanuel Vadot
21f126890aSEmmanuel Vadot&mdio {
228d13bc63SEmmanuel Vadot	switch0: ethernet-switch@4 {
23f126890aSEmmanuel Vadot		compatible = "marvell,mv88e6190";
24f126890aSEmmanuel Vadot		reg = <4>;
25f126890aSEmmanuel Vadot		pinctrl-names = "default";
26f126890aSEmmanuel Vadot		pinctrl-0 = <&cf_gtr_switch_reset_pins>;
27f126890aSEmmanuel Vadot		reset-gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
28f126890aSEmmanuel Vadot
298d13bc63SEmmanuel Vadot		ethernet-ports {
30f126890aSEmmanuel Vadot			#address-cells = <1>;
31f126890aSEmmanuel Vadot			#size-cells = <0>;
32f126890aSEmmanuel Vadot
338d13bc63SEmmanuel Vadot			ethernet-port@1 {
34f126890aSEmmanuel Vadot				reg = <1>;
35*01950c46SEmmanuel Vadot				label = "lan1";
36f126890aSEmmanuel Vadot				phy-handle = <&switch0phy0>;
37f126890aSEmmanuel Vadot			};
38f126890aSEmmanuel Vadot
398d13bc63SEmmanuel Vadot			ethernet-port@2 {
40f126890aSEmmanuel Vadot				reg = <2>;
41*01950c46SEmmanuel Vadot				label = "lan2";
42f126890aSEmmanuel Vadot				phy-handle = <&switch0phy1>;
43f126890aSEmmanuel Vadot			};
44f126890aSEmmanuel Vadot
458d13bc63SEmmanuel Vadot			ethernet-port@3 {
46f126890aSEmmanuel Vadot				reg = <3>;
47*01950c46SEmmanuel Vadot				label = "lan3";
48f126890aSEmmanuel Vadot				phy-handle = <&switch0phy2>;
49f126890aSEmmanuel Vadot			};
50f126890aSEmmanuel Vadot
518d13bc63SEmmanuel Vadot			ethernet-port@4 {
52f126890aSEmmanuel Vadot				reg = <4>;
53*01950c46SEmmanuel Vadot				label = "lan4";
54f126890aSEmmanuel Vadot				phy-handle = <&switch0phy3>;
55f126890aSEmmanuel Vadot			};
56f126890aSEmmanuel Vadot
578d13bc63SEmmanuel Vadot			ethernet-port@5 {
58f126890aSEmmanuel Vadot				reg = <5>;
59*01950c46SEmmanuel Vadot				label = "lan5";
60f126890aSEmmanuel Vadot				phy-handle = <&switch0phy4>;
61f126890aSEmmanuel Vadot			};
62f126890aSEmmanuel Vadot
638d13bc63SEmmanuel Vadot			ethernet-port@6 {
64f126890aSEmmanuel Vadot				reg = <6>;
65*01950c46SEmmanuel Vadot				label = "lan6";
66f126890aSEmmanuel Vadot				phy-handle = <&switch0phy5>;
67f126890aSEmmanuel Vadot			};
68f126890aSEmmanuel Vadot
698d13bc63SEmmanuel Vadot			ethernet-port@7 {
70f126890aSEmmanuel Vadot				reg = <7>;
71*01950c46SEmmanuel Vadot				label = "lan7";
72f126890aSEmmanuel Vadot				phy-handle = <&switch0phy6>;
73f126890aSEmmanuel Vadot			};
74f126890aSEmmanuel Vadot
758d13bc63SEmmanuel Vadot			ethernet-port@8 {
76f126890aSEmmanuel Vadot				reg = <8>;
77*01950c46SEmmanuel Vadot				label = "lan8";
78f126890aSEmmanuel Vadot				phy-handle = <&switch0phy7>;
79f126890aSEmmanuel Vadot			};
80f126890aSEmmanuel Vadot
81*01950c46SEmmanuel Vadot			ethernet-port@9 {
82*01950c46SEmmanuel Vadot				reg = <9>;
83*01950c46SEmmanuel Vadot				label = "lan-sfp";
84*01950c46SEmmanuel Vadot				phy-mode = "sgmii";
85*01950c46SEmmanuel Vadot				sfp = <&sfp1>;
86*01950c46SEmmanuel Vadot				managed = "in-band-status";
87*01950c46SEmmanuel Vadot			};
88*01950c46SEmmanuel Vadot
898d13bc63SEmmanuel Vadot			ethernet-port@10 {
90f126890aSEmmanuel Vadot				reg = <10>;
91f126890aSEmmanuel Vadot				phy-mode = "2500base-x";
92f126890aSEmmanuel Vadot				ethernet = <&eth1>;
93*01950c46SEmmanuel Vadot
94f126890aSEmmanuel Vadot				fixed-link {
95f126890aSEmmanuel Vadot					speed = <2500>;
96f126890aSEmmanuel Vadot					full-duplex;
97f126890aSEmmanuel Vadot				};
98f126890aSEmmanuel Vadot			};
99f126890aSEmmanuel Vadot
100f126890aSEmmanuel Vadot		};
101f126890aSEmmanuel Vadot
102f126890aSEmmanuel Vadot		mdio {
103f126890aSEmmanuel Vadot			#address-cells = <1>;
104f126890aSEmmanuel Vadot			#size-cells = <0>;
105f126890aSEmmanuel Vadot
1068d13bc63SEmmanuel Vadot			switch0phy0: ethernet-phy@1 {
107f126890aSEmmanuel Vadot				reg = <0x1>;
108f126890aSEmmanuel Vadot			};
109f126890aSEmmanuel Vadot
1108d13bc63SEmmanuel Vadot			switch0phy1: ethernet-phy@2 {
111f126890aSEmmanuel Vadot				reg = <0x2>;
112f126890aSEmmanuel Vadot			};
113f126890aSEmmanuel Vadot
1148d13bc63SEmmanuel Vadot			switch0phy2: ethernet-phy@3 {
115f126890aSEmmanuel Vadot				reg = <0x3>;
116f126890aSEmmanuel Vadot			};
117f126890aSEmmanuel Vadot
1188d13bc63SEmmanuel Vadot			switch0phy3: ethernet-phy@4 {
119f126890aSEmmanuel Vadot				reg = <0x4>;
120f126890aSEmmanuel Vadot			};
121f126890aSEmmanuel Vadot
1228d13bc63SEmmanuel Vadot			switch0phy4: ethernet-phy@5 {
123f126890aSEmmanuel Vadot				reg = <0x5>;
124f126890aSEmmanuel Vadot			};
125f126890aSEmmanuel Vadot
1268d13bc63SEmmanuel Vadot			switch0phy5: ethernet-phy@6 {
127f126890aSEmmanuel Vadot				reg = <0x6>;
128f126890aSEmmanuel Vadot			};
129f126890aSEmmanuel Vadot
1308d13bc63SEmmanuel Vadot			switch0phy6: ethernet-phy@7 {
131f126890aSEmmanuel Vadot				reg = <0x7>;
132f126890aSEmmanuel Vadot			};
133f126890aSEmmanuel Vadot
1348d13bc63SEmmanuel Vadot			switch0phy7: ethernet-phy@8 {
135f126890aSEmmanuel Vadot				reg = <0x8>;
136f126890aSEmmanuel Vadot			};
137f126890aSEmmanuel Vadot		};
138f126890aSEmmanuel Vadot
139f126890aSEmmanuel Vadot	};
140f126890aSEmmanuel Vadot};
141