040-ARM-dts-BCM5301x-Add-BCM953012ER-board.patch 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. From f8c331bda6a90b239f600020eec1b0defe7249b5 Mon Sep 17 00:00:00 2001
  2. From: Florian Fainelli <f.fainelli@gmail.com>
  3. Date: Wed, 22 Jun 2016 17:00:35 -0700
  4. Subject: [PATCH] ARM: dts: BCM5301x: Add BCM953012ER board
  5. Add support for the Broadcom BCM953012 Enterprise Router reference
  6. board, enable the following peripherals:
  7. - UART0 (UART1 is not populated)
  8. - WPS and restart GPIO buttons
  9. - Ethernet switch w/ only two facing ports
  10. - NAND flash
  11. - SPI-NOR flash
  12. Acked-by: Jon Mason <jon.mason@broadcom.com>
  13. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  14. ---
  15. arch/arm/boot/dts/Makefile | 1 +
  16. arch/arm/boot/dts/bcm953012er.dts | 104 ++++++++++++++++++++++++++++++++++++++
  17. 2 files changed, 105 insertions(+)
  18. create mode 100644 arch/arm/boot/dts/bcm953012er.dts
  19. --- a/arch/arm/boot/dts/Makefile
  20. +++ b/arch/arm/boot/dts/Makefile
  21. @@ -79,6 +79,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
  22. bcm47094-dlink-dir-885l.dtb \
  23. bcm94708.dtb \
  24. bcm94709.dtb \
  25. + bcm953012er.dtb \
  26. bcm953012k.dtb
  27. dtb-$(CONFIG_ARCH_BCM_63XX) += \
  28. bcm963138dvt.dtb
  29. --- /dev/null
  30. +++ b/arch/arm/boot/dts/bcm953012er.dts
  31. @@ -0,0 +1,104 @@
  32. +/*
  33. + * BSD LICENSE
  34. + *
  35. + * Copyright(c) 2016 Broadcom. All rights reserved.
  36. + *
  37. + * Redistribution and use in source and binary forms, with or without
  38. + * modification, are permitted provided that the following conditions
  39. + * are met:
  40. + *
  41. + * * Redistributions of source code must retain the above copyright
  42. + * notice, this list of conditions and the following disclaimer.
  43. + * * Redistributions in binary form must reproduce the above copyright
  44. + * notice, this list of conditions and the following disclaimer in
  45. + * the documentation and/or other materials provided with the
  46. + * distribution.
  47. + * * Neither the name of Broadcom Corporation nor the names of its
  48. + * contributors may be used to endorse or promote products derived
  49. + * from this software without specific prior written permission.
  50. + *
  51. + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  52. + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  53. + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  54. + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  55. + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  56. + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  57. + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  58. + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  59. + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  60. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  61. + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  62. + */
  63. +
  64. +/dts-v1/;
  65. +
  66. +#include "bcm4708.dtsi"
  67. +#include "bcm5301x-nand-cs0-bch8.dtsi"
  68. +
  69. +/ {
  70. + model = "NorthStar Enterprise Router (BCM953012ER)";
  71. + compatible = "brcm,bcm953012er", "brcm,brcm53012", "brcm,bcm4708";
  72. +
  73. + aliases {
  74. + serial0 = &uart0;
  75. + };
  76. +
  77. + chosen {
  78. + stdout-path = "serial0:115200n8";
  79. + };
  80. +
  81. + memory {
  82. + reg = <0x00000000 0x8000000>;
  83. + };
  84. +
  85. + gpio-keys {
  86. + compatible = "gpio-keys";
  87. + #address-cells = <1>;
  88. + #size-cells = <0>;
  89. +
  90. + wps {
  91. + label = "WPS";
  92. + linux,code = <KEY_WPS_BUTTON>;
  93. + gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
  94. + };
  95. +
  96. + restart {
  97. + label = "Reset";
  98. + linux,code = <KEY_RESTART>;
  99. + gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
  100. + };
  101. + };
  102. +};
  103. +
  104. +&uart0 {
  105. + status = "okay";
  106. +};
  107. +
  108. +&spi_nor {
  109. + status = "okay";
  110. +};
  111. +
  112. +&srab {
  113. + status = "okay";
  114. +
  115. + ports {
  116. + #address-cells = <1>;
  117. + #size-cells = <0>;
  118. +
  119. + port@0 {
  120. + reg = <0>;
  121. + label = "port0";
  122. + };
  123. +
  124. + port@1 {
  125. + reg = <1>;
  126. + label = "port1";
  127. + };
  128. +
  129. + port@5 {
  130. + reg = <5>;
  131. + label = "cpu";
  132. + ethernet = <&gmac0>;
  133. + };
  134. + };
  135. +};