blob: 1707d1b015452d26c138ac198f1dc01982cea779 [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 L8";
7};
8
9&mdio {
Tom Rini93743d22024-04-01 09:08:13 -040010 switch0: ethernet-switch@4 {
Tom Rini53633a82024-02-29 12:33:36 -050011 compatible = "marvell,mv88e6190";
12 reg = <4>;
13 pinctrl-names = "default";
14 pinctrl-0 = <&cf_gtr_switch_reset_pins>;
15 reset-gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
16
Tom Rini93743d22024-04-01 09:08:13 -040017 ethernet-ports {
Tom Rini53633a82024-02-29 12:33:36 -050018 #address-cells = <1>;
19 #size-cells = <0>;
20
Tom Rini93743d22024-04-01 09:08:13 -040021 ethernet-port@1 {
Tom Rini53633a82024-02-29 12:33:36 -050022 reg = <1>;
23 label = "lan8";
24 phy-handle = <&switch0phy0>;
25 };
26
Tom Rini93743d22024-04-01 09:08:13 -040027 ethernet-port@2 {
Tom Rini53633a82024-02-29 12:33:36 -050028 reg = <2>;
29 label = "lan7";
30 phy-handle = <&switch0phy1>;
31 };
32
Tom Rini93743d22024-04-01 09:08:13 -040033 ethernet-port@3 {
Tom Rini53633a82024-02-29 12:33:36 -050034 reg = <3>;
35 label = "lan6";
36 phy-handle = <&switch0phy2>;
37 };
38
Tom Rini93743d22024-04-01 09:08:13 -040039 ethernet-port@4 {
Tom Rini53633a82024-02-29 12:33:36 -050040 reg = <4>;
41 label = "lan5";
42 phy-handle = <&switch0phy3>;
43 };
44
Tom Rini93743d22024-04-01 09:08:13 -040045 ethernet-port@5 {
Tom Rini53633a82024-02-29 12:33:36 -050046 reg = <5>;
47 label = "lan4";
48 phy-handle = <&switch0phy4>;
49 };
50
Tom Rini93743d22024-04-01 09:08:13 -040051 ethernet-port@6 {
Tom Rini53633a82024-02-29 12:33:36 -050052 reg = <6>;
53 label = "lan3";
54 phy-handle = <&switch0phy5>;
55 };
56
Tom Rini93743d22024-04-01 09:08:13 -040057 ethernet-port@7 {
Tom Rini53633a82024-02-29 12:33:36 -050058 reg = <7>;
59 label = "lan2";
60 phy-handle = <&switch0phy6>;
61 };
62
Tom Rini93743d22024-04-01 09:08:13 -040063 ethernet-port@8 {
Tom Rini53633a82024-02-29 12:33:36 -050064 reg = <8>;
65 label = "lan1";
66 phy-handle = <&switch0phy7>;
67 };
68
Tom Rini93743d22024-04-01 09:08:13 -040069 ethernet-port@10 {
Tom Rini53633a82024-02-29 12:33:36 -050070 reg = <10>;
71 phy-mode = "2500base-x";
72
73 ethernet = <&eth1>;
74 fixed-link {
75 speed = <2500>;
76 full-duplex;
77 };
78 };
79
80 };
81
82 mdio {
83 #address-cells = <1>;
84 #size-cells = <0>;
85
Tom Rini93743d22024-04-01 09:08:13 -040086 switch0phy0: ethernet-phy@1 {
Tom Rini53633a82024-02-29 12:33:36 -050087 reg = <0x1>;
88 };
89
Tom Rini93743d22024-04-01 09:08:13 -040090 switch0phy1: ethernet-phy@2 {
Tom Rini53633a82024-02-29 12:33:36 -050091 reg = <0x2>;
92 };
93
Tom Rini93743d22024-04-01 09:08:13 -040094 switch0phy2: ethernet-phy@3 {
Tom Rini53633a82024-02-29 12:33:36 -050095 reg = <0x3>;
96 };
97
Tom Rini93743d22024-04-01 09:08:13 -040098 switch0phy3: ethernet-phy@4 {
Tom Rini53633a82024-02-29 12:33:36 -050099 reg = <0x4>;
100 };
101
Tom Rini93743d22024-04-01 09:08:13 -0400102 switch0phy4: ethernet-phy@5 {
Tom Rini53633a82024-02-29 12:33:36 -0500103 reg = <0x5>;
104 };
105
Tom Rini93743d22024-04-01 09:08:13 -0400106 switch0phy5: ethernet-phy@6 {
Tom Rini53633a82024-02-29 12:33:36 -0500107 reg = <0x6>;
108 };
109
Tom Rini93743d22024-04-01 09:08:13 -0400110 switch0phy6: ethernet-phy@7 {
Tom Rini53633a82024-02-29 12:33:36 -0500111 reg = <0x7>;
112 };
113
Tom Rini93743d22024-04-01 09:08:13 -0400114 switch0phy7: ethernet-phy@8 {
Tom Rini53633a82024-02-29 12:33:36 -0500115 reg = <0x8>;
116 };
117 };
118
119 };
120};