038-0003-ARM-dts-BCM5310x-Enable-switch-ports-on-SmartRG-SR40.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. From 2df1808dc0e2b5358e13beb95192b15200017776 Mon Sep 17 00:00:00 2001
  2. From: Florian Fainelli <f.fainelli@gmail.com>
  3. Date: Wed, 25 May 2016 16:55:35 -0700
  4. Subject: [PATCH 3/3] ARM: dts: BCM5310x: Enable switch ports on SmartRG
  5. SR400AC
  6. Define the port mapping for the SmartRG SR400ACE device.
  7. Reviewed-by: Andrew Lunn <andrew@lunn.ch>
  8. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  9. ---
  10. arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts | 40 +++++++++++++++++++++++++++
  11. 1 file changed, 40 insertions(+)
  12. --- a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
  13. +++ b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
  14. @@ -126,3 +126,43 @@
  15. &spi_nor {
  16. status = "okay";
  17. };
  18. +
  19. +&srab {
  20. + status = "okay";
  21. +
  22. + ports {
  23. + #address-cells = <1>;
  24. + #size-cells = <0>;
  25. +
  26. + port@0 {
  27. + reg = <0>;
  28. + label = "lan4";
  29. + };
  30. +
  31. + port@1 {
  32. + reg = <1>;
  33. + label = "lan3";
  34. + };
  35. +
  36. + port@2 {
  37. + reg = <2>;
  38. + label = "lan2";
  39. + };
  40. +
  41. + port@3 {
  42. + reg = <3>;
  43. + label = "lan1";
  44. + };
  45. +
  46. + port@4 {
  47. + reg = <4>;
  48. + label = "wan";
  49. + };
  50. +
  51. + port@5 {
  52. + reg = <5>;
  53. + label = "cpu";
  54. + ethernet = <&gmac0>;
  55. + };
  56. + };
  57. +};