blob: 5f83d981449ac80017ef21d6f88d5cce7ae56273 [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2
3#include "armada-385-clearfog-gtr.dtsi"
4
5/ {
6 model = "SolidRun Clearfog GTR S4";
Tom Rini6bb92fc2024-05-20 09:54:58 -06007 compatible = "solidrun,clearfog-gtr-s4", "marvell,armada385",
8 "marvell,armada380";
Tom Rini53633a82024-02-29 12:33:36 -05009};
10
11&sfp0 {
12 tx-fault-gpio = <&gpio0 24 GPIO_ACTIVE_HIGH>;
13};
14
15&mdio {
Tom Rini93743d22024-04-01 09:08:13 -040016 switch0: ethernet-switch@4 {
Tom Rini53633a82024-02-29 12:33:36 -050017 compatible = "marvell,mv88e6085";
18 reg = <4>;
19 pinctrl-names = "default";
20 pinctrl-0 = <&cf_gtr_switch_reset_pins>;
21 reset-gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
22
Tom Rini93743d22024-04-01 09:08:13 -040023 ethernet-ports {
Tom Rini53633a82024-02-29 12:33:36 -050024 #address-cells = <1>;
25 #size-cells = <0>;
26
Tom Rini93743d22024-04-01 09:08:13 -040027 ethernet-port@1 {
Tom Rini53633a82024-02-29 12:33:36 -050028 reg = <1>;
29 label = "lan2";
30 phy-handle = <&switch0phy0>;
31 };
32
Tom Rini93743d22024-04-01 09:08:13 -040033 ethernet-port@2 {
Tom Rini53633a82024-02-29 12:33:36 -050034 reg = <2>;
35 label = "lan1";
36 phy-handle = <&switch0phy1>;
37 };
38
Tom Rini93743d22024-04-01 09:08:13 -040039 ethernet-port@3 {
Tom Rini53633a82024-02-29 12:33:36 -050040 reg = <3>;
41 label = "lan4";
42 phy-handle = <&switch0phy2>;
43 };
44
Tom Rini93743d22024-04-01 09:08:13 -040045 ethernet-port@4 {
Tom Rini53633a82024-02-29 12:33:36 -050046 reg = <4>;
47 label = "lan3";
48 phy-handle = <&switch0phy3>;
49 };
50
Tom Rini93743d22024-04-01 09:08:13 -040051 ethernet-port@5 {
Tom Rini53633a82024-02-29 12:33:36 -050052 reg = <5>;
53 phy-mode = "2500base-x";
54 ethernet = <&eth1>;
55
56 fixed-link {
57 speed = <2500>;
58 full-duplex;
59 };
60 };
61
62 };
63
64 mdio {
65 #address-cells = <1>;
66 #size-cells = <0>;
67
Tom Rini93743d22024-04-01 09:08:13 -040068 switch0phy0: ethernet-phy@11 {
Tom Rini53633a82024-02-29 12:33:36 -050069 reg = <0x11>;
70 };
71
Tom Rini93743d22024-04-01 09:08:13 -040072 switch0phy1: ethernet-phy@12 {
Tom Rini53633a82024-02-29 12:33:36 -050073 reg = <0x12>;
74 };
75
Tom Rini93743d22024-04-01 09:08:13 -040076 switch0phy2: ethernet-phy@13 {
Tom Rini53633a82024-02-29 12:33:36 -050077 reg = <0x13>;
78 };
79
Tom Rini93743d22024-04-01 09:08:13 -040080 switch0phy3: ethernet-phy@14 {
Tom Rini53633a82024-02-29 12:33:36 -050081 reg = <0x14>;
82 };
83 };
84
85 };
86};