ath79: convert Netgear EX7300 caldata to nvmem
Transition to specify caldata in the DTS. Signed-off-by: Wenli Looi <wlooi@ucalgary.ca>
This commit is contained in:
		 Wenli Looi
					Wenli Looi
				
			
				
					committed by
					
						 Hauke Mehrtens
						Hauke Mehrtens
					
				
			
			
				
	
			
			
			 Hauke Mehrtens
						Hauke Mehrtens
					
				
			
						parent
						
							f0eb73a888
						
					
				
				
					commit
					7396263680
				
			| @@ -121,6 +121,14 @@ | |||||||
|  |  | ||||||
| &pcie0 { | &pcie0 { | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
|  |  | ||||||
|  | 	wifi@0,0 { | ||||||
|  | 		compatible = "qcom,ath10k"; | ||||||
|  | 		reg = <0 0 0 0 0>; | ||||||
|  |  | ||||||
|  | 		nvmem-cells = <&macaddr_caldata_c>, <&precal_caldata_5000>; | ||||||
|  | 		nvmem-cell-names = "mac-address", "pre-calibration"; | ||||||
|  | 	}; | ||||||
| }; | }; | ||||||
|  |  | ||||||
| &spi { | &spi { | ||||||
| @@ -186,9 +194,8 @@ | |||||||
| &wmac { | &wmac { | ||||||
| 	status = "okay"; | 	status = "okay"; | ||||||
|  |  | ||||||
| 	mtd-cal-data = <&caldata 0x1000>; | 	nvmem-cells = <&macaddr_caldata_6>, <&cal_caldata_1000>; | ||||||
| 	nvmem-cells = <&macaddr_caldata_6>; | 	nvmem-cell-names = "mac-address", "calibration"; | ||||||
| 	nvmem-cell-names = "mac-address"; |  | ||||||
| }; | }; | ||||||
|  |  | ||||||
| &mdio0 { | &mdio0 { | ||||||
| @@ -224,4 +231,16 @@ | |||||||
| 	macaddr_caldata_6: macaddr@6 { | 	macaddr_caldata_6: macaddr@6 { | ||||||
| 		reg = <0x6 0x6>; | 		reg = <0x6 0x6>; | ||||||
| 	}; | 	}; | ||||||
|  |  | ||||||
|  | 	macaddr_caldata_c: macaddr@c { | ||||||
|  | 		reg = <0xc 0x6>; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	cal_caldata_1000: cal@1000 { | ||||||
|  | 		reg = <0x1000 0x440>; | ||||||
|  | 	}; | ||||||
|  |  | ||||||
|  | 	precal_caldata_5000: precal@5000 { | ||||||
|  | 		reg = <0x5000 0x2f20>; | ||||||
|  | 	}; | ||||||
| }; | }; | ||||||
|   | |||||||
| @@ -216,10 +216,6 @@ case "$FIRMWARE" in | |||||||
| 		ln -sf /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin \ | 		ln -sf /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin \ | ||||||
| 			/lib/firmware/ath10k/QCA9888/hw2.0/board.bin | 			/lib/firmware/ath10k/QCA9888/hw2.0/board.bin | ||||||
| 		;; | 		;; | ||||||
| 	netgear,ex7300) |  | ||||||
| 		caldata_extract "caldata" 0x5000 0x2f20 |  | ||||||
| 		ath10k_patch_mac $(mtd_get_mac_binary caldata 0xc) |  | ||||||
| 		;; |  | ||||||
| 	phicomm,k2t) | 	phicomm,k2t) | ||||||
| 		caldata_extract "art" 0x5000 0x2f20 | 		caldata_extract "art" 0x5000 0x2f20 | ||||||
| 		ath10k_patch_mac $(k2t_get_mac "5g_mac") | 		ath10k_patch_mac $(k2t_get_mac "5g_mac") | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user