aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-03-27 10:09:13 -0400
committerArnd Bergmann <arnd@arndb.de>2018-03-27 10:09:13 -0400
commit2fc2544e3cc174c63c83b954e010d2c1f6cd3f62 (patch)
tree7595cbfe74719016652b626aa55ff86611464f66
parent610bf412e44fd4cff2b9959714437ca92dc0c697 (diff)
parent29e36c1f63d16c6fe895fa4e33b01e45a11f96de (diff)
Merge tag 'mvebu-dt-4.17-2' of git://git.infradead.org/linux-mvebu into next/dt
Pull "mvebu dt for 4.17 (part 2)" from Gregory CLEMENT: - add SFP module support on the clearfog (Armada 388 based board) - disable internal RTC node for Linksys boards (Armada 38x based boards) * tag 'mvebu-dt-4.17-2' of git://git.infradead.org/linux-mvebu: ARM: dts: armada388-clearfog: add SFP module support ARM: dts: armada-385-linksys: Disable internal RTC
-rw-r--r--arch/arm/boot/dts/armada-385-linksys.dtsi5
-rw-r--r--arch/arm/boot/dts/armada-388-clearfog.dtsi45
2 files changed, 17 insertions, 33 deletions
diff --git a/arch/arm/boot/dts/armada-385-linksys.dtsi b/arch/arm/boot/dts/armada-385-linksys.dtsi
index 434dc9aaa5e4..b7bbf15571c5 100644
--- a/arch/arm/boot/dts/armada-385-linksys.dtsi
+++ b/arch/arm/boot/dts/armada-385-linksys.dtsi
@@ -282,3 +282,8 @@
282 status = "okay"; 282 status = "okay";
283 usb-phy = <&usb3_1_phy>; 283 usb-phy = <&usb3_1_phy>;
284}; 284};
285
286&rtc {
287 /* No crystal connected to the internal RTC */
288 status = "disabled";
289};
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&eth1 { 132&eth1 {
@@ -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 */