051-v4.18-0004-ARM-dts-BCM5301X-Add-DT-for-Luxul-XWR-3150-V1.patch 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. From 2e2105a1578172eaf61e3b59a2c10c4fe04c21b9 Mon Sep 17 00:00:00 2001
  2. From: Dan Haab <riproute@gmail.com>
  3. Date: Fri, 4 May 2018 10:08:43 -0600
  4. Subject: [PATCH] ARM: dts: BCM5301X: Add DT for Luxul XWR-3150 V1
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Luxul XWR-3150 is a wireless router similar to the XWR-3100 except:
  9. 1) It has more RAM
  10. 2) Its NAND controller in running in BCH8 mode
  11. 3) LAN ports LEDs are hardware controlled
  12. Signed-off-by: Dan Haab <dan.haab@luxul.com>
  13. Acked-by: Rafał Miłecki <rafal@milecki.pl>
  14. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  15. ---
  16. arch/arm/boot/dts/Makefile | 1 +
  17. arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts | 77 ++++++++++++++++++++++++
  18. 2 files changed, 78 insertions(+)
  19. create mode 100644 arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts
  20. --- a/arch/arm/boot/dts/Makefile
  21. +++ b/arch/arm/boot/dts/Makefile
  22. @@ -88,6 +88,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
  23. bcm47094-luxul-abr-4500.dtb \
  24. bcm47094-luxul-xbr-4500.dtb \
  25. bcm47094-luxul-xwr-3100.dtb \
  26. + bcm47094-luxul-xwr-3150-v1.dtb \
  27. bcm47094-netgear-r8500.dtb \
  28. bcm94708.dtb \
  29. bcm94709.dtb \
  30. --- /dev/null
  31. +++ b/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts
  32. @@ -0,0 +1,77 @@
  33. +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  34. +/*
  35. + * Copyright 2018 Luxul Inc.
  36. + */
  37. +
  38. +/dts-v1/;
  39. +
  40. +#include "bcm47094.dtsi"
  41. +#include "bcm5301x-nand-cs0-bch8.dtsi"
  42. +
  43. +/ {
  44. + compatible = "luxul,xwr-3150-v1", "brcm,bcm47094", "brcm,bcm4708";
  45. + model = "Luxul XWR-3150 V1";
  46. +
  47. + chosen {
  48. + bootargs = "earlycon";
  49. + };
  50. +
  51. + memory {
  52. + reg = <0x00000000 0x08000000
  53. + 0x88000000 0x18000000>;
  54. + };
  55. +
  56. + leds {
  57. + compatible = "gpio-leds";
  58. +
  59. + power {
  60. + label = "bcm53xx:green:power";
  61. + gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
  62. + linux,default-trigger = "default-on";
  63. + };
  64. +
  65. + usb3 {
  66. + label = "bcm53xx:green:usb3";
  67. + gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
  68. + trigger-sources = <&ohci_port1>, <&ehci_port1>,
  69. + <&xhci_port1>;
  70. + linux,default-trigger = "usbport";
  71. + };
  72. +
  73. + status {
  74. + label = "bcm53xx:green:status";
  75. + gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
  76. + linux,default-trigger = "timer";
  77. + };
  78. +
  79. + 2ghz {
  80. + label = "bcm53xx:green:2ghz";
  81. + gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
  82. + };
  83. +
  84. + 5ghz {
  85. + label = "bcm53xx:green:5ghz";
  86. + gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
  87. + };
  88. + };
  89. +
  90. + gpio-keys {
  91. + compatible = "gpio-keys";
  92. + #address-cells = <1>;
  93. + #size-cells = <0>;
  94. +
  95. + restart {
  96. + label = "Reset";
  97. + linux,code = <KEY_RESTART>;
  98. + gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
  99. + };
  100. + };
  101. +};
  102. +
  103. +&usb3 {
  104. + vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
  105. +};
  106. +
  107. +&spi_nor {
  108. + status = "okay";
  109. +};