061-ARM-BCM5301X-Add-DT-for-Asus-RT-AC68U.patch 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. From b5f350c790ae6aaf3dda5a825d7e3fdeed731164 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
  3. Date: Sat, 28 Mar 2015 15:01:38 +0100
  4. Subject: [PATCH] ARM: BCM5301X: Add DT for Asus RT-AC68U
  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-ac68u.dts | 83 +++++++++++++++++++++++++++++
  13. 2 files changed, 84 insertions(+)
  14. create mode 100644 arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts
  15. --- a/arch/arm/boot/dts/Makefile
  16. +++ b/arch/arm/boot/dts/Makefile
  17. @@ -55,6 +55,7 @@ dtb-$(CONFIG_ARCH_ATLAS6) += atlas6-evb.
  18. dtb-$(CONFIG_ARCH_AXXIA) += axm5516-amarillo.dtb
  19. dtb-$(CONFIG_ARCH_BCM2835) += bcm2835-rpi-b.dtb
  20. dtb-$(CONFIG_ARCH_BCM_5301X) += \
  21. + bcm4708-asus-rt-ac68u.dtb \
  22. bcm4708-buffalo-wzr-1750dhp.dtb \
  23. bcm4708-luxul-xwc-1000.dtb \
  24. bcm4708-netgear-r6250.dtb \
  25. --- /dev/null
  26. +++ b/arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts
  27. @@ -0,0 +1,83 @@
  28. +/*
  29. + * Broadcom BCM470X / BCM5301X ARM platform code.
  30. + * DTS for Asus RT-AC68U
  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-ac68u", "brcm,bcm4708";
  43. + model = "Asus RT-AC68U (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. + usb2 {
  57. + label = "bcm53xx:blue:usb2";
  58. + gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
  59. + linux,default-trigger = "default-off";
  60. + };
  61. +
  62. + power {
  63. + label = "bcm53xx:blue:power";
  64. + gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
  65. + linux,default-trigger = "default-on";
  66. + };
  67. +
  68. + logo {
  69. + label = "bcm53xx:white:logo";
  70. + gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
  71. + linux,default-trigger = "default-on";
  72. + };
  73. +
  74. + usb3 {
  75. + label = "bcm53xx:blue:usb3";
  76. + gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
  77. + linux,default-trigger = "default-off";
  78. + };
  79. + };
  80. +
  81. + gpio-keys {
  82. + compatible = "gpio-keys";
  83. + #address-cells = <1>;
  84. + #size-cells = <0>;
  85. +
  86. + brightness {
  87. + label = "Backlight";
  88. + linux,code = <KEY_BRIGHTNESS_ZERO>;
  89. + gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>;
  90. + };
  91. +
  92. + wps {
  93. + label = "WPS";
  94. + linux,code = <KEY_WPS_BUTTON>;
  95. + gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
  96. + };
  97. +
  98. + restart {
  99. + label = "Reset";
  100. + linux,code = <KEY_RESTART>;
  101. + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
  102. + };
  103. +
  104. + rfkill {
  105. + label = "WiFi";
  106. + linux,code = <KEY_RFKILL>;
  107. + gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
  108. + };
  109. + };
  110. +};