051-v4.18-0005-ARM-dts-BCM5301X-Add-DT-for-Luxul-XAP-1610.patch 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. From 6054cb5788072e214af582c42d9bd8c5ffa6e288 Mon Sep 17 00:00:00 2001
  2. From: Dan Haab <riproute@gmail.com>
  3. Date: Fri, 4 May 2018 10:08:44 -0600
  4. Subject: [PATCH] ARM: dts: BCM5301X: Add DT for Luxul XAP-1610
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. It's an access point based on BCM47094 SoC with two BCM4366E wireless
  9. chipsets.
  10. Signed-off-by: Dan Haab <dan.haab@luxul.com>
  11. Acked-by: Rafał Miłecki <rafal@milecki.pl>
  12. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  13. ---
  14. arch/arm/boot/dts/Makefile | 1 +
  15. arch/arm/boot/dts/bcm47094-luxul-xap-1610.dts | 57 +++++++++++++++++++++++++++
  16. 2 files changed, 58 insertions(+)
  17. create mode 100644 arch/arm/boot/dts/bcm47094-luxul-xap-1610.dts
  18. --- a/arch/arm/boot/dts/Makefile
  19. +++ b/arch/arm/boot/dts/Makefile
  20. @@ -86,6 +86,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
  21. bcm47094-dlink-dir-885l.dtb \
  22. bcm47094-linksys-panamera.dtb \
  23. bcm47094-luxul-abr-4500.dtb \
  24. + bcm47094-luxul-xap-1610.dtb \
  25. bcm47094-luxul-xbr-4500.dtb \
  26. bcm47094-luxul-xwr-3100.dtb \
  27. bcm47094-luxul-xwr-3150-v1.dtb \
  28. --- /dev/null
  29. +++ b/arch/arm/boot/dts/bcm47094-luxul-xap-1610.dts
  30. @@ -0,0 +1,57 @@
  31. +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  32. +/*
  33. + * Copyright 2018 Luxul Inc.
  34. + */
  35. +
  36. +/dts-v1/;
  37. +
  38. +#include "bcm47094.dtsi"
  39. +
  40. +/ {
  41. + compatible = "luxul,xap-1610-v1", "brcm,bcm47094", "brcm,bcm4708";
  42. + model = "Luxul XAP-1610 V1";
  43. +
  44. + chosen {
  45. + bootargs = "earlycon";
  46. + };
  47. +
  48. + memory {
  49. + reg = <0x00000000 0x08000000>;
  50. + };
  51. +
  52. + leds {
  53. + compatible = "gpio-leds";
  54. +
  55. + status {
  56. + label = "bcm53xx:green:status";
  57. + gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
  58. + linux,default-trigger = "timer";
  59. + };
  60. +
  61. + 2ghz {
  62. + label = "bcm53xx:blue:2ghz";
  63. + gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
  64. + };
  65. +
  66. + 5ghz {
  67. + label = "bcm53xx:blue:5ghz";
  68. + gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
  69. + };
  70. + };
  71. +
  72. + gpio-keys {
  73. + compatible = "gpio-keys";
  74. + #address-cells = <1>;
  75. + #size-cells = <0>;
  76. +
  77. + restart {
  78. + label = "Reset";
  79. + linux,code = <KEY_RESTART>;
  80. + gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
  81. + };
  82. + };
  83. +};
  84. +
  85. +&spi_nor {
  86. + status = "okay";
  87. +};