xref: /linux/scripts/dtc/include-prefixes/arm/marvell/armada-385-clearfog-gtr-s4.dts (revision 79790b6818e96c58fe2bffee1b418c16e64e7b80)
1724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2724ba675SRob Herring
3724ba675SRob Herring#include "armada-385-clearfog-gtr.dtsi"
4724ba675SRob Herring
5724ba675SRob Herring/ {
6724ba675SRob Herring	model = "SolidRun Clearfog GTR S4";
7*668445d1SJosua Mayer	compatible = "solidrun,clearfog-gtr-s4", "marvell,armada385",
8*668445d1SJosua Mayer		     "marvell,armada380";
9724ba675SRob Herring};
10724ba675SRob Herring
11724ba675SRob Herring&sfp0 {
12724ba675SRob Herring	tx-fault-gpio = <&gpio0 24 GPIO_ACTIVE_HIGH>;
13724ba675SRob Herring};
14724ba675SRob Herring
15724ba675SRob Herring&mdio {
166e75ac5aSLinus Walleij	switch0: ethernet-switch@4 {
17724ba675SRob Herring		compatible = "marvell,mv88e6085";
18724ba675SRob Herring		reg = <4>;
19724ba675SRob Herring		pinctrl-names = "default";
20724ba675SRob Herring		pinctrl-0 = <&cf_gtr_switch_reset_pins>;
21724ba675SRob Herring		reset-gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
22724ba675SRob Herring
236e75ac5aSLinus Walleij		ethernet-ports {
24724ba675SRob Herring			#address-cells = <1>;
25724ba675SRob Herring			#size-cells = <0>;
26724ba675SRob Herring
276e75ac5aSLinus Walleij			ethernet-port@1 {
28724ba675SRob Herring				reg = <1>;
29724ba675SRob Herring				label = "lan2";
30724ba675SRob Herring				phy-handle = <&switch0phy0>;
31724ba675SRob Herring			};
32724ba675SRob Herring
336e75ac5aSLinus Walleij			ethernet-port@2 {
34724ba675SRob Herring				reg = <2>;
35724ba675SRob Herring				label = "lan1";
36724ba675SRob Herring				phy-handle = <&switch0phy1>;
37724ba675SRob Herring			};
38724ba675SRob Herring
396e75ac5aSLinus Walleij			ethernet-port@3 {
40724ba675SRob Herring				reg = <3>;
41724ba675SRob Herring				label = "lan4";
42724ba675SRob Herring				phy-handle = <&switch0phy2>;
43724ba675SRob Herring			};
44724ba675SRob Herring
456e75ac5aSLinus Walleij			ethernet-port@4 {
46724ba675SRob Herring				reg = <4>;
47724ba675SRob Herring				label = "lan3";
48724ba675SRob Herring				phy-handle = <&switch0phy3>;
49724ba675SRob Herring			};
50724ba675SRob Herring
516e75ac5aSLinus Walleij			ethernet-port@5 {
52724ba675SRob Herring				reg = <5>;
53724ba675SRob Herring				phy-mode = "2500base-x";
54724ba675SRob Herring				ethernet = <&eth1>;
55724ba675SRob Herring
56724ba675SRob Herring				fixed-link {
57724ba675SRob Herring					speed = <2500>;
58724ba675SRob Herring					full-duplex;
59724ba675SRob Herring				};
60724ba675SRob Herring			};
61724ba675SRob Herring
62724ba675SRob Herring		};
63724ba675SRob Herring
64724ba675SRob Herring		mdio {
65724ba675SRob Herring			#address-cells = <1>;
66724ba675SRob Herring			#size-cells = <0>;
67724ba675SRob Herring
686e75ac5aSLinus Walleij			switch0phy0: ethernet-phy@11 {
69724ba675SRob Herring				reg = <0x11>;
70724ba675SRob Herring			};
71724ba675SRob Herring
726e75ac5aSLinus Walleij			switch0phy1: ethernet-phy@12 {
73724ba675SRob Herring				reg = <0x12>;
74724ba675SRob Herring			};
75724ba675SRob Herring
766e75ac5aSLinus Walleij			switch0phy2: ethernet-phy@13 {
77724ba675SRob Herring				reg = <0x13>;
78724ba675SRob Herring			};
79724ba675SRob Herring
806e75ac5aSLinus Walleij			switch0phy3: ethernet-phy@14 {
81724ba675SRob Herring				reg = <0x14>;
82724ba675SRob Herring			};
83724ba675SRob Herring		};
84724ba675SRob Herring
85724ba675SRob Herring	};
86724ba675SRob Herring};
87