062-ARM-BCM5301X-Add-DT-for-Asus-RT-AC56U.patch 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. From 16dc3bac722252a10e396546f44135ae1b6a7ff3 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
  3. Date: Tue, 31 Mar 2015 17:29:18 +0200
  4. Subject: [PATCH] ARM: BCM5301X: Add DT for Asus RT-AC56U
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
  9. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  10. ---
  11. arch/arm/boot/dts/Makefile | 1 +
  12. arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts | 96 +++++++++++++++++++++++++++++
  13. 2 files changed, 97 insertions(+)
  14. create mode 100644 arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
  15. --- a/arch/arm/boot/dts/Makefile
  16. +++ b/arch/arm/boot/dts/Makefile
  17. @@ -56,6 +56,7 @@ dtb-$(CONFIG_ARCH_BCM2835) += \
  18. bcm2835-rpi-b.dtb \
  19. bcm2835-rpi-b-plus.dtb
  20. dtb-$(CONFIG_ARCH_BCM_5301X) += \
  21. + bcm4708-asus-rt-ac56u.dtb \
  22. bcm4708-asus-rt-ac68u.dtb \
  23. bcm4708-buffalo-wzr-1750dhp.dtb \
  24. bcm4708-luxul-xwc-1000.dtb \
  25. --- /dev/null
  26. +++ b/arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
  27. @@ -0,0 +1,96 @@
  28. +/*
  29. + * Broadcom BCM470X / BCM5301X ARM platform code.
  30. + * DTS for Asus RT-AC56U
  31. + *
  32. + * Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
  33. + *
  34. + * Licensed under the GNU/GPL. See COPYING for details.
  35. + */
  36. +
  37. +/dts-v1/;
  38. +
  39. +#include "bcm4708.dtsi"
  40. +
  41. +/ {
  42. + compatible = "asus,rt-ac56u", "brcm,bcm4708";
  43. + model = "Asus RT-AC56U (BCM4708)";
  44. +
  45. + chosen {
  46. + bootargs = "console=ttyS0,115200";
  47. + };
  48. +
  49. + memory {
  50. + reg = <0x00000000 0x08000000>;
  51. + };
  52. +
  53. + leds {
  54. + compatible = "gpio-leds";
  55. +
  56. + usb3 {
  57. + label = "bcm53xx:blue:usb3";
  58. + gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
  59. + linux,default-trigger = "default-off";
  60. + };
  61. +
  62. + wan {
  63. + label = "bcm53xx:blue:wan";
  64. + gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
  65. + linux,default-trigger = "default-off";
  66. + };
  67. +
  68. + lan {
  69. + label = "bcm53xx:blue:lan";
  70. + gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
  71. + linux,default-trigger = "default-off";
  72. + };
  73. +
  74. + power {
  75. + label = "bcm53xx:blue:power";
  76. + gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
  77. + linux,default-trigger = "default-on";
  78. + };
  79. +
  80. + all {
  81. + label = "bcm53xx:blue:all";
  82. + gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
  83. + linux,default-trigger = "default-on";
  84. + };
  85. +
  86. + 2ghz {
  87. + label = "bcm53xx:blue:2ghz";
  88. + gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
  89. + linux,default-trigger = "default-off";
  90. + };
  91. +
  92. +
  93. + usb2 {
  94. + label = "bcm53xx:blue:usb2";
  95. + gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
  96. + linux,default-trigger = "default-off";
  97. + };
  98. + };
  99. +
  100. + gpio-keys {
  101. + compatible = "gpio-keys";
  102. + #address-cells = <1>;
  103. + #size-cells = <0>;
  104. +
  105. + rfkill {
  106. + label = "WiFi";
  107. + linux,code = <KEY_RFKILL>;
  108. + gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
  109. + };
  110. +
  111. + restart {
  112. + label = "Reset";
  113. + linux,code = <KEY_RESTART>;
  114. + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
  115. + };
  116. +
  117. + wps {
  118. + label = "WPS";
  119. + linux,code = <KEY_WPS_BUTTON>;
  120. + gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
  121. + };
  122. + };
  123. +};