From: Ansuel Smith Date: Mon, 12 Jul 2021 19:42:41 +0000 (+0200) Subject: treewide: convert mtd-mac-address-increment* to generic implementation X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=d284e6ef0f06;p=openwrt%2Fstaging%2Fthess.git treewide: convert mtd-mac-address-increment* to generic implementation Rework patch 681-NET-add-mtd-mac-address-support to implement only the function to read the mac-address from mtd. Generalize mtd-mac-address-increment function so it can be applied to any source of of_get_mac_address. Rename any mtd-mac-address-increment to mac-address-increment. Rename any mtd-mac-address-increment-byte to mac-address-increment-byte. This should make simplify the conversion of target to nvmem implementation. Signed-off-by: Ansuel Smith --- diff --git a/target/linux/ath79/dts/ar7161_aruba_ap-105.dts b/target/linux/ath79/dts/ar7161_aruba_ap-105.dts index e24236324c..083db183d4 100644 --- a/target/linux/ath79/dts/ar7161_aruba_ap-105.dts +++ b/target/linux/ath79/dts/ar7161_aruba_ap-105.dts @@ -104,7 +104,7 @@ ath9k0: wifi@0,11 { /* 2.4 GHz */ compatible = "pci168c,0029"; mtd-mac-address = <&hwinfo 0x1c>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; reg = <0x8800 0 0 0 0>; #gpio-cells = <2>; gpio-controller; @@ -113,7 +113,7 @@ ath9k1: wifi@0,12 { /* 5 GHz */ compatible = "pci168c,0029"; mtd-mac-address = <&hwinfo 0x1c>; - mtd-mac-address-increment = <2>; + mac-address-increment = <2>; reg = <0x9000 0 0 0 0>; #gpio-cells = <2>; gpio-controller; diff --git a/target/linux/ath79/dts/ar7161_buffalo_wzr-hp-ag300h.dtsi b/target/linux/ath79/dts/ar7161_buffalo_wzr-hp-ag300h.dtsi index b8176dc059..15ac148697 100644 --- a/target/linux/ath79/dts/ar7161_buffalo_wzr-hp-ag300h.dtsi +++ b/target/linux/ath79/dts/ar7161_buffalo_wzr-hp-ag300h.dtsi @@ -259,7 +259,7 @@ status = "okay"; mtd-mac-address = <&art 0x520c>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; phy-handle = <&phy4>; }; diff --git a/target/linux/ath79/dts/ar7161_meraki_mr16.dts b/target/linux/ath79/dts/ar7161_meraki_mr16.dts index afbf1e31f2..3d11e641eb 100644 --- a/target/linux/ath79/dts/ar7161_meraki_mr16.dts +++ b/target/linux/ath79/dts/ar7161_meraki_mr16.dts @@ -82,7 +82,7 @@ reg = <0x8800 0 0 0 0>; qca,no-eeprom; mtd-mac-address = <&config 0x66>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; #gpio-cells = <2>; gpio-controller; }; @@ -92,7 +92,7 @@ reg = <0x9000 0 0 0 0>; qca,no-eeprom; mtd-mac-address = <&config 0x66>; - mtd-mac-address-increment = <2>; + mac-address-increment = <2>; #gpio-cells = <2>; gpio-controller; }; diff --git a/target/linux/ath79/dts/ar7240_buffalo_whr-g301n.dts b/target/linux/ath79/dts/ar7240_buffalo_whr-g301n.dts index e5d7ea57f1..7f736dc005 100644 --- a/target/linux/ath79/dts/ar7240_buffalo_whr-g301n.dts +++ b/target/linux/ath79/dts/ar7240_buffalo_whr-g301n.dts @@ -160,7 +160,7 @@ status = "okay"; mtd-mac-address = <&art 0x120c>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; &pcie { diff --git a/target/linux/ath79/dts/ar7240_netgear_wnr1000-v2.dts b/target/linux/ath79/dts/ar7240_netgear_wnr1000-v2.dts index 7e1c87adde..931032d851 100644 --- a/target/linux/ath79/dts/ar7240_netgear_wnr1000-v2.dts +++ b/target/linux/ath79/dts/ar7240_netgear_wnr1000-v2.dts @@ -190,7 +190,7 @@ compatible = "pci168c,002b"; reg = <0x0000 0 0 0 0>; mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; qca,no-eeprom; #gpio-cells = <2>; gpio-controller; diff --git a/target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi b/target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi index 7202e1d684..91438ebf8f 100644 --- a/target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi +++ b/target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi @@ -123,7 +123,7 @@ compatible = "pci168c,002b"; reg = <0x0000 0 0 0 0>; mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; qca,no-eeprom; #gpio-cells = <2>; gpio-controller; diff --git a/target/linux/ath79/dts/ar7240_tplink_tl-wr.dtsi b/target/linux/ath79/dts/ar7240_tplink_tl-wr.dtsi index bd6caacdf6..adc6cc87b3 100644 --- a/target/linux/ath79/dts/ar7240_tplink_tl-wr.dtsi +++ b/target/linux/ath79/dts/ar7240_tplink_tl-wr.dtsi @@ -31,12 +31,12 @@ ð0 { mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; }; ð1 { mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; &ath9k { diff --git a/target/linux/ath79/dts/ar7241_netgear_wnr2000-v3.dts b/target/linux/ath79/dts/ar7241_netgear_wnr2000-v3.dts index de2b536227..380f82a59f 100644 --- a/target/linux/ath79/dts/ar7241_netgear_wnr2000-v3.dts +++ b/target/linux/ath79/dts/ar7241_netgear_wnr2000-v3.dts @@ -195,7 +195,7 @@ compatible = "pci168c,002e"; reg = <0x0000 0 0 0 0>; mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; qca,no-eeprom; #gpio-cells = <2>; gpio-controller; diff --git a/target/linux/ath79/dts/ar7241_netgear_wnr2200.dtsi b/target/linux/ath79/dts/ar7241_netgear_wnr2200.dtsi index e704ddd9fc..0098b0f03e 100644 --- a/target/linux/ath79/dts/ar7241_netgear_wnr2200.dtsi +++ b/target/linux/ath79/dts/ar7241_netgear_wnr2200.dtsi @@ -171,7 +171,7 @@ compatible = "pci168c,002e"; reg = <0x0000 0 0 0 0>; mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; qca,no-eeprom; #gpio-cells = <2>; gpio-controller; diff --git a/target/linux/ath79/dts/ar7241_tplink.dtsi b/target/linux/ath79/dts/ar7241_tplink.dtsi index 6d7f7515ef..c2c81b3a87 100644 --- a/target/linux/ath79/dts/ar7241_tplink.dtsi +++ b/target/linux/ath79/dts/ar7241_tplink.dtsi @@ -97,10 +97,10 @@ status = "okay"; mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; }; ð1 { mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; diff --git a/target/linux/ath79/dts/ar7241_tplink_tl-wr842n-v1.dts b/target/linux/ath79/dts/ar7241_tplink_tl-wr842n-v1.dts index ca1ad270ce..4cc6d2a8f1 100644 --- a/target/linux/ath79/dts/ar7241_tplink_tl-wr842n-v1.dts +++ b/target/linux/ath79/dts/ar7241_tplink_tl-wr842n-v1.dts @@ -143,10 +143,10 @@ status = "okay"; mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; }; ð1 { mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; diff --git a/target/linux/ath79/dts/ar7242_engenius_eap350-v1.dts b/target/linux/ath79/dts/ar7242_engenius_eap350-v1.dts index 436d8c1289..3e2a67697f 100644 --- a/target/linux/ath79/dts/ar7242_engenius_eap350-v1.dts +++ b/target/linux/ath79/dts/ar7242_engenius_eap350-v1.dts @@ -78,7 +78,7 @@ compatible = "pci168c,002a"; reg = <0x0 0 0 0 0>; mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; qca,no-eeprom; #gpio-cells = <2>; gpio-controller; diff --git a/target/linux/ath79/dts/ar7242_engenius_ecb350-v1.dts b/target/linux/ath79/dts/ar7242_engenius_ecb350-v1.dts index be9a193170..9026eb997f 100644 --- a/target/linux/ath79/dts/ar7242_engenius_ecb350-v1.dts +++ b/target/linux/ath79/dts/ar7242_engenius_ecb350-v1.dts @@ -78,7 +78,7 @@ compatible = "pci168c,002a"; reg = <0x0 0 0 0 0>; mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; qca,no-eeprom; #gpio-cells = <2>; gpio-controller; diff --git a/target/linux/ath79/dts/ar7242_meraki_mr12.dts b/target/linux/ath79/dts/ar7242_meraki_mr12.dts index ea64b947ef..8a19bffe6e 100644 --- a/target/linux/ath79/dts/ar7242_meraki_mr12.dts +++ b/target/linux/ath79/dts/ar7242_meraki_mr12.dts @@ -82,7 +82,7 @@ reg = <0x0000 0 0 0 0>; qca,no-eeprom; mtd-mac-address = <&config 0x66>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; }; diff --git a/target/linux/ath79/dts/ar9331_embeddedwireless_dorin.dts b/target/linux/ath79/dts/ar9331_embeddedwireless_dorin.dts index 48bf4d159f..b14e70c132 100644 --- a/target/linux/ath79/dts/ar9331_embeddedwireless_dorin.dts +++ b/target/linux/ath79/dts/ar9331_embeddedwireless_dorin.dts @@ -94,8 +94,8 @@ status = "okay"; mtd-mac-address = <&art 0x1002>; - mtd-mac-address-increment-byte = <3>; - mtd-mac-address-increment = <0x40>; + mac-address-increment-byte = <3>; + mac-address-increment = <0x40>; }; &mdio1 { diff --git a/target/linux/ath79/dts/ar9331_hak5_lan-turtle.dtsi b/target/linux/ath79/dts/ar9331_hak5_lan-turtle.dtsi index 3f20843b08..261657312b 100644 --- a/target/linux/ath79/dts/ar9331_hak5_lan-turtle.dtsi +++ b/target/linux/ath79/dts/ar9331_hak5_lan-turtle.dtsi @@ -25,7 +25,7 @@ status = "okay"; mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; gmac-config { device = <&gmac>; @@ -39,7 +39,7 @@ status = "okay"; mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; &pinmux { diff --git a/target/linux/ath79/dts/ar9331_tplink_tl-wr710n.dtsi b/target/linux/ath79/dts/ar9331_tplink_tl-wr710n.dtsi index 7d2cbeb95c..9207a0fde0 100644 --- a/target/linux/ath79/dts/ar9331_tplink_tl-wr710n.dtsi +++ b/target/linux/ath79/dts/ar9331_tplink_tl-wr710n.dtsi @@ -61,7 +61,7 @@ status = "okay"; mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; }; &usb { diff --git a/target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi b/target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi index e460e4cd23..248a2b646e 100644 --- a/target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi +++ b/target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi @@ -122,7 +122,7 @@ status = "okay"; mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; gmac-config { device = <&gmac>; @@ -136,7 +136,7 @@ status = "okay"; mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; }; &wmac { diff --git a/target/linux/ath79/dts/ar9341_pcs_cr3000.dts b/target/linux/ath79/dts/ar9341_pcs_cr3000.dts index 1d742a785d..f822c69aee 100644 --- a/target/linux/ath79/dts/ar9341_pcs_cr3000.dts +++ b/target/linux/ath79/dts/ar9341_pcs_cr3000.dts @@ -134,7 +134,7 @@ phy-handle = <&swphy0>; mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; ð1 { diff --git a/target/linux/ath79/dts/ar9341_tplink.dtsi b/target/linux/ath79/dts/ar9341_tplink.dtsi index 26410bcc11..0f6e0bc114 100644 --- a/target/linux/ath79/dts/ar9341_tplink.dtsi +++ b/target/linux/ath79/dts/ar9341_tplink.dtsi @@ -82,7 +82,7 @@ phy-handle = <&swphy0>; mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; }; ð1 { diff --git a/target/linux/ath79/dts/ar9344_aerohive_hiveap-121.dts b/target/linux/ath79/dts/ar9344_aerohive_hiveap-121.dts index fae3eec786..2f87194375 100644 --- a/target/linux/ath79/dts/ar9344_aerohive_hiveap-121.dts +++ b/target/linux/ath79/dts/ar9344_aerohive_hiveap-121.dts @@ -107,7 +107,7 @@ reg = <0x0000 0 0 0 0>; mtd-mac-address = <&hw_info 0x0>; - mtd-mac-address-increment = <2>; + mac-address-increment = <2>; }; }; @@ -161,7 +161,7 @@ status = "okay"; mtd-mac-address = <&hw_info 0x0>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; &nand { diff --git a/target/linux/ath79/dts/ar9344_devolo_dlan_wifi.dtsi b/target/linux/ath79/dts/ar9344_devolo_dlan_wifi.dtsi index 9424e48654..b61ab75ae8 100644 --- a/target/linux/ath79/dts/ar9344_devolo_dlan_wifi.dtsi +++ b/target/linux/ath79/dts/ar9344_devolo_dlan_wifi.dtsi @@ -131,7 +131,7 @@ pll-data = <0x02000000 0x00000101 0x00001616>; mtd-mac-address = <&art 0x1002>; - mtd-mac-address-increment = <2>; + mac-address-increment = <2>; phy-mode = "rgmii"; phy-handle = <&phy0>; diff --git a/target/linux/ath79/dts/ar9344_engenius_eap600.dts b/target/linux/ath79/dts/ar9344_engenius_eap600.dts index c6961f636e..b25e3be17f 100644 --- a/target/linux/ath79/dts/ar9344_engenius_eap600.dts +++ b/target/linux/ath79/dts/ar9344_engenius_eap600.dts @@ -30,7 +30,7 @@ ð0 { mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <(-2)>; + mac-address-increment = <(-2)>; }; &pcie { @@ -41,5 +41,5 @@ &wmac { mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; }; diff --git a/target/linux/ath79/dts/ar9344_engenius_ecb600.dts b/target/linux/ath79/dts/ar9344_engenius_ecb600.dts index 13167adc4d..6c7a99c477 100644 --- a/target/linux/ath79/dts/ar9344_engenius_ecb600.dts +++ b/target/linux/ath79/dts/ar9344_engenius_ecb600.dts @@ -30,11 +30,11 @@ &pcie { wifi@0,0,0 { mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <(-2)>; + mac-address-increment = <(-2)>; }; }; &wmac { mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; }; diff --git a/target/linux/ath79/dts/ar9344_openmesh_mr600.dtsi b/target/linux/ath79/dts/ar9344_openmesh_mr600.dtsi index ff532733b6..6a7af59147 100644 --- a/target/linux/ath79/dts/ar9344_openmesh_mr600.dtsi +++ b/target/linux/ath79/dts/ar9344_openmesh_mr600.dtsi @@ -114,7 +114,7 @@ mtd-cal-data = <&art 0x1000>; mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; &pcie { @@ -125,6 +125,6 @@ reg = <0x0000 0 0 0 0>; qca,no-eeprom; mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <8>; + mac-address-increment = <8>; }; }; diff --git a/target/linux/ath79/dts/ar9344_pcs_cap324.dts b/target/linux/ath79/dts/ar9344_pcs_cap324.dts index 3ce8bb58fc..4125a40269 100644 --- a/target/linux/ath79/dts/ar9344_pcs_cap324.dts +++ b/target/linux/ath79/dts/ar9344_pcs_cap324.dts @@ -119,7 +119,7 @@ compatible = "168c,0030"; reg = <0x0000 0 0 0 0>; mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <(-2)>; + mac-address-increment = <(-2)>; mtd-cal-data = <&art 0x5000>; qca,no-eeprom; qca,disable-5ghz; @@ -134,7 +134,7 @@ qca,disable-2ghz; mtd-cal-data = <&art 0x1000>; mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; }; &mdio0 { diff --git a/target/linux/ath79/dts/ar9344_qxwlan_e750a-v4-16m.dts b/target/linux/ath79/dts/ar9344_qxwlan_e750a-v4-16m.dts index 61389be127..366a0f720a 100644 --- a/target/linux/ath79/dts/ar9344_qxwlan_e750a-v4-16m.dts +++ b/target/linux/ath79/dts/ar9344_qxwlan_e750a-v4-16m.dts @@ -25,7 +25,7 @@ phy-handle = <&swphy4>; mtd-mac-address = <&pridata 0x400>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; ð1 { diff --git a/target/linux/ath79/dts/ar9344_qxwlan_e750a-v4-8m.dts b/target/linux/ath79/dts/ar9344_qxwlan_e750a-v4-8m.dts index e232cdab24..994b842f34 100644 --- a/target/linux/ath79/dts/ar9344_qxwlan_e750a-v4-8m.dts +++ b/target/linux/ath79/dts/ar9344_qxwlan_e750a-v4-8m.dts @@ -25,7 +25,7 @@ phy-handle = <&swphy4>; mtd-mac-address = <&pridata 0x400>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; ð1 { diff --git a/target/linux/ath79/dts/ar9344_samsung_wam250.dts b/target/linux/ath79/dts/ar9344_samsung_wam250.dts index 0f38ff82ee..bca757e77f 100644 --- a/target/linux/ath79/dts/ar9344_samsung_wam250.dts +++ b/target/linux/ath79/dts/ar9344_samsung_wam250.dts @@ -67,7 +67,7 @@ phy-handle = <&swphy0>; mtd-mac-address = <&art 0x1002>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; gmac-config { device = <&gmac>; diff --git a/target/linux/ath79/dts/ar9344_teltonika_rut955-h7v3c0.dts b/target/linux/ath79/dts/ar9344_teltonika_rut955-h7v3c0.dts index eb9606e58b..22c2163fec 100644 --- a/target/linux/ath79/dts/ar9344_teltonika_rut955-h7v3c0.dts +++ b/target/linux/ath79/dts/ar9344_teltonika_rut955-h7v3c0.dts @@ -165,7 +165,7 @@ phy-handle = <&swphy4>; mtd-mac-address = <&config 0x0>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; ð1 { diff --git a/target/linux/ath79/dts/ar9344_teltonika_rut955.dts b/target/linux/ath79/dts/ar9344_teltonika_rut955.dts index ba840a05d3..28dbb74511 100644 --- a/target/linux/ath79/dts/ar9344_teltonika_rut955.dts +++ b/target/linux/ath79/dts/ar9344_teltonika_rut955.dts @@ -164,7 +164,7 @@ phy-handle = <&swphy4>; mtd-mac-address = <&config 0x0>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; ð1 { diff --git a/target/linux/ath79/dts/ar9344_teltonika_rut9xx.dtsi b/target/linux/ath79/dts/ar9344_teltonika_rut9xx.dtsi index d9c66d2745..53fe69ae00 100644 --- a/target/linux/ath79/dts/ar9344_teltonika_rut9xx.dtsi +++ b/target/linux/ath79/dts/ar9344_teltonika_rut9xx.dtsi @@ -148,7 +148,7 @@ mtd-cal-data = <&art 0x1000>; mtd-mac-address = <&config 0x0>; - mtd-mac-address-increment = <2>; + mac-address-increment = <2>; }; &pinmux { diff --git a/target/linux/ath79/dts/ar9344_tplink_tl-wdr3500-v1.dts b/target/linux/ath79/dts/ar9344_tplink_tl-wdr3500-v1.dts index 59a06346ae..e8f9672b58 100644 --- a/target/linux/ath79/dts/ar9344_tplink_tl-wdr3500-v1.dts +++ b/target/linux/ath79/dts/ar9344_tplink_tl-wdr3500-v1.dts @@ -58,7 +58,7 @@ &ath9k { mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; &wmac { @@ -69,7 +69,7 @@ status = "okay"; mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; gmac-config { device = <&gmac>; @@ -84,5 +84,5 @@ phy-handle = <&swphy4>; mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <2>; + mac-address-increment = <2>; }; diff --git a/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi b/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi index 21fd079e1a..f8b4d0385a 100644 --- a/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi +++ b/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi @@ -85,7 +85,7 @@ &wmac { mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; }; &mdio0 { diff --git a/target/linux/ath79/dts/ar9344_winchannel_wb2000.dts b/target/linux/ath79/dts/ar9344_winchannel_wb2000.dts index 72cd5aab49..87bbd206b2 100644 --- a/target/linux/ath79/dts/ar9344_winchannel_wb2000.dts +++ b/target/linux/ath79/dts/ar9344_winchannel_wb2000.dts @@ -142,7 +142,7 @@ reg = <0x0000 0 0 0 0>; qca,no-eeprom; mtd-mac-address = <&addr 0x0>; - mtd-mac-address-increment = <0x10>; + mac-address-increment = <0x10>; #gpio-cells = <2>; gpio-controller; }; @@ -198,7 +198,7 @@ pll-data = <0xe000000 0x04000101 0x04001313>; mtd-mac-address = <&addr 0x0>; - mtd-mac-address-increment = <0x21>; + mac-address-increment = <0x21>; phy-mode = "rgmii-rxid"; phy-handle = <&phy4>; diff --git a/target/linux/ath79/dts/qca9531_alfa-network_n2q.dts b/target/linux/ath79/dts/qca9531_alfa-network_n2q.dts index 40eabd0488..4f0e371c22 100644 --- a/target/linux/ath79/dts/qca9531_alfa-network_n2q.dts +++ b/target/linux/ath79/dts/qca9531_alfa-network_n2q.dts @@ -107,12 +107,12 @@ ð0 { mtd-mac-address = <&art 0x1002>; - mtd-mac-address-increment = <(-2)>; + mac-address-increment = <(-2)>; }; ð1 { mtd-mac-address = <&art 0x1002>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; }; &pcie0 { diff --git a/target/linux/ath79/dts/qca9531_alfa-network_pi-wifi4.dts b/target/linux/ath79/dts/qca9531_alfa-network_pi-wifi4.dts index 42f2c9ffe5..4288e92fcd 100644 --- a/target/linux/ath79/dts/qca9531_alfa-network_pi-wifi4.dts +++ b/target/linux/ath79/dts/qca9531_alfa-network_pi-wifi4.dts @@ -46,7 +46,7 @@ ð0 { mtd-mac-address = <&art 0x1002>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; }; ð1 { diff --git a/target/linux/ath79/dts/qca9531_alfa-network_r36a.dts b/target/linux/ath79/dts/qca9531_alfa-network_r36a.dts index ab65369246..1effb4485b 100644 --- a/target/linux/ath79/dts/qca9531_alfa-network_r36a.dts +++ b/target/linux/ath79/dts/qca9531_alfa-network_r36a.dts @@ -51,7 +51,7 @@ ð0 { mtd-mac-address = <&art 0x1002>; - mtd-mac-address-increment = <(-2)>; + mac-address-increment = <(-2)>; }; ð1 { @@ -60,7 +60,7 @@ compatible = "qca,qca9530-eth", "syscon", "simple-mfd"; mtd-mac-address = <&art 0x1002>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; }; &gpio_export { diff --git a/target/linux/ath79/dts/qca9531_comfast_cf-e560ac.dts b/target/linux/ath79/dts/qca9531_comfast_cf-e560ac.dts index a7ea34eeb0..634d20015d 100644 --- a/target/linux/ath79/dts/qca9531_comfast_cf-e560ac.dts +++ b/target/linux/ath79/dts/qca9531_comfast_cf-e560ac.dts @@ -151,7 +151,7 @@ phy-handle = <&swphy4>; mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; ð1 { @@ -163,5 +163,5 @@ mtd-cal-data = <&art 0x1000>; mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <10>; + mac-address-increment = <10>; }; diff --git a/target/linux/ath79/dts/qca9531_comfast_cf-ew72.dts b/target/linux/ath79/dts/qca9531_comfast_cf-ew72.dts index edb6bbe5f3..f67a8cbb72 100644 --- a/target/linux/ath79/dts/qca9531_comfast_cf-ew72.dts +++ b/target/linux/ath79/dts/qca9531_comfast_cf-ew72.dts @@ -110,7 +110,7 @@ phy-handle = <&swphy4>; mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; ð1 { @@ -122,5 +122,5 @@ mtd-cal-data = <&art 0x1000>; mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <3>; + mac-address-increment = <3>; }; diff --git a/target/linux/ath79/dts/qca9531_comfast_cf-wr752ac-v1.dts b/target/linux/ath79/dts/qca9531_comfast_cf-wr752ac-v1.dts index 6ae2e4eb54..44c85b62e1 100644 --- a/target/linux/ath79/dts/qca9531_comfast_cf-wr752ac-v1.dts +++ b/target/linux/ath79/dts/qca9531_comfast_cf-wr752ac-v1.dts @@ -122,5 +122,5 @@ mtd-cal-data = <&art 0x1000>; mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <10>; + mac-address-increment = <10>; }; diff --git a/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi b/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi index d0b0d88c48..3b20fa51ab 100644 --- a/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi +++ b/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi @@ -151,7 +151,7 @@ ð1 { mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; &wmac { diff --git a/target/linux/ath79/dts/qca9531_glinet_gl-ar750.dts b/target/linux/ath79/dts/qca9531_glinet_gl-ar750.dts index 24dc8aaf6a..80623085f0 100644 --- a/target/linux/ath79/dts/qca9531_glinet_gl-ar750.dts +++ b/target/linux/ath79/dts/qca9531_glinet_gl-ar750.dts @@ -134,7 +134,7 @@ ð1 { mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; &wmac { diff --git a/target/linux/ath79/dts/qca9531_glinet_gl-x750.dts b/target/linux/ath79/dts/qca9531_glinet_gl-x750.dts index c755e00033..8cb611c11d 100644 --- a/target/linux/ath79/dts/qca9531_glinet_gl-x750.dts +++ b/target/linux/ath79/dts/qca9531_glinet_gl-x750.dts @@ -123,7 +123,7 @@ ð1 { mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; &wmac { diff --git a/target/linux/ath79/dts/qca9531_qxwlan_e600g.dtsi b/target/linux/ath79/dts/qca9531_qxwlan_e600g.dtsi index 7c6ed9f4fe..6423ae0272 100644 --- a/target/linux/ath79/dts/qca9531_qxwlan_e600g.dtsi +++ b/target/linux/ath79/dts/qca9531_qxwlan_e600g.dtsi @@ -96,7 +96,7 @@ phy-handle = <&swphy4>; mtd-mac-address = <&pridata 0x400>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; ð1 { diff --git a/target/linux/ath79/dts/qca9531_tplink_archer-d50-v1.dts b/target/linux/ath79/dts/qca9531_tplink_archer-d50-v1.dts index 9a39001935..1113c51be5 100644 --- a/target/linux/ath79/dts/qca9531_tplink_archer-d50-v1.dts +++ b/target/linux/ath79/dts/qca9531_tplink_archer-d50-v1.dts @@ -147,7 +147,7 @@ phy-handle = <&swphy4>; mtd-mac-address = <&romfile 0xf100>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; ð1 { diff --git a/target/linux/ath79/dts/qca9531_tplink_tl-mr3420-v3.dts b/target/linux/ath79/dts/qca9531_tplink_tl-mr3420-v3.dts index 0e2c158260..4c730375a6 100644 --- a/target/linux/ath79/dts/qca9531_tplink_tl-mr3420-v3.dts +++ b/target/linux/ath79/dts/qca9531_tplink_tl-mr3420-v3.dts @@ -172,7 +172,7 @@ phy-handle = <&swphy4>; mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; ð1 { diff --git a/target/linux/ath79/dts/qca9531_tplink_tl-mr6400-v1.dts b/target/linux/ath79/dts/qca9531_tplink_tl-mr6400-v1.dts index 82a73d301d..47d9e0846a 100644 --- a/target/linux/ath79/dts/qca9531_tplink_tl-mr6400-v1.dts +++ b/target/linux/ath79/dts/qca9531_tplink_tl-mr6400-v1.dts @@ -129,12 +129,12 @@ phy-handle = <&swphy0>; mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; ð1 { mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; }; &wmac { diff --git a/target/linux/ath79/dts/qca9531_tplink_tl-wr902ac-v1.dts b/target/linux/ath79/dts/qca9531_tplink_tl-wr902ac-v1.dts index 69445df741..a769a81d58 100644 --- a/target/linux/ath79/dts/qca9531_tplink_tl-wr902ac-v1.dts +++ b/target/linux/ath79/dts/qca9531_tplink_tl-wr902ac-v1.dts @@ -148,7 +148,7 @@ phy-handle = <&swphy4>; mtd-mac-address = <&info 0x8>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; ð1 { diff --git a/target/linux/ath79/dts/qca9533_openmesh_om2p-v4.dtsi b/target/linux/ath79/dts/qca9533_openmesh_om2p-v4.dtsi index 53eb08b253..e38fc9378a 100644 --- a/target/linux/ath79/dts/qca9533_openmesh_om2p-v4.dtsi +++ b/target/linux/ath79/dts/qca9533_openmesh_om2p-v4.dtsi @@ -149,5 +149,5 @@ mtd-cal-data = <&art 0x1000>; mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <2>; + mac-address-increment = <2>; }; diff --git a/target/linux/ath79/dts/qca9533_plasmacloud_pa300.dtsi b/target/linux/ath79/dts/qca9533_plasmacloud_pa300.dtsi index c506c849f9..6df843f143 100644 --- a/target/linux/ath79/dts/qca9533_plasmacloud_pa300.dtsi +++ b/target/linux/ath79/dts/qca9533_plasmacloud_pa300.dtsi @@ -124,7 +124,7 @@ compatible = "qca,qca9530-eth", "syscon", "simple-mfd"; mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; &wmac { @@ -132,5 +132,5 @@ mtd-cal-data = <&art 0x1000>; mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <2>; + mac-address-increment = <2>; }; diff --git a/target/linux/ath79/dts/qca9533_tplink_tl-wr802n.dtsi b/target/linux/ath79/dts/qca9533_tplink_tl-wr802n.dtsi index fb034195ec..1835cbcb96 100644 --- a/target/linux/ath79/dts/qca9533_tplink_tl-wr802n.dtsi +++ b/target/linux/ath79/dts/qca9533_tplink_tl-wr802n.dtsi @@ -74,7 +74,7 @@ phy-handle = <&swphy4>; mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; ð1 { diff --git a/target/linux/ath79/dts/qca9533_tplink_tl-wr841.dtsi b/target/linux/ath79/dts/qca9533_tplink_tl-wr841.dtsi index 4166686795..df68a56d47 100644 --- a/target/linux/ath79/dts/qca9533_tplink_tl-wr841.dtsi +++ b/target/linux/ath79/dts/qca9533_tplink_tl-wr841.dtsi @@ -109,7 +109,7 @@ phy-handle = <&swphy4>; mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; ð1 { diff --git a/target/linux/ath79/dts/qca9533_tplink_tl-wr842n-v3.dts b/target/linux/ath79/dts/qca9533_tplink_tl-wr842n-v3.dts index db99f70b36..cb93afa233 100644 --- a/target/linux/ath79/dts/qca9533_tplink_tl-wr842n-v3.dts +++ b/target/linux/ath79/dts/qca9533_tplink_tl-wr842n-v3.dts @@ -149,7 +149,7 @@ phy-handle = <&swphy4>; mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; ð1 { diff --git a/target/linux/ath79/dts/qca953x_tplink_tl-wr810n.dtsi b/target/linux/ath79/dts/qca953x_tplink_tl-wr810n.dtsi index ab8ac92426..27d9681ead 100644 --- a/target/linux/ath79/dts/qca953x_tplink_tl-wr810n.dtsi +++ b/target/linux/ath79/dts/qca953x_tplink_tl-wr810n.dtsi @@ -91,7 +91,7 @@ phy-handle = <&swphy4>; mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; ð1 { diff --git a/target/linux/ath79/dts/qca9557_engenius_eap1200h.dts b/target/linux/ath79/dts/qca9557_engenius_eap1200h.dts index 80298a9d82..0b006bcffb 100644 --- a/target/linux/ath79/dts/qca9557_engenius_eap1200h.dts +++ b/target/linux/ath79/dts/qca9557_engenius_eap1200h.dts @@ -90,5 +90,5 @@ mtd-cal-data = <&art 0x1000>; mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; diff --git a/target/linux/ath79/dts/qca9557_engenius_enstationac-v1.dts b/target/linux/ath79/dts/qca9557_engenius_enstationac-v1.dts index 5da50ff6d9..9a45bd4277 100644 --- a/target/linux/ath79/dts/qca9557_engenius_enstationac-v1.dts +++ b/target/linux/ath79/dts/qca9557_engenius_enstationac-v1.dts @@ -100,7 +100,7 @@ status = "okay"; mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; phy-handle = <&phy2>; diff --git a/target/linux/ath79/dts/qca9558_allnet_all-wap02860ac.dts b/target/linux/ath79/dts/qca9558_allnet_all-wap02860ac.dts index 973cb16efb..3b9e25e3e8 100644 --- a/target/linux/ath79/dts/qca9558_allnet_all-wap02860ac.dts +++ b/target/linux/ath79/dts/qca9558_allnet_all-wap02860ac.dts @@ -90,5 +90,6 @@ mtd-cal-data = <&art 0x1000>; mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; + qca-no-eeprom; }; diff --git a/target/linux/ath79/dts/qca9558_belkin_f9x-v2.dtsi b/target/linux/ath79/dts/qca9558_belkin_f9x-v2.dtsi index e4bb6c25e5..81c2c0866f 100644 --- a/target/linux/ath79/dts/qca9558_belkin_f9x-v2.dtsi +++ b/target/linux/ath79/dts/qca9558_belkin_f9x-v2.dtsi @@ -199,7 +199,7 @@ status = "okay"; mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; pll-data = <0x03000101 0x00000101 0x00001616>; fixed-link { diff --git a/target/linux/ath79/dts/qca9558_devolo_dvl1200e.dts b/target/linux/ath79/dts/qca9558_devolo_dvl1200e.dts index 9e38a9f392..85617cc809 100644 --- a/target/linux/ath79/dts/qca9558_devolo_dvl1200e.dts +++ b/target/linux/ath79/dts/qca9558_devolo_dvl1200e.dts @@ -59,7 +59,7 @@ status = "okay"; mtd-mac-address = <&art 0x00>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; phy-handle = <&phy1>; pll-data = <0x03000101 0x00000101 0x00001313>; diff --git a/target/linux/ath79/dts/qca9558_devolo_dvl1750e.dts b/target/linux/ath79/dts/qca9558_devolo_dvl1750e.dts index 0a1c9cb6dd..895398e358 100644 --- a/target/linux/ath79/dts/qca9558_devolo_dvl1750e.dts +++ b/target/linux/ath79/dts/qca9558_devolo_dvl1750e.dts @@ -94,7 +94,7 @@ status = "okay"; mtd-mac-address = <&art 0x00>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; phy-handle = <&phy1>; pll-data = <0x03000101 0x00000101 0x00001313>; diff --git a/target/linux/ath79/dts/qca9558_devolo_dvl1xxx.dtsi b/target/linux/ath79/dts/qca9558_devolo_dvl1xxx.dtsi index 7ae33c3e04..ba7f014e6a 100644 --- a/target/linux/ath79/dts/qca9558_devolo_dvl1xxx.dtsi +++ b/target/linux/ath79/dts/qca9558_devolo_dvl1xxx.dtsi @@ -114,5 +114,5 @@ mtd-cal-data = <&art 0x1000>; mtd-mac-address = <&art 0x00>; - mtd-mac-address-increment = <(-2)>; + mac-address-increment = <(-2)>; }; diff --git a/target/linux/ath79/dts/qca9558_openmesh_mr.dtsi b/target/linux/ath79/dts/qca9558_openmesh_mr.dtsi index f4eed22460..fa379030e7 100644 --- a/target/linux/ath79/dts/qca9558_openmesh_mr.dtsi +++ b/target/linux/ath79/dts/qca9558_openmesh_mr.dtsi @@ -157,7 +157,7 @@ mtd-cal-data = <&art 0x1000>; mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; &pcie0 { diff --git a/target/linux/ath79/dts/qca9558_openmesh_mr900-v1.dts b/target/linux/ath79/dts/qca9558_openmesh_mr900-v1.dts index f7889b00cc..6704fbbe81 100644 --- a/target/linux/ath79/dts/qca9558_openmesh_mr900-v1.dts +++ b/target/linux/ath79/dts/qca9558_openmesh_mr900-v1.dts @@ -20,6 +20,6 @@ compatible = "pci168c,0033"; reg = <0x0000 0 0 0 0>; mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <16>; + mac-address-increment = <16>; }; }; diff --git a/target/linux/ath79/dts/qca9558_openmesh_mr900-v2.dts b/target/linux/ath79/dts/qca9558_openmesh_mr900-v2.dts index 1f54d2134a..7221b5b098 100644 --- a/target/linux/ath79/dts/qca9558_openmesh_mr900-v2.dts +++ b/target/linux/ath79/dts/qca9558_openmesh_mr900-v2.dts @@ -20,6 +20,6 @@ compatible = "pci168c,0033"; reg = <0x0000 0 0 0 0>; mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <16>; + mac-address-increment = <16>; }; }; diff --git a/target/linux/ath79/dts/qca9558_qxwlan_e558.dtsi b/target/linux/ath79/dts/qca9558_qxwlan_e558.dtsi index 21946c42b2..e1c44af3f7 100644 --- a/target/linux/ath79/dts/qca9558_qxwlan_e558.dtsi +++ b/target/linux/ath79/dts/qca9558_qxwlan_e558.dtsi @@ -128,7 +128,7 @@ phy-handle = <&phy0>; mtd-mac-address = <&pridata 0x400>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; ð1 { diff --git a/target/linux/ath79/dts/qca9558_tplink_archer-c.dtsi b/target/linux/ath79/dts/qca9558_tplink_archer-c.dtsi index 52cbb5d016..3f965f5b95 100644 --- a/target/linux/ath79/dts/qca9558_tplink_archer-c.dtsi +++ b/target/linux/ath79/dts/qca9558_tplink_archer-c.dtsi @@ -150,7 +150,7 @@ status = "okay"; mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; phy-handle = <&phy0>; pll-data = <0x56000000 0x00000101 0x00001616>; diff --git a/target/linux/ath79/dts/qca9558_tplink_archer-d7-v1.dts b/target/linux/ath79/dts/qca9558_tplink_archer-d7-v1.dts index fd1717b668..90332f1874 100644 --- a/target/linux/ath79/dts/qca9558_tplink_archer-d7-v1.dts +++ b/target/linux/ath79/dts/qca9558_tplink_archer-d7-v1.dts @@ -71,7 +71,7 @@ ð0 { mtd-mac-address = <&romfs 0xf100>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; ð1 { diff --git a/target/linux/ath79/dts/qca9558_tplink_archer-d7b-v1.dts b/target/linux/ath79/dts/qca9558_tplink_archer-d7b-v1.dts index d2ef7e82a7..754cb17918 100644 --- a/target/linux/ath79/dts/qca9558_tplink_archer-d7b-v1.dts +++ b/target/linux/ath79/dts/qca9558_tplink_archer-d7b-v1.dts @@ -65,7 +65,7 @@ ð0 { mtd-mac-address = <&romfs 0xf100>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; ð1 { diff --git a/target/linux/ath79/dts/qca9558_tplink_rex5x.dtsi b/target/linux/ath79/dts/qca9558_tplink_rex5x.dtsi index 6c487f15be..b12b547a7f 100644 --- a/target/linux/ath79/dts/qca9558_tplink_rex5x.dtsi +++ b/target/linux/ath79/dts/qca9558_tplink_rex5x.dtsi @@ -166,5 +166,5 @@ mtd-cal-data = <&art 0x1000>; mtd-mac-address = <&info 0x8>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; }; diff --git a/target/linux/ath79/dts/qca9558_tplink_tl-wdr4900-v2.dts b/target/linux/ath79/dts/qca9558_tplink_tl-wdr4900-v2.dts index 0099592dc1..10d6e6040b 100644 --- a/target/linux/ath79/dts/qca9558_tplink_tl-wdr4900-v2.dts +++ b/target/linux/ath79/dts/qca9558_tplink_tl-wdr4900-v2.dts @@ -97,7 +97,7 @@ compatible = "pci168c,0033"; reg = <0x0000 0 0 0 0>; mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <(-2)>; + mac-address-increment = <(-2)>; qca,no-eeprom; #gpio-cells = <2>; gpio-controller; @@ -191,7 +191,7 @@ status = "okay"; mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; phy-handle = <&phy0>; pll-data = <0x56000000 0x00000101 0x00001616>; @@ -218,5 +218,5 @@ mtd-cal-data = <&art 0x1000>; mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; }; diff --git a/target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi b/target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi index 959d5c35fb..8f2b626bad 100644 --- a/target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi +++ b/target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi @@ -146,7 +146,7 @@ pll-data = <0x56000000 0x00000101 0x00001616>; mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; phy-handle = <&phy0>; }; diff --git a/target/linux/ath79/dts/qca9561_tplink_archer-c25-v1.dts b/target/linux/ath79/dts/qca9561_tplink_archer-c25-v1.dts index bf744f1087..66a578305d 100644 --- a/target/linux/ath79/dts/qca9561_tplink_archer-c25-v1.dts +++ b/target/linux/ath79/dts/qca9561_tplink_archer-c25-v1.dts @@ -179,7 +179,7 @@ status = "okay"; mtd-mac-address = <&info 0x8>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; &wmac { diff --git a/target/linux/ath79/dts/qca9561_tplink_archer-c5x.dtsi b/target/linux/ath79/dts/qca9561_tplink_archer-c5x.dtsi index 664032936c..673805e132 100644 --- a/target/linux/ath79/dts/qca9561_tplink_archer-c5x.dtsi +++ b/target/linux/ath79/dts/qca9561_tplink_archer-c5x.dtsi @@ -127,7 +127,7 @@ phy-handle = <&swphy0>; mtd-mac-address = <&info 0x8>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; gmac-config { device = <&gmac>; diff --git a/target/linux/ath79/dts/qca9561_tplink_archer-c6x.dtsi b/target/linux/ath79/dts/qca9561_tplink_archer-c6x.dtsi index 75d3816b72..5c5d1620b9 100644 --- a/target/linux/ath79/dts/qca9561_tplink_archer-c6x.dtsi +++ b/target/linux/ath79/dts/qca9561_tplink_archer-c6x.dtsi @@ -73,7 +73,7 @@ phy-handle = <&swphy4>; mtd-mac-address = <&info 0x8>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; ð1 { diff --git a/target/linux/ath79/dts/qca9561_xiaomi_mi-router-4q.dts b/target/linux/ath79/dts/qca9561_xiaomi_mi-router-4q.dts index 821f125c20..6693a5cd73 100644 --- a/target/linux/ath79/dts/qca9561_xiaomi_mi-router-4q.dts +++ b/target/linux/ath79/dts/qca9561_xiaomi_mi-router-4q.dts @@ -134,5 +134,5 @@ mtd-cal-data = <&art 0x1000>; mtd-mac-address = <&art 0x0>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; diff --git a/target/linux/ath79/dts/qca9563_elecom_wrc-ghbk2-i.dtsi b/target/linux/ath79/dts/qca9563_elecom_wrc-ghbk2-i.dtsi index 78eb0fe219..044485316c 100644 --- a/target/linux/ath79/dts/qca9563_elecom_wrc-ghbk2-i.dtsi +++ b/target/linux/ath79/dts/qca9563_elecom_wrc-ghbk2-i.dtsi @@ -106,7 +106,7 @@ pll-data = <0x03000101 0x00000101 0x00001919>; mtd-mac-address = <&art 0x1002>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; phy-mode = "sgmii"; phy-handle = <&phy0>; }; diff --git a/target/linux/ath79/dts/tp9343_tplink_tl-wr940n-v3.dtsi b/target/linux/ath79/dts/tp9343_tplink_tl-wr940n-v3.dtsi index 5c897b16a0..c1c553e8c8 100644 --- a/target/linux/ath79/dts/tp9343_tplink_tl-wr940n-v3.dtsi +++ b/target/linux/ath79/dts/tp9343_tplink_tl-wr940n-v3.dtsi @@ -64,5 +64,5 @@ ð1 { mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; }; diff --git a/target/linux/ath79/dts/tp9343_tplink_tl-wx.dtsi b/target/linux/ath79/dts/tp9343_tplink_tl-wx.dtsi index 31079123c5..14e10596b5 100644 --- a/target/linux/ath79/dts/tp9343_tplink_tl-wx.dtsi +++ b/target/linux/ath79/dts/tp9343_tplink_tl-wx.dtsi @@ -51,7 +51,7 @@ phy-handle = <&swphy4>; mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; ð1 { diff --git a/target/linux/generic/pending-5.10/681-NET-add-mtd-mac-address-support-to-of_get_mac_addres.patch b/target/linux/generic/pending-5.10/681-NET-add-mtd-mac-address-support-to-of_get_mac_addres.patch new file mode 100644 index 0000000000..44a6b6a047 --- /dev/null +++ b/target/linux/generic/pending-5.10/681-NET-add-mtd-mac-address-support-to-of_get_mac_addres.patch @@ -0,0 +1,134 @@ +From 6f8e5369ae054ec6c9265581d5a7e39738a5cd84 Mon Sep 17 00:00:00 2001 +From: Ansuel Smith +Date: Tue, 30 Mar 2021 13:16:38 +0200 +Subject: [PATCH 1/2] NET: add mtd-mac-address support to of_get_mac_address() + +Many embedded devices have information such as mac addresses stored inside mtd +devices. This patch allows us to add a property inside a node describing a +network interface. The new property points at a mtd partition with an offset +where the mac address can be found. + +Signed-off-by: John Crispin +Signed-off-by: Felix Fietkau +Signed-off-by: Ansuel Smith +--- + drivers/of/of_net.c | 75 ++++++++++++++++++++++++++++++++++++++++++++- + 1 file changed, 74 insertions(+), 1 deletion(-) + +diff --git a/drivers/of/of_net.c b/drivers/of/of_net.c +index 6e411821583e..f072e2509cc9 100644 +--- a/drivers/of/of_net.c ++++ b/drivers/of/of_net.c +@@ -11,6 +11,7 @@ + #include + #include + #include ++#include + + /** + * of_get_phy_mode - Get phy mode for given device_node +@@ -45,7 +46,7 @@ int of_get_phy_mode(struct device_node *np, phy_interface_t *interface) + } + EXPORT_SYMBOL_GPL(of_get_phy_mode); + +-static const void *of_get_mac_addr(struct device_node *np, const char *name) ++static void *of_get_mac_addr(struct device_node *np, const char *name) + { + struct property *pp = of_find_property(np, name, NULL); + +@@ -78,6 +79,70 @@ static const void *of_get_mac_addr_nvmem(struct device_node *np) + return mac; + } + ++static const void *of_get_mac_address_mtd(struct device_node *np) ++{ ++#ifdef CONFIG_MTD ++ struct device_node *mtd_np = NULL; ++ struct property *prop; ++ size_t retlen; ++ int size, ret; ++ struct mtd_info *mtd; ++ const char *part; ++ const __be32 *list; ++ phandle phandle; ++ u8 mac[ETH_ALEN]; ++ void *addr; ++ ++ list = of_get_property(np, "mtd-mac-address", &size); ++ if (!list || (size != (2 * sizeof(*list)))) ++ return NULL; ++ ++ phandle = be32_to_cpup(list++); ++ if (phandle) ++ mtd_np = of_find_node_by_phandle(phandle); ++ ++ if (!mtd_np) ++ return NULL; ++ ++ part = of_get_property(mtd_np, "label", NULL); ++ if (!part) ++ part = mtd_np->name; ++ ++ mtd = get_mtd_device_nm(part); ++ if (IS_ERR(mtd)) ++ return NULL; ++ ++ ret = mtd_read(mtd, be32_to_cpup(list), 6, &retlen, mac); ++ put_mtd_device(mtd); ++ ++ if (!is_valid_ether_addr(mac)) ++ return NULL; ++ ++ addr = of_get_mac_addr(np, "mac-address"); ++ if (addr) { ++ memcpy(addr, mac, ETH_ALEN); ++ return addr; ++ } ++ ++ prop = kzalloc(sizeof(*prop), GFP_KERNEL); ++ if (!prop) ++ return NULL; ++ ++ prop->name = "mac-address"; ++ prop->length = ETH_ALEN; ++ prop->value = kmemdup(mac, ETH_ALEN, GFP_KERNEL); ++ if (!prop->value || of_add_property(np, prop)) ++ goto free; ++ ++ return prop->value; ++free: ++ kfree(prop->value); ++ kfree(prop); ++#endif ++ return NULL; ++} ++ ++ + /** + * Search the device tree for the best MAC address to use. 'mac-address' is + * checked first, because that is supposed to contain to "most recent" MAC +@@ -98,6 +163,10 @@ static const void *of_get_mac_addr_nvmem(struct device_node *np) + * this case, the real MAC is in 'local-mac-address', and 'mac-address' exists + * but is all zeros. + * ++ * ++ * If a mtd-mac-address property exists, try to fetch the MAC address from the ++ * specified mtd device, and store it as a 'mac-address' property ++ * + * Return: Will be a valid pointer on success and ERR_PTR in case of error. + */ + const void *of_get_mac_address(struct device_node *np) +@@ -116,6 +185,10 @@ const void *of_get_mac_address(struct device_node *np) + if (addr) + return addr; + ++ addr = of_get_mac_address_mtd(np); ++ if (addr) ++ return addr; ++ + return of_get_mac_addr_nvmem(np); + } + EXPORT_SYMBOL(of_get_mac_address); +-- +2.30.2 + diff --git a/target/linux/generic/pending-5.10/681-NET-add-of_get_mac_address_mtd.patch b/target/linux/generic/pending-5.10/681-NET-add-of_get_mac_address_mtd.patch deleted file mode 100644 index 71fbfe9978..0000000000 --- a/target/linux/generic/pending-5.10/681-NET-add-of_get_mac_address_mtd.patch +++ /dev/null @@ -1,135 +0,0 @@ -From: John Crispin -Subject: NET: add mtd-mac-address support to of_get_mac_address() - -Many embedded devices have information such as mac addresses stored inside mtd -devices. This patch allows us to add a property inside a node describing a -network interface. The new property points at a mtd partition with an offset -where the mac address can be found. - -Signed-off-by: John Crispin -Signed-off-by: Felix Fietkau ---- - drivers/of/of_net.c | 37 +++++++++++++++++++++++++++++++++++++ - include/linux/of_net.h | 1 + - 2 files changed, 38 insertions(+) - ---- a/drivers/of/of_net.c -+++ b/drivers/of/of_net.c -@@ -11,6 +11,7 @@ - #include - #include - #include -+#include - - /** - * of_get_phy_mode - Get phy mode for given device_node -@@ -45,7 +46,7 @@ int of_get_phy_mode(struct device_node * - } - EXPORT_SYMBOL_GPL(of_get_phy_mode); - --static const void *of_get_mac_addr(struct device_node *np, const char *name) -+static void *of_get_mac_addr(struct device_node *np, const char *name) - { - struct property *pp = of_find_property(np, name, NULL); - -@@ -78,6 +79,79 @@ static const void *of_get_mac_addr_nvmem - return mac; - } - -+static const void *of_get_mac_address_mtd(struct device_node *np) -+{ -+#ifdef CONFIG_MTD -+ struct device_node *mtd_np = NULL; -+ struct property *prop; -+ size_t retlen; -+ int size, ret; -+ struct mtd_info *mtd; -+ const char *part; -+ const __be32 *list; -+ phandle phandle; -+ u32 mac_inc = 0; -+ u8 mac[ETH_ALEN]; -+ void *addr; -+ u32 inc_idx; -+ -+ list = of_get_property(np, "mtd-mac-address", &size); -+ if (!list || (size != (2 * sizeof(*list)))) -+ return NULL; -+ -+ phandle = be32_to_cpup(list++); -+ if (phandle) -+ mtd_np = of_find_node_by_phandle(phandle); -+ -+ if (!mtd_np) -+ return NULL; -+ -+ part = of_get_property(mtd_np, "label", NULL); -+ if (!part) -+ part = mtd_np->name; -+ -+ mtd = get_mtd_device_nm(part); -+ if (IS_ERR(mtd)) -+ return NULL; -+ -+ ret = mtd_read(mtd, be32_to_cpup(list), 6, &retlen, mac); -+ put_mtd_device(mtd); -+ -+ if (of_property_read_u32(np, "mtd-mac-address-increment-byte", &inc_idx)) -+ inc_idx = 5; -+ if (inc_idx > 5) -+ return NULL; -+ -+ if (!of_property_read_u32(np, "mtd-mac-address-increment", &mac_inc)) -+ mac[inc_idx] += mac_inc; -+ -+ if (!is_valid_ether_addr(mac)) -+ return NULL; -+ -+ addr = of_get_mac_addr(np, "mac-address"); -+ if (addr) { -+ memcpy(addr, mac, ETH_ALEN); -+ return addr; -+ } -+ -+ prop = kzalloc(sizeof(*prop), GFP_KERNEL); -+ if (!prop) -+ return NULL; -+ -+ prop->name = "mac-address"; -+ prop->length = ETH_ALEN; -+ prop->value = kmemdup(mac, ETH_ALEN, GFP_KERNEL); -+ if (!prop->value || of_add_property(np, prop)) -+ goto free; -+ -+ return prop->value; -+free: -+ kfree(prop->value); -+ kfree(prop); -+#endif -+ return NULL; -+} -+ - /** - * Search the device tree for the best MAC address to use. 'mac-address' is - * checked first, because that is supposed to contain to "most recent" MAC -@@ -98,12 +172,20 @@ static const void *of_get_mac_addr_nvmem - * this case, the real MAC is in 'local-mac-address', and 'mac-address' exists - * but is all zeros. - * -+ * -+ * If a mtd-mac-address property exists, try to fetch the MAC address from the -+ * specified mtd device, and store it as a 'mac-address' property -+ * - * Return: Will be a valid pointer on success and ERR_PTR in case of error. - */ - const void *of_get_mac_address(struct device_node *np) - { - const void *addr; - -+ addr = of_get_mac_address_mtd(np); -+ if (addr) -+ return addr; -+ - addr = of_get_mac_addr(np, "mac-address"); - if (addr) - return addr; diff --git a/target/linux/generic/pending-5.10/682-of_net-add-mac-address-increment-support.patch b/target/linux/generic/pending-5.10/682-of_net-add-mac-address-increment-support.patch new file mode 100644 index 0000000000..1c08e23699 --- /dev/null +++ b/target/linux/generic/pending-5.10/682-of_net-add-mac-address-increment-support.patch @@ -0,0 +1,133 @@ +From 639dba857aa554f2a78572adc4cf3c32de9ec2e2 Mon Sep 17 00:00:00 2001 +From: Ansuel Smith +Date: Tue, 30 Mar 2021 18:21:14 +0200 +Subject: [PATCH 2/2] of_net: add mac-address-increment support + +Lots of embedded devices use the mac-address of other interface +extracted from nvmem cells and increments it by one or two. Add two +bindings to integrate this and directly use the right mac-address for +the interface. Some example are some routers that use the gmac +mac-address stored in the art partition and increments it by one for the +wifi. mac-address-increment-byte bindings is used to tell what byte of +the mac-address has to be increased (if not defined the last byte is +increased) and mac-address-increment tells how much the byte decided +early has to be increased. + +Signed-off-by: Ansuel Smith +--- + drivers/of/of_net.c | 59 ++++++++++++++++++++++++++++++++++----------- + 1 file changed, 45 insertions(+), 14 deletions(-) + +diff --git a/drivers/of/of_net.c b/drivers/of/of_net.c +index f072e2509cc9..0dbd1f7ef396 100644 +--- a/drivers/of/of_net.c ++++ b/drivers/of/of_net.c +@@ -55,31 +55,36 @@ static void *of_get_mac_addr(struct device_node *np, const char *name) + return NULL; + } + +-static const void *of_get_mac_addr_nvmem(struct device_node *np) ++static void *of_get_mac_addr_nvmem(struct device_node *np, int *err) + { + int ret; +- const void *mac; ++ void *mac; + u8 nvmem_mac[ETH_ALEN]; + struct platform_device *pdev = of_find_device_by_node(np); + +- if (!pdev) +- return ERR_PTR(-ENODEV); ++ if (!pdev) { ++ *err = -ENODEV; ++ return NULL; ++ } + + ret = nvmem_get_mac_address(&pdev->dev, &nvmem_mac); + if (ret) { + put_device(&pdev->dev); +- return ERR_PTR(ret); ++ *err = ret; ++ return NULL; + } + + mac = devm_kmemdup(&pdev->dev, nvmem_mac, ETH_ALEN, GFP_KERNEL); + put_device(&pdev->dev); +- if (!mac) +- return ERR_PTR(-ENOMEM); ++ if (!mac) { ++ *err = -ENOMEM; ++ return NULL; ++ } + + return mac; + } + +-static const void *of_get_mac_address_mtd(struct device_node *np) ++static void *of_get_mac_address_mtd(struct device_node *np) + { + #ifdef CONFIG_MTD + struct device_node *mtd_np = NULL; +@@ -167,28 +172,54 @@ static const void *of_get_mac_address_mtd(struct device_node *np) + * If a mtd-mac-address property exists, try to fetch the MAC address from the + * specified mtd device, and store it as a 'mac-address' property + * ++ * DT can tell the system to increment the mac-address after is extracted by ++ * using: ++ * - mac-address-increment-byte to decide what byte to increase ++ * (if not defined is increased the last byte) ++ * - mac-address-increment to decide how much to increase. The value will ++ * not overflow to other bytes if the increment is over 255. ++ * (example 00:01:02:03:04:ff + 1 == 00:01:02:03:04:00) ++ * + * Return: Will be a valid pointer on success and ERR_PTR in case of error. + */ + const void *of_get_mac_address(struct device_node *np) + { +- const void *addr; ++ u32 inc_idx, mac_inc; ++ int ret = 0; ++ u8 *addr; ++ ++ /* Check first if the increment byte is present and valid. ++ * If not set assume to increment the last byte if found. ++ */ ++ if (of_property_read_u32(np, "mac-address-increment-byte", &inc_idx)) ++ inc_idx = 5; ++ if (inc_idx < 3 || inc_idx > 5) ++ return ERR_PTR(-EINVAL); + + addr = of_get_mac_addr(np, "mac-address"); + if (addr) +- return addr; ++ goto found; + + addr = of_get_mac_addr(np, "local-mac-address"); + if (addr) +- return addr; ++ goto found; + + addr = of_get_mac_addr(np, "address"); + if (addr) +- return addr; ++ goto found; + + addr = of_get_mac_address_mtd(np); + if (addr) +- return addr; ++ goto found; ++ ++ addr = of_get_mac_addr_nvmem(np, &ret); ++ if (ret) ++ return ERR_PTR(ret); ++ ++found: ++ if (!of_property_read_u32(np, "mac-address-increment", &mac_inc)) ++ addr[inc_idx] += mac_inc; + +- return of_get_mac_addr_nvmem(np); ++ return addr; + } + EXPORT_SYMBOL(of_get_mac_address); +-- +2.30.2 + diff --git a/target/linux/generic/pending-5.4/681-NET-add-mtd-mac-address-support-to-of_get_mac_addres.patch b/target/linux/generic/pending-5.4/681-NET-add-mtd-mac-address-support-to-of_get_mac_addres.patch new file mode 100644 index 0000000000..44a6b6a047 --- /dev/null +++ b/target/linux/generic/pending-5.4/681-NET-add-mtd-mac-address-support-to-of_get_mac_addres.patch @@ -0,0 +1,134 @@ +From 6f8e5369ae054ec6c9265581d5a7e39738a5cd84 Mon Sep 17 00:00:00 2001 +From: Ansuel Smith +Date: Tue, 30 Mar 2021 13:16:38 +0200 +Subject: [PATCH 1/2] NET: add mtd-mac-address support to of_get_mac_address() + +Many embedded devices have information such as mac addresses stored inside mtd +devices. This patch allows us to add a property inside a node describing a +network interface. The new property points at a mtd partition with an offset +where the mac address can be found. + +Signed-off-by: John Crispin +Signed-off-by: Felix Fietkau +Signed-off-by: Ansuel Smith +--- + drivers/of/of_net.c | 75 ++++++++++++++++++++++++++++++++++++++++++++- + 1 file changed, 74 insertions(+), 1 deletion(-) + +diff --git a/drivers/of/of_net.c b/drivers/of/of_net.c +index 6e411821583e..f072e2509cc9 100644 +--- a/drivers/of/of_net.c ++++ b/drivers/of/of_net.c +@@ -11,6 +11,7 @@ + #include + #include + #include ++#include + + /** + * of_get_phy_mode - Get phy mode for given device_node +@@ -45,7 +46,7 @@ int of_get_phy_mode(struct device_node *np, phy_interface_t *interface) + } + EXPORT_SYMBOL_GPL(of_get_phy_mode); + +-static const void *of_get_mac_addr(struct device_node *np, const char *name) ++static void *of_get_mac_addr(struct device_node *np, const char *name) + { + struct property *pp = of_find_property(np, name, NULL); + +@@ -78,6 +79,70 @@ static const void *of_get_mac_addr_nvmem(struct device_node *np) + return mac; + } + ++static const void *of_get_mac_address_mtd(struct device_node *np) ++{ ++#ifdef CONFIG_MTD ++ struct device_node *mtd_np = NULL; ++ struct property *prop; ++ size_t retlen; ++ int size, ret; ++ struct mtd_info *mtd; ++ const char *part; ++ const __be32 *list; ++ phandle phandle; ++ u8 mac[ETH_ALEN]; ++ void *addr; ++ ++ list = of_get_property(np, "mtd-mac-address", &size); ++ if (!list || (size != (2 * sizeof(*list)))) ++ return NULL; ++ ++ phandle = be32_to_cpup(list++); ++ if (phandle) ++ mtd_np = of_find_node_by_phandle(phandle); ++ ++ if (!mtd_np) ++ return NULL; ++ ++ part = of_get_property(mtd_np, "label", NULL); ++ if (!part) ++ part = mtd_np->name; ++ ++ mtd = get_mtd_device_nm(part); ++ if (IS_ERR(mtd)) ++ return NULL; ++ ++ ret = mtd_read(mtd, be32_to_cpup(list), 6, &retlen, mac); ++ put_mtd_device(mtd); ++ ++ if (!is_valid_ether_addr(mac)) ++ return NULL; ++ ++ addr = of_get_mac_addr(np, "mac-address"); ++ if (addr) { ++ memcpy(addr, mac, ETH_ALEN); ++ return addr; ++ } ++ ++ prop = kzalloc(sizeof(*prop), GFP_KERNEL); ++ if (!prop) ++ return NULL; ++ ++ prop->name = "mac-address"; ++ prop->length = ETH_ALEN; ++ prop->value = kmemdup(mac, ETH_ALEN, GFP_KERNEL); ++ if (!prop->value || of_add_property(np, prop)) ++ goto free; ++ ++ return prop->value; ++free: ++ kfree(prop->value); ++ kfree(prop); ++#endif ++ return NULL; ++} ++ ++ + /** + * Search the device tree for the best MAC address to use. 'mac-address' is + * checked first, because that is supposed to contain to "most recent" MAC +@@ -98,6 +163,10 @@ static const void *of_get_mac_addr_nvmem(struct device_node *np) + * this case, the real MAC is in 'local-mac-address', and 'mac-address' exists + * but is all zeros. + * ++ * ++ * If a mtd-mac-address property exists, try to fetch the MAC address from the ++ * specified mtd device, and store it as a 'mac-address' property ++ * + * Return: Will be a valid pointer on success and ERR_PTR in case of error. + */ + const void *of_get_mac_address(struct device_node *np) +@@ -116,6 +185,10 @@ const void *of_get_mac_address(struct device_node *np) + if (addr) + return addr; + ++ addr = of_get_mac_address_mtd(np); ++ if (addr) ++ return addr; ++ + return of_get_mac_addr_nvmem(np); + } + EXPORT_SYMBOL(of_get_mac_address); +-- +2.30.2 + diff --git a/target/linux/generic/pending-5.4/681-NET-add-of_get_mac_address_mtd.patch b/target/linux/generic/pending-5.4/681-NET-add-of_get_mac_address_mtd.patch deleted file mode 100644 index b02febefd8..0000000000 --- a/target/linux/generic/pending-5.4/681-NET-add-of_get_mac_address_mtd.patch +++ /dev/null @@ -1,135 +0,0 @@ -From: John Crispin -Subject: NET: add mtd-mac-address support to of_get_mac_address() - -Many embedded devices have information such as mac addresses stored inside mtd -devices. This patch allows us to add a property inside a node describing a -network interface. The new property points at a mtd partition with an offset -where the mac address can be found. - -Signed-off-by: John Crispin -Signed-off-by: Felix Fietkau ---- - drivers/of/of_net.c | 37 +++++++++++++++++++++++++++++++++++++ - include/linux/of_net.h | 1 + - 2 files changed, 38 insertions(+) - ---- a/drivers/of/of_net.c -+++ b/drivers/of/of_net.c -@@ -11,6 +11,7 @@ - #include - #include - #include -+#include - - /** - * of_get_phy_mode - Get phy mode for given device_node -@@ -39,7 +40,7 @@ int of_get_phy_mode(struct device_node * - } - EXPORT_SYMBOL_GPL(of_get_phy_mode); - --static const void *of_get_mac_addr(struct device_node *np, const char *name) -+static void *of_get_mac_addr(struct device_node *np, const char *name) - { - struct property *pp = of_find_property(np, name, NULL); - -@@ -72,6 +73,79 @@ static const void *of_get_mac_addr_nvmem - return mac; - } - -+static const void *of_get_mac_address_mtd(struct device_node *np) -+{ -+#ifdef CONFIG_MTD -+ struct device_node *mtd_np = NULL; -+ struct property *prop; -+ size_t retlen; -+ int size, ret; -+ struct mtd_info *mtd; -+ const char *part; -+ const __be32 *list; -+ phandle phandle; -+ u32 mac_inc = 0; -+ u8 mac[ETH_ALEN]; -+ void *addr; -+ u32 inc_idx; -+ -+ list = of_get_property(np, "mtd-mac-address", &size); -+ if (!list || (size != (2 * sizeof(*list)))) -+ return NULL; -+ -+ phandle = be32_to_cpup(list++); -+ if (phandle) -+ mtd_np = of_find_node_by_phandle(phandle); -+ -+ if (!mtd_np) -+ return NULL; -+ -+ part = of_get_property(mtd_np, "label", NULL); -+ if (!part) -+ part = mtd_np->name; -+ -+ mtd = get_mtd_device_nm(part); -+ if (IS_ERR(mtd)) -+ return NULL; -+ -+ ret = mtd_read(mtd, be32_to_cpup(list), 6, &retlen, mac); -+ put_mtd_device(mtd); -+ -+ if (of_property_read_u32(np, "mtd-mac-address-increment-byte", &inc_idx)) -+ inc_idx = 5; -+ if (inc_idx > 5) -+ return NULL; -+ -+ if (!of_property_read_u32(np, "mtd-mac-address-increment", &mac_inc)) -+ mac[inc_idx] += mac_inc; -+ -+ if (!is_valid_ether_addr(mac)) -+ return NULL; -+ -+ addr = of_get_mac_addr(np, "mac-address"); -+ if (addr) { -+ memcpy(addr, mac, ETH_ALEN); -+ return addr; -+ } -+ -+ prop = kzalloc(sizeof(*prop), GFP_KERNEL); -+ if (!prop) -+ return NULL; -+ -+ prop->name = "mac-address"; -+ prop->length = ETH_ALEN; -+ prop->value = kmemdup(mac, ETH_ALEN, GFP_KERNEL); -+ if (!prop->value || of_add_property(np, prop)) -+ goto free; -+ -+ return prop->value; -+free: -+ kfree(prop->value); -+ kfree(prop); -+#endif -+ return NULL; -+} -+ - /** - * Search the device tree for the best MAC address to use. 'mac-address' is - * checked first, because that is supposed to contain to "most recent" MAC -@@ -92,12 +166,20 @@ static const void *of_get_mac_addr_nvmem - * this case, the real MAC is in 'local-mac-address', and 'mac-address' exists - * but is all zeros. - * -+ * -+ * If a mtd-mac-address property exists, try to fetch the MAC address from the -+ * specified mtd device, and store it as a 'mac-address' property -+ * - * Return: Will be a valid pointer on success and ERR_PTR in case of error. - */ - const void *of_get_mac_address(struct device_node *np) - { - const void *addr; - -+ addr = of_get_mac_address_mtd(np); -+ if (addr) -+ return addr; -+ - addr = of_get_mac_addr(np, "mac-address"); - if (addr) - return addr; diff --git a/target/linux/generic/pending-5.4/682-of_net-add-mac-address-increment-support.patch b/target/linux/generic/pending-5.4/682-of_net-add-mac-address-increment-support.patch new file mode 100644 index 0000000000..1c08e23699 --- /dev/null +++ b/target/linux/generic/pending-5.4/682-of_net-add-mac-address-increment-support.patch @@ -0,0 +1,133 @@ +From 639dba857aa554f2a78572adc4cf3c32de9ec2e2 Mon Sep 17 00:00:00 2001 +From: Ansuel Smith +Date: Tue, 30 Mar 2021 18:21:14 +0200 +Subject: [PATCH 2/2] of_net: add mac-address-increment support + +Lots of embedded devices use the mac-address of other interface +extracted from nvmem cells and increments it by one or two. Add two +bindings to integrate this and directly use the right mac-address for +the interface. Some example are some routers that use the gmac +mac-address stored in the art partition and increments it by one for the +wifi. mac-address-increment-byte bindings is used to tell what byte of +the mac-address has to be increased (if not defined the last byte is +increased) and mac-address-increment tells how much the byte decided +early has to be increased. + +Signed-off-by: Ansuel Smith +--- + drivers/of/of_net.c | 59 ++++++++++++++++++++++++++++++++++----------- + 1 file changed, 45 insertions(+), 14 deletions(-) + +diff --git a/drivers/of/of_net.c b/drivers/of/of_net.c +index f072e2509cc9..0dbd1f7ef396 100644 +--- a/drivers/of/of_net.c ++++ b/drivers/of/of_net.c +@@ -55,31 +55,36 @@ static void *of_get_mac_addr(struct device_node *np, const char *name) + return NULL; + } + +-static const void *of_get_mac_addr_nvmem(struct device_node *np) ++static void *of_get_mac_addr_nvmem(struct device_node *np, int *err) + { + int ret; +- const void *mac; ++ void *mac; + u8 nvmem_mac[ETH_ALEN]; + struct platform_device *pdev = of_find_device_by_node(np); + +- if (!pdev) +- return ERR_PTR(-ENODEV); ++ if (!pdev) { ++ *err = -ENODEV; ++ return NULL; ++ } + + ret = nvmem_get_mac_address(&pdev->dev, &nvmem_mac); + if (ret) { + put_device(&pdev->dev); +- return ERR_PTR(ret); ++ *err = ret; ++ return NULL; + } + + mac = devm_kmemdup(&pdev->dev, nvmem_mac, ETH_ALEN, GFP_KERNEL); + put_device(&pdev->dev); +- if (!mac) +- return ERR_PTR(-ENOMEM); ++ if (!mac) { ++ *err = -ENOMEM; ++ return NULL; ++ } + + return mac; + } + +-static const void *of_get_mac_address_mtd(struct device_node *np) ++static void *of_get_mac_address_mtd(struct device_node *np) + { + #ifdef CONFIG_MTD + struct device_node *mtd_np = NULL; +@@ -167,28 +172,54 @@ static const void *of_get_mac_address_mtd(struct device_node *np) + * If a mtd-mac-address property exists, try to fetch the MAC address from the + * specified mtd device, and store it as a 'mac-address' property + * ++ * DT can tell the system to increment the mac-address after is extracted by ++ * using: ++ * - mac-address-increment-byte to decide what byte to increase ++ * (if not defined is increased the last byte) ++ * - mac-address-increment to decide how much to increase. The value will ++ * not overflow to other bytes if the increment is over 255. ++ * (example 00:01:02:03:04:ff + 1 == 00:01:02:03:04:00) ++ * + * Return: Will be a valid pointer on success and ERR_PTR in case of error. + */ + const void *of_get_mac_address(struct device_node *np) + { +- const void *addr; ++ u32 inc_idx, mac_inc; ++ int ret = 0; ++ u8 *addr; ++ ++ /* Check first if the increment byte is present and valid. ++ * If not set assume to increment the last byte if found. ++ */ ++ if (of_property_read_u32(np, "mac-address-increment-byte", &inc_idx)) ++ inc_idx = 5; ++ if (inc_idx < 3 || inc_idx > 5) ++ return ERR_PTR(-EINVAL); + + addr = of_get_mac_addr(np, "mac-address"); + if (addr) +- return addr; ++ goto found; + + addr = of_get_mac_addr(np, "local-mac-address"); + if (addr) +- return addr; ++ goto found; + + addr = of_get_mac_addr(np, "address"); + if (addr) +- return addr; ++ goto found; + + addr = of_get_mac_address_mtd(np); + if (addr) +- return addr; ++ goto found; ++ ++ addr = of_get_mac_addr_nvmem(np, &ret); ++ if (ret) ++ return ERR_PTR(ret); ++ ++found: ++ if (!of_property_read_u32(np, "mac-address-increment", &mac_inc)) ++ addr[inc_idx] += mac_inc; + +- return of_get_mac_addr_nvmem(np); ++ return addr; + } + EXPORT_SYMBOL(of_get_mac_address); +-- +2.30.2 + diff --git a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-ad7200-c2600.dtsi b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-ad7200-c2600.dtsi index af0efb2565..bbecdb7f0c 100644 --- a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-ad7200-c2600.dtsi +++ b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-ad7200-c2600.dtsi @@ -289,7 +289,7 @@ pinctrl-names = "default"; mtd-mac-address = <&defaultmac 0x8>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; fixed-link { speed = <1000>; diff --git a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-vr2600v.dts b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-vr2600v.dts index 893addf240..79b22ff0c3 100644 --- a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-vr2600v.dts +++ b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-vr2600v.dts @@ -324,7 +324,7 @@ pinctrl-names = "default"; mtd-mac-address = <&defaultmac 0>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; fixed-link { speed = <1000>; diff --git a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-r7800.dts b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-r7800.dts index 55291cd531..9444235173 100644 --- a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-r7800.dts +++ b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8065-r7800.dts @@ -426,7 +426,7 @@ reg = <0x00010000 0 0 0 0>; mtd-mac-address = <&art 6>; - mtd-mac-address-increment = <(1)>; + mac-address-increment = <(1)>; }; }; }; @@ -446,7 +446,7 @@ reg = <0x00010000 0 0 0 0>; mtd-mac-address = <&art 6>; - mtd-mac-address-increment = <(2)>; + mac-address-increment = <(2)>; }; }; }; diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/ar9_avm_fritz7312.dts b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/ar9_avm_fritz7312.dts index 4a4a06514f..19cb54db6b 100644 --- a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/ar9_avm_fritz7312.dts +++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/ar9_avm_fritz7312.dts @@ -97,7 +97,7 @@ phy-mode = "rmii"; phy-handle = <&phy0>; mtd-mac-address = <&ath9k_cal 0xa91>; - mtd-mac-address-increment = <(-2)>; + mac-address-increment = <(-2)>; mdio-bus { #address-cells = <1>; diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/ar9_avm_fritz7320.dts b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/ar9_avm_fritz7320.dts index 5f38936577..4d7986f0a5 100644 --- a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/ar9_avm_fritz7320.dts +++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/ar9_avm_fritz7320.dts @@ -98,7 +98,7 @@ &gsw { phy-mode = "mii"; mtd-mac-address = <&ath9k_cal 0xa91>; - mtd-mac-address-increment = <(-2)>; + mac-address-increment = <(-2)>; }; &gpio { diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv7506pw11.dts b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv7506pw11.dts index 87954fef02..f0b288c6ba 100644 --- a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv7506pw11.dts +++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv7506pw11.dts @@ -155,6 +155,6 @@ ralink,mtd-eeprom = <&boardconfig 0x410>; ralink,mtd-eeprom-swap; mtd-mac-address = <&boardconfig 0x16>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; }; diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv7518pw.dts b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv7518pw.dts index f2592961cb..ca0cf107dd 100644 --- a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv7518pw.dts +++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv7518pw.dts @@ -213,7 +213,7 @@ reg = <0x7000 0 0 0 0>; qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */ mtd-mac-address = <&boardconfig 0x16>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; }; diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv8539pw22.dts b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv8539pw22.dts index 5986279e6e..3b9f6c2461 100644 --- a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv8539pw22.dts +++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/danube_arcadyan_arv8539pw22.dts @@ -160,7 +160,7 @@ reg = <0x7000 0 0 0 0>; qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */ mtd-mac-address = <&art 0x16>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; }; diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_arcadyan_vgv7510kw22.dtsi b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_arcadyan_vgv7510kw22.dtsi index 8faf335c02..7a277892bb 100644 --- a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_arcadyan_vgv7510kw22.dtsi +++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_arcadyan_vgv7510kw22.dtsi @@ -220,7 +220,7 @@ ralink,mtd-eeprom = <&boardconfig 0x410>; ralink,mtd-eeprom-swap; mtd-mac-address = <&boardconfig 0x16>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; }; diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_arcadyan_vgv7519.dtsi b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_arcadyan_vgv7519.dtsi index 7c3ab53d73..c8dd817b6c 100644 --- a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_arcadyan_vgv7519.dtsi +++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_arcadyan_vgv7519.dtsi @@ -128,7 +128,7 @@ ð0 { mtd-mac-address = <&boardconfig 0x16>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; &gphy0 { @@ -239,7 +239,7 @@ ralink,mtd-eeprom = <&boardconfig 0x410>; ralink,mtd-eeprom-swap; mtd-mac-address = <&boardconfig 0x16>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; }; diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz736x.dtsi b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz736x.dtsi index dafff26f1b..d91dc74e2f 100644 --- a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz736x.dtsi +++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz736x.dtsi @@ -82,7 +82,7 @@ ð0 { mtd-mac-address = <&urlader 0xa91>; - mtd-mac-address-increment = <(-2)>; + mac-address-increment = <(-2)>; }; &gphy0 { diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_tplink_tdw89x0.dtsi b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_tplink_tdw89x0.dtsi index 10389e539f..7749410816 100644 --- a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_tplink_tdw89x0.dtsi +++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_tplink_tdw89x0.dtsi @@ -204,7 +204,7 @@ qca,no-eeprom; qca,disable-5ghz; mtd-mac-address = <&ath9k_cal 0xf100>; - mtd-mac-address-increment = <2>; + mac-address-increment = <2>; }; }; }; diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_tplink_vr200.dtsi b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_tplink_vr200.dtsi index d3d8907860..67edc01d90 100644 --- a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_tplink_vr200.dtsi +++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_tplink_vr200.dtsi @@ -192,7 +192,7 @@ big-endian; ieee80211-freq-limit = <5000000 6000000>; mtd-mac-address = <&romfile 0xf100>; - mtd-mac-address-increment = <2>; + mac-address-increment = <2>; }; }; }; diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts index 3ca132d0c0..10bb353683 100644 --- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts +++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts @@ -177,7 +177,7 @@ phy-handle = <&phy1>; phy-connection-type = "rgmii-id"; mtd-mac-address = <&hwinfo 0>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; gpio0: gpio-controller@fc00 { diff --git a/target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/cn7130_ubnt_edgerouter-e300.dtsi b/target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/cn7130_ubnt_edgerouter-e300.dtsi index 7d4c7f0de9..7a4d2e6683 100644 --- a/target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/cn7130_ubnt_edgerouter-e300.dtsi +++ b/target/linux/octeon/files/arch/mips/boot/dts/cavium-octeon/cn7130_ubnt_edgerouter-e300.dtsi @@ -181,7 +181,7 @@ phy-mode = "sgmii"; phy-handle = <&phy5>; mtd-mac-address = <&eeprom 0>; - mtd-mac-address-increment = <(1)>; + mac-address-increment = <(1)>; }; ethernet@2 { @@ -190,7 +190,7 @@ phy-mode = "sgmii"; phy-handle = <&phy6>; mtd-mac-address = <&eeprom 0>; - mtd-mac-address-increment = <(2)>; + mac-address-increment = <(2)>; }; ethernet@3 { @@ -199,7 +199,7 @@ phy-mode = "sgmii"; phy-handle = <&phy7>; mtd-mac-address = <&eeprom 0>; - mtd-mac-address-increment = <(3)>; + mac-address-increment = <(3)>; }; }; }; diff --git a/target/linux/ramips/dts/mt7620a_cameo_810.dtsi b/target/linux/ramips/dts/mt7620a_cameo_810.dtsi index 70407449db..b1a50bb711 100644 --- a/target/linux/ramips/dts/mt7620a_cameo_810.dtsi +++ b/target/linux/ramips/dts/mt7620a_cameo_810.dtsi @@ -154,6 +154,6 @@ mediatek,mtd-eeprom = <&factory 0x8000>; ieee80211-freq-limit = <5000000 6000000>; mtd-mac-address = <&factory 0x28>; - mtd-mac-address-increment = <2>; + mac-address-increment = <2>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts b/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts index 774d90c79d..5b8d883dd5 100644 --- a/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts +++ b/target/linux/ramips/dts/mt7620a_dlink_dir-510l.dts @@ -115,7 +115,7 @@ mt76x0e@0,0 { reg = <0x0000 0 0 0 0>; mtd-mac-address = <&config 0xe490>; - mtd-mac-address-increment = <(2)>; + mac-address-increment = <(2)>; mediatek,mtd-eeprom = <&config 0xe05d>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a1.dts b/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a1.dts index b86ab1449b..2e755b6620 100644 --- a/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a1.dts +++ b/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a1.dts @@ -143,7 +143,7 @@ wifi@0,0 { reg = <0x0000 0 0 0 0>; mtd-mac-address = <&config 0xe496>; - mtd-mac-address-increment = <(2)>; + mac-address-increment = <(2)>; mediatek,mtd-eeprom = <&config 0xe083>; led { diff --git a/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a2.dts b/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a2.dts index b0dd31cafc..eec4969ff3 100644 --- a/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a2.dts +++ b/target/linux/ramips/dts/mt7620a_dlink_dwr-118-a2.dts @@ -141,7 +141,7 @@ reg = <0x0000 0 0 0 0>; ieee80211-freq-limit = <5000000 6000000>; mtd-mac-address = <&config 0xe4a8>; - mtd-mac-address-increment = <(2)>; + mac-address-increment = <(2)>; led { led-sources = <2>; diff --git a/target/linux/ramips/dts/mt7620a_dlink_dwr-960.dts b/target/linux/ramips/dts/mt7620a_dlink_dwr-960.dts index 4284c61aa2..eed57f7f68 100644 --- a/target/linux/ramips/dts/mt7620a_dlink_dwr-960.dts +++ b/target/linux/ramips/dts/mt7620a_dlink_dwr-960.dts @@ -176,7 +176,7 @@ ieee80211-freq-limit = <5000000 6000000>; mediatek,mtd-eeprom = <&config 0xe08e>; mtd-mac-address = <&config 0xe50e>; - mtd-mac-address-increment = <2>; + mac-address-increment = <2>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts b/target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts index 41d69d009b..2f882b3b50 100644 --- a/target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts +++ b/target/linux/ramips/dts/mt7620a_lava_lr-25g001.dts @@ -141,7 +141,7 @@ mt76x0e@0,0 { reg = <0x0000 0 0 0 0>; mtd-mac-address = <&config 0xe07e>; - mtd-mac-address-increment = <(2)>; + mac-address-increment = <(2)>; mediatek,mtd-eeprom = <&config 0xe08a>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts b/target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts index 184af58d29..cfd55ea221 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts @@ -184,6 +184,6 @@ reg = <0x0000 0 0 0 0>; mediatek,mtd-eeprom = <&radio 0x8000>; mtd-mac-address = <&rom 0xf100>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; }; }; diff --git a/target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts b/target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts index f7e7d50df7..89f48dc7d3 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_archer-c20-v1.dts @@ -73,10 +73,10 @@ pinctrl-0 = <&pa_pins>; mtd-mac-address = <&rom 0xf100>; - mtd-mac-address-increment = <(-2)>; + mac-address-increment = <(-2)>; }; &wifi { mtd-mac-address = <&rom 0xf100>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; }; diff --git a/target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts b/target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts index a6c3cea736..c4fb98c467 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_archer-c20i.dts @@ -58,5 +58,5 @@ &wifi { mtd-mac-address = <&rom 0xf100>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; }; diff --git a/target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts b/target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts index d564552ff0..8de87caecc 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts +++ b/target/linux/ramips/dts/mt7620a_tplink_archer-c50-v1.dts @@ -73,10 +73,10 @@ pinctrl-0 = <&pa_pins>; mtd-mac-address = <&rom 0xf100>; - mtd-mac-address-increment = <(-2)>; + mac-address-increment = <(-2)>; }; &wifi { mtd-mac-address = <&rom 0xf100>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; }; diff --git a/target/linux/ramips/dts/mt7620a_tplink_re2x0-v1.dtsi b/target/linux/ramips/dts/mt7620a_tplink_re2x0-v1.dtsi index 80b47b7d77..7b3025e8b4 100644 --- a/target/linux/ramips/dts/mt7620a_tplink_re2x0-v1.dtsi +++ b/target/linux/ramips/dts/mt7620a_tplink_re2x0-v1.dtsi @@ -89,7 +89,7 @@ reg = <0x0000 0 0 0 0>; mediatek,mtd-eeprom = <&radio 0x8000>; mtd-mac-address = <&uboot 0x1fc00>; - mtd-mac-address-increment = <2>; + mac-address-increment = <2>; ieee80211-freq-limit = <5000000 6000000>; }; }; diff --git a/target/linux/ramips/dts/mt7621_adslr_g7.dts b/target/linux/ramips/dts/mt7621_adslr_g7.dts index 3290a5e710..84c0d3b282 100644 --- a/target/linux/ramips/dts/mt7621_adslr_g7.dts +++ b/target/linux/ramips/dts/mt7621_adslr_g7.dts @@ -130,7 +130,7 @@ status = "okay"; label = "wan"; mtd-mac-address = <&factory 0xe00c>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; }; }; diff --git a/target/linux/ramips/dts/mt7621_afoundry_ew1200.dts b/target/linux/ramips/dts/mt7621_afoundry_ew1200.dts index ed9e9852d3..0a4971d06c 100644 --- a/target/linux/ramips/dts/mt7621_afoundry_ew1200.dts +++ b/target/linux/ramips/dts/mt7621_afoundry_ew1200.dts @@ -135,7 +135,7 @@ status = "okay"; label = "wan"; mtd-mac-address = <&factory 0xe000>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; }; }; diff --git a/target/linux/ramips/dts/mt7621_asiarf_ap7621-001.dts b/target/linux/ramips/dts/mt7621_asiarf_ap7621-001.dts index cf91dc0311..0e66057fa5 100644 --- a/target/linux/ramips/dts/mt7621_asiarf_ap7621-001.dts +++ b/target/linux/ramips/dts/mt7621_asiarf_ap7621-001.dts @@ -18,7 +18,7 @@ status = "okay"; label = "wan"; mtd-mac-address = <&factory 0xe000>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; }; }; diff --git a/target/linux/ramips/dts/mt7621_asiarf_ap7621-nv1.dts b/target/linux/ramips/dts/mt7621_asiarf_ap7621-nv1.dts index 5a4c03fb7c..4088b8137d 100644 --- a/target/linux/ramips/dts/mt7621_asiarf_ap7621-nv1.dts +++ b/target/linux/ramips/dts/mt7621_asiarf_ap7621-nv1.dts @@ -13,7 +13,7 @@ status = "okay"; label = "wan"; mtd-mac-address = <&factory 0xe000>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; port@2 { diff --git a/target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhpl.dts b/target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhpl.dts index 048eac5a3d..9244c8368b 100644 --- a/target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhpl.dts +++ b/target/linux/ramips/dts/mt7621_buffalo_wsr-2533dhpl.dts @@ -165,7 +165,7 @@ &gmac0 { mtd-mac-address = <&factory 0x4>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; }; &switch0 { diff --git a/target/linux/ramips/dts/mt7621_cudy_wr1300.dts b/target/linux/ramips/dts/mt7621_cudy_wr1300.dts index a66ce942a5..e943c04069 100644 --- a/target/linux/ramips/dts/mt7621_cudy_wr1300.dts +++ b/target/linux/ramips/dts/mt7621_cudy_wr1300.dts @@ -142,7 +142,7 @@ reg = <0x0000 0 0 0 0>; mediatek,mtd-eeprom = <&factory 0x8000>; mtd-mac-address = <&bdinfo 0xde00>; - mtd-mac-address-increment = <2>; + mac-address-increment = <2>; ieee80211-freq-limit = <5000000 6000000>; led { @@ -182,7 +182,7 @@ status = "okay"; label = "wan"; mtd-mac-address = <&bdinfo 0xde00>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; }; }; diff --git a/target/linux/ramips/dts/mt7621_dlink_dir-1960-a1.dts b/target/linux/ramips/dts/mt7621_dlink_dir-1960-a1.dts index 0f4fbc1873..fd11768ce6 100644 --- a/target/linux/ramips/dts/mt7621_dlink_dir-1960-a1.dts +++ b/target/linux/ramips/dts/mt7621_dlink_dir-1960-a1.dts @@ -18,10 +18,10 @@ &wifi0 { mtd-mac-address = <&factory 0xe000>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; &wifi1 { mtd-mac-address = <&factory 0xe000>; - mtd-mac-address-increment = <2>; + mac-address-increment = <2>; }; diff --git a/target/linux/ramips/dts/mt7621_dlink_dir-2640-a1.dts b/target/linux/ramips/dts/mt7621_dlink_dir-2640-a1.dts index 323a790600..b19f70f7c9 100644 --- a/target/linux/ramips/dts/mt7621_dlink_dir-2640-a1.dts +++ b/target/linux/ramips/dts/mt7621_dlink_dir-2640-a1.dts @@ -25,10 +25,10 @@ &wifi0 { mtd-mac-address = <&factory 0xe000>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; &wifi1 { mtd-mac-address = <&factory 0xe000>; - mtd-mac-address-increment = <2>; + mac-address-increment = <2>; }; diff --git a/target/linux/ramips/dts/mt7621_dlink_dir-2660-a1.dts b/target/linux/ramips/dts/mt7621_dlink_dir-2660-a1.dts index fbf233d96f..a4d72876ab 100644 --- a/target/linux/ramips/dts/mt7621_dlink_dir-2660-a1.dts +++ b/target/linux/ramips/dts/mt7621_dlink_dir-2660-a1.dts @@ -25,10 +25,10 @@ &wifi0 { mtd-mac-address = <&factory 0xe000>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; &wifi1 { mtd-mac-address = <&factory 0xe000>; - mtd-mac-address-increment = <2>; + mac-address-increment = <2>; }; diff --git a/target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.dts b/target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.dts index b6a7383557..f8ea5dbbbf 100644 --- a/target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.dts +++ b/target/linux/ramips/dts/mt7621_elecom_wrc-1167ghbk2-s.dts @@ -169,7 +169,7 @@ reg = <0x0000 0 0 0 0>; mediatek,mtd-eeprom = <&factory 0x0>; mtd-mac-address = <&factory 0xe000>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; }; diff --git a/target/linux/ramips/dts/mt7621_elecom_wrc-1167gs2-b.dts b/target/linux/ramips/dts/mt7621_elecom_wrc-1167gs2-b.dts index 6349fd487e..becd2a9f9d 100644 --- a/target/linux/ramips/dts/mt7621_elecom_wrc-1167gs2-b.dts +++ b/target/linux/ramips/dts/mt7621_elecom_wrc-1167gs2-b.dts @@ -49,5 +49,5 @@ &wifi { mtd-mac-address = <&factory 0x4>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; }; diff --git a/target/linux/ramips/dts/mt7621_elecom_wrc-1167gst2.dts b/target/linux/ramips/dts/mt7621_elecom_wrc-1167gst2.dts index 11b782488a..5cc8ff27f6 100644 --- a/target/linux/ramips/dts/mt7621_elecom_wrc-1167gst2.dts +++ b/target/linux/ramips/dts/mt7621_elecom_wrc-1167gst2.dts @@ -49,5 +49,5 @@ &wifi { mtd-mac-address = <&factory 0xe006>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; diff --git a/target/linux/ramips/dts/mt7621_firefly_firewrt.dts b/target/linux/ramips/dts/mt7621_firefly_firewrt.dts index 62423f02e5..9689326570 100644 --- a/target/linux/ramips/dts/mt7621_firefly_firewrt.dts +++ b/target/linux/ramips/dts/mt7621_firefly_firewrt.dts @@ -134,7 +134,7 @@ status = "okay"; label = "wan"; mtd-mac-address = <&factory 0xe000>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; }; }; diff --git a/target/linux/ramips/dts/mt7621_gehua_ghl-r-001.dts b/target/linux/ramips/dts/mt7621_gehua_ghl-r-001.dts index e7b19fa42c..f0152e8db3 100644 --- a/target/linux/ramips/dts/mt7621_gehua_ghl-r-001.dts +++ b/target/linux/ramips/dts/mt7621_gehua_ghl-r-001.dts @@ -131,7 +131,7 @@ status = "okay"; label = "wan"; mtd-mac-address = <&factory 0xe000>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; }; }; diff --git a/target/linux/ramips/dts/mt7621_glinet_gl-mt1300.dts b/target/linux/ramips/dts/mt7621_glinet_gl-mt1300.dts index 20f63902af..629a9a2439 100644 --- a/target/linux/ramips/dts/mt7621_glinet_gl-mt1300.dts +++ b/target/linux/ramips/dts/mt7621_glinet_gl-mt1300.dts @@ -116,7 +116,7 @@ &gmac0 { mtd-mac-address = <&factory 0x4000>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; &switch0 { diff --git a/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts b/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts index 879fb68c85..c549bbb518 100644 --- a/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts +++ b/target/linux/ramips/dts/mt7621_iodata_wn-ax1167gr.dts @@ -137,7 +137,7 @@ status = "okay"; label = "wan"; mtd-mac-address = <&factory 0x4>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; port@1 { diff --git a/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts b/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts index 06d024e9a7..91f30f8721 100644 --- a/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts +++ b/target/linux/ramips/dts/mt7621_iodata_wn-gx300gr.dts @@ -137,7 +137,7 @@ status = "okay"; label = "wan"; mtd-mac-address = <&factory 0x4>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; port@1 { diff --git a/target/linux/ramips/dts/mt7621_mediatek_ap-mt7621a-v60.dts b/target/linux/ramips/dts/mt7621_mediatek_ap-mt7621a-v60.dts index 04996558a4..ec9be40ce4 100644 --- a/target/linux/ramips/dts/mt7621_mediatek_ap-mt7621a-v60.dts +++ b/target/linux/ramips/dts/mt7621_mediatek_ap-mt7621a-v60.dts @@ -142,7 +142,7 @@ status = "okay"; label = "wan"; mtd-mac-address = <&factory 0x5>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; }; }; diff --git a/target/linux/ramips/dts/mt7621_mqmaker_witi.dts b/target/linux/ramips/dts/mt7621_mqmaker_witi.dts index 45901474d2..130193c171 100644 --- a/target/linux/ramips/dts/mt7621_mqmaker_witi.dts +++ b/target/linux/ramips/dts/mt7621_mqmaker_witi.dts @@ -123,7 +123,7 @@ status = "okay"; label = "wan"; mtd-mac-address = <&factory 0xe000>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; }; }; diff --git a/target/linux/ramips/dts/mt7621_mtc_wr1201.dts b/target/linux/ramips/dts/mt7621_mtc_wr1201.dts index 8a79d9ca9a..cfa0e6af24 100644 --- a/target/linux/ramips/dts/mt7621_mtc_wr1201.dts +++ b/target/linux/ramips/dts/mt7621_mtc_wr1201.dts @@ -128,7 +128,7 @@ status = "okay"; label = "wan"; mtd-mac-address = <&factory 0x4>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; }; }; diff --git a/target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi b/target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi index 1a19cd048b..eaf9059e39 100644 --- a/target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi +++ b/target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi @@ -136,7 +136,7 @@ status = "okay"; label = "wan"; mtd-mac-address = <&factory 0x4>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; }; }; diff --git a/target/linux/ramips/dts/mt7621_netgear_sercomm_bzv.dtsi b/target/linux/ramips/dts/mt7621_netgear_sercomm_bzv.dtsi index 71c95e75bd..3ed8bc55e9 100644 --- a/target/linux/ramips/dts/mt7621_netgear_sercomm_bzv.dtsi +++ b/target/linux/ramips/dts/mt7621_netgear_sercomm_bzv.dtsi @@ -191,7 +191,7 @@ status = "okay"; label = "wan"; mtd-mac-address = <&factory 0x4>; - mtd-mac-address-increment = <2>; + mac-address-increment = <2>; }; }; }; diff --git a/target/linux/ramips/dts/mt7621_netgear_sercomm_chj.dtsi b/target/linux/ramips/dts/mt7621_netgear_sercomm_chj.dtsi index 7a15cd1f6c..61cb522dfd 100644 --- a/target/linux/ramips/dts/mt7621_netgear_sercomm_chj.dtsi +++ b/target/linux/ramips/dts/mt7621_netgear_sercomm_chj.dtsi @@ -125,7 +125,7 @@ status = "okay"; label = "wan"; mtd-mac-address = <&factory 0x4>; - mtd-mac-address-increment = <2>; + mac-address-increment = <2>; }; }; }; diff --git a/target/linux/ramips/dts/mt7621_storylink_sap-g3200u3.dts b/target/linux/ramips/dts/mt7621_storylink_sap-g3200u3.dts index d44960a9a1..6ecf71895c 100644 --- a/target/linux/ramips/dts/mt7621_storylink_sap-g3200u3.dts +++ b/target/linux/ramips/dts/mt7621_storylink_sap-g3200u3.dts @@ -131,7 +131,7 @@ status = "okay"; label = "wan"; mtd-mac-address = <&factory 0xe006>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; }; }; diff --git a/target/linux/ramips/dts/mt7621_telco-electronics_x1.dts b/target/linux/ramips/dts/mt7621_telco-electronics_x1.dts index f597d0f63a..0386a3cdd2 100644 --- a/target/linux/ramips/dts/mt7621_telco-electronics_x1.dts +++ b/target/linux/ramips/dts/mt7621_telco-electronics_x1.dts @@ -150,7 +150,7 @@ status = "okay"; label = "wan"; mtd-mac-address = <&factory 0xe006>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; }; }; diff --git a/target/linux/ramips/dts/mt7621_totolink_a7000r.dts b/target/linux/ramips/dts/mt7621_totolink_a7000r.dts index d0e38f1721..4b53e60cd5 100644 --- a/target/linux/ramips/dts/mt7621_totolink_a7000r.dts +++ b/target/linux/ramips/dts/mt7621_totolink_a7000r.dts @@ -129,7 +129,7 @@ status = "okay"; label = "wan"; mtd-mac-address = <&factory 0xe000>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; }; }; diff --git a/target/linux/ramips/dts/mt7621_tplink_eap235-wall-v1.dts b/target/linux/ramips/dts/mt7621_tplink_eap235-wall-v1.dts index 17308eb605..cf63e6b989 100644 --- a/target/linux/ramips/dts/mt7621_tplink_eap235-wall-v1.dts +++ b/target/linux/ramips/dts/mt7621_tplink_eap235-wall-v1.dts @@ -147,7 +147,7 @@ mediatek,mtd-eeprom = <&radio 0x8000>; ieee80211-freq-limit = <5000000 6000000>; mtd-mac-address = <&info 0x8>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; }; diff --git a/target/linux/ramips/dts/mt7621_tplink_re350-v1.dts b/target/linux/ramips/dts/mt7621_tplink_re350-v1.dts index 9f29ecd8cf..0a810b0195 100644 --- a/target/linux/ramips/dts/mt7621_tplink_re350-v1.dts +++ b/target/linux/ramips/dts/mt7621_tplink_re350-v1.dts @@ -131,7 +131,7 @@ reg = <0x0000 0 0 0 0>; mediatek,mtd-eeprom = <&radio 0x0>; mtd-mac-address = <&config 0x10008>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; }; @@ -141,7 +141,7 @@ mediatek,mtd-eeprom = <&radio 0x8000>; ieee80211-freq-limit = <5000000 6000000>; mtd-mac-address = <&config 0x10008>; - mtd-mac-address-increment = <2>; + mac-address-increment = <2>; }; }; diff --git a/target/linux/ramips/dts/mt7621_tplink_rexx0-v1.dtsi b/target/linux/ramips/dts/mt7621_tplink_rexx0-v1.dtsi index 45a983098d..0ec83fa389 100644 --- a/target/linux/ramips/dts/mt7621_tplink_rexx0-v1.dtsi +++ b/target/linux/ramips/dts/mt7621_tplink_rexx0-v1.dtsi @@ -149,7 +149,7 @@ reg = <0x0000 0 0 0 0>; mediatek,mtd-eeprom = <&radio 0x0>; mtd-mac-address = <&config 0x10008>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; ieee80211-freq-limit = <2400000 2500000>; }; }; @@ -160,7 +160,7 @@ reg = <0x0000 0 0 0 0>; mediatek,mtd-eeprom = <&radio 0x8000>; mtd-mac-address = <&config 0x10008>; - mtd-mac-address-increment = <2>; + mac-address-increment = <2>; ieee80211-freq-limit = <5000000 6000000>; }; }; diff --git a/target/linux/ramips/dts/mt7621_ubnt_edgerouter-x-sfp.dts b/target/linux/ramips/dts/mt7621_ubnt_edgerouter-x-sfp.dts index 9f92178900..536180be10 100644 --- a/target/linux/ramips/dts/mt7621_ubnt_edgerouter-x-sfp.dts +++ b/target/linux/ramips/dts/mt7621_ubnt_edgerouter-x-sfp.dts @@ -67,7 +67,7 @@ phy-handle = <&ephy7>; phy-mode = "rgmii-rxid"; mtd-mac-address = <&factory 0x22>; - mtd-mac-address-increment = <5>; + mac-address-increment = <5>; }; }; }; diff --git a/target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi b/target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi index 04eb49bfa3..b92dc8f3f0 100644 --- a/target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi +++ b/target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi @@ -35,28 +35,28 @@ status = "okay"; label = "eth1"; mtd-mac-address = <&factory 0x22>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; port@2 { status = "okay"; label = "eth2"; mtd-mac-address = <&factory 0x22>; - mtd-mac-address-increment = <2>; + mac-address-increment = <2>; }; port@3 { status = "okay"; label = "eth3"; mtd-mac-address = <&factory 0x22>; - mtd-mac-address-increment = <3>; + mac-address-increment = <3>; }; port@4 { status = "okay"; label = "eth4"; mtd-mac-address = <&factory 0x22>; - mtd-mac-address-increment = <4>; + mac-address-increment = <4>; }; }; }; diff --git a/target/linux/ramips/dts/mt7621_unielec_u7621-01.dtsi b/target/linux/ramips/dts/mt7621_unielec_u7621-01.dtsi index 336f68ea61..b9b16fbb4b 100644 --- a/target/linux/ramips/dts/mt7621_unielec_u7621-01.dtsi +++ b/target/linux/ramips/dts/mt7621_unielec_u7621-01.dtsi @@ -82,7 +82,7 @@ status = "okay"; label = "wan"; mtd-mac-address = <&factory 0xe000>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; port@1 { diff --git a/target/linux/ramips/dts/mt7621_unielec_u7621-06.dtsi b/target/linux/ramips/dts/mt7621_unielec_u7621-06.dtsi index 3b149df85a..29e6251721 100644 --- a/target/linux/ramips/dts/mt7621_unielec_u7621-06.dtsi +++ b/target/linux/ramips/dts/mt7621_unielec_u7621-06.dtsi @@ -103,7 +103,7 @@ status = "okay"; label = "wan"; mtd-mac-address = <&factory 0xe000>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; }; }; diff --git a/target/linux/ramips/dts/mt7621_xiaoyu_xy-c5.dts b/target/linux/ramips/dts/mt7621_xiaoyu_xy-c5.dts index b90ff92c70..ee1a452fa9 100644 --- a/target/linux/ramips/dts/mt7621_xiaoyu_xy-c5.dts +++ b/target/linux/ramips/dts/mt7621_xiaoyu_xy-c5.dts @@ -114,7 +114,7 @@ status = "okay"; label = "wan"; mtd-mac-address = <&factory 0x4>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; }; }; diff --git a/target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts b/target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts index 182b6db5b3..afee235ac7 100644 --- a/target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts +++ b/target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts @@ -182,7 +182,7 @@ status = "okay"; label = "wan"; mtd-mac-address = <&factory 0xe000>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; }; }; diff --git a/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg2626.dts b/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg2626.dts index d0d656ba6d..b1fbf53931 100644 --- a/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg2626.dts +++ b/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg2626.dts @@ -136,7 +136,7 @@ status = "okay"; label = "wan"; mtd-mac-address = <&factory 0xe000>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; }; }; diff --git a/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi b/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi index 515d37ceaa..2fe855abd5 100644 --- a/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi +++ b/target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi @@ -140,7 +140,7 @@ status = "okay"; label = "wan"; mtd-mac-address = <&factory 0xe000>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; }; }; diff --git a/target/linux/ramips/dts/mt7628an_netgear_r6120.dts b/target/linux/ramips/dts/mt7628an_netgear_r6120.dts index f4d9823cd2..c70db4989b 100644 --- a/target/linux/ramips/dts/mt7628an_netgear_r6120.dts +++ b/target/linux/ramips/dts/mt7628an_netgear_r6120.dts @@ -45,5 +45,5 @@ &wifi5 { mtd-mac-address = <&factory 0x4>; - mtd-mac-address-increment = <(2)>; + mac-address-increment = <(2)>; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts b/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts index 58743db6b4..55f39db680 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v4.dts @@ -78,7 +78,7 @@ }; &wmac { - mtd-mac-address-increment = <(-2)>; + mac-address-increment = <(-2)>; }; &esw { @@ -102,6 +102,6 @@ mediatek,mtd-eeprom = <&factory 0x28000>; ieee80211-freq-limit = <5000000 6000000>; mtd-mac-address = <&factory 0xf100>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v5.dts b/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v5.dts index d76ce34ca9..38879d70e6 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v5.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_archer-c20-v5.dts @@ -97,6 +97,6 @@ mediatek,mtd-eeprom = <&radio 0x8000>; ieee80211-freq-limit = <5000000 6000000>; mtd-mac-address = <&rom 0xf100>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts b/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts index 4966d56a68..bb13bac8c8 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v3.dts @@ -97,6 +97,6 @@ mediatek,mtd-eeprom = <&factory 0x28000>; ieee80211-freq-limit = <5000000 6000000>; mtd-mac-address = <&factory 0xf100>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v4.dts b/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v4.dts index 11bf903531..34170547a4 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v4.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_archer-c50-v4.dts @@ -95,6 +95,6 @@ mediatek,mtd-eeprom = <&radio 0x8000>; ieee80211-freq-limit = <5000000 6000000>; mtd-mac-address = <&rom 0xf100>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi b/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi index 95addff3c0..633950f287 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi +++ b/target/linux/ramips/dts/mt7628an_tplink_re200.dtsi @@ -138,7 +138,7 @@ mediatek,mtd-eeprom = <&radio 0x0>; mtd-mac-address = <&config 0x2008>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; &pcie { @@ -151,6 +151,6 @@ mediatek,mtd-eeprom = <&radio 0x8000>; ieee80211-freq-limit = <5000000 6000000>; mtd-mac-address = <&config 0x2008>; - mtd-mac-address-increment = <2>; + mac-address-increment = <2>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts b/target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts index 22e15eb7a1..300ea3bb29 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_re305-v1.dts @@ -128,7 +128,7 @@ mediatek,mtd-eeprom = <&radio 0x8000>; ieee80211-freq-limit = <5000000 6000000>; mtd-mac-address = <&config 0x10008>; - mtd-mac-address-increment = <2>; + mac-address-increment = <2>; }; }; @@ -137,7 +137,7 @@ mediatek,mtd-eeprom = <&radio 0x0>; mtd-mac-address = <&config 0x10008>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; ðernet { diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts index 77a68acf34..d3558547b8 100644 --- a/target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts +++ b/target/linux/ramips/dts/mt7628an_tplink_tl-wr902ac-v3.dts @@ -93,6 +93,6 @@ mediatek,mtd-eeprom = <&factory 0x28000>; ieee80211-freq-limit = <5000000 6000000>; mtd-mac-address = <&factory 0xf100>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; }; }; diff --git a/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4a-100m.dts b/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4a-100m.dts index 37797fc368..ff562cbff4 100644 --- a/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4a-100m.dts +++ b/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4a-100m.dts @@ -36,7 +36,7 @@ ðernet { mtd-mac-address = <&factory 0x4>; - mtd-mac-address-increment = <(-1)>; + mac-address-increment = <(-1)>; }; &esw { diff --git a/target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts b/target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts index ccf9917dac..6bed6f57bc 100644 --- a/target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts +++ b/target/linux/ramips/dts/rt3883_sitecom_wlr-6000.dts @@ -65,7 +65,7 @@ ðernet { status = "okay"; mtd-mac-address = <&factory 0x8004>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; port@0 { phy-handle = <&phy0>; diff --git a/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts b/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts index 03e504a6d1..b5cae66732 100644 --- a/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts +++ b/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts @@ -117,5 +117,5 @@ ralink,mtd-eeprom = <&factory 0x0>; ralink,5ghz = <0>; mtd-mac-address = <&factory 0x4>; - mtd-mac-address-increment = <1>; + mac-address-increment = <1>; }; diff --git a/target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts b/target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts index 95a2bb75f3..39fb3d1c78 100644 --- a/target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts +++ b/target/linux/ramips/dts/rt3883_trendnet_tew-692gr.dts @@ -143,5 +143,5 @@ ralink,mtd-eeprom = <&factory 0x0>; ralink,5ghz = <0>; mtd-mac-address = <&factory 0x4>; - mtd-mac-address-increment = <3>; + mac-address-increment = <3>; };