File tree Expand file tree Collapse file tree
arch/arm64/boot/dts/mediatek Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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";
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>;
Original file line number Diff line number Diff line change 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
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};
You can’t perform that action at this time.
0 commit comments