From a57710a2c5de932b412498b420a373373fb375a6 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 23 Jul 2024 15:55:54 +0100 Subject: [PATCH] dts: Move some common rpi settings into rpi files Most 2711 devices and all 2712 device share common bootargs (command lines). Make the common values shared defaults, overriding them were necessary. Signed-off-by: Phil Elwell --- arch/arm/boot/dts/broadcom/bcm2711-rpi-4-b.dts | 4 ---- arch/arm/boot/dts/broadcom/bcm2711-rpi-cm4.dts | 4 ---- arch/arm/boot/dts/broadcom/bcm2711-rpi-ds.dtsi | 1 + arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts | 5 ----- arch/arm64/boot/dts/broadcom/bcm2712-rpi-cm5.dtsi | 5 ----- arch/arm64/boot/dts/broadcom/bcm2712-rpi.dtsi | 5 +++++ 6 files changed, 6 insertions(+), 18 deletions(-) diff --git a/arch/arm/boot/dts/broadcom/bcm2711-rpi-4-b.dts b/arch/arm/boot/dts/broadcom/bcm2711-rpi-4-b.dts index 3906f7cc25af78..a4aae12775dc55 100644 --- a/arch/arm/boot/dts/broadcom/bcm2711-rpi-4-b.dts +++ b/arch/arm/boot/dts/broadcom/bcm2711-rpi-4-b.dts @@ -300,10 +300,6 @@ #include "bcm283x-rpi-i2c0mux_0_44.dtsi" / { - chosen { - bootargs = "coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_headphones=0"; - }; - /delete-node/ wifi-pwrseq; }; diff --git a/arch/arm/boot/dts/broadcom/bcm2711-rpi-cm4.dts b/arch/arm/boot/dts/broadcom/bcm2711-rpi-cm4.dts index d876f3d8f0bd9b..668e31d67cf8ea 100644 --- a/arch/arm/boot/dts/broadcom/bcm2711-rpi-cm4.dts +++ b/arch/arm/boot/dts/broadcom/bcm2711-rpi-cm4.dts @@ -274,10 +274,6 @@ #include "bcm283x-rpi-i2c0mux_0_44.dtsi" / { - chosen { - bootargs = "coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_headphones=0"; - }; - /delete-node/ wifi-pwrseq; }; diff --git a/arch/arm/boot/dts/broadcom/bcm2711-rpi-ds.dtsi b/arch/arm/boot/dts/broadcom/bcm2711-rpi-ds.dtsi index d44bf7bcc7777f..3d4f0a5d8b1ab2 100644 --- a/arch/arm/boot/dts/broadcom/bcm2711-rpi-ds.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm2711-rpi-ds.dtsi @@ -3,6 +3,7 @@ / { chosen: chosen { + bootargs = "coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_headphones=0"; }; __overrides__ { diff --git a/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts b/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts index 31e5692f7ed1ca..30a59c577aef05 100644 --- a/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts +++ b/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts @@ -389,11 +389,6 @@ dpi_16bit_gpio2: &rp1_dpi_16bit_gpio2 { }; }; / { - chosen: chosen { - bootargs = "reboot=w coherent_pool=1M 8250.nr_uarts=1 pci=pcie_bus_safe"; - stdout-path = "serial10:115200n8"; - }; - fan: cooling_fan { status = "disabled"; compatible = "pwm-fan"; diff --git a/arch/arm64/boot/dts/broadcom/bcm2712-rpi-cm5.dtsi b/arch/arm64/boot/dts/broadcom/bcm2712-rpi-cm5.dtsi index 6b098c2dd53c0c..0b8dc8027e0ea3 100644 --- a/arch/arm64/boot/dts/broadcom/bcm2712-rpi-cm5.dtsi +++ b/arch/arm64/boot/dts/broadcom/bcm2712-rpi-cm5.dtsi @@ -379,11 +379,6 @@ dpi_16bit_gpio2: &rp1_dpi_16bit_gpio2 { }; }; / { - chosen: chosen { - bootargs = "reboot=w coherent_pool=1M 8250.nr_uarts=1 pci=pcie_bus_safe"; - stdout-path = "serial10:115200n8"; - }; - fan: cooling_fan { status = "disabled"; compatible = "pwm-fan"; diff --git a/arch/arm64/boot/dts/broadcom/bcm2712-rpi.dtsi b/arch/arm64/boot/dts/broadcom/bcm2712-rpi.dtsi index 2986778e0c72d8..be6619f51c6091 100644 --- a/arch/arm64/boot/dts/broadcom/bcm2712-rpi.dtsi +++ b/arch/arm64/boot/dts/broadcom/bcm2712-rpi.dtsi @@ -98,6 +98,11 @@ }; / { + chosen: chosen { + bootargs = "reboot=w coherent_pool=1M 8250.nr_uarts=1 pci=pcie_bus_safe"; + stdout-path = "serial10:115200n8"; + }; + aliases: aliases { blconfig = &blconfig; blpubkey = &blpubkey;