gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
-
- wlan2 {
- label = "green:wlan2";
- gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
- linux,default-trigger = "phy1tpt";
- };
};
keys {
&wmac {
status = "okay";
- qca,no-eeprom;
+ nvmem-cells = <&cal_art_1000>;
+ nvmem-cell-names = "calibration";
+
+ led {
+ led-sources = <22>;
+ led-active-low;
+ };
};
&pcie0 {
pll-data = <0x82000000 0x80000101 0x80001313>;
+ nvmem-cells = <&macaddr_uboot_ethaddr>;
+ nvmem-cell-names = "mac-address";
+
gmac-config {
device = <&gmac>;
rgmii-enabled = <1>;
};
partition@100000 {
+ compatible = "u-boot,env";
label = "cfg1";
reg = <0x100000 0x40000>;
read-only;
+
+ macaddr_uboot_ethaddr: ethaddr {
+ };
};
partition@140000 {
#address-cells = <1>;
#size-cells = <1>;
+ cal_art_1000: calibration@1000 {
+ reg = <0x1000 0x440>;
+ };
+
cal_art_5000: calibration@5000 {
reg = <0x5000 0x844>;
};
caldata_extract "art" 0x1000 0x440
ath9k_patch_mac $(macaddr_add $(mtd_get_mac_ascii u-boot-env athaddr) 1)
;;
- extreme-networks,ws-ap3805i)
- caldata_extract "art" 0x1000 0x440
- ath9k_patch_mac $(mtd_get_mac_ascii cfg1 RADIOADDR1)
- ;;
sitecom,wlr-7100|\
sitecom,wlr-8100)
caldata_extract "art" 0x1000 0x440
;;
extreme-networks,ws-ap3805i)
[ "$PHYNBR" -eq 0 ] && \
- mtd_get_mac_ascii cfg1 RADIOADDR0 > /sys${DEVPATH}/macaddress
+ mtd_get_mac_ascii cfg1 RADIOADDR0 > /sys${DEVPATH}/macaddress
+ ;;
+ [ "$PHYNBR" -eq 1 ] && \
+ mtd_get_mac_ascii cfg1 RADIOADDR1 > /sys${DEVPATH}/macaddress
;;
iodata,wn-ac1167dgr|\
iodata,wn-ac1600dgr|\