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

Michal Cieslakiewicz michal.cieslakiewicz at wp.pl
Sun Aug 11 16:39:21 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)

For all above routers, MAC address printed on device label is for
LAN interface (eth1, ART offset 0x6).

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 is a prerequisite. It 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.

Changes from v2:
* source DT files reformatted ('compatible' before 'model', hex
  numbers simplified, gpio hog renamed etc)
* target makefiles updated (redundant variables removed)
* startup scripts updated (do not define triggers already set by DTS)

Patch list (5):
  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/base-files/etc/board.d/01_leds      |  14 ++
 .../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.dts    |   2 +-
 .../ath79/dts/ar7240_netgear_wnr612-v2.dtsi   |  20 +-
 target/linux/ath79/dts/ar7240_on_n150r.dts    |   2 +-
 .../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           |  14 ++
 target/linux/ath79/image/tiny-netgear.mk      |  30 ++-
 12 files changed, 744 insertions(+), 10 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