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

ad5791 offload #2616

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

ad5791 offload #2616

wants to merge 10 commits into from

Commits on Oct 23, 2024

  1. dt-bindings: adi,ad5791.yaml: Add support optional gpios

    Depending on board layout, the ad57xx may need control of reset, clear,
    and ldac pins by the host driver. Add optional bindings for these gpios.
    
    Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
    ahaslam2 committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    bcad791 View commit details
    Browse the repository at this point in the history
  2. iio: dac: ad5791: Include chip_info in device match tables

    Include a chip info struct in device SPI and device OF match tables to
    provide channel definitions for each particular ADC model and eliminate
    device enum.
    
    Suggested-by: Nuno Sa <nuno.sa@analog.com>
    Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
    ahaslam2 committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    e92fabe View commit details
    Browse the repository at this point in the history
  3. iio: dac: ad5791: Add reset, clr and ldac gpios

    The ad7591 has reset, clr and ldac gpios. For the DAC to output data
    writen to the data register the state of these gpios has to be:
     	RESET=1, CLR=1, LDAC=0
    
    Add these gpios to the driver making them optional in case they
    are fixed on the pcb.
    
    Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
    ahaslam2 committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    2602f64 View commit details
    Browse the repository at this point in the history
  4. iio: dac: ad5791: Use devm_regulator_get_enable_read_voltage

    Simplify probe by using of the devm_regulator_get_enable_read_voltage.
    
    Suggested-by: David Lechner <dlechner@baylibre.com>
    Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
    ahaslam2 committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    5c9afcd View commit details
    Browse the repository at this point in the history
  5. iio: dac: ad5791: Use devm_iio_device_register

    Use devm_iio_device_register to automatically free resources.
    
    Suggested-by: David Lechner <dlechner@baylibre.com>
    Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
    ahaslam2 committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    ac02938 View commit details
    Browse the repository at this point in the history
  6. arm: dts: socfpga: Remove reference to gpio-bank-width

    This property is not defined on the binidngs, and is not used by the
    driver. Remove it
    
    Suggested-by: David Lechner <dlechner@baylibre.com>
    Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
    ahaslam2 committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    52de110 View commit details
    Browse the repository at this point in the history
  7. arm: dts: de10_nano: Add bi-directional gpios

    This adds the bi-directional gpio block to the d10 nano
    
    Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
    ahaslam2 committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    bac3e06 View commit details
    Browse the repository at this point in the history
  8. arm: dts: de10_nano: Add support for ad57xx.

    Add devicetree for ad57xx on de10nano.
    
    Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
    ahaslam2 committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    86c20ff View commit details
    Browse the repository at this point in the history
  9. spi: axi-spi-engine-ex: Dont write buf to offload SDO on tx stream

    To allow offload to stream a "tx" type of xfer we need the write flag
    set but no messages on the SDO memory of the offload engine. but the
    current code relies on the tx_buf pointer for both of these operations,
    so there is no way to separate the two.
    
    The offload patches currently on development for upstream add flags on
    core spi structures to flag an offload xfer as a streaming xfer.
    
    While those patches get review and are ready to backport to the adi
    tree, Workaround this limitation by checking if the tx_buf address is
    -1 to flag it as "streaming type".
    
    Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
    ahaslam2 committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    ef456b2 View commit details
    Browse the repository at this point in the history
  10. iio: dac: ad5791: Add offload support

    Add spi offload support to stream tx buffers using dma.
    This allows loading samples to the  dac with a rate of 1 MSPS.
    
    Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
    ahaslam2 committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    e9af1e7 View commit details
    Browse the repository at this point in the history