[PATCH 2/5] arm: dts: linksys: rename mamba to wrt1900ac
From: Paul Spooren
Date: Tue Apr 07 2020 - 17:13:05 EST
Linksys uses internally the codename "mamba" for a device sold under
the name of "Linksys WRT1900AC", which is already reflected in the
device tree `model`. However the `compatible` list only contains the
codename `linksys,mamba` which does not relate to the common name.
This patch renames the `dts` file to the sanitized model name and
prepends `linksys,wrt1900ac` to the `compatible` list to simplify the
device relation.
Signed-off-by: Paul Spooren <mail@xxxxxxxxxxx>
CC: Rob Herring <robh+dt@xxxxxxxxxx>
CC: Jason Cooper <jason@xxxxxxxxxxxxxx>
CC: Andrew Lunn <andrew@xxxxxxx>
CC: Gregory Clement <gregory.clement@xxxxxxxxxxx>
CC: Sebastian Hesselbarth <sebastian.hesselbarth@xxxxxxxxx>
CC: Daniel Golle <daniel@xxxxxxxxxxxxxx>
CC: Adrian Schmutzler <freifunk@xxxxxxxxxxxxxxxxxxx>
---
arch/arm/boot/dts/Makefile | 2 +-
...ba.dts => armada-xp-linksys-wrt1900ac.dts} | 27 ++++++++++---------
2 files changed, 15 insertions(+), 14 deletions(-)
rename arch/arm/boot/dts/{armada-xp-linksys-mamba.dts => armada-xp-linksys-wrt1900ac.dts} (92%)
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index a0df7f97cc44..cf288adb8fe0 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -1302,7 +1302,7 @@ dtb-$(CONFIG_MACH_ARMADA_XP) += \
armada-xp-db-xc3-24g4xg.dtb \
armada-xp-gp.dtb \
armada-xp-lenovo-ix4-300d.dtb \
- armada-xp-linksys-mamba.dtb \
+ armada-xp-linksys-wrt1900ac.dtb \
armada-xp-matrix.dtb \
armada-xp-netgear-rn2120.dtb \
armada-xp-openblocks-ax3-4.dtb \
diff --git a/arch/arm/boot/dts/armada-xp-linksys-mamba.dts b/arch/arm/boot/dts/armada-xp-linksys-wrt1900ac.dts
similarity index 92%
rename from arch/arm/boot/dts/armada-xp-linksys-mamba.dts
rename to arch/arm/boot/dts/armada-xp-linksys-wrt1900ac.dts
index 8480a16919a0..2644870fec2c 100644
--- a/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
+++ b/arch/arm/boot/dts/armada-xp-linksys-wrt1900ac.dts
@@ -23,8 +23,9 @@
/ {
model = "Linksys WRT1900AC";
- compatible = "linksys,mamba", "marvell,armadaxp-mv78230",
- "marvell,armadaxp", "marvell,armada-370-xp";
+ compatible = "linksys,wrt1900ac", "linksys,mamba",
+ "marvell,armadaxp-mv78230", "marvell,armadaxp",
+ "marvell,armada-370-xp";
chosen {
bootargs = "console=ttyS0,115200";
@@ -110,53 +111,53 @@ tlc59116@68 {
reg = <0x68>;
wan_amber@0 {
- label = "mamba:amber:wan";
+ label = "wrt1900ac:amber:wan";
reg = <0x0>;
};
wan_white@1 {
- label = "mamba:white:wan";
+ label = "wrt1900ac:white:wan";
reg = <0x1>;
};
wlan_2g@2 {
- label = "mamba:white:wlan_2g";
+ label = "wrt1900ac:white:wlan_2g";
reg = <0x2>;
};
wlan_5g@3 {
- label = "mamba:white:wlan_5g";
+ label = "wrt1900ac:white:wlan_5g";
reg = <0x3>;
};
esata@4 {
- label = "mamba:white:esata";
+ label = "wrt1900ac:white:esata";
reg = <0x4>;
linux,default-trigger = "disk-activity";
};
usb2@5 {
- label = "mamba:white:usb2";
+ label = "wrt1900ac:white:usb2";
reg = <0x5>;
};
usb3_1@6 {
- label = "mamba:white:usb3_1";
+ label = "wrt1900ac:white:usb3_1";
reg = <0x6>;
};
usb3_2@7 {
- label = "mamba:white:usb3_2";
+ label = "wrt1900ac:white:usb3_2";
reg = <0x7>;
};
wps_white@8 {
- label = "mamba:white:wps";
+ label = "wrt1900ac:white:wps";
reg = <0x8>;
};
wps_amber@9 {
- label = "mamba:amber:wps";
+ label = "wrt1900ac:amber:wps";
reg = <0x9>;
};
};
@@ -198,7 +199,7 @@ gpio-leds {
pinctrl-names = "default";
power {
- label = "mamba:white:power";
+ label = "wrt1900ac:white:power";
gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
--
2.25.1