diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2018-02-27 11:02:02 -0500 |
---|---|---|
committer | Gregory CLEMENT <gregory.clement@bootlin.com> | 2018-03-27 09:07:46 -0400 |
commit | 29e36c1f63d16c6fe895fa4e33b01e45a11f96de (patch) | |
tree | 5da1fb386b26dedba66c2bc2e31b27983b5f155e | |
parent | aab9581a7d99d353653c90ddb2cfc84a34416e71 (diff) |
ARM: dts: armada388-clearfog: add SFP module support
Add SFP module support for Clearfog using the SFP phylink support.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
-rw-r--r-- | arch/arm/boot/dts/armada-388-clearfog.dtsi | 45 |
1 files changed, 12 insertions, 33 deletions
diff --git a/arch/arm/boot/dts/armada-388-clearfog.dtsi b/arch/arm/boot/dts/armada-388-clearfog.dtsi index 0e3b1f140e6d..a44bf20ab7f8 100644 --- a/arch/arm/boot/dts/armada-388-clearfog.dtsi +++ b/arch/arm/boot/dts/armada-388-clearfog.dtsi | |||
@@ -117,6 +117,16 @@ | |||
117 | }; | 117 | }; |
118 | }; | 118 | }; |
119 | }; | 119 | }; |
120 | |||
121 | sfp: sfp { | ||
122 | compatible = "sff,sfp"; | ||
123 | i2c-bus = <&i2c1>; | ||
124 | los-gpio = <&expander0 12 GPIO_ACTIVE_HIGH>; | ||
125 | mod-def0-gpio = <&expander0 15 GPIO_ACTIVE_LOW>; | ||
126 | tx-disable-gpio = <&expander0 14 GPIO_ACTIVE_HIGH>; | ||
127 | tx-fault-gpio = <&expander0 13 GPIO_ACTIVE_HIGH>; | ||
128 | maximum-power-milliwatt = <2000>; | ||
129 | }; | ||
120 | }; | 130 | }; |
121 | 131 | ||
122 | ð1 { | 132 | ð1 { |
@@ -133,13 +143,10 @@ | |||
133 | bm,pool-long = <3>; | 143 | bm,pool-long = <3>; |
134 | bm,pool-short = <1>; | 144 | bm,pool-short = <1>; |
135 | buffer-manager = <&bm>; | 145 | buffer-manager = <&bm>; |
146 | managed = "in-band-status"; | ||
136 | phy-mode = "sgmii"; | 147 | phy-mode = "sgmii"; |
148 | sfp = <&sfp>; | ||
137 | status = "okay"; | 149 | status = "okay"; |
138 | |||
139 | fixed-link { | ||
140 | speed = <1000>; | ||
141 | full-duplex; | ||
142 | }; | ||
143 | }; | 150 | }; |
144 | 151 | ||
145 | &i2c0 { | 152 | &i2c0 { |
@@ -208,34 +215,6 @@ | |||
208 | output-low; | 215 | output-low; |
209 | line-name = "m.2 devslp"; | 216 | line-name = "m.2 devslp"; |
210 | }; | 217 | }; |
211 | sfp_los { | ||
212 | /* SFP loss of signal */ | ||
213 | gpio-hog; | ||
214 | gpios = <12 GPIO_ACTIVE_HIGH>; | ||
215 | input; | ||
216 | line-name = "sfp-los"; | ||
217 | }; | ||
218 | sfp_tx_fault { | ||
219 | /* SFP laser fault */ | ||
220 | gpio-hog; | ||
221 | gpios = <13 GPIO_ACTIVE_HIGH>; | ||
222 | input; | ||
223 | line-name = "sfp-tx-fault"; | ||
224 | }; | ||
225 | sfp_tx_disable { | ||
226 | /* SFP transmit disable */ | ||
227 | gpio-hog; | ||
228 | gpios = <14 GPIO_ACTIVE_HIGH>; | ||
229 | output-low; | ||
230 | line-name = "sfp-tx-disable"; | ||
231 | }; | ||
232 | sfp_mod_def0 { | ||
233 | /* SFP module present */ | ||
234 | gpio-hog; | ||
235 | gpios = <15 GPIO_ACTIVE_LOW>; | ||
236 | input; | ||
237 | line-name = "sfp-mod-def0"; | ||
238 | }; | ||
239 | }; | 218 | }; |
240 | 219 | ||
241 | /* The MCP3021 supports standard and fast modes */ | 220 | /* The MCP3021 supports standard and fast modes */ |