038-0001-ARM-dts-Enable-SRAB-switch-and-GMACs-on-5301x-DTS.patch 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. From 59f0ce1a3ebb9288fc8c1400aa503e923621161e Mon Sep 17 00:00:00 2001
  2. From: Florian Fainelli <f.fainelli@gmail.com>
  3. Date: Mon, 23 May 2016 16:38:00 -0700
  4. Subject: [PATCH 1/3] ARM: dts: Enable SRAB switch and GMACs on 5301x DTS
  5. Add the Switch Register Access Block which is a special piece of
  6. hardware allowing us to perform indirect read/writes towards the
  7. integrated BCM5301X Ethernet switch.
  8. We also add the 4 Gigabit MAC Device Tree nodes within the brcm,bus-axi
  9. bus node to get proper binding between the BCMA instantiated core and
  10. the Device Tree nodes. We will need that to be able to reference
  11. Ethernet Device Tree nodes in a future patch adding the switch ports
  12. layout.
  13. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  14. ---
  15. arch/arm/boot/dts/bcm5301x.dtsi | 27 +++++++++++++++++++++++++++
  16. 1 file changed, 27 insertions(+)
  17. --- a/arch/arm/boot/dts/bcm5301x.dtsi
  18. +++ b/arch/arm/boot/dts/bcm5301x.dtsi
  19. @@ -239,6 +239,22 @@
  20. status = "disabled";
  21. };
  22. };
  23. +
  24. + gmac0: ethernet@24000 {
  25. + reg = <0x24000 0x800>;
  26. + };
  27. +
  28. + gmac1: ethernet@25000 {
  29. + reg = <0x25000 0x800>;
  30. + };
  31. +
  32. + gmac2: ethernet@26000 {
  33. + reg = <0x26000 0x800>;
  34. + };
  35. +
  36. + gmac3: ethernet@27000 {
  37. + reg = <0x27000 0x800>;
  38. + };
  39. };
  40. lcpll0: lcpll0@1800c100 {
  41. @@ -260,6 +276,17 @@
  42. "sata2";
  43. };
  44. + srab: srab@18007000 {
  45. + compatible = "brcm,bcm5301x-srab";
  46. + reg = <0x18007000 0x1000>;
  47. + #address-cells = <1>;
  48. + #size-cells = <0>;
  49. +
  50. + status = "disabled";
  51. +
  52. + /* ports are defined in board DTS */
  53. + };
  54. +
  55. nand: nand@18028000 {
  56. compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1", "brcm,brcmnand";
  57. reg = <0x18028000 0x600>, <0x1811a408 0x600>, <0x18028f00 0x20>;