049-v4.15-0004-ARM-dts-BCM53573-Add-DT-for-Luxul-XAP-810.patch 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. From 0aa052ce1c3340850a7e5980b6d24b3ea5779591 Mon Sep 17 00:00:00 2001
  2. From: Dan Haab <dhaab@luxul.com>
  3. Date: Mon, 9 Oct 2017 09:46:59 -0600
  4. Subject: [PATCH] ARM: dts: BCM53573: Add DT for Luxul XAP-810
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. This is BCM53573 WiSoC based access point with an extra BCM43217 chipset
  9. used for 2.4 GHz.
  10. Signed-off-by: Dan Haab <dhaab@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/bcm47189-luxul-xap-810.dts | 87 ++++++++++++++++++++++++++++
  16. 2 files changed, 88 insertions(+)
  17. create mode 100644 arch/arm/boot/dts/bcm47189-luxul-xap-810.dts
  18. --- a/arch/arm/boot/dts/Makefile
  19. +++ b/arch/arm/boot/dts/Makefile
  20. @@ -95,6 +95,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
  21. bcm953012hr.dtb \
  22. bcm953012k.dtb
  23. dtb-$(CONFIG_ARCH_BCM_53573) += \
  24. + bcm47189-luxul-xap-810.dtb \
  25. bcm47189-tenda-ac9.dtb \
  26. bcm947189acdbmr.dtb
  27. dtb-$(CONFIG_ARCH_BCM_63XX) += \
  28. --- /dev/null
  29. +++ b/arch/arm/boot/dts/bcm47189-luxul-xap-810.dts
  30. @@ -0,0 +1,87 @@
  31. +/*
  32. + * Copyright 2017 Luxul Inc.
  33. + *
  34. + * Licensed under the ISC license.
  35. + */
  36. +
  37. +/dts-v1/;
  38. +
  39. +#include "bcm53573.dtsi"
  40. +
  41. +/ {
  42. + compatible = "luxul,xap-810-v1", "brcm,bcm47189", "brcm,bcm53573";
  43. + model = "Luxul XAP-810 V1";
  44. +
  45. + chosen {
  46. + bootargs = "earlycon";
  47. + };
  48. +
  49. + memory {
  50. + reg = <0x00000000 0x08000000>;
  51. + };
  52. +
  53. + leds {
  54. + compatible = "gpio-leds";
  55. +
  56. + 5ghz {
  57. + label = "bcm53xx:blue:5ghz";
  58. + gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>;
  59. + linux,default-trigger = "default-off";
  60. + };
  61. +
  62. + system {
  63. + label = "bcm53xx:green:system";
  64. + gpios = <&chipcommon 15 GPIO_ACTIVE_HIGH>;
  65. + linux,default-trigger = "timer";
  66. + };
  67. + };
  68. +
  69. + pcie0_leds {
  70. + compatible = "gpio-leds";
  71. +
  72. + 2ghz {
  73. + label = "bcm53xx:blue:2ghz";
  74. + gpios = <&pcie0_chipcommon 3 GPIO_ACTIVE_HIGH>;
  75. + linux,default-trigger = "default-off";
  76. + };
  77. + };
  78. +
  79. + gpio-keys {
  80. + compatible = "gpio-keys";
  81. + #address-cells = <1>;
  82. + #size-cells = <0>;
  83. +
  84. + restart {
  85. + label = "Reset";
  86. + linux,code = <KEY_RESTART>;
  87. + gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
  88. + };
  89. + };
  90. +};
  91. +
  92. +&pcie0 {
  93. + ranges = <0x00000000 0 0 0 0 0x00100000>;
  94. + #address-cells = <3>;
  95. + #size-cells = <2>;
  96. +
  97. + bridge@0,0,0 {
  98. + reg = <0x0000 0 0 0 0>;
  99. + ranges = <0x00000000 0 0 0 0 0 0 0x00100000>;
  100. + #address-cells = <3>;
  101. + #size-cells = <2>;
  102. +
  103. + wifi@0,1,0 {
  104. + reg = <0x0000 0 0 0 0>;
  105. + ranges = <0x00000000 0 0 0 0x00100000>;
  106. + #address-cells = <1>;
  107. + #size-cells = <1>;
  108. +
  109. + pcie0_chipcommon: chipcommon@0 {
  110. + reg = <0 0x1000>;
  111. +
  112. + gpio-controller;
  113. + #gpio-cells = <2>;
  114. + };
  115. + };
  116. + };
  117. +};