047-0001-ARM-dts-BCM5301X-Add-basic-DT-for-Linksys-EA9200.patch 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
  2. Subject: [PATCH] ARM: dts: BCM5301X: Add basic DT for Linksys EA9200
  3. MIME-Version: 1.0
  4. Content-Type: text/plain; charset=UTF-8
  5. Content-Transfer-Encoding: 8bit
  6. It's tri-band wireless home router based on BCM4709A0 with 3 x BCM43602
  7. chipsets. LEDs will be hopefully added later to the DT.
  8. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
  9. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  10. ---
  11. arch/arm/boot/dts/Makefile | 1 +
  12. arch/arm/boot/dts/bcm4709-linksys-ea9200.dts | 42 ++++++++++++++++++++++++++++
  13. 2 files changed, 43 insertions(+)
  14. create mode 100644 arch/arm/boot/dts/bcm4709-linksys-ea9200.dts
  15. --- a/arch/arm/boot/dts/Makefile
  16. +++ b/arch/arm/boot/dts/Makefile
  17. @@ -77,6 +77,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
  18. bcm47081-luxul-xwr-1200.dtb \
  19. bcm4709-asus-rt-ac87u.dtb \
  20. bcm4709-buffalo-wxr-1900dhp.dtb \
  21. + bcm4709-linksys-ea9200.dtb \
  22. bcm4709-netgear-r7000.dtb \
  23. bcm4709-netgear-r8000.dtb \
  24. bcm4709-tplink-archer-c9-v1.dtb \
  25. --- /dev/null
  26. +++ b/arch/arm/boot/dts/bcm4709-linksys-ea9200.dts
  27. @@ -0,0 +1,42 @@
  28. +/*
  29. + * Copyright (C) 2017 Rafał Miłecki <rafal@milecki.pl>
  30. + *
  31. + * Licensed under the ISC license.
  32. + */
  33. +
  34. +/dts-v1/;
  35. +
  36. +#include "bcm4709.dtsi"
  37. +#include "bcm5301x-nand-cs0-bch8.dtsi"
  38. +
  39. +/ {
  40. + compatible = "linksys,ea9200", "brcm,bcm4709", "brcm,bcm4708";
  41. + model = "Linksys EA9200";
  42. +
  43. + chosen {
  44. + bootargs = "console=ttyS0,115200";
  45. + };
  46. +
  47. + memory {
  48. + reg = <0x00000000 0x08000000
  49. + 0x88000000 0x08000000>;
  50. + };
  51. +
  52. + gpio-keys {
  53. + compatible = "gpio-keys";
  54. + #address-cells = <1>;
  55. + #size-cells = <0>;
  56. +
  57. + wps {
  58. + label = "WPS";
  59. + linux,code = <KEY_WPS_BUTTON>;
  60. + gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
  61. + };
  62. +
  63. + restart {
  64. + label = "Reset";
  65. + linux,code = <KEY_RESTART>;
  66. + gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
  67. + };
  68. + };
  69. +};