[OpenWrt-Devel] [PATCH 0/7] ath79: add support for some Netgear WNR routers

Michal Cieslakiewicz michal.cieslakiewicz at wp.pl
Tue Aug 6 06:51:53 EDT 2019


This patchset enables ath79 target for following Netgear ar724x-based
routers currently supported by ar71xx:
* Netgear WNR1000v2 (tiny, 4_32)
* Netgear WNR2000v3 (tiny, 4_32)
* Netgear WNR2200 (generic, 8_64 + USB)

and improves existing support for:
* Netgear WNR612v2 (tiny, 4_32)

The goal was to provide full functionality in ath79, on a par with
ar71xx target. The only minor change is renaming 'netgear:amber:test'
LED to 'netgear:amber:power' where applicable (apparently no one
defines them as 'test' nowadays).
Patched images were successfully flashed to respective devices and
are confirmed to work.

Patch #1 adds DT flags to control network LEDs and clocks - in ar71xx
these get disabled at setup phase in mach-*.c files. Now ath79 target
can do this as well and provide sysfs access to LAN/WAN amber and green
diodes.

Patch #6 changes USB power pin definition to follow Birger Koblitz's
gpio_hog work. No problems on WNR2200 with this one.

Patch #7 is optional, it changes WPS button on WNR2000v3 (the only one
connected to SoC GPIO) from polled to interrupt-driven. Again, no
problems were encountered with this setup - button is working OK.

Patch list (7):
  ath79: add LAN LEDs control bits for AR724x GPIO function pinmux
  ath79: WNR612v2: improve device support
  ath79: add support for Netgear WNR2000 v3
  ath79: add support for Netgear WNR1000 v2
  ath79: add support for Netgear WNR2200
  ath79: WNR2200: use gpio_hog instead of gpio-export for USB power
  ath79: WNR2000v3: change WPS button to interrupt-driven GPIO key

 .../ath79/base-files/etc/board.d/01_leds      |  28 +++
 .../ath79/base-files/etc/board.d/02_network   |   3 +
 .../etc/hotplug.d/firmware/10-ath9k-eeprom    |   3 +
 .../ath79/dts/ar7240_netgear_wnr1000-v2.dts   | 207 +++++++++++++++
 .../ath79/dts/ar7240_netgear_wnr612-v2.dtsi   |  20 +-
 .../ath79/dts/ar7241_netgear_wnr2000-v3.dts   | 212 ++++++++++++++++
 .../ath79/dts/ar7241_netgear_wnr2200.dts      | 237 ++++++++++++++++++
 target/linux/ath79/dts/ar724x.dtsi            |  10 +-
 target/linux/ath79/image/generic.mk           |  16 ++
 target/linux/ath79/image/tiny-netgear.mk      |  34 ++-
 10 files changed, 762 insertions(+), 8 deletions(-)
 create mode 100644 target/linux/ath79/dts/ar7240_netgear_wnr1000-v2.dts
 create mode 100644 target/linux/ath79/dts/ar7241_netgear_wnr2000-v3.dts
 create mode 100644 target/linux/ath79/dts/ar7241_netgear_wnr2200.dts

-- 
2.22.0


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list