Linux IIO development
 help / color / mirror / Atom feed
From: Mariel Tinaco <Mariel.Tinaco@analog.com>
To: linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	"Jonathan Cameron" <jic23@kernel.org>,
	"Lars-Peter Clausen" <lars@metafoo.de>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Michael Hennerich" <Michael.Hennerich@analog.com>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Marcelo Schmitt" <marcelo.schmitt1@gmail.com>,
	"Dimitri Fedrau" <dima.fedrau@gmail.com>,
	"David Lechner" <dlechner@baylibre.com>,
	"Nuno Sá" <noname.nuno@gmail.com>
Subject: [PATCH v2 0/2] add AD8460 DAC driver
Date: Tue, 30 Jul 2024 11:05:07 +0800	[thread overview]
Message-ID: <20240730030509.57834-1-Mariel.Tinaco@analog.com> (raw)

Add support to AD8460 Waveform Generator DAC

changes in v2

ad8460:
  * Mapped the fault monitoring settings for overcurrent, overvoltage
    and overtemperature limits to IIO Event threshold controls.
  * Added optional raw temperature attribute that gets data from an
    IIO provider if it is present. e.g. an ADC channel that reads data
    from TMP pin
  * Added setter/getter for raw current
  * Used devm_iio_dmaengine_buffer_setup_ext to setup DMA engine buffer
    (No IIO Backend)
  * Used byte-swapping and bulk-transfer for HVDAC data words
  * Refactored regulator section to make us of
    devm_regulator_get_enable_read_voltage
  * Fixed error handling for rset_ohms property
  * Reverted IIO_ALTVOLTAGE channel type to IIO_VOLTAGE. Setting it aside
    for when IIO backend would be implemented
  * Added attributes for toggle_en, symbol and 16 raw values following
    the generalized sysfs ABI for DAC devices.
    toggle_en: (0) to enable Arbitrary Waveform Generator (AWG) mode,
                   generate DAC output from parallel interface
               (1) to enable Arbitrary Pattern Generator (APG) mode,
                   generate DAC output from HVDAC data words
    symbol: for APG mode, declare the number of raw HVDAC data words
            from 0 to cycle through in the DAC output, a.k.a Pattern Depth
    rawN: HVDAC Data words available, from 0 to 15

Bindings:
  * Matched property name of REFIO_1P2V regulator to its pin name.
  * Added GPIO bindings for sdn-reset, reset, and sdn-io although only
    reset is supported by the driver.
  * Added Regulator bindings for hvcc, hvee, vcc-5v, vref-5v,
    dvdd-3p3v and avdd-3p3v
  * Added DMA-channel bindings.
  * Hard-coded limits for voltage, current and temperature

Mariel Tinaco (2):
  dt-bindings: iio: dac: add docs for ad8460
  iio: dac: support the ad8460 Waveform DAC

 .../bindings/iio/dac/adi,ad8460.yaml          | 154 +++
 MAINTAINERS                                   |   8 +
 drivers/iio/dac/Kconfig                       |  13 +
 drivers/iio/dac/Makefile                      |   1 +
 drivers/iio/dac/ad8460.c                      | 976 ++++++++++++++++++
 5 files changed, 1152 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/dac/adi,ad8460.yaml
 create mode 100644 drivers/iio/dac/ad8460.c


base-commit: 9900e7a54764998ba3a22f06ec629f7b5fe0b422
-- 
2.34.1


             reply	other threads:[~2024-07-30  3:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-30  3:05 Mariel Tinaco [this message]
2024-07-30  3:05 ` [PATCH v2 1/2] dt-bindings: iio: dac: add docs for ad8460 Mariel Tinaco
2024-07-30  6:15   ` Krzysztof Kozlowski
2024-08-17 11:18     ` Tinaco, Mariel
2024-08-18  7:04       ` Krzysztof Kozlowski
2024-08-03 10:05   ` Jonathan Cameron
2024-08-17 11:19     ` Tinaco, Mariel
2024-07-30  3:05 ` [PATCH v2 2/2] iio: dac: support the ad8460 Waveform DAC Mariel Tinaco
2024-08-02  6:21   ` kernel test robot
2024-08-02  8:04   ` kernel test robot
2024-08-02  9:46   ` kernel test robot
2024-08-03 10:29   ` Jonathan Cameron
2024-08-17 11:59     ` Tinaco, Mariel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240730030509.57834-1-Mariel.Tinaco@analog.com \
    --to=mariel.tinaco@analog.com \
    --cc=Michael.Hennerich@analog.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dima.fedrau@gmail.com \
    --cc=dlechner@baylibre.com \
    --cc=jic23@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo.schmitt1@gmail.com \
    --cc=noname.nuno@gmail.com \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox