049-v4.14-0003-ARM-dts-BCM53573-Add-Broadcom-BCM947189ACDBMR-board-.patch 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. From 092ccf0415c720a1e9458a46fe75f77574027a55 Mon Sep 17 00:00:00 2001
  2. From: Florian Fainelli <f.fainelli@gmail.com>
  3. Date: Tue, 18 Jul 2017 12:37:37 -0700
  4. Subject: [PATCH] ARM: dts: BCM53573: Add Broadcom BCM947189ACDBMR board
  5. support
  6. Adds support for the Broadcom reference board BCM947189ACDMBR which
  7. features the following:
  8. * 128MB of DRAM
  9. * External MoCA support through a Broadcom BCM6802 chip
  10. * 1x external Gigabit PHY through the external BCM6802
  11. * 1x USB 2.0 port
  12. * 1x PCIE slot
  13. * Few configurable buttons and LEDs
  14. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  15. ---
  16. arch/arm/boot/dts/Makefile | 3 +-
  17. arch/arm/boot/dts/bcm947189acdbmr.dts | 97 +++++++++++++++++++++++++++++++++++
  18. 2 files changed, 99 insertions(+), 1 deletion(-)
  19. create mode 100644 arch/arm/boot/dts/bcm947189acdbmr.dts
  20. --- a/arch/arm/boot/dts/Makefile
  21. +++ b/arch/arm/boot/dts/Makefile
  22. @@ -93,7 +93,8 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
  23. bcm953012hr.dtb \
  24. bcm953012k.dtb
  25. dtb-$(CONFIG_ARCH_BCM_53573) += \
  26. - bcm47189-tenda-ac9.dtb
  27. + bcm47189-tenda-ac9.dtb \
  28. + bcm947189acdbmr.dtb
  29. dtb-$(CONFIG_ARCH_BCM_63XX) += \
  30. bcm963138dvt.dtb
  31. dtb-$(CONFIG_ARCH_BCM_CYGNUS) += \
  32. --- /dev/null
  33. +++ b/arch/arm/boot/dts/bcm947189acdbmr.dts
  34. @@ -0,0 +1,97 @@
  35. +/*
  36. + * Copyright (C) 2017 Broadcom
  37. + * Author: Florian Fainelli <f.fainelli@gmail.com>
  38. + *
  39. + * Licensed under the ISC license.
  40. + */
  41. +
  42. +/dts-v1/;
  43. +
  44. +#include "bcm53573.dtsi"
  45. +
  46. +/ {
  47. + compatible = "brcm,bcm947189acdbmr", "brcm,bcm47189", "brcm,bcm53573";
  48. + model = "Broadcom BCM947189ACDBMR";
  49. +
  50. + chosen {
  51. + bootargs = "console=ttyS0,115200 earlycon";
  52. + };
  53. +
  54. + memory {
  55. + reg = <0x00000000 0x08000000>;
  56. + };
  57. +
  58. + leds {
  59. + compatible = "gpio-leds";
  60. +
  61. + wps {
  62. + label = "bcm53xx:blue:wps";
  63. + gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
  64. + };
  65. +
  66. + 5ghz {
  67. + label = "bcm53xx:blue:5ghz";
  68. + gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>;
  69. + };
  70. +
  71. + 2ghz {
  72. + label = "bcm53xx:blue:2ghz";
  73. + gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
  74. + };
  75. + };
  76. +
  77. + gpio-keys {
  78. + compatible = "gpio-keys";
  79. + #address-cells = <1>;
  80. + #size-cells = <0>;
  81. +
  82. + restart {
  83. + label = "Reset";
  84. + linux,code = <KEY_RESTART>;
  85. + gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
  86. + };
  87. +
  88. + wps {
  89. + label = "WPS";
  90. + linux,code = <KEY_WPS_BUTTON>;
  91. + gpios = <&chipcommon 9 GPIO_ACTIVE_LOW>;
  92. + };
  93. + };
  94. +
  95. + spi {
  96. + compatible = "spi-gpio";
  97. + num-chipselects = <1>;
  98. + gpio-sck = <&chipcommon 21 0>;
  99. + gpio-miso = <&chipcommon 22 0>;
  100. + gpio-mosi = <&chipcommon 23 0>;
  101. + cs-gpios = <&chipcommon 24 0>;
  102. + #address-cells = <1>;
  103. + #size-cells = <0>;
  104. +
  105. + /* External BCM6802 MoCA chip is connected */
  106. + };
  107. +};
  108. +
  109. +&pcie0 {
  110. + ranges = <0x00000000 0 0 0 0 0x00100000>;
  111. + #address-cells = <3>;
  112. + #size-cells = <2>;
  113. +
  114. + bridge@0,0,0 {
  115. + reg = <0x0000 0 0 0 0>;
  116. + ranges = <0x00000000 0 0 0 0 0 0 0x00100000>;
  117. + #address-cells = <3>;
  118. + #size-cells = <2>;
  119. +
  120. + wifi@0,1,0 {
  121. + reg = <0x0000 0 0 0 0>;
  122. + ranges = <0x00000000 0 0 0 0x00100000>;
  123. + #address-cells = <1>;
  124. + #size-cells = <1>;
  125. + };
  126. + };
  127. +};
  128. +
  129. +&usb2 {
  130. + vcc-gpio = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
  131. +};