Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport the upstream PWM GPIO driver from 6.11 to rpi-6.6.y #6450

Merged
merged 3 commits into from
Nov 2, 2024

Commits on Oct 31, 2024

  1. pwm: Add GPIO PWM driver

    commit 7f61257 upstream.
    
    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 <[email protected]>
    Co-developed-by: Stefan Wahren <[email protected]>
    Signed-off-by: Stefan Wahren <[email protected]>
    Co-developed-by: Linus Walleij <[email protected]>
    Reviewed-by: Andy Shevchenko <[email protected]>
    Signed-off-by: Linus Walleij <[email protected]>
    Reviewed-by: Dhruva Gole <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Uwe Kleine-König <[email protected]>
    Signed-off-by: Tim Gover <[email protected]>
    
    pwm: Backport pwm-gpio.c to rpi-6.6.y
    vwax authored and timg236 committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    3b9c52d View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2024

  1. config: bcm2711_defconfig/bcm2712_defconfig: Enable CONFIG_PWM_GPIO

    Enable the PWM GPIO module in Raspberry Pi kernels.
    
    Signed-off-by: Tim Gover <[email protected]>
    timg236 committed Nov 2, 2024
    Configuration menu
    Copy the full SHA
    0714139 View commit details
    Browse the repository at this point in the history
  2. dtoverlay: Add a dtoverlay for pwm-gpio

    Signed-off-by: Tim Gover <[email protected]>
    timg236 committed Nov 2, 2024
    Configuration menu
    Copy the full SHA
    5567cb3 View commit details
    Browse the repository at this point in the history