OSDN Git Service

gpio: mvebu: add pwm support for Armada 8K/7K
authorBaruch Siach <baruch@tkos.co.il>
Mon, 11 Jan 2021 11:46:27 +0000 (13:46 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 15 Feb 2021 10:43:31 +0000 (11:43 +0100)
commit85b7d8abfec70ae820ddfea493f93b0af7e50b51
tree6f1def5acf197c727fef7c18d49e9e52958e2d16
parent94de03ccc9f5d13e36cf1db8f9dfbf676fdfec07
gpio: mvebu: add pwm support for Armada 8K/7K

Use the marvell,pwm-offset DT property to store the location of PWM
signal duration registers.

Since we have more than two GPIO chips per system, we can't use the
alias id to differentiate between them. Use the offset value for that.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-mvebu.c