android_kernel_xiaomi_sm8450/Documentation/devicetree
Marek Behún ef5395fbad pinctrl: armada-37xx: Correct PWM pins definitions
[ Upstream commit baf8d6899b1e8906dc076ef26cc633e96a8bb0c3 ]

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: b835d69530 ("pinctrl: armada-37xx: swap polarity on LED group")
Signed-off-by: Marek Behún <kabel@kernel.org>
Acked-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210719112938.27594-1-kabel@kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-09-18 13:40:11 +02:00
..
bindings pinctrl: armada-37xx: Correct PWM pins definitions 2021-09-18 13:40:11 +02:00
changesets.rst docs: dt: convert changesets to ReST 2020-05-04 17:09:46 -05:00
dynamic-resolution-notes.rst docs: dt: convert dynamic-resolution-notes.txt to ReST 2020-05-04 17:09:52 -05:00
index.rst dt: Remove booting-without-of.rst 2020-10-13 13:33:16 -05:00
of_unittest.rst docs: dt: convert of_unittest.txt to ReST 2020-05-04 17:09:52 -05:00
overlay-notes.rst docs: dt: convert overlay-notes.txt to ReST format 2020-05-04 17:09:52 -05:00
usage-model.rst docs: dt: usage_model.rst: fix link for DT usage 2020-05-04 16:22:54 -05:00
writing-schema.rst dt: writing-schema: Miscellaneous grammar fixes 2020-08-19 14:21:04 -06:00