2f3e287d4ec7aaad4c74d6dcd749cb0eecf6cfed
[oweals/openwrt.git] / target / linux / bcm53xx / patches-5.4 / 320-ARM-dts-BCM5301X-Add-serial-to-the-bootargs.patch
1 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
2 Subject: [PATCH] ARM: dts: BCM5301X: Add serial= to the bootargs
3 MIME-Version: 1.0
4 Content-Type: text/plain; charset=UTF-8
5 Content-Transfer-Encoding: 8bit
6
7 It's enough to have proper stdout-path for getting serial working but
8 for some reason LEDE doesn't offer "Please press Enter to activate this
9 console." unless ttyS0 is specified.
10
11 This is a workaround to get serial working in LEDE.
12
13 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
14 ---
15
16 Index: linux-5.4.11/arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts
17 ===================================================================
18 --- linux-5.4.11.orig/arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts
19 +++ linux-5.4.11/arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts
20 @@ -12,7 +12,7 @@
21         model = "TP-LINK Archer C5 V2";
22  
23         chosen {
24 -               bootargs = "earlycon";
25 +               bootargs = "console=ttyS0,115200 earlycon";
26         };
27  
28         memory@0 {
29 Index: linux-5.4.11/arch/arm/boot/dts/bcm47094-luxul-abr-4500.dts
30 ===================================================================
31 --- linux-5.4.11.orig/arch/arm/boot/dts/bcm47094-luxul-abr-4500.dts
32 +++ linux-5.4.11/arch/arm/boot/dts/bcm47094-luxul-abr-4500.dts
33 @@ -13,7 +13,7 @@
34         model = "Luxul ABR-4500 V1";
35  
36         chosen {
37 -               bootargs = "earlycon";
38 +               bootargs = "console=ttyS0,115200 earlycon";
39         };
40  
41         memory@0 {
42 Index: linux-5.4.11/arch/arm/boot/dts/bcm47094-luxul-xbr-4500.dts
43 ===================================================================
44 --- linux-5.4.11.orig/arch/arm/boot/dts/bcm47094-luxul-xbr-4500.dts
45 +++ linux-5.4.11/arch/arm/boot/dts/bcm47094-luxul-xbr-4500.dts
46 @@ -13,7 +13,7 @@
47         model = "Luxul XBR-4500 V1";
48  
49         chosen {
50 -               bootargs = "earlycon";
51 +               bootargs = "console=ttyS0,115200 earlycon";
52         };
53  
54         memory@0 {
55 Index: linux-5.4.11/arch/arm/boot/dts/bcm47189-luxul-xap-1440.dts
56 ===================================================================
57 --- linux-5.4.11.orig/arch/arm/boot/dts/bcm47189-luxul-xap-1440.dts
58 +++ linux-5.4.11/arch/arm/boot/dts/bcm47189-luxul-xap-1440.dts
59 @@ -12,7 +12,7 @@
60         model = "Luxul XAP-1440 V1";
61  
62         chosen {
63 -               bootargs = "earlycon";
64 +               bootargs = "console=ttyS0,115200 earlycon";
65         };
66  
67         memory@0 {
68 Index: linux-5.4.11/arch/arm/boot/dts/bcm47189-luxul-xap-810.dts
69 ===================================================================
70 --- linux-5.4.11.orig/arch/arm/boot/dts/bcm47189-luxul-xap-810.dts
71 +++ linux-5.4.11/arch/arm/boot/dts/bcm47189-luxul-xap-810.dts
72 @@ -12,7 +12,7 @@
73         model = "Luxul XAP-810 V1";
74  
75         chosen {
76 -               bootargs = "earlycon";
77 +               bootargs = "console=ttyS0,115200 earlycon";
78         };
79  
80         memory@0 {
81 Index: linux-5.4.11/arch/arm/boot/dts/bcm47094-luxul-xap-1610.dts
82 ===================================================================
83 --- linux-5.4.11.orig/arch/arm/boot/dts/bcm47094-luxul-xap-1610.dts
84 +++ linux-5.4.11/arch/arm/boot/dts/bcm47094-luxul-xap-1610.dts
85 @@ -12,7 +12,7 @@
86         model = "Luxul XAP-1610 V1";
87  
88         chosen {
89 -               bootargs = "earlycon";
90 +               bootargs = "console=ttyS0,115200 earlycon";
91         };
92  
93         memory@0 {
94 Index: linux-5.4.11/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts
95 ===================================================================
96 --- linux-5.4.11.orig/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts
97 +++ linux-5.4.11/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts
98 @@ -13,7 +13,7 @@
99         model = "Luxul XWR-3150 V1";
100  
101         chosen {
102 -               bootargs = "earlycon";
103 +               bootargs = "console=ttyS0,115200 earlycon";
104         };
105  
106         memory@0 {
107 Index: linux-5.4.11/arch/arm/boot/dts/bcm47094-phicomm-k3.dts
108 ===================================================================
109 --- linux-5.4.11.orig/arch/arm/boot/dts/bcm47094-phicomm-k3.dts
110 +++ linux-5.4.11/arch/arm/boot/dts/bcm47094-phicomm-k3.dts
111 @@ -13,6 +13,10 @@
112         compatible = "phicomm,k3", "brcm,bcm47094", "brcm,bcm4708";
113         model = "Phicomm K3";
114  
115 +       chosen {
116 +               bootargs = "console=ttyS0,115200";
117 +       };
118 +
119         memory@0 {
120                 device_type = "memory";
121                 reg = <0x00000000 0x08000000
122 Index: linux-5.4.11/arch/arm/boot/dts/bcm47094-luxul-xwc-2000.dts
123 ===================================================================
124 --- linux-5.4.11.orig/arch/arm/boot/dts/bcm47094-luxul-xwc-2000.dts
125 +++ linux-5.4.11/arch/arm/boot/dts/bcm47094-luxul-xwc-2000.dts
126 @@ -13,7 +13,7 @@
127         model = "Luxul XWC-2000 V1";
128  
129         chosen {
130 -               bootargs = "earlycon";
131 +               bootargs = "console=ttyS0,115200 earlycon";
132         };
133  
134         memory {