blob: cb85f8e31dfc501ea57759949009a2b337ad72f2 [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";
Tom Rini6bb92fc2024-05-20 09:54:58 -06007 compatible = "solidrun,clearfog-gtr-l8", "marvell,armada385",
8 "marvell,armada380";
9
10 /* CON25 */
11 sfp1: sfp-1 {
12 compatible = "sff,sfp";
13 pinctrl-0 = <&cf_gtr_sfp1_pins>;
14 pinctrl-names = "default";
15 i2c-bus = <&i2c0>;
16 mod-def0-gpio = <&gpio0 24 GPIO_ACTIVE_LOW>;
17 tx-disable-gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>;
18 };
Tom Rini53633a82024-02-29 12:33:36 -050019};
20
21&mdio {
Tom Rini93743d22024-04-01 09:08:13 -040022 switch0: ethernet-switch@4 {
Tom Rini53633a82024-02-29 12:33:36 -050023 compatible = "marvell,mv88e6190";
24 reg = <4>;
25 pinctrl-names = "default";
26 pinctrl-0 = <&cf_gtr_switch_reset_pins>;
27 reset-gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
28
Tom Rini93743d22024-04-01 09:08:13 -040029 ethernet-ports {
Tom Rini53633a82024-02-29 12:33:36 -050030 #address-cells = <1>;
31 #size-cells = <0>;
32
Tom Rini93743d22024-04-01 09:08:13 -040033 ethernet-port@1 {
Tom Rini53633a82024-02-29 12:33:36 -050034 reg = <1>;
Tom Rini6bb92fc2024-05-20 09:54:58 -060035 label = "lan1";
Tom Rini53633a82024-02-29 12:33:36 -050036 phy-handle = <&switch0phy0>;
37 };
38
Tom Rini93743d22024-04-01 09:08:13 -040039 ethernet-port@2 {
Tom Rini53633a82024-02-29 12:33:36 -050040 reg = <2>;
Tom Rini6bb92fc2024-05-20 09:54:58 -060041 label = "lan2";
Tom Rini53633a82024-02-29 12:33:36 -050042 phy-handle = <&switch0phy1>;
43 };
44
Tom Rini93743d22024-04-01 09:08:13 -040045 ethernet-port@3 {
Tom Rini53633a82024-02-29 12:33:36 -050046 reg = <3>;
Tom Rini6bb92fc2024-05-20 09:54:58 -060047 label = "lan3";
Tom Rini53633a82024-02-29 12:33:36 -050048 phy-handle = <&switch0phy2>;
49 };
50
Tom Rini93743d22024-04-01 09:08:13 -040051 ethernet-port@4 {
Tom Rini53633a82024-02-29 12:33:36 -050052 reg = <4>;
Tom Rini6bb92fc2024-05-20 09:54:58 -060053 label = "lan4";
Tom Rini53633a82024-02-29 12:33:36 -050054 phy-handle = <&switch0phy3>;
55 };
56
Tom Rini93743d22024-04-01 09:08:13 -040057 ethernet-port@5 {
Tom Rini53633a82024-02-29 12:33:36 -050058 reg = <5>;
Tom Rini6bb92fc2024-05-20 09:54:58 -060059 label = "lan5";
Tom Rini53633a82024-02-29 12:33:36 -050060 phy-handle = <&switch0phy4>;
61 };
62
Tom Rini93743d22024-04-01 09:08:13 -040063 ethernet-port@6 {
Tom Rini53633a82024-02-29 12:33:36 -050064 reg = <6>;
Tom Rini6bb92fc2024-05-20 09:54:58 -060065 label = "lan6";
Tom Rini53633a82024-02-29 12:33:36 -050066 phy-handle = <&switch0phy5>;
67 };
68
Tom Rini93743d22024-04-01 09:08:13 -040069 ethernet-port@7 {
Tom Rini53633a82024-02-29 12:33:36 -050070 reg = <7>;
Tom Rini6bb92fc2024-05-20 09:54:58 -060071 label = "lan7";
Tom Rini53633a82024-02-29 12:33:36 -050072 phy-handle = <&switch0phy6>;
73 };
74
Tom Rini93743d22024-04-01 09:08:13 -040075 ethernet-port@8 {
Tom Rini53633a82024-02-29 12:33:36 -050076 reg = <8>;
Tom Rini6bb92fc2024-05-20 09:54:58 -060077 label = "lan8";
Tom Rini53633a82024-02-29 12:33:36 -050078 phy-handle = <&switch0phy7>;
79 };
80
Tom Rini6bb92fc2024-05-20 09:54:58 -060081 ethernet-port@9 {
82 reg = <9>;
83 label = "lan-sfp";
84 phy-mode = "sgmii";
85 sfp = <&sfp1>;
86 managed = "in-band-status";
87 };
88
Tom Rini93743d22024-04-01 09:08:13 -040089 ethernet-port@10 {
Tom Rini53633a82024-02-29 12:33:36 -050090 reg = <10>;
91 phy-mode = "2500base-x";
Tom Rini53633a82024-02-29 12:33:36 -050092 ethernet = <&eth1>;
Tom Rini6bb92fc2024-05-20 09:54:58 -060093
Tom Rini53633a82024-02-29 12:33:36 -050094 fixed-link {
95 speed = <2500>;
96 full-duplex;
97 };
98 };
99
100 };
101
102 mdio {
103 #address-cells = <1>;
104 #size-cells = <0>;
105
Tom Rini93743d22024-04-01 09:08:13 -0400106 switch0phy0: ethernet-phy@1 {
Tom Rini53633a82024-02-29 12:33:36 -0500107 reg = <0x1>;
108 };
109
Tom Rini93743d22024-04-01 09:08:13 -0400110 switch0phy1: ethernet-phy@2 {
Tom Rini53633a82024-02-29 12:33:36 -0500111 reg = <0x2>;
112 };
113
Tom Rini93743d22024-04-01 09:08:13 -0400114 switch0phy2: ethernet-phy@3 {
Tom Rini53633a82024-02-29 12:33:36 -0500115 reg = <0x3>;
116 };
117
Tom Rini93743d22024-04-01 09:08:13 -0400118 switch0phy3: ethernet-phy@4 {
Tom Rini53633a82024-02-29 12:33:36 -0500119 reg = <0x4>;
120 };
121
Tom Rini93743d22024-04-01 09:08:13 -0400122 switch0phy4: ethernet-phy@5 {
Tom Rini53633a82024-02-29 12:33:36 -0500123 reg = <0x5>;
124 };
125
Tom Rini93743d22024-04-01 09:08:13 -0400126 switch0phy5: ethernet-phy@6 {
Tom Rini53633a82024-02-29 12:33:36 -0500127 reg = <0x6>;
128 };
129
Tom Rini93743d22024-04-01 09:08:13 -0400130 switch0phy6: ethernet-phy@7 {
Tom Rini53633a82024-02-29 12:33:36 -0500131 reg = <0x7>;
132 };
133
Tom Rini93743d22024-04-01 09:08:13 -0400134 switch0phy7: ethernet-phy@8 {
Tom Rini53633a82024-02-29 12:33:36 -0500135 reg = <0x8>;
136 };
137 };
138
139 };
140};