bcm53xx: add Linux 4.9 patches
[librecmc/librecmc.git] / target / linux / bcm53xx / patches-4.9 / 030-0004-ARM-BCM5301X-Enable-UART-on-Netgear-R8000.patch
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
9 It was tested by LEDE users, all we need is to adjust clock frequency.
10 While we're at it create a separated DTS include file to share code with
11 other BCM4709 devices easier.
12
13 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
14 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
15 ---
16  arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts       |  2 +-
17  arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts |  2 +-
18  arch/arm/boot/dts/bcm4709-netgear-r7000.dts       |  2 +-
19  arch/arm/boot/dts/bcm4709-netgear-r8000.dts       |  6 +++++-
20  arch/arm/boot/dts/bcm4709.dtsi                    | 11 +++++++++++
21  5 files changed, 19 insertions(+), 4 deletions(-)
22  create mode 100644 arch/arm/boot/dts/bcm4709.dtsi
23
24 --- a/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
25 +++ b/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
26 @@ -9,7 +9,7 @@
27  
28  /dts-v1/;
29  
30 -#include "bcm4708.dtsi"
31 +#include "bcm4709.dtsi"
32  #include "bcm5301x-nand-cs0-bch8.dtsi"
33  
34  / {
35 --- a/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
36 +++ b/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
37 @@ -9,7 +9,7 @@
38  
39  /dts-v1/;
40  
41 -#include "bcm4708.dtsi"
42 +#include "bcm4709.dtsi"
43  #include "bcm5301x-nand-cs0-bch8.dtsi"
44  
45  / {
46 --- a/arch/arm/boot/dts/bcm4709-netgear-r7000.dts
47 +++ b/arch/arm/boot/dts/bcm4709-netgear-r7000.dts
48 @@ -9,7 +9,7 @@
49  
50  /dts-v1/;
51  
52 -#include "bcm4708.dtsi"
53 +#include "bcm4709.dtsi"
54  #include "bcm5301x-nand-cs0-bch8.dtsi"
55  
56  / {
57 --- a/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
58 +++ b/arch/arm/boot/dts/bcm4709-netgear-r8000.dts
59 @@ -9,7 +9,7 @@
60  
61  /dts-v1/;
62  
63 -#include "bcm4708.dtsi"
64 +#include "bcm4709.dtsi"
65  #include "bcm5301x-nand-cs0-bch8.dtsi"
66  
67  / {
68 @@ -107,6 +107,10 @@
69         };
70  };
71  
72 +&uart0 {
73 +       status = "okay";
74 +};
75 +
76  &usb2 {
77         vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>;
78  };
79 --- /dev/null
80 +++ b/arch/arm/boot/dts/bcm4709.dtsi
81 @@ -0,0 +1,11 @@
82 +/*
83 + * Copyright (C) 2016 Rafał Miłecki <rafal@milecki.pl>
84 + *
85 + * Licensed under the ISC license.
86 + */
87 +
88 +#include "bcm4708.dtsi"
89 +
90 +&uart0 {
91 +       clock-frequency = <125000000>;
92 +};