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

Michal Cieslakiewicz michal.cieslakiewicz at wp.pl
Wed Oct 16 06:37:22 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 and 16_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. WNR2200 with 16 MiB flash is the only new device added.
The other changes are minor ones, like 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 v4:
* 01_leds: green WAN LED initialization is already in DTS - skipped
* dts: GPIO keys connected to Wifi chip renamed to ath9k-keys
* dts: GPIO chip is already enabled, no need to set it to 'okay'
* dts: label-mac-device introduced and set according to device label
* dts: wnr2000v3: remove debounce-interval for IRQ gpio-keys (WPS)
* makefile: wnr2200: remove kmod-usb-core from DEVICE_PACKAGES
* wnr2200: support 8 and 16 MiB flash models

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   |   4 +
 .../etc/hotplug.d/firmware/10-ath9k-eeprom    |   4 +
 .../ath79/dts/ar7240_netgear_wnr1000-v2.dts   | 203 +++++++++++++++++
 .../ath79/dts/ar7240_netgear_wnr612-v2.dts    |   2 +-
 .../ath79/dts/ar7240_netgear_wnr612-v2.dtsi   |  23 +-
 target/linux/ath79/dts/ar7240_on_n150r.dts    |   2 +-
 .../ath79/dts/ar7241_netgear_wnr2000-v3.dts   | 207 ++++++++++++++++++
 .../ath79/dts/ar7241_netgear_wnr2200-16m.dts  |  34 +++
 .../ath79/dts/ar7241_netgear_wnr2200-8m.dts   |  34 +++
 .../ath79/dts/ar7241_netgear_wnr2200.dtsi     | 207 ++++++++++++++++++
 target/linux/ath79/dts/ar724x.dtsi            |  10 +-
 target/linux/ath79/image/generic.mk           |  32 +++
 target/linux/ath79/image/tiny-netgear.mk      |  30 ++-
 14 files changed, 795 insertions(+), 11 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-16m.dts
 create mode 100644 target/linux/ath79/dts/ar7241_netgear_wnr2200-8m.dts
 create mode 100644 target/linux/ath79/dts/ar7241_netgear_wnr2200.dtsi


openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list