1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-15 04:42:02 +00:00
openmptcprouter/6.1/target/linux/bcm27xx/patches-6.1/950-0735-ARM-dts-bcm27xx-Add-stdout-path-to-serial0.patch
Ycarus (Yannick Chabanois) 3743692973 Fix RPI5 support
2023-11-17 17:31:36 +01:00

39 lines
1.2 KiB
Diff

From c312b30ed26c9b7afaef18af77df1fd1d48b9386 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Wed, 17 May 2023 16:53:24 +0100
Subject: [PATCH] ARM: dts: bcm27xx: Add stdout-path to serial0
Rather than deleting the upstream stdout-path declaration, overwrite
it with one selecting serial0, which will always be the UART mapped
to the 40-pin header (provided enable_uart=1 is specified). Doing
so has the advantage that earlycon can be configured just by adding
"earlycon" to the command line.
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
---
arch/arm/boot/dts/bcm270x.dtsi | 2 +-
arch/arm/boot/dts/bcm2711-rpi-ds.dtsi | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
--- a/arch/arm/boot/dts/bcm270x.dtsi
+++ b/arch/arm/boot/dts/bcm270x.dtsi
@@ -5,7 +5,7 @@
chosen: chosen {
// Disable audio by default
bootargs = "coherent_pool=1M snd_bcm2835.enable_headphones=0";
- /delete-property/ stdout-path;
+ stdout-path = "serial0:115200n8";
};
soc: soc {
--- a/arch/arm/boot/dts/bcm2711-rpi-ds.dtsi
+++ b/arch/arm/boot/dts/bcm2711-rpi-ds.dtsi
@@ -34,7 +34,7 @@
};
chosen {
- /delete-property/ stdout-path;
+ stdout-path = "serial0:115200n8";
};
aliases {