210-ARM-dts-armada388-clearfog-add-SFP-module-support.patch 2.1 KB

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