mvebu: rename Linksys devices based on their common names
authorPaul Spooren <mail@aparcar.org>
Fri, 10 Apr 2020 10:14:21 +0000 (00:14 -1000)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Fri, 5 Jun 2020 19:54:43 +0000 (21:54 +0200)
The Linksys devices in mvebu target feature a mixed naming,
where parts are based on the official product name (device
node, image; e.g. WRT3200ACM) and parts are based on the
internal code name (DTS file name, compatible, LED labels;
e.g. rango). This inconsistent naming has been perceived
as quite confusing.

A recent attempt by Paul Spooren to harmonize this naming
in kernel has been declined there. However, for us it still
makes sense to apply at least a part of these changes
locally.

Primarily, this patch changes the compatible in DTS and thus
the board name used in various scripts to have them in line
with the device, model and image names. Due to the recent
switch from swconfig to DSA, this allows us to drop
SUPPORTED_DEVICES and thus prevent seamless upgrade between
these incompatible setups.

However, this does not include the LED label rename from
Paul's initial patch: I don't think it's worth keeping the
enormous diff locally for this case, as we can implement
this much easier in 01_leds if we have to live with the
inconsistency anyway.

Signed-off-by: Paul Spooren <mail@aparcar.org>
[rebase, extend to all devices, drop DT LED changes]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
22 files changed:
package/boot/uboot-envtools/files/mvebu
target/linux/mvebu/cortexa9/base-files/etc/board.d/01_leds
target/linux/mvebu/cortexa9/base-files/etc/board.d/02_network
target/linux/mvebu/cortexa9/base-files/etc/init.d/bootcount
target/linux/mvebu/cortexa9/base-files/etc/uci-defaults/03_wireless
target/linux/mvebu/cortexa9/base-files/etc/uci-defaults/04_mambafan
target/linux/mvebu/cortexa9/base-files/lib/preinit/81_linksys_syscfg
target/linux/mvebu/cortexa9/base-files/lib/upgrade/platform.sh
target/linux/mvebu/files-4.19/arch/arm/boot/dts/armada-385-linksys-venom.dts
target/linux/mvebu/files-5.4/arch/arm/boot/dts/armada-385-linksys-venom.dts
target/linux/mvebu/image/cortexa9.mk
target/linux/mvebu/patches-4.19/005-linksys_hardcode_nand_ecc_settings.patch
target/linux/mvebu/patches-4.19/230-armada-xp-linksys-mamba-broken-idle.patch
target/linux/mvebu/patches-4.19/231-armada-xp-linksys-mamba-wan.patch
target/linux/mvebu/patches-4.19/241-linksys-use-eth0-as-cpu-port.patch
target/linux/mvebu/patches-4.19/250-adjust-compatible-for-linksys.patch [new file with mode: 0644]
target/linux/mvebu/patches-4.19/415-ARM-dts-armada388-clearfog-document-MPP-usage.patch
target/linux/mvebu/patches-5.4/005-linksys_hardcode_nand_ecc_settings.patch
target/linux/mvebu/patches-5.4/230-armada-xp-linksys-mamba-broken-idle.patch
target/linux/mvebu/patches-5.4/231-armada-xp-linksys-mamba-wan.patch
target/linux/mvebu/patches-5.4/241-linksys-use-eth0-as-cpu-port.patch
target/linux/mvebu/patches-5.4/250-adjust-compatible-for-linksys.patch [new file with mode: 0644]

index 10f31b05a14b5c7c61d894f05d4bb96632957ae8..72e2df5d198200608028639c9f367fc587f8672d 100644 (file)
@@ -27,16 +27,16 @@ globalscale,espressobin-v7-emmc|\
 marvell,armada8040-mcbin)
        ubootenv_add_uci_config "/dev/mtd0" "0x3f0000" "0x10000" "0x10000" "1"
        ;;
