]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
gpio: stp-xway: automatically drive GPHY leds on ar10 and grx390
authorAleksander Jan Bajkowski <olek2@wp.pl>
Fri, 14 Aug 2020 19:48:47 +0000 (21:48 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 18 Aug 2020 19:32:28 +0000 (21:32 +0200)
commit329afb94e0052fd7a94652d1a14df0b8f5527413
treec38ba06ae6aaa2adfb0085ffa88c64cb2af05ab1
parent9123e3a74ec7b934a4a099e98af6a61c2f80bbf5
gpio: stp-xway: automatically drive GPHY leds on ar10 and grx390

Ar10 (xr300) has 3 and grx390 (xrx330) has 4 built-in GPHY. PHY LEDs are
connected via STP. STP is a peripheral controller used to drive external
shift register cascades. The hardware is able to allow the GPHY to drive
some GPIO of the cascade automatically.This patch allows for this on ar10
and grx390.

Tested on D-Link DWR-966 with OpenWRT.

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-stp-xway.c