OSDN Git Service

MIPS: BCM47XX: Add support for Netgear WNR1000 V3
authorRafał Miłecki <rafal@milecki.pl>
Sun, 8 Apr 2018 20:57:32 +0000 (22:57 +0200)
committerJames Hogan <jhogan@kernel.org>
Mon, 23 Apr 2018 15:39:34 +0000 (16:39 +0100)
commit425f1e6272567c4d91221957d8b65fc5f6aae501
treea3157adf5dbd3d714b13ee866c00480e68dd4491
parentfca3aa16642200069eafa4ece17a60751bb891cd
MIPS: BCM47XX: Add support for Netgear WNR1000 V3

This adds support for detecting this model board and registers some LEDs
and buttons.

There are two uncommon things regarding this device:
1) It can use two different "board_id" ID values.
   Unit I have uses "U12H139T00_NETGEAR" value. This magic is also used
   in firmware file header. There are two reports (one from an OpenWrt
   user) of a different "U12H139T50_NETGEAR" magic though.
2) Power LEDs share GPIOs with buttons.
   Amber one seems to share GPIO 2 with WPS button and green one seems
   to share GPIO 3 with reset button. It remains unknown how to support
   them and handle buttons at the same time. For that reason they aren't
   added to the list of supported LEDs.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Hauke Mehrtens <hauke@hauke-m.de>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/19004/
Signed-off-by: James Hogan <jhogan@kernel.org>
arch/mips/bcm47xx/board.c
arch/mips/bcm47xx/buttons.c
arch/mips/bcm47xx/leds.c
arch/mips/include/asm/mach-bcm47xx/bcm47xx_board.h