-linksys,caiman|\
-linksys,cobra|\
-linksys,shelby)
+linksys,wrt1200ac|\
+linksys,wrt1900ac-v2|\
+linksys,wrt1900acs)
        ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x40000"
        ;;
-linksys,mamba)
+linksys,wrt1900ac-v1)
        ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x20000"
        ;;
-linksys,rango|\
-linksys,venom)
+linksys,wrt3200acm|\
+linksys,wrt32x)
        ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
        ;;
 methode,udpu)
index 450bc1f32ae15f8450ef60480cf7eafb12073d7f..c62de013d482a9fb619e487c507e348ceb1a1bb8 100755 (executable)
@@ -12,22 +12,37 @@ board=$(board_name)
 boardname="${board##*,}"
 
 case "$board" in
-linksys,caiman|\
-linksys,cobra|\
-linksys,rango|\
-linksys,shelby)
-       ucidef_set_led_netdev "wan" "WAN" "pca963x:$boardname:white:wan" "wan"
-       ucidef_set_led_usbport "usb1" "USB 1" "pca963x:$boardname:white:usb2" "usb1-port1"
-       ucidef_set_led_usbport "usb2" "USB 2" "pca963x:$boardname:white:usb3_1" "usb2-port1" "usb3-port1"
-       ucidef_set_led_usbport "usb2_ss" "USB 2 SS" "pca963x:$boardname:white:usb3_2" "usb3-port1"
+linksys,wrt1200ac)
+       ucidef_set_led_netdev "wan" "WAN" "pca963x:caiman:white:wan" "wan"
+       ucidef_set_led_usbport "usb1" "USB 1" "pca963x:caiman:white:usb2" "usb1-port1"
+       ucidef_set_led_usbport "usb2" "USB 2" "pca963x:caiman:white:usb3_1" "usb2-port1" "usb3-port1"
+       ucidef_set_led_usbport "usb2_ss" "USB 2 SS" "pca963x:caiman:white:usb3_2" "usb3-port1"
        ;;
-linksys,mamba)
+linksys,wrt1900ac-v1)
        ucidef_set_led_netdev "wan" "WAN" "mamba:white:wan" "wan"
        ucidef_set_led_usbport "usb1" "USB 1" "mamba:white:usb2" "usb1-port1"
        ucidef_set_led_usbport "usb2" "USB 2" "mamba:white:usb3_1" "usb2-port1" "usb3-port1"
        ucidef_set_led_usbport "usb2_ss" "USB 2 SS" "mamba:white:usb3_2" "usb3-port2"
        ;;
-linksys,venom)
+linksys,wrt1900ac-v2)
+       ucidef_set_led_netdev "wan" "WAN" "pca963x:cobra:white:wan" "wan"
+       ucidef_set_led_usbport "usb1" "USB 1" "pca963x:cobra:white:usb2" "usb1-port1"
+       ucidef_set_led_usbport "usb2" "USB 2" "pca963x:cobra:white:usb3_1" "usb2-port1" "usb3-port1"
+       ucidef_set_led_usbport "usb2_ss" "USB 2 SS" "pca963x:cobra:white:usb3_2" "usb3-port1"
+       ;;
+linksys,wrt1900acs)
+       ucidef_set_led_netdev "wan" "WAN" "pca963x:shelby:white:wan" "wan"
+       ucidef_set_led_usbport "usb1" "USB 1" "pca963x:shelby:white:usb2" "usb1-port1"
+       ucidef_set_led_usbport "usb2" "USB 2" "pca963x:shelby:white:usb3_1" "usb2-port1" "usb3-port1"
+       ucidef_set_led_usbport "usb2_ss" "USB 2 SS" "pca963x:shelby:white:usb3_2" "usb3-port1"
+       ;;
+linksys,wrt3200acm)
+       ucidef_set_led_netdev "wan" "WAN" "pca963x:rango:white:wan" "wan"
+       ucidef_set_led_usbport "usb1" "USB 1" "pca963x:rango:white:usb2" "usb1-port1"
+       ucidef_set_led_usbport "usb2" "USB 2" "pca963x:rango:white:usb3_1" "usb2-port1" "usb3-port1"
+       ucidef_set_led_usbport "usb2_ss" "USB 2 SS" "pca963x:rango:white:usb3_2" "usb3-port1"
+       ;;
+linksys,wrt32x)
        ucidef_set_led_netdev "wan" "WAN" "pca963x:venom:blue:wan" "wan"
        ucidef_set_led_usbport "usb1" "USB 1" "pca963x:venom:blue:usb2" "usb1-port1"
        ucidef_set_led_usbport "usb2" "USB 2" "pca963x:venom:blue:usb3_1" "usb2-port1" "usb3-port1"
