049-v4.15-0003-ARM-dts-BCM5301X-Add-DT-for-Luxul-ABR-4500.patch 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. From 65f78c4c41a9b9a7637e1dda2d5e41cf26ea971c Mon Sep 17 00:00:00 2001
  2. From: Dan Haab <dhaab@luxul.com>
  3. Date: Mon, 9 Oct 2017 09:46:23 -0600
  4. Subject: [PATCH] ARM: dts: BCM5301X: Add DT for Luxul ABR-4500
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. This is BCM47094 (AKA BCM4709C0) based router with rear-facing ports
  9. board design.
  10. Signed-off-by: Dan Haab <dhaab@luxul.com>
  11. Acked-by: Rafał Miłecki <rafal@milecki.pl>
  12. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  13. ---
  14. arch/arm/boot/dts/Makefile | 1 +
  15. arch/arm/boot/dts/bcm47094-luxul-abr-4500.dts | 63 +++++++++++++++++++++++++++
  16. 2 files changed, 64 insertions(+)
  17. create mode 100644 arch/arm/boot/dts/bcm47094-luxul-abr-4500.dts
  18. --- a/arch/arm/boot/dts/Makefile
  19. +++ b/arch/arm/boot/dts/Makefile
  20. @@ -85,6 +85,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
  21. bcm4709-tplink-archer-c9-v1.dtb \
  22. bcm47094-dlink-dir-885l.dtb \
  23. bcm47094-linksys-panamera.dtb \
  24. + bcm47094-luxul-abr-4500.dtb \
  25. bcm47094-luxul-xbr-4500.dtb \
  26. bcm47094-luxul-xwr-3100.dtb \
  27. bcm47094-netgear-r8500.dtb \
  28. --- /dev/null
  29. +++ b/arch/arm/boot/dts/bcm47094-luxul-abr-4500.dts
  30. @@ -0,0 +1,63 @@
  31. +/*
  32. + * Copyright (C) 2017 Luxul Inc.
  33. + *
  34. + * Licensed under the ISC license.
  35. + */
  36. +
  37. +/dts-v1/;
  38. +
  39. +#include "bcm4708.dtsi"
  40. +#include "bcm5301x-nand-cs0-bch8.dtsi"
  41. +
  42. +/ {
  43. + compatible = "luxul,abr-4500-v1", "brcm,bcm47094", "brcm,bcm4708";
  44. + model = "Luxul ABR-4500 V1";
  45. +
  46. + chosen {
  47. + bootargs = "earlycon";
  48. + };
  49. +
  50. + memory {
  51. + reg = <0x00000000 0x08000000
  52. + 0x88000000 0x18000000>;
  53. + };
  54. +
  55. + leds {
  56. + compatible = "gpio-leds";
  57. +
  58. + status {
  59. + label = "bcm53xx:green:status";
  60. + gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>;
  61. + linux,default-trigger = "timer";
  62. + };
  63. +
  64. + usb3 {
  65. + label = "bcm53xx:green:usb3";
  66. + gpios = <&chipcommon 19 GPIO_ACTIVE_LOW>;
  67. + trigger-sources = <&ohci_port1>, <&ehci_port1>,
  68. + <&xhci_port1>;
  69. + linux,default-trigger = "usbport";
  70. + };
  71. +
  72. + };
  73. +
  74. + gpio-keys {
  75. + compatible = "gpio-keys";
  76. + #address-cells = <1>;
  77. + #size-cells = <0>;
  78. +
  79. + restart {
  80. + label = "Reset";
  81. + linux,code = <KEY_RESTART>;
  82. + gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
  83. + };
  84. + };
  85. +};
  86. +
  87. +&usb3 {
  88. + vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
  89. +};
  90. +
  91. +&spi_nor {
  92. + status = "okay";
  93. +};