imx6: fix USB for 4.9 kernel
[oweals/openwrt.git] / target / linux / mvebu / patches-4.4 / 210-ARM-dts-armada388-clearfog-add-SFP-module-support.patch
1 From 63ff73593c2f5d3fc1cba479321d192caaca48aa Mon Sep 17 00:00:00 2001
2 From: Russell King <rmk+kernel@arm.linux.org.uk>
3 Date: Sat, 12 Sep 2015 18:43:39 +0100
4 Subject: [PATCH 738/744] ARM: dts: armada388-clearfog: add SFP module support
5
6 Add SFP module support for Clearfog using the SFP phylink support.
7
8 Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
9 ---
10  arch/arm/boot/dts/armada-388-clearfog.dts | 44 ++++++++-----------------------
11  1 file changed, 11 insertions(+), 33 deletions(-)
12
13 --- a/arch/arm/boot/dts/armada-388-clearfog.dts
14 +++ b/arch/arm/boot/dts/armada-388-clearfog.dts
15 @@ -90,16 +90,12 @@
16                         };
17  
18                         ethernet@34000 {
19 +                               managed = "in-band-status";
20                                 phy-mode = "sgmii";
21                                 buffer-manager = <&bm>;
22                                 bm,pool-long = <3>;
23                                 bm,pool-short = <1>;
24                                 status = "okay";
25 -
26 -                               fixed-link {
27 -                                       speed = <1000>;
28 -                                       full-duplex;
29 -                               };
30                         };
31  
32                         i2c@11000 {
33 @@ -183,34 +179,6 @@
34                                                 output-low;
35                                                 line-name = "m.2 devslp";
36                                         };
37 -                                       sfp_los {
38 -                                               /* SFP loss of signal */
39 -                                               gpio-hog;
40 -                                               gpios = <12 GPIO_ACTIVE_HIGH>;
41 -                                               input;
42 -                                               line-name = "sfp-los";
43 -                                       };
44 -                                       sfp_tx_fault {
45 -                                               /* SFP laser fault */
46 -                                               gpio-hog;
47 -                                               gpios = <13 GPIO_ACTIVE_HIGH>;
48 -                                               input;
49 -                                               line-name = "sfp-tx-fault";
50 -                                       };
51 -                                       sfp_tx_disable {
52 -                                               /* SFP transmit disable */
53 -                                               gpio-hog;
54 -                                               gpios = <14 GPIO_ACTIVE_HIGH>;
55 -                                               output-low;
56 -                                               line-name = "sfp-tx-disable";
57 -                                       };
58 -                                       sfp_mod_def0 {
59 -                                               /* SFP module present */
60 -                                               gpio-hog;
61 -                                               gpios = <15 GPIO_ACTIVE_LOW>;
62 -                                               input;
63 -                                               line-name = "sfp-mod-def0";
64 -                                       };
65                                 };
66  
67                                 /* The MCP3021 is 100kHz clock only */
68 @@ -374,6 +342,16 @@
69                 };
70         };
71  
72 +       sfp: sfp {
73 +               compatible = "sff,sfp";
74 +               i2c-bus = <&i2c1>;
75 +               los-gpio = <&expander0 12 GPIO_ACTIVE_HIGH>;
76 +               moddef0-gpio = <&expander0 15 GPIO_ACTIVE_LOW>;
77 +               sfp,ethernet = <&eth2>;
78 +               tx-disable-gpio = <&expander0 14 GPIO_ACTIVE_HIGH>;
79 +               tx-fault-gpio = <&expander0 13 GPIO_ACTIVE_HIGH>;
80 +       };
81 +
82         dsa@0 {
83                 compatible = "marvell,dsa";
84                 dsa,ethernet = <&eth1>;