index 89ccedae3fb2bc25d1e5a096fab104cd41847bb4..44188c5fa716aa05a37f0ab6dd5531f0ece96001 100755 (executable)
@@ -16,12 +16,12 @@ mvebu_setup_interfaces()
        cznic,turris-omnia)
                ucidef_set_interfaces_lan_wan "lan0 lan1 lan2 lan3 lan4" "eth2"
                ;;
-       linksys,caiman|\
-       linksys,cobra|\
-       linksys,mamba|\
-       linksys,rango|\
-       linksys,shelby|\
-       linksys,venom)
+       linksys,wrt1200ac|\
+       linksys,wrt1900ac-v1|\
+       linksys,wrt1900ac-v2|\
+       linksys,wrt1900acs|\
+       linksys,wrt3200acm|\
+       linksys,wrt32x)
                ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
                ;;
        marvell,a385-db-ap)
@@ -60,15 +60,15 @@ mvebu_setup_macs()
        buffalo,ls421de)
                lan_mac=$(mtd_get_mac_ascii u-boot-env eth1addr)
                ;;
-       linksys,caiman|\
-       linksys,cobra|\
-       linksys,rango|\
-       linksys,shelby|\
-       linksys,venom)
+       linksys,wrt1200ac|\
+       linksys,wrt1900ac-v2|\
+       linksys,wrt1900acs|\
+       linksys,wrt3200acm|\
+       linksys,wrt32x)
                label_mac=$(mtd_get_mac_ascii devinfo hw_mac_addr)
                wan_mac=$(macaddr_setbit_la $label_mac)
                ;;
-       linksys,mamba)
+       linksys,wrt1900ac-v1)
                label_mac=$(mtd_get_mac_ascii devinfo hw_mac_addr)
                lan_mac=$label_mac
                wan_mac=$label_mac
index dd2266bdc860cd51b5873f04d7dd1849745a6a54..f1bfb4a00147ee58e3f9967fc77b232c24562dfd 100755 (executable)
@@ -4,12 +4,12 @@ START=99
 
 boot() {
        case $(board_name) in
-       linksys,caiman |\
-       linksys,cobra |\
-       linksys,mamba |\
-       linksys,rango |\
-       linksys,shelby |\
-       linksys,venom)
+       linksys,wrt1200ac|\
+       linksys,wrt1900ac-v1|\
+       linksys,wrt1900ac-v2|\
+       linksys,wrt1900acs|\
+       linksys,wrt3200acm|\
+       linksys,wrt32x)
                mtd resetbc s_env || true
                ;;
        esac
index 3c345ff1487e3ba87f76244603f28634a8b8035f..79c74626f5237bcf9418b80b7b955ea5471e219a 100644 (file)
 board=$(board_name)
 
 case "$board" in
-linksys,caiman|linksys,cobra|linksys,mamba|linksys,shelby|linksys,venom)
+linksys,wrt1200ac|\
+linksys,wrt1900ac-v1|\
+linksys,wrt1900ac-v2|\
+linksys,wrt1900acs|\
+linksys,wrt32x)
        SKU=$(strings /dev/mtd3|sed -ne 's/^cert_region=//p')
        WIFIMAC2G=$(macaddr_add $(cat /sys/class/net/eth0/address) +1)
        WIFIMAC5G=$(macaddr_add $WIFIMAC2G +1)
