Commit 29e36c1f authored by Russell King's avatar Russell King Committed by Gregory CLEMENT

ARM: dts: armada388-clearfog: add SFP module support

Add SFP module support for Clearfog using the SFP phylink support.
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
Tested-by: default avatarAndrew Lunn <andrew@lunn.ch>
Tested-by: default avatarBaruch Siach <baruch@tkos.co.il>
Signed-off-by: default avatarGregory CLEMENT <gregory.clement@bootlin.com>
parent aab9581a
...@@ -117,6 +117,16 @@ pcie@2,0 { ...@@ -117,6 +117,16 @@ pcie@2,0 {
}; };
}; };
}; };
sfp: sfp {
compatible = "sff,sfp";
i2c-bus = <&i2c1>;
los-gpio = <&expander0 12 GPIO_ACTIVE_HIGH>;
mod-def0-gpio = <&expander0 15 GPIO_ACTIVE_LOW>;
tx-disable-gpio = <&expander0 14 GPIO_ACTIVE_HIGH>;
tx-fault-gpio = <&expander0 13 GPIO_ACTIVE_HIGH>;
maximum-power-milliwatt = <2000>;
};
}; };
&eth1 { &eth1 {
...@@ -133,13 +143,10 @@ &eth2 { ...@@ -133,13 +143,10 @@ &eth2 {
bm,pool-long = <3>; bm,pool-long = <3>;
bm,pool-short = <1>; bm,pool-short = <1>;
buffer-manager = <&bm>; buffer-manager = <&bm>;
managed = "in-band-status";
phy-mode = "sgmii"; phy-mode = "sgmii";
sfp = <&sfp>;
status = "okay"; status = "okay";
fixed-link {
speed = <1000>;
full-duplex;
};
}; };
&i2c0 { &i2c0 {
...@@ -208,34 +215,6 @@ m2_devslp { ...@@ -208,34 +215,6 @@ m2_devslp {
output-low; output-low;
line-name = "m.2 devslp"; line-name = "m.2 devslp";
}; };
sfp_los {
/* SFP loss of signal */
gpio-hog;
gpios = <12 GPIO_ACTIVE_HIGH>;
input;
line-name = "sfp-los";
};
sfp_tx_fault {
/* SFP laser fault */
gpio-hog;
gpios = <13 GPIO_ACTIVE_HIGH>;
input;
line-name = "sfp-tx-fault";
};
sfp_tx_disable {
/* SFP transmit disable */
gpio-hog;
gpios = <14 GPIO_ACTIVE_HIGH>;
output-low;
line-name = "sfp-tx-disable";
};
sfp_mod_def0 {
/* SFP module present */
gpio-hog;
gpios = <15 GPIO_ACTIVE_LOW>;
input;
line-name = "sfp-mod-def0";
};
}; };
/* The MCP3021 supports standard and fast modes */ /* The MCP3021 supports standard and fast modes */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment