dt-bindings: iio: amplifiers: add ada4250 doc
Antoniu Miclaus
maintainerPATCH v6 1/3 dt-bindings: iio: amplifiers: add ada4250 doc
Add device tree bindings for the ADA4250 driver.
---
changes in v6:
- add space before { in the amplifier node example
.../bindings/iio/amplifiers/adi,ada4250.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/amplifiers/adi,ada4250.yaml
Documentation/devicetree/bindings/iio/amplifiers/adi,ada4250.yaml new file +50 -0
@@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/amplifiers/adi,ada4250.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ADA4250 Programmable Gain Instrumentation Amplifier + +maintainers: + - Antoniu Miclaus <[email protected]> + +description: | + Precision Low Power, 110kHz, 26uA, Programmable Gain Instrumentation Amplifier. + +properties: + compatible: + enum: + - adi,ada4250 + + reg: + maxItems: 1 + + avdd-supply: true + + adi,refbuf-enable: + description: + Enable internal buffer to drive the reference pin. + type: boolean + + spi-max-frequency: true + +required: + - compatible + - reg + - avdd-supply + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + amplifier@0 { + compatible = "adi,ada4250"; + reg = <0>; + avdd-supply = <&avdd>; + }; + }; +...
Signature · 1 line
2.35.1
Antoniu Miclaus
maintainerPATCH v6 2/3 iio: amplifiers: ada4250: add support for ADA4250
The ADA4250 is an instrumentation amplifier with SPI/pin-strap progammable gains that is optimized for ultra-low power systems. With a minimum supply voltage of 1.7V, 26uA of quiescent current, a shutdown mode, a sleep mode, and a fast wake up settling time, ADA4250 can be power cycled on a battery powered system for even futher savings.
--- drivers/iio/amplifiers/Kconfig | 11 + drivers/iio/amplifiers/Makefile | 1 + drivers/iio/amplifiers/ada4250.c | 403 +++++++++++++++++++++++++++++++ 3 files changed, 415 insertions(+) create mode 100644 drivers/iio/amplifiers/ada4250.c
drivers/iio/amplifiers/Kconfig +11 -0
@@ -23,6 +23,17 @@ config AD8366 To compile this driver as a module, choose M here: the module will be called ad8366. +config ADA4250 + tristate "Analog Devices ADA4250 Instrumentation Amplifier" + depends on SPI + help + Say yes here to build support for Analog Devices ADA4250 + SPI Amplifier's support. The driver provides direct access via + sysfs. + + To compile this driver as a module, choose M here: the + module will be called ada4250. + config HMC425 tristate "Analog Devices HMC425A and similar GPIO Gain Amplifiers" depends on GPIOLIB
drivers/iio/amplifiers/Makefile +1 -0
@@ -5,4 +5,5 @@ # When adding new entries keep the list in alphabetical order obj-$(CONFIG_AD8366) += ad8366.o +obj-$(CONFIG_ADA4250) += ada4250.o obj-$(CONFIG_HMC425) += hmc425a.o
drivers/iio/amplifiers/ada4250.c new file +403 -0
403 lines not on this page · raw message
Signature · 1 line
2.35.1
Antoniu Miclaus
maintainerPATCH v6 3/3 MAINTAINERS: add maintainer for ADA4250 driver
In reply to Antoniu MiclausAdd myself as maintainer for the ADA4250 driver.
--- MAINTAINERS | 8 ++++++++ 1 file changed, 8 insertions(+)
MAINTAINERS +8 -0
@@ -1075,6 +1075,14 @@ L: [email protected] S: Maintained F: drivers/media/i2c/ad9389b* +ANALOG DEVICES INC ADA4250 DRIVER +M: Antoniu Miclaus <[email protected]> +L: [email protected] +S: Supported +W: https://ez.analog.com/linux-software-drivers +F: Documentation/devicetree/bindings/iio/amplifiers/adi,ada4250.yaml +F: drivers/iio/amplifiers/ada4250.c + ANALOG DEVICES INC ADGS1408 DRIVER M: Mircea Caprioru <[email protected]> S: Supported
Signature · 1 line
2.35.1
Quoted 11 lines · Antoniu Miclaus
Add device tree bindings for the ADA4250 driver.
Signed-off-by Antoniu Miclaus <[email protected]>Reviewed-by Krzysztof Kozlowski <[email protected]>---
changes in v6:
- add space before{in the amplifier node example.../bindings/iio/amplifiers/adi,ada4250.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/amplifiers/adi,ada4250.yaml
Jonathan Cameron
maintainerQuoted 13 lines · On Thu, 24 Feb 2022 10:31:17 -0600 Rob Herring <[email protected]> wrote:
Quoted 11 lines · Antoniu Miclaus
Add device tree bindings for the ADA4250 driver.
Signed-off-by Antoniu Miclaus <[email protected]>Reviewed-by Krzysztof Kozlowski <[email protected]>---
changes in v6:
- add space before{in the amplifier node example.../bindings/iio/amplifiers/adi,ada4250.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/amplifiers/adi,ada4250.yaml
Quoted 1 line
Reviewed-by Rob Herring <[email protected]>
Series applied to the togreg branch of iio.git and pushed out as testing for 0-day to take a quick look before I go making a mess of linux-next.
One side comment though - when there are lots of revisions in a short timescale and people haven't had time to get back to the intermediate ones, it is particularly helpful to give a multi version change log.
i.e. tell us what happened in at least the last couple of revisions to save on having to go find the earlier threads to find out what changed in v5 and v4!
Also, I always prefer a cover letter for a series even if brief. It give somewhere to reply to if there are discussions covering multiple patches, or if someone wants to give a tag for the whole series that I can trivially pick up with b4. Obviously no point for single patch series though!
I don't normally moan about this, but I was moaning anyway so why not get everything off my chest! :)
Thanks,
Jonathan