[New Device] Dragonglass DGR7 + XMC flash fix — requests for review

Summary

Three patches are now on the mailing list for review:

# Subject Status
DGX25 (AX1800, MT7621+MT7915D) Submitted 6/11 — archive
1/2 mtd: spi-nor: xmc: add block protection support Just submitted
2/2 ramips: add support for Dragonglass DGR7 Just submitted

DGR7 Specs

  • SoC: MediaTek MT7621A (880 MHz)
  • RAM: 128 MB DDR2
  • Flash: 16 MB SPI NOR (XM25QH128A)
  • WiFi: MT7603E (2.4 GHz) + MT7612E (5 GHz, AC1200)
  • Ethernet: 5x 1GbE via MT7530 DSA (port 0-3 = LAN, port 4 = WAN)
  • LED: green status (GPIO 15, active low)
  • Button: reset (GPIO 18, active low)

XMC Flash Fix

The XM25QH128A flash on DGR7 boards has block protection bits set by the vendor U-Boot. The kernel's spi-nor driver lacked unlock support for XMC chips, causing "Failed to erase block" during sysupgrade. The patch adds SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB to the XMC parts — verified working on actual hardware.

Both patches pass checkpatch.pl with 0 errors, 0 warnings.

Would appreciate any review. Thanks!

— Ivan Lee