305-ARM-BCM5301X-Add-DT-for-Linksys-EA6300-V1.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
  2. Subject: [PATCH] ARM: BCM5301X: Add DT for Linksys EA6300 V1
  3. MIME-Version: 1.0
  4. Content-Type: text/plain; charset=UTF-8
  5. Content-Transfer-Encoding: 8bit
  6. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
  7. ---
  8. --- a/arch/arm/boot/dts/Makefile
  9. +++ b/arch/arm/boot/dts/Makefile
  10. @@ -59,6 +59,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
  11. bcm4708-asus-rt-ac56u.dtb \
  12. bcm4708-asus-rt-ac68u.dtb \
  13. bcm4708-buffalo-wzr-1750dhp.dtb \
  14. + bcm4708-linksys-ea6300-v1.dtb \
  15. bcm4708-luxul-xwc-1000.dtb \
  16. bcm4708-netgear-r6250.dtb \
  17. bcm4708-netgear-r6300-v2.dtb \
  18. --- /dev/null
  19. +++ b/arch/arm/boot/dts/bcm4708-linksys-ea6300-v1.dts
  20. @@ -0,0 +1,48 @@
  21. +/*
  22. + * Broadcom BCM470X / BCM5301X ARM platform code.
  23. + * DTS for Linksys EA6300 V1
  24. + *
  25. + * Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
  26. + *
  27. + * Licensed under the GNU/GPL. See COPYING for details.
  28. + */
  29. +
  30. +/dts-v1/;
  31. +
  32. +#include "bcm4708.dtsi"
  33. +#include "bcm5301x-nand-cs0-bch8.dtsi"
  34. +
  35. +/ {
  36. + compatible = "linksys,ea6300v1", "brcm,bcm4708";
  37. + model = "Linksys EA6300 V1";
  38. +
  39. + chosen {
  40. + bootargs = "console=ttyS0,115200";
  41. + };
  42. +
  43. + memory {
  44. + reg = <0x00000000 0x08000000>;
  45. + };
  46. +
  47. + gpio-keys {
  48. + compatible = "gpio-keys";
  49. + #address-cells = <1>;
  50. + #size-cells = <0>;
  51. +
  52. + wps {
  53. + label = "WPS";
  54. + linux,code = <KEY_WPS_BUTTON>;
  55. + gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
  56. + };
  57. +
  58. + restart {
  59. + label = "Reset";
  60. + linux,code = <KEY_RESTART>;
  61. + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
  62. + };
  63. + };
  64. +};
  65. +
  66. +&uart0 {
  67. + status = "okay";
  68. +};