bcm53xx: backport BCM5301X earlycon and USB VCC patches
[openwrt.git] / target / linux / bcm53xx / patches-4.4 / 036-ARM-BCM5301X-Enable-earlycon-on-tested-devices.patch
1 From 5a6516ff135555aa53c7d156cd3973b826e011f9 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
3 Date: Wed, 6 Apr 2016 18:49:55 +0200
4 Subject: [PATCH] ARM: BCM5301X: Enable earlycon on tested devices
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 This allows reporting & debugging problems occurring early in the boot
10 process.
11
12 Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
13 Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
14 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
15 ---
16
17 --- a/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
18 +++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
19 @@ -17,7 +17,7 @@
20         model = "Buffalo WZR-1750DHP (BCM4708)";
21  
22         chosen {
23 -               bootargs = "console=ttyS0,115200";
24 +               bootargs = "console=ttyS0,115200 earlycon";
25         };
26  
27         memory {
28 --- a/arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts
29 +++ b/arch/arm/boot/dts/bcm4708-luxul-xwc-1000.dts
30 @@ -17,7 +17,7 @@
31         model = "Luxul XWC-1000 (BCM4708)";
32  
33         chosen {
34 -               bootargs = "console=ttyS0,115200";
35 +               bootargs = "console=ttyS0,115200 earlycon";
36         };
37  
38         memory {
39 --- a/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
40 +++ b/arch/arm/boot/dts/bcm4708-netgear-r6250.dts
41 @@ -17,7 +17,7 @@
42         model = "Netgear R6250 V1 (BCM4708)";
43  
44         chosen {
45 -               bootargs = "console=ttyS0,115200";
46 +               bootargs = "console=ttyS0,115200 earlycon";
47         };
48  
49         memory {
50 --- a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
51 +++ b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
52 @@ -17,7 +17,7 @@
53         model = "SmartRG SR400ac";
54  
55         chosen {
56 -               bootargs = "console=ttyS0,115200";
57 +               bootargs = "console=ttyS0,115200 earlycon";
58         };
59  
60         memory {
61 --- a/arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts
62 +++ b/arch/arm/boot/dts/bcm47081-buffalo-wzr-600dhp2.dts
63 @@ -17,7 +17,7 @@
64         model = "Buffalo WZR-600DHP2 (BCM47081)";
65  
66         chosen {
67 -               bootargs = "console=ttyS0,115200";
68 +               bootargs = "console=ttyS0,115200 earlycon";
69         };
70  
71         memory {
72 --- a/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
73 +++ b/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts
74 @@ -17,7 +17,7 @@
75         model = "D-Link DIR-885L";
76  
77         chosen {
78 -               bootargs = "console=ttyS0,115200";
79 +               bootargs = "console=ttyS0,115200 earlycon";
80         };
81  
82         memory {
83 --- a/arch/arm/boot/dts/bcm5301x.dtsi
84 +++ b/arch/arm/boot/dts/bcm5301x.dtsi
85 @@ -18,6 +18,10 @@
86  / {
87         interrupt-parent = <&gic>;
88  
89 +       chosen {
90 +               stdout-path = &uart0;
91 +       };
92 +
93         chipcommonA {
94                 compatible = "simple-bus";
95                 ranges = <0x00000000 0x18000000 0x00001000>;