forked from mirror/openwrt
ath79: whr-g301n: use nvmem for eeprom
Userspace handling for this is deprecated. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/20023 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
parent
e2271a1dab
commit
beb11add8b
2 changed files with 6 additions and 4 deletions
|
|
@ -156,6 +156,10 @@
|
|||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
cal_art_1000: calibration@1000 {
|
||||
reg = <0x1000 0xeb8>;
|
||||
};
|
||||
|
||||
macaddr_art_120c: macaddr@120c {
|
||||
compatible = "mac-base";
|
||||
reg = <0x120c 0x6>;
|
||||
|
|
@ -185,9 +189,8 @@
|
|||
ath9k: wifi@0,0 {
|
||||
compatible = "pci168c,002a";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
qca,no-eeprom;
|
||||
nvmem-cells = <&macaddr_art_120c 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
nvmem-cells = <&cal_art_1000>, <&macaddr_art_120c 0>;
|
||||
nvmem-cell-names = "calibration", "mac-address";
|
||||
#gpio-cells = <2>;
|
||||
gpio-controller;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ board=$(board_name)
|
|||
case "$FIRMWARE" in
|
||||
"ath9k-eeprom-pci-0000:00:00.0.bin")
|
||||
case $board in
|
||||
buffalo,whr-g301n|\
|
||||
engenius,eap350-v1|\
|
||||
engenius,ecb350-v1|\
|
||||
engenius,enh202-v1)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue