046-0008-ARM-BCM5301X-Add-DT-for-Luxul-XAP-1410.patch 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. From eeacbb3e30f220d5d775c61421f813d4e186a325 Mon Sep 17 00:00:00 2001
  2. From: Dan Haab <dhaab@luxul.com>
  3. Date: Sat, 14 Jan 2017 19:29:27 -0700
  4. Subject: [PATCH] ARM: BCM5301X: Add DT for Luxul XAP-1410
  5. Luxul XAP-1410 in a dual-band access point device based on BCM47081 with
  6. serial flash. It has 3 LEDs and just one (reset) button.
  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-xap-1410.dts | 60 +++++++++++++++++++++++++++
  12. 2 files changed, 61 insertions(+)
  13. create mode 100644 arch/arm/boot/dts/bcm47081-luxul-xap-1410.dts
  14. --- a/arch/arm/boot/dts/Makefile
  15. +++ b/arch/arm/boot/dts/Makefile
  16. @@ -73,6 +73,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
  17. bcm47081-asus-rt-n18u.dtb \
  18. bcm47081-buffalo-wzr-600dhp2.dtb \
  19. bcm47081-buffalo-wzr-900dhp.dtb \
  20. + bcm47081-luxul-xap-1410.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-xap-1410.dts
  26. @@ -0,0 +1,60 @@
  27. +/*
  28. + * Copyright 2017 Luxul Inc.
  29. + *
  30. + * Licensed under the ISC license.
  31. + */
  32. +
  33. +/dts-v1/;
  34. +
  35. +#include "bcm47081.dtsi"
  36. +
  37. +/ {
  38. + compatible = "luxul,xap-1410v1", "brcm,bcm47081", "brcm,bcm4708";
  39. + model = "Luxul XAP-1410 V1";
  40. +
  41. + chosen {
  42. + bootargs = "console=ttyS0,115200";
  43. + };
  44. +
  45. + memory {
  46. + reg = <0x00000000 0x08000000>;
  47. + };
  48. +
  49. + leds {
  50. + compatible = "gpio-leds";
  51. +
  52. + 5ghz {
  53. + label = "bcm53xx:blue:5ghz";
  54. + gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
  55. + linux,default-trigger = "none";
  56. + };
  57. +
  58. + 2ghz {
  59. + label = "bcm53xx:blue:2ghz";
  60. + gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
  61. + linux,default-trigger = "none";
  62. + };
  63. +
  64. + status {
  65. + label = "bcm53xx:green:status";
  66. + gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
  67. + linux,default-trigger = "timer";
  68. + };
  69. + };
  70. +
  71. + gpio-keys {
  72. + compatible = "gpio-keys";
  73. + #address-cells = <1>;
  74. + #size-cells = <0>;
  75. +
  76. + restart {
  77. + label = "Reset";
  78. + linux,code = <KEY_RESTART>;
  79. + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
  80. + };
  81. + };
  82. +};
  83. +
  84. +&spi_nor {
  85. + status = "okay";
  86. +};