openwrt / mt76

mac80211 driver for MediaTek MT76x0e, MT76x2e, MT7603, MT7615, MT7628 and MT7688
746 stars 342 forks source link

Does the driver support MTK ATE and calibration information in the factory region of Flash? #205

Open szfrankhan opened 5 years ago

szfrankhan commented 5 years ago

Dear developers, As you know, MTK asks his customers to use ated to calibrate the RF block of MT76 devices and store the calibration result in the factory region of flash device.

My question is: 1, does the kmod-mt76 driver support ated, so we can use it for factory calibration? 2, does the kmod-mt76 driver access the factory region of flash to get MTK's information if the device has been calibrated? 3, I notice mt76_eeprom_init can read EEPROM from mt76 devices. does the 'EEPROM' here refer to 'factory region of flash' or EEPROM attached with MT76?

Do you have documents of the kmod-mt76 driver? Thanks a lot!

Frank

zuishikonghuan commented 5 years ago

I think it should be the 'factory region of flash'. At least on some devices.

See dts file of devices, such like https://github.com/openwrt/openwrt/blob/master/target/linux/ramips/dts/mt7621_d-team_newifi-d2.dts , and you can find

&pcie0 {
    mt76@0,0 {
        reg = <0x0000 0 0 0 0>;
        mediatek,mtd-eeprom = <&factory 0x8000>;
        ieee80211-freq-limit = <5000000 6000000>;
    };
};

&pcie1 {
    mt76@0,0 {
        reg = <0x0000 0 0 0 0>;
        mediatek,mtd-eeprom = <&factory 0x0000>;
    };
};

the mediatek,mtd-eeprom is factory mtd part