nvmem-layout and mt76 eeprom (ramips/mt7621 target, 5.15.x)

Piotr Dymacz pepe2k at gmail.com
Fri Aug 25 03:37:15 PDT 2023


Hi Rafał,

I'm trying to use the new NVMEM cells with mt76 EEPROM bindings on an 
mt7621 (SPI NOR flash) with mt79x5 (PCIe) based device, same way as you 
did in 03b3284805 [1] and daaa0c1b25 [2] (ath79 target).

If I keep 'eeprom' within 'nvmem-layout', wifi doesn't work due to:

root at OpenWrt:/# cat /sys/kernel/debug/devices_deferred

0000:02:00.0pci: supplier 
1e000b00.spi:flash at 0:partitions:partition at 50000:nvmem-layout not ready

Keeping 'eeprom' node outside 'nvmem-layout' gives expected results.

It seems there are only one (Netgear WNDR3700 v5) similar device under 
ramips/mt7621, with 'eeprom' within 'nvmem-layout' defines and SPI NOR 
(all other are NAND based, maybe related?) but I don't see any bug 
reports (complains) about broken WiFi for it.

Any clue?

You can find related DTS in my staging tree [3].

Thanks!

[1] https://git.openwrt.org/03b3284805
[2] https://git.openwrt.org/daaa0c1b25
[3] 
https://git.openwrt.org/?p=openwrt/staging/pepe2k.git;a=blob;f=target/linux/ramips/dts/mt7621_alfa-network_ax1800rm.dts;hb=refs/heads/main

-- 
Cheers,
Piotr



More information about the openwrt-devel mailing list