Просмотр исходного кода

ath79: fix mac address on eap2x5-1port devices

Commit e816591e226a ("ath79: qca: convert to nvmem-layout") mistakenly
switched the source of the mac address from the 'info' to 'art'
partition.

This patch updates all devices that share same 'parent' device tree file
and was tested to fix the problem for eap225-outdoor-v3 - device that I
actually own.

Fixes: e816591e226a ("ath79: qca: convert to nvmem-layout")
Signed-off-by: Nikolay Martynov <[email protected]>
[amend commit message]
Signed-off-by: Sander Vanheule <[email protected]>
Nikolay Martynov 1 год назад
Родитель
Сommit
c527073b38

+ 0 - 6
target/linux/ath79/dts/qca9563_tplink_eap225-outdoor-v1.dts

@@ -35,12 +35,6 @@
 		#address-cells = <1>;
 		#size-cells = <1>;
 
-		macaddr_info_8: macaddr@8 {
-			compatible = "mac-base";
-			reg = <0x8 0x6>;
-			#nvmem-cell-cells = <1>;
-		};
-
 		precalibration_ath10k: pre-calibration@5000 {
 			reg = <0x5000 0x2f20>;
 		};

+ 0 - 6
target/linux/ath79/dts/qca9563_tplink_eap225-outdoor-v3.dts

@@ -35,12 +35,6 @@
 		#address-cells = <1>;
 		#size-cells = <1>;
 
-		macaddr_info_8: macaddr@8 {
-			compatible = "mac-base";
-			reg = <0x8 0x6>;
-			#nvmem-cell-cells = <1>;
-		};
-
 		precalibration_ath10k: pre-calibration@5000 {
 			reg = <0x5000 0x2f20>;
 		};

+ 0 - 6
target/linux/ath79/dts/qca9563_tplink_eap225-v1.dts

@@ -56,12 +56,6 @@
 		#address-cells = <1>;
 		#size-cells = <1>;
 
-		macaddr_info_8: macaddr@8 {
-			compatible = "mac-base";
-			reg = <0x8 0x6>;
-			#nvmem-cell-cells = <1>;
-		};
-
 		calibration_ath10k: calibration@5000 {
 			reg = <0x5000 0x844>;
 		};

+ 0 - 6
target/linux/ath79/dts/qca9563_tplink_eap225-v3.dts

@@ -35,12 +35,6 @@
 		#address-cells = <1>;
 		#size-cells = <1>;
 
-		macaddr_info_8: macaddr@8 {
-			compatible = "mac-base";
-			reg = <0x8 0x6>;
-			#nvmem-cell-cells = <1>;
-		};
-
 		precalibration_ath10k: pre-calibration@5000 {
 			reg = <0x5000 0x2f20>;
 		};

+ 0 - 6
target/linux/ath79/dts/qca9563_tplink_eap225-v4.dts

@@ -35,12 +35,6 @@
 		#address-cells = <1>;
 		#size-cells = <1>;
 
-		macaddr_info_8: macaddr@8 {
-			compatible = "mac-base";
-			reg = <0x8 0x6>;
-			#nvmem-cell-cells = <1>;
-		};
-
 		precalibration_ath10k: pre-calibration@5000 {
 			reg = <0x5000 0x2f20>;
 		};

+ 0 - 6
target/linux/ath79/dts/qca9563_tplink_eap245-v1.dts

@@ -49,12 +49,6 @@
 		#address-cells = <1>;
 		#size-cells = <1>;
 
-		macaddr_info_8: macaddr@8 {
-			compatible = "mac-base";
-			reg = <0x8 0x6>;
-			#nvmem-cell-cells = <1>;
-		};
-
 		calibration_ath10k: calibration@5000 {
 			reg = <0x5000 0x844>;
 		};

+ 12 - 0
target/linux/ath79/dts/qca9563_tplink_eap2x5-1port.dtsi

@@ -55,6 +55,18 @@
 				label = "info";
 				reg = <0x030000 0x010000>;
 				read-only;
+
+				nvmem-layout {
+					compatible = "fixed-layout";
+					#address-cells = <1>;
+					#size-cells = <1>;
+
+					macaddr_info_8: macaddr@8 {
+						compatible = "mac-base";
+						reg = <0x8 0x6>;
+						#nvmem-cell-cells = <1>;
+					};
+				};
 			};
 
 			partition@40000 {