forked from Minki/linux
baf8d6899b
The PWM pins on North Bridge on Armada 37xx can be configured into PWM
or GPIO functions. When in PWM function, each pin can also be configured
to drive low on 0 and tri-state on 1 (LED mode).
The current definitions handle this by declaring two pin groups for each
pin:
- group "pwmN" with functions "pwm" and "gpio"
- group "ledN_od" ("od" for open drain) with functions "led" and "gpio"
This is semantically incorrect. The correct definition for each pin
should be one group with three functions: "pwm", "led" and "gpio".
Change the "pwmN" groups to support "led" function.
Remove "ledN_od" groups. This cannot break backwards compatibility with
older device trees: no device tree uses it since there is no PWM driver
for this SOC yet. Also "ledN_od" groups are not even documented.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
pinctrl-armada-37xx.c | ||
pinctrl-armada-38x.c | ||
pinctrl-armada-39x.c | ||
pinctrl-armada-370.c | ||
pinctrl-armada-375.c | ||
pinctrl-armada-ap806.c | ||
pinctrl-armada-cp110.c | ||
pinctrl-armada-xp.c | ||
pinctrl-dove.c | ||
pinctrl-kirkwood.c | ||
pinctrl-mvebu.c | ||
pinctrl-mvebu.h | ||
pinctrl-orion.c |