Skip to contentSkip to conversation

dt-bindings: iio: amplifiers: add ada4250 doc

PATCH In review Antoniu Miclaus 3 participants 5 messages Feb 23, 2022 – Feb 27, 2022

Subsystems (4)
lore
Share & tools
lore

Antoniu Miclaus

author maintainer
#0 lore raw

PATCH 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
new file mode 100644
index 000000000000..5277479be382
@@ -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
author maintainer
#1 lore raw

PATCH 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
index 5eb1357a9c78..f217a2a1e958 100644
@@ -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
index cb551d82f56b..2126331129cf 100644
@@ -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
author maintainer
#2 lore raw

PATCH v6 3/3 MAINTAINERS: add maintainer for ADA4250 driver

In reply to Antoniu Miclaus

Add myself as maintainer for the ADA4250 driver.

---
 MAINTAINERS | 8 ++++++++
 1 file changed, 8 insertions(+)
MAINTAINERS +8 -0
index fb18ce7168aa..0410054a7bf5 100644
@@ -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
maintainer Reviewed-by on v6 1/3
#3 lore raw
In reply to Antoniu Miclaus
Quoted 11 lines · Antoniu Miclaus

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
maintainer
#4 lore raw
Quoted 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.

---
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

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