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 axi-pwmgen driver #2602

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Commits on Sep 30, 2024

  1. iio: adc: ad4134: Make use of devm_clk_get_enabled()

    The driver's probe function had an open-coded variant of
    devm_clk_get_enabled(). Replace it by the actual function with the same
    semantics.
    
    Signed-off-by: Uwe Kleine-König <[email protected]>
    Uwe Kleine-König committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    dae0100 View commit details
    Browse the repository at this point in the history
  2. iio: adc: ad_pulsar: Implement more exact period calculation

    With knowing the input clock of the PWM hardware unit, the optimal period
    can be calculated such that the sample frequency is configured as the
    highest possible value not bigger than the requested value. Do that with
    some commentary that explains the calculation.
    
    Note that currently the initial claim about the axi-pwmgen driver's
    implemented period isn't true. But it's true for the mainline driver and
    soon for the driver in this tree as well.
    
    Signed-off-by: Uwe Kleine-König <[email protected]>
    Uwe Kleine-König committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    2f79d8a View commit details
    Browse the repository at this point in the history
  3. iio: adc: ltc2387: Implement more exact period calculation

    With knowing the input clock of the PWM hardware unit, the optimal period
    can be calculated such that the sample frequency is configured as the
    highest possible value not bigger than the requested value. Do that with
    some commentary that explains the calculation.
    
    Note that currently the initial claim about the axi-pwmgen driver's
    implemented period isn't true. But it's true for the mainline driver and
    soon for the driver in this tree as well.
    
    Signed-off-by: Uwe Kleine-König <[email protected]>
    Uwe Kleine-König committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    d0c3366 View commit details
    Browse the repository at this point in the history
  4. pwm: Replace axi-pwmgen driver by a backport of the mainline driver

    Backporting involved several changes. These were marked using some cpp
    magic to simplify updates to newer kernel version and for documentation
    purposes.
    
    The relevant semantical changes are:
    
     - The apply callback uses round down now to match the policy upstream.
    
     - The compatible string changed. All devicetrees are updated
       accordingly.
    
     - The v1 hardware revision isn't supported any more.
       The v1 documentation isn't in the public documentations any more, so
       this is expected to be ok.
    
    Signed-off-by: Uwe Kleine-König <[email protected]>
    Uwe Kleine-König committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    6207728 View commit details
    Browse the repository at this point in the history