044-0007-ARM-BCM5301X-Add-DT-for-Luxul-XWR-3100.patch 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. From ef3bc318adeb15b38688df6a583bafea2befce43 Mon Sep 17 00:00:00 2001
  2. From: Dan Haab <dhaab@luxul.com>
  3. Date: Tue, 27 Sep 2016 11:27:11 -0600
  4. Subject: [PATCH] ARM: BCM5301X: Add DT for Luxul XWR-3100
  5. Luxul XWR-3100 is a wireless router based on BCM47094 SoC with two
  6. 4366c0 FullMAC PCIe cards on the PCB. It uses NAND with BCH-4 ECC
  7. algorithm.
  8. Signed-off-by: Dan Haab <dhaab@luxul.com>
  9. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  10. ---
  11. arch/arm/boot/dts/Makefile | 1 +
  12. arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts | 111 ++++++++++++++++++++++++++
  13. arch/arm/boot/dts/bcm5301x-nand-cs0-bch4.dtsi | 13 +++
  14. 3 files changed, 125 insertions(+)
  15. create mode 100644 arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts
  16. create mode 100644 arch/arm/boot/dts/bcm5301x-nand-cs0-bch4.dtsi
  17. --- a/arch/arm/boot/dts/Makefile
  18. +++ b/arch/arm/boot/dts/Makefile
  19. @@ -78,6 +78,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
  20. bcm4709-netgear-r7000.dtb \
  21. bcm4709-netgear-r8000.dtb \
  22. bcm47094-dlink-dir-885l.dtb \
  23. + bcm47094-luxul-xwr-3100.dtb \
  24. bcm47094-netgear-r8500.dtb \
  25. bcm94708.dtb \
  26. bcm94709.dtb \
  27. --- /dev/null
  28. +++ b/arch/arm/boot/dts/bcm47094-luxul-xwr-3100.dts
  29. @@ -0,0 +1,111 @@
  30. +/*
  31. + * Copyright 2016 Luxul Inc.
  32. + *
  33. + * Licensed under the ISC license.
  34. + */
  35. +
  36. +/dts-v1/;
  37. +
  38. +#include "bcm47094.dtsi"
  39. +#include "bcm5301x-nand-cs0-bch4.dtsi"
  40. +
  41. +/ {
  42. + compatible = "luxul,xwr-3100v1", "brcm,bcm47094", "brcm,bcm4708";
  43. + model = "Luxul XWR-3100 V1";
  44. +
  45. + chosen {
  46. + bootargs = "console=ttyS0,115200 earlycon";
  47. + };
  48. +
  49. + memory {
  50. + reg = <0x00000000 0x08000000>;
  51. + };
  52. +
  53. + leds {
  54. + compatible = "gpio-leds";
  55. +
  56. + power {
  57. + label = "bcm53xx:green:power";
  58. + gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
  59. + linux,default-trigger = "default-on";
  60. + };
  61. +
  62. + lan3 {
  63. + label = "bcm53xx:green:lan1";
  64. + gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
  65. + linux,default-trigger = "default-off";
  66. + };
  67. +
  68. + lan4 {
  69. + label = "bcm53xx:green:lan0";
  70. + gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
  71. + linux,default-trigger = "default-off";
  72. + };
  73. +
  74. + wan {
  75. + label = "bcm53xx:green:wan";
  76. + gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
  77. + linux,default-trigger = "default-off";
  78. + };
  79. +
  80. + lan1 {
  81. + label = "bcm53xx:green:lan3";
  82. + gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
  83. + linux,default-trigger = "default-off";
  84. + };
  85. +
  86. + lan2 {
  87. + label = "bcm53xx:green:lan2";
  88. + gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
  89. + linux,default-trigger = "default-off";
  90. + };
  91. +
  92. + usb3 {
  93. + label = "bcm53xx:green:usb3";
  94. + gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
  95. + linux,default-trigger = "default-off";
  96. + };
  97. +
  98. + status {
  99. + label = "bcm53xx:green:status";
  100. + gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
  101. + linux,default-trigger = "timer";
  102. + };
  103. +
  104. + 2ghz {
  105. + label = "bcm53xx:green:2ghz";
  106. + gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
  107. + linux,default-trigger = "default-off";
  108. + };
  109. +
  110. + 5ghz {
  111. + label = "bcm53xx:green:5ghz";
  112. + gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
  113. + linux,default-trigger = "default-off";
  114. + };
  115. + };
  116. +
  117. + gpio-keys {
  118. + compatible = "gpio-keys";
  119. + #address-cells = <1>;
  120. + #size-cells = <0>;
  121. +
  122. + restart {
  123. + label = "Reset";
  124. + linux,code = <KEY_RESTART>;
  125. + gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
  126. + };
  127. + };
  128. +};
  129. +
  130. +&uart0 {
  131. + status = "okay";
  132. +};
  133. +
  134. +&usb3 {
  135. + vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
  136. +};
  137. +
  138. +&spi_nor {
  139. + status = "okay";
  140. +};
  141. --- /dev/null
  142. +++ b/arch/arm/boot/dts/bcm5301x-nand-cs0-bch4.dtsi
  143. @@ -0,0 +1,13 @@
  144. +/*
  145. + * Copyright 2016 Luxul Inc.
  146. + *
  147. + * Licensed under the ISC license.
  148. + */
  149. +
  150. +#include "bcm5301x-nand-cs0.dtsi"
  151. +
  152. +&nandcs {
  153. + nand-ecc-algo = "bch";
  154. + nand-ecc-strength = <4>;
  155. + nand-ecc-step-size = <512>;
  156. +};