Skip to content

Commit c246063

Browse files
committed
arm64: dts: mediatek: mt7988: move sfp-wan back to dtsi
1 parent d866e64 commit c246063

2 files changed

Lines changed: 19 additions & 19 deletions

File tree

arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,6 @@
55
#include "mt7988a-bananapi-bpi-r4.dtsi"
66

77
/ {
8-
/* SFP1 cage (WAN) */
9-
sfp1: sfp1 {
10-
compatible = "sff,sfp";
11-
i2c-bus = <&i2c_sfp1>;
12-
los-gpios = <&pio 54 GPIO_ACTIVE_HIGH>;
13-
mod-def0-gpios = <&pio 82 GPIO_ACTIVE_LOW>;
14-
tx-disable-gpios = <&pio 70 GPIO_ACTIVE_HIGH>;
15-
tx-fault-gpios = <&pio 69 GPIO_ACTIVE_HIGH>;
16-
rate-select0-gpios = <&pio 21 GPIO_ACTIVE_LOW>;
17-
maximum-power-milliwatt = <3000>;
18-
};
19-
208
/* SFP2 cage (LAN) */
219
sfp2: sfp2 {
2210
compatible = "sff,sfp";
@@ -37,13 +25,6 @@
3725
status = "okay";
3826
};
3927

40-
&gmac2 {
41-
sfp = <&sfp1>;
42-
managed = "in-band-status";
43-
phy-mode = "usxgmii";
44-
status = "okay";
45-
};
46-
4728
&pca9545 {
4829
i2c_sfp2: i2c@2 {
4930
#address-cells = <1>;

arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,18 @@
5252
regulator-always-on;
5353
};
5454

55+
/* SFP1 cage (WAN) */
56+
sfp1: sfp1 {
57+
compatible = "sff,sfp";
58+
i2c-bus = <&i2c_sfp1>;
59+
los-gpios = <&pio 54 GPIO_ACTIVE_HIGH>;
60+
mod-def0-gpios = <&pio 82 GPIO_ACTIVE_LOW>;
61+
tx-disable-gpios = <&pio 70 GPIO_ACTIVE_HIGH>;
62+
tx-fault-gpios = <&pio 69 GPIO_ACTIVE_HIGH>;
63+
rate-select0-gpios = <&pio 21 GPIO_ACTIVE_LOW>;
64+
maximum-power-milliwatt = <3000>;
65+
};
66+
5567
gpio-keys {
5668
compatible = "gpio-keys";
5769

@@ -137,6 +149,13 @@
137149
status = "okay";
138150
};
139151

152+
&gmac2 {
153+
sfp = <&sfp1>;
154+
managed = "in-band-status";
155+
phy-mode = "usxgmii";
156+
status = "okay";
157+
};
158+
140159
&switch {
141160
status = "okay";
142161
};

0 commit comments

Comments
 (0)