[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <33c02a1fb9d839f62da5237f9476ccbf14271b6d.1749569957.git.Jonathan.Santos@analog.com>
Date: Wed, 11 Jun 2025 08:50:01 -0300
From: Jonathan Santos <Jonathan.Santos@...log.com>
To: <linux-iio@...r.kernel.org>, <devicetree@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <linux-gpio@...r.kernel.org>
CC: Jonathan Santos <Jonathan.Santos@...log.com>, <andy@...nel.org>,
<nuno.sa@...log.com>, <Michael.Hennerich@...log.com>,
<marcelo.schmitt@...log.com>, <jic23@...nel.org>, <robh@...nel.org>,
<krzk+dt@...nel.org>, <conor+dt@...nel.org>,
<marcelo.schmitt1@...il.com>, <linus.walleij@...aro.org>,
<brgl@...ev.pl>, <lgirdwood@...il.com>, <broonie@...nel.org>,
<jonath4nns@...il.com>, <dlechner@...libre.com>,
Conor
Dooley <conor.dooley@...rochip.com>
Subject: [PATCH v11 02/11] dt-bindings: iio: adc: ad7768-1: document regulator provider property
The AD7768-1 provides a buffered common-mode voltage output
on the VCM pin that can be used to bias analog input signals.
Add regulators property to enable the use of the VCM output,
referenced here as vcm-output, by any other device.
Acked-by: Conor Dooley <conor.dooley@...rochip.com>
Signed-off-by: Jonathan Santos <Jonathan.Santos@...log.com>
---
v11 Changes:
* None.
v10 Changes:
* none.
v9 Changes:
* none.
v8 Changes:
* none.
v7 Changes:
* none.
v6 Changes:
* None.
v5 Changes:
* removed `regulator-min-microvolt` and `regulator-max-microvolt`.
v4 Changes:
* replace "vcm_output" property name for "vcm-output".
v3 Changes:
* VCM is now provided as a regulator within the device, instead of a
custom property.
v2 Changes:
* New patch in v2.
---
.../bindings/iio/adc/adi,ad7768-1.yaml | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml
index 3ce59d4d065f..0e651820e2cf 100644
--- a/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml
@@ -47,6 +47,19 @@ properties:
in any way, for example if the filter decimation rate changes.
As the line is active low, it should be marked GPIO_ACTIVE_LOW.
+ regulators:
+ type: object
+ description:
+ list of regulators provided by this controller.
+
+ properties:
+ vcm-output:
+ $ref: /schemas/regulator/regulator.yaml#
+ type: object
+ unevaluatedProperties: false
+
+ additionalProperties: false
+
reset-gpios:
maxItems: 1
@@ -120,6 +133,12 @@ examples:
reg = <0>;
label = "channel_0";
};
+
+ regulators {
+ vcm_reg: vcm-output {
+ regulator-name = "ad7768-1-vcm";
+ };
+ };
};
};
...
--
2.34.1
Powered by blists - more mailing lists