Преглед на файлове

ath79: rename EEPROM to art

This renames all remaining occurrences of "EEPROM" to "art" to
further harmonize the partition labelling in ath79. This will
help to reduce the amount of user-space code and might be
beneficial when code is copy/pasted in the future.

Affected are only devices from Ubiquiti, where the XM board is
already using "art" in ath79.

Acked-by: Piotr Dymacz <[email protected]>
Signed-off-by: Adrian Schmutzler <[email protected]>
Adrian Schmutzler преди 6 години
родител
ревизия
c08ddfce3f

+ 1 - 1
target/linux/ath79/dts/ar9342_ubnt_lap-120.dts

@@ -26,7 +26,7 @@
 	/* default for ar934x, except for 1000M and 10M */
 	pll-data = <0x06000000 0x00000101 0x00001313>;
 
-	mtd-mac-address = <&eeprom 0x0>;
+	mtd-mac-address = <&art 0x0>;
 
 	phy-mode = "rgmii";
 	phy-handle = <&phy4>;

+ 1 - 1
target/linux/ath79/dts/ar9342_ubnt_nanobeam-ac.dts

@@ -51,7 +51,7 @@
 	/* default for ar934x, except for 1000M and 10M */
 	pll-data = <0x06000000 0x00000101 0x00001313>;
 
-	mtd-mac-address = <&eeprom 0x0>;
+	mtd-mac-address = <&art 0x0>;
 
 	phy-mode = "rgmii";
 	phy-handle = <&phy4>;

+ 1 - 1
target/linux/ath79/dts/ar9342_ubnt_nanostation-ac-loco.dts

@@ -27,7 +27,7 @@
 	/* default for ar934x, except for 1000M and 10M */
 	pll-data = <0x06000000 0x00000101 0x00001313>;
 
-	mtd-mac-address = <&eeprom 0x0>;
+	mtd-mac-address = <&art 0x0>;
 
 	phy-mode = "rgmii";
 	phy-handle = <&phy4>;

+ 2 - 2
target/linux/ath79/dts/ar9342_ubnt_nanostation-ac.dts

@@ -58,7 +58,7 @@
 	/* default for ar934x, except for 1000M and 10M */
 	pll-data = <0x06000000 0x00000101 0x00001313>;
 
-	mtd-mac-address = <&eeprom 0x0>;
+	mtd-mac-address = <&art 0x0>;
 
 	phy-mode = "rgmii";
 	phy-handle = <&phy0>;
@@ -73,5 +73,5 @@
 &wmac {
 	status = "okay";
 
-	mtd-cal-data = <&eeprom 0x1000>;
+	mtd-cal-data = <&art 0x1000>;
 };

+ 3 - 3
target/linux/ath79/dts/ar9342_ubnt_wa.dtsi

@@ -75,8 +75,8 @@
 				read-only;
 			};
 
-			eeprom: partition@ff0000 {
-				label = "EEPROM";
+			art: partition@ff0000 {
+				label = "art";
 				reg = <0xff0000 0x010000>;
 				read-only;
 			};
@@ -88,5 +88,5 @@
 	status = "okay";
 
 	qca,disable-5ghz;
-	mtd-cal-data = <&eeprom 0x1000>;
+	mtd-cal-data = <&art 0x1000>;
 };

+ 4 - 4
target/linux/ath79/dts/ar9342_ubnt_xw.dtsi

@@ -103,8 +103,8 @@
 				read-only;
 			};
 
-			eeprom: partition@7f0000 {
-				label = "EEPROM";
+			art: partition@7f0000 {
+				label = "art";
 				reg = <0x7f0000 0x010000>;
 				read-only;
 			};
@@ -115,9 +115,9 @@
 &wmac {
 	status = "okay";
 
-	mtd-cal-data = <&eeprom 0x1000>;
+	mtd-cal-data = <&art 0x1000>;
 };
 
 &eth0 {
-	mtd-mac-address = <&eeprom 0x0>;
+	mtd-mac-address = <&art 0x0>;
 };

+ 5 - 5
target/linux/ath79/dts/qca9533_ubnt_acb-isp.dts

@@ -64,8 +64,8 @@
 				read-only;
 			};
 
