047-0002-ARM-dts-BCM5301X-Add-basic-DT-for-Linksys-EA6300-V1.patch 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 EA6300 V1
  3. MIME-Version: 1.0
  4. Content-Type: text/plain; charset=UTF-8
  5. Content-Transfer-Encoding: 8bit
  6. It's wireless home router based on BCM4708A0 with BCM4360 + BCM43217
  7. wireless chipsets. LEDs will be hopefully added later to the DT.
  8. According to some sources it may use the same board as EA6400 and just
  9. differ by an original vendor firmware.
  10. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
  11. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  12. ---
  13. arch/arm/boot/dts/Makefile | 1 +
  14. arch/arm/boot/dts/bcm4708-linksys-ea6300-v1.dts | 41 +++++++++++++++++++++++++
  15. 2 files changed, 42 insertions(+)
  16. create mode 100644 arch/arm/boot/dts/bcm4708-linksys-ea6300-v1.dts
  17. --- a/arch/arm/boot/dts/Makefile
  18. +++ b/arch/arm/boot/dts/Makefile
  19. @@ -65,6 +65,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
  20. bcm4708-asus-rt-ac56u.dtb \
  21. bcm4708-asus-rt-ac68u.dtb \
  22. bcm4708-buffalo-wzr-1750dhp.dtb \
  23. + bcm4708-linksys-ea6300-v1.dtb \
  24. bcm4708-luxul-xap-1510.dtb \
  25. bcm4708-luxul-xwc-1000.dtb \
  26. bcm4708-netgear-r6250.dtb \
  27. --- /dev/null
  28. +++ b/arch/arm/boot/dts/bcm4708-linksys-ea6300-v1.dts
  29. @@ -0,0 +1,41 @@
  30. +/*
  31. + * Copyright (C) 2017 Rafał Miłecki <rafal@milecki.pl>
  32. + *
  33. + * Licensed under the ISC license.
  34. + */
  35. +
  36. +/dts-v1/;
  37. +
  38. +#include "bcm4708.dtsi"
  39. +#include "bcm5301x-nand-cs0-bch8.dtsi"
  40. +
  41. +/ {
  42. + compatible = "linksys,ea6300-v1", "brcm,bcm4708";
  43. + model = "Linksys EA6300 V1";
  44. +
  45. + chosen {
  46. + bootargs = "console=ttyS0,115200";
  47. + };
  48. +
  49. + memory {
  50. + reg = <0x00000000 0x08000000>;
  51. + };
  52. +
  53. + gpio-keys {
  54. + compatible = "gpio-keys";
  55. + #address-cells = <1>;
  56. + #size-cells = <0>;
  57. +
  58. + wps {
  59. + label = "WPS";
  60. + linux,code = <KEY_WPS_BUTTON>;
  61. + gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
  62. + };
  63. +
  64. + restart {
  65. + label = "Reset";
  66. + linux,code = <KEY_RESTART>;
  67. + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
  68. + };
  69. + };
  70. +};