In ath79, for several SoCs the console bootargs are defined to the
very same value in every device's DTS. Consolidate these definitions
in the SoC dtsi files and drop further redundant definitions elsewhere.
The only device without any bootargs set has been OpenMesh OM5P-AC V2.
This will now inherit the setting from qca955x.dtsi
While this is a cosmetic change, backporting it to 19.07 will be a
major help for anyone doing backports of device support. Without it,
every backporter would have to remember to manually add the chosen node
to the device's DTS.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(cherry picked from commit
635f111148c3f7ccb0ecc92863a3b1a142f6ebeb)
/ {
compatible = "qca,ar7100";
+ chosen {
+ bootargs = "console=ttyS0,115200";
+ };
+
cpus {
#address-cells = <1>;
#size-cells = <0>;
led-upgrade = &diag;
};
- chosen {
- bootargs = "console=ttyS0,115200";
- };
-
extosc: ref {
compatible = "fixed-clock";
#clock-cells = <0>;
led-upgrade = &orange_power;
};
- chosen {
- bootargs = "console=ttyS0,115200";
- };
-
extosc: ref {
compatible = "fixed-clock";
#clock-cells = <0>;
led-upgrade = &power_orange;
};
- chosen {
- bootargs = "console=ttyS0,115200";
- };
-
extosc: ref {
compatible = "fixed-clock";
#clock-cells = <0>;
#include "ar7100.dtsi"
/ {
- chosen {
- bootargs = "console=ttyS0,115200";
- };
-
aliases {
led-boot = &rf;
led-failsafe = &rf;
#include "ar9344.dtsi"
/ {
- chosen {
- bootargs = "console=ttyS0,115200";
- };
-
keys {
compatible = "gpio-keys";
compatible = "tplink,archer-d50-v1", "qca,qca9531";
model = "TP-Link Archer D50 v1";
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
gpio_leds: leds {
compatible = "gpio-leds";
led-upgrade = &status;
};
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
keys {
compatible = "gpio-keys";
#include "qca953x.dtsi"
/ {
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
aliases {
led-boot = &led_link4;
led-failsafe = &led_link4;
led-upgrade = &led_system;
};
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
leds {
compatible = "gpio-leds";
#include "qca953x.dtsi"
/ {
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
aliases {
led-boot = &led_system;
led-failsafe = &led_system;
#include "qca953x.dtsi"
/ {
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
gpio_leds: leds {
compatible = "gpio-leds";
#include "qca953x.dtsi"
/ {
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
aliases {
led-boot = &led_system;
led-failsafe = &led_system;
#address-cells = <1>;
#size-cells = <1>;
+ chosen {
+ bootargs = "console=ttyS0,115200n8";
+ };
+
cpus {
#address-cells = <1>;
#size-cells = <0>;
led-upgrade = &power;
};
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
leds {
compatible = "gpio-leds";
led-upgrade = &power;
};
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
leds: leds {
compatible = "gpio-leds";
#include "qca9557.dtsi"
/ {
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
keys {
compatible = "gpio-keys";
compatible = "engenius,ecb1750", "qca,qca9557";
model = "EnGenius ECB1750";
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
aliases {
led-boot = &power_orange;
led-failsafe = &power_orange;
model = "EnGenius EPG5000";
compatible = "engenius,epg5000", "qca,qca9557";
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
aliases {
led-boot = &power;
led-failsafe = &power;
compatible = "librerouter,librerouter-v1", "qca,qca9558";
model = "LibreRouter v1";
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
aliases {
led-boot = &system;
led-failsafe = &system;
#include "qca9557.dtsi"
/ {
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
aliases {
led-boot = &power_green;
led-failsafe = &power_amber;
compatible = "ocedo,koala", "qca,qca9557";
model = "OCEDO Koala";
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
aliases {
led-boot = &system;
led-failsafe = &system;
compatible = "ocedo,ursus", "qca,qca9558";
model = "OCEDO Ursus";
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
leds {
compatible = "gpio-leds";
#include "qca9557.dtsi"
/ {
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
aliases {
led-boot = &system;
led-failsafe = &system;
mdio-gpio0 = &mdio2;
};
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
keys {
compatible = "gpio-keys";
compatible = "tplink,tl-wdr4900-v2", "qca,qca9558";
model = "TP-Link TL-WDR4900 v2";
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
aliases {
led-boot = &led_system;
led-failsafe = &led_system;
#include "qca9557.dtsi"
/ {
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
aliases {
led-boot = &system;
led-failsafe = &system;
compatible = "tplink,tl-wr941n-v7-cn", "qca,qca9558";
model = "TP-Link TL-WR941N v7 (CN)";
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
aliases {
led-boot = &led_system;
led-failsafe = &led_system;
led-upgrade = &info_red;
};
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
led_spi {
compatible = "spi-gpio";
#address-cells = <1>;
compatible = "tplink,archer-c25-v1", "qca,qca9561";
model = "TP-Link Archer C25 v1";
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
led_spi {
compatible = "spi-gpio";
#address-cells = <1>;
/ {
compatible = "tplink,archer-c5x", "qca,qca9560";
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
led_spi {
compatible = "spi-gpio";
#address-cells = <1>;
#include "qca956x.dtsi"
/ {
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
aliases {
led-boot = &led_power;
led-failsafe = &led_power;
led-upgrade = &led_red;
};
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
keys {
compatible = "gpio-keys-polled";
poll-interval = <100>;
led-upgrade = &power;
};
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
leds {
compatible = "gpio-leds";
#include "qca956x.dtsi"
/ {
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
aliases {
led-boot = &power;
led-failsafe = &power;
compatible = "glinet,gl-ar750s", "qca,qca9563";
model = "GL.iNet GL-AR750S";
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
aliases {
led-boot = &power;
led-failsafe = &power;
model = "NEC Aterm WG1200CR";
compatible = "nec,wg1200cr", "qca,qca9563";
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
aliases {
led-boot = &power_green;
led-failsafe = &power_red;
model = "NEC Aterm WG800HP";
compatible = "nec,wg800hp", "qca,qca9563";
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
aliases {
led-boot = &power_green;
led-failsafe = &power_red;
led-upgrade = &status_red;
};
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
leds {
compatible = "gpio-leds";
model = "ROSINSON WR818";
compatible = "rosinson,wr818", "qca,qca9563";
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
aliases {
led-boot = &system;
led-failsafe = &system;
compatible = "tplink,archer-c2-v3", "qca,qca9563";
model = "TP-Link Archer C2 v3";
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
aliases {
led-boot = &system;
led-failsafe = &system;
compatible = "tplink,archer-c7-v4", "qca,qca9563";
model = "TP-Link Archer C7 v4";
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
aliases {
led-boot = &system;
led-failsafe = &system;
#include "qca956x.dtsi"
/ {
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
aliases {
led-boot = &power;
led-failsafe = &power;
#include "qca956x.dtsi"
/ {
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
aliases {
led-boot = &system;
led-failsafe = &system;
compatible = "tplink,re450-v2", "qca,qca9563";
model = "TP-Link RE450 v2";
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
aliases {
led-boot = &system;
led-failsafe = &system;
#include "qca956x.dtsi"
/ {
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
aliases {
led-boot = &system;
led-failsafe = &system;
led-upgrade = &led_blue;
};
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
leds {
compatible = "gpio-leds";
#include "qca956x.dtsi"
/ {
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <1>;
+ chosen {
+ bootargs = "console=ttyS0,115200n8";
+ };
+
cpus {
#address-cells = <1>;
#size-cells = <0>;
#include "qca956x.dtsi"
-/ {
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-};
-
&spi {
status = "okay";