@@ -34,7 +38,7 @@ linksys,caiman|linksys,cobra|linksys,mamba|linksys,shelby|linksys,venom)
        esac
 
        case "$board" in
-               linksys,mamba)
+               linksys,wrt1900ac-v1)
                        WIFIMAC0=$WIFIMAC2G
                        WIFIMAC1=$WIFIMAC5G
                ;;
index ec25aedad69c7743894383962c4fe47ab8c517d2..29c447d8408bbe3e888fc8828a9e355d46189d60 100644 (file)
@@ -8,7 +8,7 @@
 board=$(board_name)
 
 case "$board" in
-linksys,mamba)
+linksys,wrt1900ac-v1)
        # Set fan script execution in crontab
        grep -s -q fan_ctrl.sh /etc/crontabs/root && exit 0
 
index 83448e5ace5f2f7dd5bbd1af2226608d77fb8766..6ebd72755646db7eae3f1ac9341369821d183427 100644 (file)
@@ -8,7 +8,12 @@ preinit_mount_syscfg() {
        . /lib/upgrade/common.sh
 
        case $(board_name) in
-       linksys,caiman|linksys,cobra|linksys,mamba|linksys,rango|linksys,shelby|linksys,venom)
+       linksys,wrt1200ac|\
+       linksys,wrt1900ac-v1|\
+       linksys,wrt1900ac-v2|\
+       linksys,wrt1900acs|\
+       linksys,wrt3200acm|\
+       linksys,wrt32x)
                needs_recovery=0
                syscfg_part=$(grep syscfg /proc/mtd |cut -c4)
                ubiattach -m $syscfg_part || needs_recovery=1
index 63042b15354db30b308807378300b88b288c53b8..6dccb491ba23cb78eb839cbbdfc46e2318e61192 100755 (executable)
@@ -30,12 +30,12 @@ platform_do_upgrade() {
        solidrun,clearfog-pro-a1)
                platform_do_upgrade_sdcard "$1"
                ;;
-       linksys,caiman|\
-       linksys,cobra|\
-       linksys,mamba|\
-       linksys,rango|\
-       linksys,shelby|\
-       linksys,venom)
+       linksys,wrt1200ac|\
+       linksys,wrt1900ac-v1|\
+       linksys,wrt1900ac-v2|\
+       linksys,wrt1900acs|\
+       linksys,wrt3200acm|\
+       linksys,wrt32x)
                platform_do_upgrade_linksys "$1"
                ;;
        *)
@@ -50,12 +50,12 @@ platform_copy_config() {
        solidrun,clearfog-pro-a1)
                platform_copy_config_sdcard
                ;;
-       linksys,caiman|\
-       linksys,cobra|\
-       linksys,mamba|\
-       linksys,rango|\
-       linksys,shelby|\
-       linksys,venom)
+       linksys,wrt1200ac|\
+       linksys,wrt1900ac-v1|\
+       linksys,wrt1900ac-v2|\
+       linksys,wrt1900acs|\
+       linksys,wrt3200acm|\
+       linksys,wrt32x)
                platform_copy_config_linksys
                ;;
        esac
