dt-bindings: iio: imx8qxp-adc: add missing vref-supply
PATCH v2 1/1 dt-bindings: iio: imx8qxp-adc: add missing vref-supply
Although this property is used right now for IIO_CHAN_INFO_SCALE, this ADC has two internal reference voltages, which the driver currently doesn't make use of.
---
Thanks for your inputs. This improved descritpion should make it clear that this property is only about the external reference voltage, not about the optional, internal voltages.
Changes in v2:
* Improved commit message subject as suggested
* Add hint about feature flag regarding multiple, internal, reference voltages
.../devicetree/bindings/iio/adc/nxp,imx8qxp-adc.yaml | 7 +++++++ 1 file changed, 7 insertions(+)
Documentation/devicetree/bindings/iio/adc/nxp,imx8qxp-adc.yaml +7 -0
@@ -39,6 +39,12 @@ properties: power-domains: maxItems: 1 + vref-supply: + description: | + External ADC reference voltage supply on VREFH pad. If VERID[MVI] is + set, there are additional, internal reference voltages selectable. + VREFH1 is always from VREFH pad. + "#io-channel-cells": const: 1
@@ -72,6 +78,7 @@ examples: assigned-clocks = <&clk IMX_SC_R_ADC_0>; assigned-clock-rates = <24000000>; power-domains = <&pd IMX_SC_R_ADC_0>; + vref-supply = <®_1v8>; #io-channel-cells = <1>; }; };
Signature · 1 line
2.34.1
Quoted 6 lines · Alexander Stein
Although this property is used right now for
IIO_CHAN_INFO_SCALE, this ADC has two internal reference voltages, which the driver currently doesn't make use of.Fixes db73419d8c06 ("dt-bindings: iio: adc: Add binding documentation for NXP IMX8QXP ADC")Signed-off-by Alexander Stein <[email protected]>
Best regards,
Krzysztof
Quoted 15 lines
-----Original Message-----
From: Alexander Stein <[email protected]>
Sent: 2023年4月24日 17:23
To: Cai Huoqing <[email protected]>; Bough Chen <[email protected]>; Jonathan Cameron <[email protected]>; Lars-Peter Clausen <[email protected]>; Rob Herring <[email protected]>; Krzysztof Kozlowski <[email protected]>; Shawn Guo <[email protected]>; Sascha Hauer <[email protected]>; Fabio Estevam <[email protected]>
Cc: Alexander Stein <[email protected]>; Pengutronix Kernel Team <[email protected]>; dl-linux-imx <[email protected]>; [email protected]; [email protected]; [email protected]; Marco Felsch <[email protected]>
Subject: [PATCH v2 1/1] dt-bindings: iio: imx8qxp-adc: add missing vref-supply
Quoted 7 lines
Although this property is used right now for
IIO_CHAN_INFO_SCALE, this ADC has two internal reference voltages, which the driver currently doesn't make use of.Fixes db73419d8c06 ("dt-bindings: iio: adc: Add binding documentation for NXPIMX8QXP ADC")
Signed-off-by Alexander Stein <[email protected]>
Thanks!
Quoted 41 lines
---
Thanks for your inputs. This improved descritpion should make it clear that this property is only about the external reference voltage, not about the optional, internal voltages.Changes in v2:
* Improved commit message subject as suggested
* Add hint about feature flag regarding multiple, internal, reference voltages.../devicetree/bindings/iio/adc/nxp,imx8qxp-adc.yaml | 7 +++++++ 1 file changed, 7 insertions(+)Documentation/devicetree/bindings/iio/adc/nxp,imx8qxp-adc.yaml +7
-1@@ -39,6 +39,12 @@ properties: power-domains: maxItems: 1 + vref-supply: + description: | + External ADC reference voltage supply on VREFH pad. If VERID[MVI] is + set, there are additional, internal reference voltages selectable. + VREFH1 is always from VREFH pad. + "#io-channel-cells": const: 1@@ -72,6 +78,7 @@ examples: assigned-clocks = <&clk IMX_SC_R_ADC_0>; assigned-clock-rates = <24000000>; power-domains = <&pd IMX_SC_R_ADC_0>; + vref-supply = <®_1v8>; #io-channel-cells = <1>; }; }; --2.34.1
Jonathan Cameron
maintainerQuoted 6 lines · On Mon, 24 Apr 2023 11:23:12 +0200 Alexander Stein…
Although this property is used right now for
IIO_CHAN_INFO_SCALE, this ADC has two internal reference voltages, which the driver currently doesn't make use of.Fixes db73419d8c06 ("dt-bindings: iio: adc: Add binding documentation for NXP IMX8QXP ADC")Signed-off-by Alexander Stein <[email protected]>
Interesting that we are talking her only about vrefh, what about vrefp? I guess the assumption is that will be wired to 0V?
The first reference I found didn't seem to imply that was necessarily the case. https://www.mouser.com/pdfDocs/IMX8QXPAEC.pdf
Jonathan
Quoted 38 lines
---
Thanks for your inputs. This improved descritpion should make it clear that this property is only about the external reference voltage, not about the optional, internal voltages.Changes in v2:
* Improved commit message subject as suggested
* Add hint about feature flag regarding multiple, internal, reference voltages.../devicetree/bindings/iio/adc/nxp,imx8qxp-adc.yaml | 7 +++++++ 1 file changed, 7 insertions(+)Documentation/devicetree/bindings/iio/adc/nxp,imx8qxp-adc.yaml +7
-0@@ -39,6 +39,12 @@ properties: power-domains: maxItems: 1 + vref-supply: + description: | + External ADC reference voltage supply on VREFH pad. If VERID[MVI] is + set, there are additional, internal reference voltages selectable. + VREFH1 is always from VREFH pad. + "#io-channel-cells": const: 1@@ -72,6 +78,7 @@ examples: assigned-clocks = <&clk IMX_SC_R_ADC_0>; assigned-clock-rates = <24000000>; power-domains = <&pd IMX_SC_R_ADC_0>; + vref-supply = <®_1v8>; #io-channel-cells = <1>; }; };
Am Sonntag, 30. April 2023, 19:15:58 CEST schrieb Jonathan Cameron:
Quoted 7 lines
On Mon, 24 Apr 2023 11:23:12 +0200
Quoted 4 lines · Alexander Stein
Although this property is used right now for
IIO_CHAN_INFO_SCALE, this ADC has two internal reference voltages, which the driver currently doesn't make use of.
Quoted 6 lines
Quoted 3 lines
Fixes db73419d8c06 ("dt-bindings: iio: adc: Add binding documentation forNXP IMX8QXP ADC") Signed-off-by: Alexander Stein
<[email protected]>Interesting that we are talking her only about vrefh, what about vrefp? I guess the assumption is that will be wired to 0V?
What's vrefp? The only other signal related to ADC is vrefl.
Quoted 2 lines
The first reference I found didn't seem to imply that was necessarily the case. https://www.mouser.com/pdfDocs/IMX8QXPAEC.pdf
Assuming you are talking about vrefh and vrefl, how is this a problem? Even if vrefl is not 0V, the voltage difference is what the ADC uses as reference voltage, so this should be supplied in the DT then.
Best regards
Alexander
Quoted 50 lines
Jonathan
Quoted 48 lines
---
Thanks for your inputs. This improved descritpion should make it clear that this property is only about the external reference voltage, not about the optional, internal voltages.Changes in v2:
* Improved commit message subject as suggested
* Add hint about feature flag regarding multiple, internal, referencevoltages
.../devicetree/bindings/iio/adc/nxp,imx8qxp-adc.yaml | 7 +++++++ 1 file changed, 7 insertions(+)diff --git
a/Documentation/devicetree/bindings/iio/adc/nxp,imx8qxp-adc.yamlb/Documentation/devicetree/bindings/iio/adc/nxp,imx8qxp-adc.yamlindex63369ba388e4..878e67054d7c100644Documentation/devicetree/bindings/iio/adc/nxp,imx8qxp-adc.yaml +3
-0@@ -39,6 +39,12 @@ properties: power-domains: maxItems: 1 + vref-supply: + description: | + External ADC reference voltage supply on VREFH pad. If VERID[MVI]is
Documentation/devicetree/bindings/iio/adc/nxp,imx8qxp-adc.yaml +4
-0+ set, there are additional, internal reference voltages selectable. + VREFH1 is always from VREFH pad. + "#io-channel-cells": const: 1@@ -72,6 +78,7 @@ examples: assigned-clocks = <&clk IMX_SC_R_ADC_0>; assigned-clock-rates = <24000000>; power-domains = <&pd IMX_SC_R_ADC_0>; + vref-supply = <®_1v8>; #io-channel-cells = <1>;}; };
Signature · 4 lines
TQ-Systems GmbH | Mühlstraße 2, Gut Delling | 82229 Seefeld, Germany Amtsgericht München, HRB 105018 Geschäftsführer: Detlef Schneider, Rüdiger Stahl, Stefan Schneider http://www.tq-group.com/
Quoted 8 lines · On Tue, 02 May 2023 08:34:12 +0200 Alexander Stein…
Am Sonntag, 30. April 2023, 19:15:58 CEST schrieb Jonathan Cameron:
Quoted 7 lines
On Mon, 24 Apr 2023 11:23:12 +0200
Quoted 4 lines · Alexander Stein
Although this property is used right now for
IIO_CHAN_INFO_SCALE, this ADC has two internal reference voltages, which the driver currently doesn't make use of.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Fixes db73419d8c06 ("dt-bindings: iio: adc: Add binding documentation forNXP IMX8QXP ADC") Signed-off-by: Alexander Stein
<[email protected]>Interesting that we are talking her only about vrefh, what about vrefp? I guess the assumption is that will be wired to 0V?
What's vrefp? The only other signal related to ADC is vrefl.
oops. Indeed vrefl.
Quoted 7 lines
Quoted 3 lines
The first reference I found didn't seem to imply that was necessarily the case. https://www.mouser.com/pdfDocs/IMX8QXPAEC.pdf
Assuming you are talking about vrefh and vrefl, how is this a problem? Even if vrefl is not 0V, the voltage difference is what the ADC uses as reference voltage, so this should be supplied in the DT then.
Those two voltages can be supplied by entirely unrelated regulators (well probably high precision references, but represented as regulators). Those may well need turning on.
I don't think there is any way to define that in DT without the consumer (here the ADC) taking two different supplies.
Maybe that's a usecase no one cares about though and they will either supply this with fixed regulators, or with a single precision reference supplying both voltages.
Also, assuming these are used in a moderately normal reference way, if vrefl is not 0V the driver should be supplying offset information to consumers of this channel (userspace etc) to account for that.
meh. I don't care that much if this isn't a case we actually need to care about. I just found it interesting the datasheet didn't talk about these as either a differential pair (so balanced) or a reference 0V and vref.
I'll apply this as it stands.
Applied to the fixes-togreg branch of iio.git
Thanks,
Jonathan
Quoted 56 lines
Best regards
AlexanderQuoted 50 lines
Jonathan
Quoted 48 lines
---
Thanks for your inputs. This improved descritpion should make it clear that this property is only about the external reference voltage, not about the optional, internal voltages.Changes in v2:
* Improved commit message subject as suggested
* Add hint about feature flag regarding multiple, internal, referencevoltages
.../devicetree/bindings/iio/adc/nxp,imx8qxp-adc.yaml | 7 +++++++ 1 file changed, 7 insertions(+)diff --git
a/Documentation/devicetree/bindings/iio/adc/nxp,imx8qxp-adc.yamlb/Documentation/devicetree/bindings/iio/adc/nxp,imx8qxp-adc.yamlindex63369ba388e4..878e67054d7c100644Documentation/devicetree/bindings/iio/adc/nxp,imx8qxp-adc.yaml +3
-0@@ -39,6 +39,12 @@ properties: power-domains: maxItems: 1 + vref-supply: + description: | + External ADC reference voltage supply on VREFH pad. If VERID[MVI]is
Documentation/devicetree/bindings/iio/adc/nxp,imx8qxp-adc.yaml +4
-0+ set, there are additional, internal reference voltages selectable. + VREFH1 is always from VREFH pad. + "#io-channel-cells": const: 1@@ -72,6 +78,7 @@ examples: assigned-clocks = <&clk IMX_SC_R_ADC_0>; assigned-clock-rates = <24000000>; power-domains = <&pd IMX_SC_R_ADC_0>; + vref-supply = <®_1v8>; #io-channel-cells = <1>;}; };