044-0004-ARM-BCM5301X-Enable-UART-on-Netgear-R8000.patch 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. From 3ede027b3dce2fca07350b7587c7c8f44706c94c Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
  3. Date: Wed, 21 Sep 2016 22:58:33 +0200
  4. Subject: [PATCH] ARM: BCM5301X: Enable UART on Netgear R8000
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. It was tested by LEDE users, all we need is to adjust clock frequency.
  9. While we're at it create a separated DTS include file to share code with
  10. other BCM4709 devices easier.
  11. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
  12. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
  13. ---
  14. arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts | 2 +-
  15. arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts | 2 +-
  16. arch/arm/boot/dts/bcm4709-netgear-r7000.dts | 2 +-
  17. arch/arm/boot/dts/bcm4709-netgear-r8000.dts | 6 +++++-
  18. arch/arm/boot/dts/bcm4709.dtsi | 11 +++++++++++
  19. 5 files changed, 19 insertions(+), 4 deletions(-)
  20. create mode 100644 arch/arm/boot/dts/bcm4709.dtsi
  21. --- a/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
  22. +++ b/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
  23. @@ -9,7 +9,7 @@
  24. /dts-v1/;
  25. -#include "bcm4708.dtsi"
  26. +#include "bcm4709.dtsi"
  27. #include "bcm5301x-nand-cs0-bch8.dtsi"
  28. / {
  29. --- a/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
  30. +++ b/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
  31. @@ -9,7 +9,7 @@
  32. /dts-v1/;
  33. -#include "bcm4708.dtsi"
  34. +#include "bcm4709.dtsi"
  35. #include "bcm5301x-nand-cs0-bch8.dtsi"
  36. / {
  37. --- a/arch/arm/boot/dts/bcm4709-netgear-r7000.dts
  38. +++ b/arch/arm/boot/dts/bcm4709-netgear-r7000.dts
  39. @@ -9,7 +9,7 @@
  40. /dts-v1/;
  41. -#include "bcm4708.dtsi"
  42. +#include "bcm4709.dtsi"
  43. #include "bcm5301x-nand-cs0-bch8.dtsi"
  44. / {
  45. --- a/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
  46. +++ b/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
  47. @@ -9,7 +9,7 @@
  48. /dts-v1/;
  49. -#include "bcm4708.dtsi"
  50. +#include "bcm4709.dtsi"
  51. #include "bcm5301x-nand-cs0-bch8.dtsi"
  52. / {
  53. @@ -107,6 +107,10 @@
  54. };
  55. };
  56. +&uart0 {
  57. + status = "okay";
  58. +};
  59. +
  60. &usb2 {
  61. vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
  62. };
  63. --- /dev/null
  64. +++ b/arch/arm/boot/dts/bcm4709.dtsi
  65. @@ -0,0 +1,11 @@
  66. +/*
  67. + * Copyright (C) 2016 Rafał Miłecki <rafal@milecki.pl>
  68. + *
  69. + * Licensed under the ISC license.
  70. + */
  71. +
  72. +#include "bcm4708.dtsi"
  73. +
  74. +&uart0 {
  75. + clock-frequency = <125000000>;
  76. +};