mirror_ubuntu-kernels/Documentation/driver-api/gpio
Vincent Whitchurch 7f61257cd6 pwm: Add GPIO PWM driver
Add a software PWM which toggles a GPIO from a high-resolution timer.

This will naturally not be as accurate or as efficient as a hardware
PWM, but it is useful in some cases.  I have for example used it for
evaluating LED brightness handling (via leds-pwm) on a board where the
LED was just hooked up to a GPIO, and for a simple verification of the
timer frequency on another platform.

Since high-resolution timers are used, sleeping GPIO chips are not
supported and are rejected in the probe function.

Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Co-developed-by: Stefan Wahren <wahrenst@gmx.net>
Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Co-developed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Link: https://lore.kernel.org/r/20240604-pwm-gpio-v7-2-6b67cf60db92@linaro.org
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
2024-07-10 17:52:47 +02:00
..
board.rst docs: driver-api: gpio: Fix filename mismatch 2022-06-13 18:12:24 +02:00
bt8xxgpio.rst docs: driver-api: bt8xxgpio: Revive dead link 2019-10-09 11:13:36 +02:00
consumer.rst Documentation: gpio: consistently use logical line value terminology 2024-02-14 10:34:08 +01:00
driver.rst Documentation: gpio: Replace leading TABs by spaces in code blocks 2024-04-12 21:27:53 +02:00
drivers-on-gpio.rst pwm: Add GPIO PWM driver 2024-07-10 17:52:47 +02:00
index.rst gpio: Add use guidance documentation 2020-01-15 11:11:43 +01:00
intro.rst docs: driver-api: gpio: Fix filename mismatch 2022-06-13 18:12:24 +02:00
legacy.rst gpiolib: legacy: Remove unused gpio_request_array() and gpio_free_array() 2024-04-03 13:07:52 +02:00
using-gpio.rst docs: driver-api: gpio: Fix some typos 2022-06-24 13:12:20 -06:00