All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cosmin Tanislav <demonsingur@gmail.com>
To: unlisted-recipients:; (no To-header on input)
Cc: Lars-Peter Clausen <lars@metafoo.de>,
	Michael Hennerich <Michael.Hennerich@analog.com>,
	Cosmin Tanislav <cosmin.tanislav@analog.com>,
	Jonathan Cameron <jic23@kernel.org>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	William Breathitt Gray <william.gray@linaro.org>,
	Linus Walleij <linus.walleij@linaro.org>,
	linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH v3 0/2] AD74115
Date: Thu, 17 Nov 2022 10:09:14 +0200	[thread overview]
Message-ID: <20221117080916.411766-1-cosmin.tanislav@analog.com> (raw)

The AD74115H is a single-channel, software-configurable, input and
output device for industrial control applications. The AD74115H
provides a wide range of use cases, integrated on a single chip.

These use cases include analog output, analog input, digital output,
digital input, resistance temperature detector (RTD), and thermocouple
measurement capability. The AD74115H also has an integrated HART modem.

A serial peripheral interface (SPI) is used to handle all communications
to the device, including communications with the HART modem. The digital
input and digital outputs can be accessed via the SPI or the
general-purpose input and output (GPIO) pins to support higher
speed data rates.

The device features a 16-bit, sigma-delta analog-to-digital converter
(ADC) and a 14-bit digital-to-analog converter (DAC).
The AD74115H contains a high accuracy 2.5 V on-chip reference that can
be used as the DAC and ADC reference.

V2 -> V3:
 * dt-bindings: remove address and size cells specifiers
 * dt-bindings: additionalProperties -> unevaluatedProperties
 * dt-bindings: remove pipe where not needed
 * dt-bindings: use required for adi,digital-input-sink-range-high: true
 * do not uselessly store poll time
 * fix ad74115_adc_gain capitalization
 * inline ad74115_channels_map[st->ch_func] access
 * keep consistent table naming
 * remove aldo1v8 regulator
 * spell out low-power
 * split up resistance offset and scale into separate function
 * use adc_rdy name for irq
 * use microvolt for conv2 range
 * use unsigned int for ad74115_adc_conv_mul
 * use unsigned int for ad74115_adc_gain
 * wrap module_driver call less

V1 -> V2:
 * dt-bindings: add spi peripheral allOf
 * dt-bindings: remove cs-gpios
 * dt-bindings: remove refin supply from example
 * dt-bindings: remove status
 * sort includes
 * ad74115_parse_fw_prop -> ad74115_apply_fw_prop
 * ad74115_setup_{comp,}_gc -> ad74115_setup_{comp,}_gpio_chip
 * gpiod_get_optional -> devm_gpiod_get_optional
 * add support for reset-gpios
 * add support for running without an interrupt
 * fix comma after terminating member
 * fix order of rate and range masks
 * fix reset pin wait time and out of reset time
 * fix rtd mode reading
 * pass chan spec only where needed
 * remove -en suffix
 * remove default 0 values
 * remove diag support
 * remove unecessary prop storage
 * reorder switch cases to match enum
 * set burnout enable bit based on burnout current
 * set default value for props
 * simplify dac hart slew usage
 * simplify prop value validation
 * use bool for 4 wire rtd mode
 * use bool for burnout current polarity
 * use bool for dac sc current limit
 * use bool for debounce mode
 * use bool for din sink range
 * use bool for din threshold mode
 * use devm_regulator_bulk_get_enable
 * use IIO_VAL_FRACTIONAL for resistance offset
 * use struct assignment for gpiochip
 * warn on empty prop mask

Cosmin Tanislav (2):
  dt-bindings: iio: addac: add AD74115
  iio: addac: add AD74115 driver

 .../bindings/iio/addac/adi,ad74115.yaml       |  373 ++++
 MAINTAINERS                                   |    8 +
 drivers/iio/addac/Kconfig                     |   14 +
 drivers/iio/addac/Makefile                    |    1 +
 drivers/iio/addac/ad74115.c                   | 1947 +++++++++++++++++
 5 files changed, 2343 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/addac/adi,ad74115.yaml
 create mode 100644 drivers/iio/addac/ad74115.c

-- 
2.38.1


             reply	other threads:[~2022-11-17  8:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-17  8:09 Cosmin Tanislav [this message]
2022-11-17  8:09 ` [PATCH v3 1/2] dt-bindings: iio: addac: add AD74115 Cosmin Tanislav
2022-11-20 17:27   ` Rob Herring
2022-11-17  8:09 ` [PATCH v3 2/2] iio: addac: add AD74115 driver Cosmin Tanislav
2022-11-17 16:22   ` Jonathan Cameron
2022-11-18 21:26   ` Linus Walleij
2022-11-23 20:49 ` [PATCH v3 0/2] AD74115 Jonathan Cameron

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=20221117080916.411766-1-cosmin.tanislav@analog.com \
    --to=demonsingur@gmail.com \
    --cc=Michael.Hennerich@analog.com \
    --cc=cosmin.tanislav@analog.com \
    --cc=devicetree@vger.kernel.org \
    --cc=jic23@kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=lars@metafoo.de \
    --cc=linus.walleij@linaro.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=william.gray@linaro.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.