( [ -f "$wlan_data" ] && caldata_sysfsload_from_file "$wlan_data" 0x0 0x2f20 ) || \
( [ -d "$wlan_data" ] && caldata_sysfsload_from_file "$wlan_data/data_0" 0x0 0x2f20 )
;;
- netgear,ex6100v2 |\
- netgear,ex6150v2)
- caldata_extract "ART" 0x1000 0x2f20
- ath10k_patch_mac $(mtd_get_mac_binary dnidata 0x0)
- ;;
netgear,rbr50|\
netgear,rbs50|\
netgear,srr60|\
( [ -f "$wlan_data" ] && caldata_sysfsload_from_file "$wlan_data" 0x8000 0x2f20 ) || \
( [ -d "$wlan_data" ] && caldata_sysfsload_from_file "$wlan_data/data_2" 0x0 0x2f20 )
;;
- netgear,ex6100v2 |\
- netgear,ex6150v2)
- caldata_extract "ART" 0x5000 0x2f20
- ath10k_patch_mac $(mtd_get_mac_binary dnidata 0xc)
- ;;
netgear,rbr50|\
netgear,rbs50|\
netgear,srr60|\
partition7@170000 {
label = "ART";
reg = <0x00170000 0x00010000>;
+ compatible = "nvmem-cells";
read-only;
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ precal_art_1000: precal@1000 {
+ reg = <0x1000 0x2f20>;
+ };
+
+ precal_art_5000: precal@5000 {
+ reg = <0x5000 0x2f20>;
+ };
};
partition8@180000 {
};
partition10@1a0000 {
+ compatible = "nvmem-cells";
label = "dnidata";
reg = <0x001a0000 0x00010000>;
read-only;
+
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_dnidata_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+
+ macaddr_dnidata_c: macaddr@c {
+ reg = <0xc 0x6>;
+ };
};
partition11@1b0000 {
&wifi0 {
status = "okay";
+ nvmem-cell-names = "pre-calibration", "mac-address";
+ nvmem-cells = <&precal_art_1000>, <&macaddr_dnidata_0>;
};
&wifi1 {
status = "okay";
+ nvmem-cell-names = "pre-calibration", "mac-address";
+ nvmem-cells = <&precal_art_5000>, <&macaddr_dnidata_c>;
};