044-0006-ARM-BCM5301X-Add-DT-for-Luxul-XAP-1510.patch 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. From 46daccf62d1651bf8b09978478ca6465a7a81f47 Mon Sep 17 00:00:00 2001
  2. From: Dan Haab <dhaab@luxul.com>
  3. Date: Tue, 27 Sep 2016 11:27:10 -0600
  4. Subject: [PATCH] ARM: BCM5301X: Add DT for Luxul XAP-1510
  5. Luxul XAP-1510 is an AP device based on BCM4708 SoC with 2 x BCM4360
  6. chipsets on PCB connected using PCIe.
  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/bcm4708-luxul-xap-1510.dts | 64 ++++++++++++++++++++++++++++
  12. 2 files changed, 65 insertions(+)
  13. create mode 100644 arch/arm/boot/dts/bcm4708-luxul-xap-1510.dts
  14. --- a/arch/arm/boot/dts/Makefile
  15. +++ b/arch/arm/boot/dts/Makefile
  16. @@ -65,6 +65,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
  17. bcm4708-asus-rt-ac56u.dtb \
  18. bcm4708-asus-rt-ac68u.dtb \
  19. bcm4708-buffalo-wzr-1750dhp.dtb \
  20. + bcm4708-luxul-xap-1510.dtb \
  21. bcm4708-luxul-xwc-1000.dtb \
  22. bcm4708-netgear-r6250.dtb \
  23. bcm4708-netgear-r6300-v2.dtb \
  24. --- /dev/null
  25. +++ b/arch/arm/boot/dts/bcm4708-luxul-xap-1510.dts
  26. @@ -0,0 +1,64 @@
  27. +/*
  28. + * Copyright 2016 Luxul Inc.
  29. + *
  30. + * Licensed under the ISC license.
  31. + */
  32. +
  33. +/dts-v1/;
  34. +
  35. +#include "bcm4708.dtsi"
  36. +
  37. +/ {
  38. + compatible = "luxul,xap-1510v1", "brcm,bcm4708";
  39. + model = "Luxul XAP-1510 V1";
  40. +
  41. + chosen {
  42. + bootargs = "console=ttyS0,115200 earlycon";
  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. +&uart0 {
  85. + status = "okay";
  86. +};
  87. +
  88. +&spi_nor {
  89. + status = "okay";
  90. +};