-			eeprom: partition@ff0000 {
-				label = "EEPROM";
+			art: partition@ff0000 {
+				label = "art";
 				reg = <0xff0000 0x010000>;
 				read-only;
 			};
@@ -79,13 +79,13 @@
 
 &eth0 {
 	status = "okay";
-	mtd-mac-address = <&eeprom 0x0>;
+	mtd-mac-address = <&art 0x0>;
 	phy-handle = <&swphy4>;
 };
 
 &eth1 {
 	status = "okay";
-	mtd-mac-address = <&eeprom 0x6>;
+	mtd-mac-address = <&art 0x6>;
 
 	gmac-config {
 		device = <&gmac>;
@@ -94,5 +94,5 @@
 
 &wmac {
 	status = "okay";
-	mtd-cal-data = <&eeprom 0x1000>;
+	mtd-cal-data = <&art 0x1000>;
 };

+ 1 - 1
target/linux/ath79/dts/qca9563_ubnt_unifiac-lite.dtsi

@@ -21,6 +21,6 @@
 &eth0 {
 	status = "okay";
 
-	mtd-mac-address = <&eeprom 0x0>;
+	mtd-mac-address = <&art 0x0>;
 	phy-handle = <&phy4>;
 };

+ 1 - 1
target/linux/ath79/dts/qca9563_ubnt_unifiac-pro.dtsi

@@ -25,6 +25,6 @@
 &eth0 {
 	status = "okay";
 
-	mtd-mac-address = <&eeprom 0x0>;
+	mtd-mac-address = <&art 0x0>;
 	phy-handle = <&phy0>;
 };

+ 3 - 3
target/linux/ath79/dts/qca9563_ubnt_unifiac.dtsi

@@ -104,8 +104,8 @@
 				read-only;
 			};
 
-			eeprom: partition@ff0000 {
-				label = "EEPROM";
+			art: partition@ff0000 {
+				label = "art";
 				reg = <0xff0000 0x010000>;
 				read-only;
 			};
@@ -116,5 +116,5 @@
 &wmac {
 	status = "okay";
 
-	mtd-cal-data = <&eeprom 0x1000>;
+	mtd-cal-data = <&art 0x1000>;
 };

+ 9 - 11
target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/11-ath10k-caldata

@@ -12,6 +12,15 @@ case "$FIRMWARE" in
 	case $board in
 	comfast,cf-wr650ac-v1|\
 	comfast,cf-wr650ac-v2|\
+	ubnt,unifiac-lite|\
+	ubnt,unifiac-lr|\
+	ubnt,unifiac-mesh|\
+	ubnt,unifiac-mesh-pro|\
+	ubnt,lap-120|\
+	ubnt,nanobeam-ac|\
+	ubnt,nanostation-ac|\
+	ubnt,nanostation-ac-loco|\
+	ubnt,unifiac-pro|\
 	yuncore,a770)
 		caldata_extract "art" 0x5000 0x844
 		;;
@@ -101,17 +110,6 @@ case "$FIRMWARE" in
 		caldata_extract "art" 0x5000 0x844
 		ath10k_patch_mac $(macaddr_add $(mtd_get_mac_binary info 0x8) +1)
 		;;
-	ubnt,unifiac-lite|\
-	ubnt,unifiac-lr|\
-	ubnt,unifiac-mesh|\
-	ubnt,unifiac-mesh-pro|\
-	ubnt,lap-120|\
-	ubnt,nanobeam-ac|\
-	ubnt,nanostation-ac|\
-	ubnt,nanostation-ac-loco|\
-	ubnt,unifiac-pro)
-		caldata_extract "EEPROM" 0x5000 0x844
-		;;
 	esac
 	;;
 "ath10k/pre-cal-pci-0000:00:00.0.bin")