046-0009-ARM-BCM5301X-Add-DT-for-Luxul-XWR-1200.patch 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. From 514647c9af870bd2df2e579134a26bff8d17b6b9 Mon Sep 17 00:00:00 2001
  2. From: Dan Haab <dhaab@luxul.com>
  3. Date: Sat, 14 Jan 2017 19:29:28 -0700
  4. Subject: [PATCH] ARM: BCM5301X: Add DT for Luxul XWR-1200
  5. Luxul XWR-1200 in a dual-band router based on BCM47081. It uses serial
  6. flash (for bootloader and NVRAM) and NAND flash (for firmware).
  7. Signed-off-by: Dan Haab <dhaab@luxul.com>
  8. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  9. ---
  10. arch/arm/boot/dts/Makefile | 1 +
  11. arch/arm/boot/dts/bcm47081-luxul-xwr-1200.dts | 107 ++++++++++++++++++++++++++
  12. 2 files changed, 108 insertions(+)
  13. create mode 100644 arch/arm/boot/dts/bcm47081-luxul-xwr-1200.dts
  14. --- a/arch/arm/boot/dts/Makefile
  15. +++ b/arch/arm/boot/dts/Makefile
  16. @@ -74,6 +74,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
  17. bcm47081-buffalo-wzr-600dhp2.dtb \
  18. bcm47081-buffalo-wzr-900dhp.dtb \
  19. bcm47081-luxul-xap-1410.dtb \
  20. + bcm47081-luxul-xwr-1200.dtb \
  21. bcm4709-asus-rt-ac87u.dtb \
  22. bcm4709-buffalo-wxr-1900dhp.dtb \
  23. bcm4709-netgear-r7000.dtb \
  24. --- /dev/null
  25. +++ b/arch/arm/boot/dts/bcm47081-luxul-xwr-1200.dts
  26. @@ -0,0 +1,107 @@
  27. +/*
  28. + * Copyright 2017 Luxul Inc.
  29. + *
  30. + * Licensed under the ISC license.
  31. + */
  32. +
  33. +/dts-v1/;
  34. +
  35. +#include "bcm47081.dtsi"
  36. +#include "bcm5301x-nand-cs0-bch4.dtsi"
  37. +
  38. +/ {
  39. + compatible = "luxul,xwr-1200v1", "brcm,bcm47081", "brcm,bcm4708";
  40. + model = "Luxul XWR-1200 V1";
  41. +
  42. + chosen {
  43. + bootargs = "console=ttyS0,115200";
  44. + };
  45. +
  46. + memory {
  47. + reg = <0x00000000 0x08000000>;
  48. + };
  49. +
  50. + leds {
  51. + compatible = "gpio-leds";
  52. +
  53. + power {
  54. + label = "bcm53xx:green:power";
  55. + gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
  56. + linux,default-trigger = "default-on";
  57. + };
  58. +
  59. + lan3 {
  60. + label = "bcm53xx:green:lan3";
  61. + gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
  62. + linux,default-trigger = "none";
  63. + };
  64. +
  65. + lan4 {
  66. + label = "bcm53xx:green:lan4";
  67. + gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
  68. + linux,default-trigger = "none";
  69. + };
  70. +
  71. + wan {
  72. + label = "bcm53xx:green:wan";
  73. + gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
  74. + linux,default-trigger = "none";
  75. + };
  76. +
  77. + lan2 {
  78. + label = "bcm53xx:green:lan2";
  79. + gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
  80. + linux,default-trigger = "none";
  81. + };
  82. +
  83. + usb {
  84. + label = "bcm53xx:green:usb";
  85. + gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
  86. + linux,default-trigger = "none";
  87. + };
  88. +
  89. + status {
  90. + label = "bcm53xx:green:status";
  91. + gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
  92. + linux,default-trigger = "timer";
  93. + };
  94. +
  95. + 2ghz {
  96. + label = "bcm53xx:green:2ghz";
  97. + gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
  98. + linux,default-trigger = "none";
  99. + };
  100. +
  101. + 5ghz {
  102. + label = "bcm53xx:green:5ghz";
  103. + gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
  104. + linux,default-trigger = "none";
  105. + };
  106. +
  107. + lan1 {
  108. + label = "bcm53xx:green:lan1";
  109. + gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
  110. + linux,default-trigger = "none";
  111. + };
  112. + };
  113. +
  114. + gpio-keys {
  115. + compatible = "gpio-keys";
  116. + #address-cells = <1>;
  117. + #size-cells = <0>;
  118. +
  119. + restart {
  120. + label = "Reset";
  121. + linux,code = <KEY_RESTART>;
  122. + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
  123. + };
  124. + };
  125. +};
  126. +
  127. +&usb2 {
  128. + vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
  129. +};
  130. +
  131. +&spi_nor {
  132. + status = "okay";
  133. +};