openwrt/target/linux/bcm27xx/patches-6.6/950-0978-ARM-dts-pi400-Force-stdout-path-to-serial0.patch

36 lines
1.1 KiB
Diff
Raw Normal View History

From b0ec72e3651aeffca2e31849e6f8d264f933270e Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Tue, 19 Mar 2024 09:48:48 +0000
Subject: [PATCH 0978/1085] ARM: dts: pi400: Force stdout-path to serial0
The upstream Pi DTS files select serial1 for stdout-path, but because of
the way the downstream kernel numbers UARTS, serial0 is required in the
downstream DTS. Using the wrong value breaks U-boot.
In the 6.6 kernel the downstream Pi 400 DTS was made closer to upstream,
inheriting most of its content from the Pi 4B DTS, but because of the
order of inclusion it lost the override for stdout-path. Restore that
override.
See: https://github.com/raspberrypi/firmware/issues/1875
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
---
arch/arm/boot/dts/broadcom/bcm2711-rpi-400.dts | 6 ++++++
1 file changed, 6 insertions(+)
--- a/arch/arm/boot/dts/broadcom/bcm2711-rpi-400.dts
+++ b/arch/arm/boot/dts/broadcom/bcm2711-rpi-400.dts
@@ -43,6 +43,12 @@
// =============================================
// Downstream rpi- changes
+/ {
+ chosen {
+ stdout-path = "serial0:115200n8";
+ };
+};
+
&audio_pins {
brcm,pins = <>;
brcm,function = <>;