From 7c046a8d99f04e54ac3bc91537f1aa4526a8a16d Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Fri, 25 Oct 2024 10:36:20 +0100 Subject: [PATCH] dts: Simplify bootargs Reduce the number of different places that bootargs is set in Pi dts files. The variants are all combinations of with/without Bluetooth and with/without NUMA support (2711). This is effectively a cosmetic change - the resulting dtbs are unchanged. Signed-off-by: Phil Elwell --- arch/arm/boot/dts/broadcom/bcm2708-rpi-bt.dtsi | 4 ++++ arch/arm/boot/dts/broadcom/bcm2708-rpi-zero-w.dts | 4 ---- arch/arm/boot/dts/broadcom/bcm2710-rpi-3-b-plus.dts | 4 ---- arch/arm/boot/dts/broadcom/bcm2710-rpi-3-b.dts | 4 ---- arch/arm/boot/dts/broadcom/bcm2710-rpi-zero-2-w.dts | 4 ---- arch/arm/boot/dts/broadcom/bcm2711-rpi-ds.dtsi | 2 +- arch/arm/boot/dts/broadcom/bcm271x-rpi-bt.dtsi | 4 ++++ 7 files changed, 9 insertions(+), 17 deletions(-) diff --git a/arch/arm/boot/dts/broadcom/bcm2708-rpi-bt.dtsi b/arch/arm/boot/dts/broadcom/bcm2708-rpi-bt.dtsi index 98555528adaed..ef7f9ca824259 100644 --- a/arch/arm/boot/dts/broadcom/bcm2708-rpi-bt.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm2708-rpi-bt.dtsi @@ -23,6 +23,10 @@ }; / { + chosen { + bootargs = "coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_headphones=0"; + }; + aliases { bluetooth = &bt; }; diff --git a/arch/arm/boot/dts/broadcom/bcm2708-rpi-zero-w.dts b/arch/arm/boot/dts/broadcom/bcm2708-rpi-zero-w.dts index 011d0fa4c9c0d..f6d4e2c73df98 100644 --- a/arch/arm/boot/dts/broadcom/bcm2708-rpi-zero-w.dts +++ b/arch/arm/boot/dts/broadcom/bcm2708-rpi-zero-w.dts @@ -11,10 +11,6 @@ compatible = "raspberrypi,model-zero-w", "brcm,bcm2835"; model = "Raspberry Pi Zero W"; - chosen { - bootargs = "coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_headphones=0"; - }; - aliases { serial0 = &uart1; serial1 = &uart0; diff --git a/arch/arm/boot/dts/broadcom/bcm2710-rpi-3-b-plus.dts b/arch/arm/boot/dts/broadcom/bcm2710-rpi-3-b-plus.dts index 1afbb90117025..8973985e99028 100644 --- a/arch/arm/boot/dts/broadcom/bcm2710-rpi-3-b-plus.dts +++ b/arch/arm/boot/dts/broadcom/bcm2710-rpi-3-b-plus.dts @@ -12,10 +12,6 @@ compatible = "raspberrypi,3-model-b-plus", "brcm,bcm2837"; model = "Raspberry Pi 3 Model B+"; - chosen { - bootargs = "coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_headphones=0"; - }; - aliases { serial0 = &uart1; serial1 = &uart0; diff --git a/arch/arm/boot/dts/broadcom/bcm2710-rpi-3-b.dts b/arch/arm/boot/dts/broadcom/bcm2710-rpi-3-b.dts index b893affe69974..35e6e99000834 100644 --- a/arch/arm/boot/dts/broadcom/bcm2710-rpi-3-b.dts +++ b/arch/arm/boot/dts/broadcom/bcm2710-rpi-3-b.dts @@ -12,10 +12,6 @@ compatible = "raspberrypi,3-model-b", "brcm,bcm2837"; model = "Raspberry Pi 3 Model B"; - chosen { - bootargs = "coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_headphones=0"; - }; - aliases { serial0 = &uart1; serial1 = &uart0; diff --git a/arch/arm/boot/dts/broadcom/bcm2710-rpi-zero-2-w.dts b/arch/arm/boot/dts/broadcom/bcm2710-rpi-zero-2-w.dts index 25182d73f2441..16971e50229f0 100644 --- a/arch/arm/boot/dts/broadcom/bcm2710-rpi-zero-2-w.dts +++ b/arch/arm/boot/dts/broadcom/bcm2710-rpi-zero-2-w.dts @@ -11,10 +11,6 @@ compatible = "raspberrypi,model-zero-2-w", "brcm,bcm2837"; model = "Raspberry Pi Zero 2 W"; - chosen { - bootargs = "coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_headphones=0"; - }; - aliases { serial0 = &uart1; serial1 = &uart0; diff --git a/arch/arm/boot/dts/broadcom/bcm2711-rpi-ds.dtsi b/arch/arm/boot/dts/broadcom/bcm2711-rpi-ds.dtsi index d54b48ea5043a..e9fa968927e4f 100644 --- a/arch/arm/boot/dts/broadcom/bcm2711-rpi-ds.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm2711-rpi-ds.dtsi @@ -2,7 +2,7 @@ #include "bcm270x-rpi.dtsi" / { - chosen: chosen { + chosen { bootargs = "coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_headphones=0 numa_policy=interleave"; }; diff --git a/arch/arm/boot/dts/broadcom/bcm271x-rpi-bt.dtsi b/arch/arm/boot/dts/broadcom/bcm271x-rpi-bt.dtsi index 400efdc5f03cb..ba389fa3c43af 100644 --- a/arch/arm/boot/dts/broadcom/bcm271x-rpi-bt.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm271x-rpi-bt.dtsi @@ -23,6 +23,10 @@ }; / { + chosen { + bootargs = "coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_headphones=0"; + }; + aliases { bluetooth = &bt; };