index c152c14c6b919404ea3cd88c7986e67134beb20e..de81600a8019aa20819f552d8202e3d49ec711f2 100644 (file)
@@ -44,8 +44,8 @@
 
 / {
        model = "Linksys WRT32X";
-       compatible = "linksys,venom", "linksys,armada385", "marvell,armada385",
-                    "marvell,armada380";
+       compatible = "linksys,wrt32x", "linksys,venom", "linksys,armada385",
+                    "marvell,armada385", "marvell,armada380";
 
        chosen {
                bootargs = "console=ttyS0,115200";
index c152c14c6b919404ea3cd88c7986e67134beb20e..de81600a8019aa20819f552d8202e3d49ec711f2 100644 (file)
@@ -44,8 +44,8 @@
 
 / {
        model = "Linksys WRT32X";
-       compatible = "linksys,venom", "linksys,armada385", "marvell,armada385",
-                    "marvell,armada380";
+       compatible = "linksys,wrt32x", "linksys,venom", "linksys,armada385",
+                    "marvell,armada385", "marvell,armada380";
 
        chosen {
                bootargs = "console=ttyS0,115200";
index 4c7bbcd7585b9fb1a63fba926a3e907bb607d2b8..09f3d45e9ec92322f278f4ea42a8e740eec61e73 100644 (file)
@@ -65,7 +65,6 @@ define Device/linksys_wrt1200ac
   DEVICE_ALT0_MODEL := Caiman
   DEVICE_DTS := armada-385-linksys-caiman
   DEVICE_PACKAGES += mwlwifi-firmware-88w8864
-  SUPPORTED_DEVICES := armada-385-linksys-caiman linksys,caiman
 endef
 TARGET_DEVICES += linksys_wrt1200ac
 
@@ -80,11 +79,10 @@ define Device/linksys_wrt1900acs
   DEVICE_ALT1_MODEL := Shelby
   DEVICE_DTS := armada-385-linksys-shelby
   DEVICE_PACKAGES += mwlwifi-firmware-88w8864
-  SUPPORTED_DEVICES := armada-385-linksys-shelby linksys,shelby
 endef
 TARGET_DEVICES += linksys_wrt1900acs
 
-define Device/linksys_wrt1900ac
+define Device/linksys_wrt1900ac-v1
   $(call Device/linksys)
   DEVICE_MODEL := WRT1900AC
   DEVICE_VARIANT := v1
@@ -93,11 +91,10 @@ define Device/linksys_wrt1900ac
   DEVICE_DTS := armada-xp-linksys-mamba
   DEVICE_PACKAGES += mwlwifi-firmware-88w8864
   KERNEL_SIZE := 3072k
-  SUPPORTED_DEVICES := armada-xp-linksys-mamba linksys,mamba
 endef
-TARGET_DEVICES += linksys_wrt1900ac
+TARGET_DEVICES += linksys_wrt1900ac-v1
 
-define Device/linksys_wrt1900acv2
+define Device/linksys_wrt1900ac-v2
   $(call Device/linksys)
   DEVICE_MODEL := WRT1900AC
   DEVICE_VARIANT := v2
@@ -105,9 +102,8 @@ define Device/linksys_wrt1900acv2
   DEVICE_ALT0_MODEL := Cobra
   DEVICE_DTS := armada-385-linksys-cobra
   DEVICE_PACKAGES += mwlwifi-firmware-88w8864
-  SUPPORTED_DEVICES := armada-385-linksys-cobra linksys,cobra
 endef
-TARGET_DEVICES += linksys_wrt1900acv2
+TARGET_DEVICES += linksys_wrt1900ac-v2
 
 define Device/linksys_wrt3200acm
   $(call Device/linksys)
@@ -116,7 +112,6 @@ define Device/linksys_wrt3200acm
   DEVICE_ALT0_MODEL := Rango
   DEVICE_DTS := armada-385-linksys-rango
   DEVICE_PACKAGES += kmod-btmrvl kmod-mwifiex-sdio mwlwifi-firmware-88w8964
-  SUPPORTED_DEVICES := armada-385-linksys-rango linksys,rango
 endef
 TARGET_DEVICES += linksys_wrt3200acm
 
@@ -129,7 +124,6 @@ define Device/linksys_wrt32x
   DEVICE_PACKAGES += kmod-btmrvl kmod-mwifiex-sdio mwlwifi-firmware-88w8964
   KERNEL_SIZE := 3072k
   KERNEL := kernel-bin | append-dtb
-  SUPPORTED_DEVICES := armada-385-linksys-venom linksys,venom
 endef
 TARGET_DEVICES += linksys_wrt32x
 
index dfe13bae7b56a9baa670f7018e6084250a5a67e3..89a5e1980357dec8d72fdc1121e7660c48056546 100644 (file)
@@ -6,7 +6,7 @@ Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
 
 --- a/arch/arm/boot/dts/armada-385-linksys.dtsi
 +++ b/arch/arm/boot/dts/armada-385-linksys.dtsi
-@@ -160,6 +160,8 @@
+@@ -148,6 +148,8 @@
                reg = <0>;
                label = "pxa3xx_nand-0";
                nand-rb = <0>;
index 935c8fe0935d14a0ce61ee3ea1b955a765253961..6f36d09966838fbd4696add7c86b587a63489396 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
 +++ b/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
-@@ -543,3 +543,7 @@
+@@ -532,3 +532,7 @@
                };
        };
  };
index 40e852b089ce6001f99fb1d69d94d88add80e0a4..9404d55d37133a622e18433d6187e978fdeb6dfb 100644 (file)
@@ -1,8 +1,6 @@
-diff --git a/arch/arm/boot/dts/armada-xp-linksys-mamba.dts b/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
-index 8480a16919a0..8cf3c9d5205b 100644
 --- a/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
 +++ b/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
-@@ -299,7 +299,7 @@
+@@ -248,7 +248,7 @@
  
                        port@4 {
                                reg = <4>;
index c440530fc371ee4aa56cb9205fe0bd4e8e1c55f4..84d49a004b85b32ca2189a9b19ed91c0d843a019 100644 (file)
@@ -1,8 +1,6 @@
-diff --git a/arch/arm/boot/dts/armada-385-linksys.dtsi b/arch/arm/boot/dts/armada-385-linksys.dtsi
-index 827e82be2201..b6aecf4cc5eb 100644
 --- a/arch/arm/boot/dts/armada-385-linksys.dtsi
 +++ b/arch/arm/boot/dts/armada-385-linksys.dtsi
-@@ -109,7 +109,7 @@
+@@ -116,7 +116,7 @@
  };
  
  &eth2 {
@@ -11,7 +9,7 @@ index 827e82be2201..b6aecf4cc5eb 100644
        phy-mode = "sgmii";
        buffer-manager = <&bm>;
        bm,pool-long = <2>;
-@@ -191,10 +191,10 @@
+@@ -200,10 +200,10 @@
                                label = "wan";
                        };
  
diff --git a/target/linux/mvebu/patches-4.19/250-adjust-compatible-for-linksys.patch b/target/linux/mvebu/patches-4.19/250-adjust-compatible-for-linksys.patch
new file mode 100644 (file)
index 0000000..a5d3e63
--- /dev/null
@@ -0,0 +1,68 @@
+--- a/arch/arm/boot/dts/armada-385-linksys-rango.dts
++++ b/arch/arm/boot/dts/armada-385-linksys-rango.dts
+@@ -12,8 +12,8 @@
+ / {
+       model = "Linksys WRT3200ACM";
+-      compatible = "linksys,rango", "linksys,armada385", "marvell,armada385",
+-                   "marvell,armada380";
++      compatible = "linksys,wrt3200acm", "linksys,rango", "linksys,armada385",
++                   "marvell,armada385", "marvell,armada380";
+ };
+ &expander0 {
+--- a/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
++++ b/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
+@@ -22,9 +22,10 @@
+ #include "armada-xp-mv78230.dtsi"
+ / {
+-      model = "Linksys WRT1900AC";
+-      compatible = "linksys,mamba", "marvell,armadaxp-mv78230",
+-                   "marvell,armadaxp", "marvell,armada-370-xp";
++      model = "Linksys WRT1900AC v1";
++      compatible = "linksys,wrt1900ac-v1", "linksys,mamba",
++                   "marvell,armadaxp-mv78230", "marvell,armadaxp",
++                   "marvell,armada-370-xp";
+       aliases {
+               led-boot = &led_power;
+--- a/arch/arm/boot/dts/armada-385-linksys-cobra.dts
++++ b/arch/arm/boot/dts/armada-385-linksys-cobra.dts
+@@ -9,8 +9,9 @@
+ #include "armada-385-linksys.dtsi"
+ / {
+-      model = "Linksys WRT1900ACv2";
+-      compatible = "linksys,cobra", "linksys,armada385", "marvell,armada385",
++      model = "Linksys WRT1900AC v2";
++      compatible = "linksys,wrt1900ac-v2", "linksys,cobra",
++                   "linksys,armada385", "marvell,armada385",
+                    "marvell,armada380";
+ };
+--- a/arch/arm/boot/dts/armada-385-linksys-caiman.dts
++++ b/arch/arm/boot/dts/armada-385-linksys-caiman.dts
+@@ -10,8 +10,8 @@
+ / {
+       model = "Linksys WRT1200AC";
+-      compatible = "linksys,caiman", "linksys,armada385", "marvell,armada385",
+-                   "marvell,armada380";
++      compatible = "linksys,wrt1200ac", "linksys,caiman", "linksys,armada385",
++                   "marvell,armada385", "marvell,armada380";
+ };
+ &expander0 {
+--- a/arch/arm/boot/dts/armada-385-linksys-shelby.dts
++++ b/arch/arm/boot/dts/armada-385-linksys-shelby.dts
+@@ -10,7 +10,8 @@
+ / {
+       model = "Linksys WRT1900ACS";
+-      compatible = "linksys,shelby", "linksys,armada385", "marvell,armada385",
++      compatible = "linksys,wrt1900acs", "linksys,shelby",
++                   "linksys,armada385", "marvell,armada385",
+                    "marvell,armada380";
+ };
index d64bd8084ea2af747207f65d36df5f5302cc4a0f..b6890318f8dfdd7c9bbcde65441cde61538d9fc3 100644 (file)
@@ -68,7 +68,7 @@ Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
 +*/
 --- a/arch/arm/boot/dts/armada-388-clearfog.dts
 +++ b/arch/arm/boot/dts/armada-388-clearfog.dts
-@@ -249,3 +249,53 @@
+@@ -236,3 +236,53 @@
         */
        pinctrl-0 = <&spi1_pins &clearfog_spi1_cs_pins &mikro_spi_pins>;
  };
index dfe13bae7b56a9baa670f7018e6084250a5a67e3..89a5e1980357dec8d72fdc1121e7660c48056546 100644 (file)
@@ -6,7 +6,7 @@ Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
 
 --- a/arch/arm/boot/dts/armada-385-linksys.dtsi
 +++ b/arch/arm/boot/dts/armada-385-linksys.dtsi
-@@ -160,6 +160,8 @@
+@@ -148,6 +148,8 @@
                reg = <0>;
                label = "pxa3xx_nand-0";
                nand-rb = <0>;
index ee8786c0fcef9590c4e395f982f7a1e53287f33e..16112d53fc99c7a585c8f4b8130eddcf9ffc231d 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
 +++ b/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
-@@ -496,3 +496,7 @@
+@@ -485,3 +485,7 @@
                };
        };
  };
index 40e852b089ce6001f99fb1d69d94d88add80e0a4..4315abc7d22ade144b58aad553e908aa89f27741 100644 (file)
@@ -1,8 +1,6 @@
-diff --git a/arch/arm/boot/dts/armada-xp-linksys-mamba.dts b/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
-index 8480a16919a0..8cf3c9d5205b 100644
 --- a/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
 +++ b/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
-@@ -299,7 +299,7 @@
+@@ -387,7 +387,7 @@
  
                        port@4 {
                                reg = <4>;
index c440530fc371ee4aa56cb9205fe0bd4e8e1c55f4..84d49a004b85b32ca2189a9b19ed91c0d843a019 100644 (file)
@@ -1,8 +1,6 @@
-diff --git a/arch/arm/boot/dts/armada-385-linksys.dtsi b/arch/arm/boot/dts/armada-385-linksys.dtsi
-index 827e82be2201..b6aecf4cc5eb 100644
 --- a/arch/arm/boot/dts/armada-385-linksys.dtsi
 +++ b/arch/arm/boot/dts/armada-385-linksys.dtsi
-@@ -109,7 +109,7 @@
+@@ -116,7 +116,7 @@
  };
  
  &eth2 {
@@ -11,7 +9,7 @@ index 827e82be2201..b6aecf4cc5eb 100644
        phy-mode = "sgmii";
        buffer-manager = <&bm>;
        bm,pool-long = <2>;
-@@ -191,10 +191,10 @@
+@@ -200,10 +200,10 @@
                                label = "wan";
                        };
  
diff --git a/target/linux/mvebu/patches-5.4/250-adjust-compatible-for-linksys.patch b/target/linux/mvebu/patches-5.4/250-adjust-compatible-for-linksys.patch
new file mode 100644 (file)
index 0000000..a5d3e63
--- /dev/null
@@ -0,0 +1,68 @@
+--- a/arch/arm/boot/dts/armada-385-linksys-rango.dts
++++ b/arch/arm/boot/dts/armada-385-linksys-rango.dts
+@@ -12,8 +12,8 @@
+ / {
+       model = "Linksys WRT3200ACM";
+-      compatible = "linksys,rango", "linksys,armada385", "marvell,armada385",
+-                   "marvell,armada380";
++      compatible = "linksys,wrt3200acm", "linksys,rango", "linksys,armada385",
++                   "marvell,armada385", "marvell,armada380";
+ };
+ &expander0 {
+--- a/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
++++ b/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
+@@ -22,9 +22,10 @@
+ #include "armada-xp-mv78230.dtsi"
+ / {
+-      model = "Linksys WRT1900AC";
+-      compatible = "linksys,mamba", "marvell,armadaxp-mv78230",
+-                   "marvell,armadaxp", "marvell,armada-370-xp";
++      model = "Linksys WRT1900AC v1";
++      compatible = "linksys,wrt1900ac-v1", "linksys,mamba",
++                   "marvell,armadaxp-mv78230", "marvell,armadaxp",
++                   "marvell,armada-370-xp";
+       aliases {
+               led-boot = &led_power;
+--- a/arch/arm/boot/dts/armada-385-linksys-cobra.dts
++++ b/arch/arm/boot/dts/armada-385-linksys-cobra.dts
+@@ -9,8 +9,9 @@
+ #include "armada-385-linksys.dtsi"
+ / {
+-      model = "Linksys WRT1900ACv2";
+-      compatible = "linksys,cobra", "linksys,armada385", "marvell,armada385",
++      model = "Linksys WRT1900AC v2";
++      compatible = "linksys,wrt1900ac-v2", "linksys,cobra",
++                   "linksys,armada385", "marvell,armada385",
+                    "marvell,armada380";
+ };
+--- a/arch/arm/boot/dts/armada-385-linksys-caiman.dts
++++ b/arch/arm/boot/dts/armada-385-linksys-caiman.dts
+@@ -10,8 +10,8 @@
+ / {
+       model = "Linksys WRT1200AC";
+-      compatible = "linksys,caiman", "linksys,armada385", "marvell,armada385",
+-                   "marvell,armada380";
++      compatible = "linksys,wrt1200ac", "linksys,caiman", "linksys,armada385",
++                   "marvell,armada385", "marvell,armada380";
+ };
+ &expander0 {
+--- a/arch/arm/boot/dts/armada-385-linksys-shelby.dts
++++ b/arch/arm/boot/dts/armada-385-linksys-shelby.dts
+@@ -10,7 +10,8 @@
+ / {
+       model = "Linksys WRT1900ACS";
+-      compatible = "linksys,shelby", "linksys,armada385", "marvell,armada385",
++      compatible = "linksys,wrt1900acs", "linksys,shelby",
++                   "linksys,armada385", "marvell,armada385",
+                    "marvell,armada380";
+ };