Dumitru Ceclan
d86deaec1c
dt-bindings: iio: adc: Add common-mode-channel property
...
There are ADCs that are differential but support to measure single-ended
signals on the same channels by connecting a constant voltage to the
negative input pin.
This property allows to properly define a single-ended channel that
requires two inputs to be specified. Software can use the presence of
this property to mark the channel as not differential.
Reviewed-by: Conor Dooley <conor.dooley@microchip.com >
Signed-off-by: Dumitru Ceclan <dumitru.ceclan@analog.com >
Reviewed-by: Nuno Sa <nuno.sa@analog.com >
Reviewed-by: David Lechner <dlechner@baylibre.com >
Link: https://patch.msgid.link/20240607-ad4111-v7-1-97e3855900a0@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-22 10:52:38 +01:00
Alisa-Dariana Roman
dd471a2b77
dt-bindings: iio: adc: Add single-channel property
...
Devices that have both single-ended channels and differential channels
cause a bit of confusion when the channels are configured in the
devicetree.
Clarify difference between these two types of channels for such devices
by adding single-channel property alongside diff-channels. They should
be mutually exclusive.
Devices that have only single-ended channels can still use reg property
to reference a channel like before.
Suggested-by: Jonathan Cameron <jic23@kernel.org >
Signed-off-by: Alisa-Dariana Roman <alisa.roman@analog.com >
Reviewed-by: Conor Dooley <conor.dooley@microchip.com >
Link: https://lore.kernel.org/r/20240514120222.56488-5-alisa.roman@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-04 19:53:05 +01:00
Krzysztof Kozlowski
513ea6b7b4
dt-bindings: iio: adc: drop redundant type from label
...
dtschema defines label as string, so $ref in other bindings is
redundant.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Link: https://lore.kernel.org/r/20240226123004.91061-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-02-28 19:26:37 +00:00
Krzysztof Kozlowski
ab040c4223
dt-bindings: drop redundant part of title of shared bindings
...
The Devicetree bindings document does not have to say in the title that
it is a "binding", but instead just describe the hardware. For shared
(re-usable) schemas, name them all as "common properties".
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Acked-by: Guenter Roeck <linux@roeck-us.net > # watchdog
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com >
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com > # IIO
Acked-by: Miquel Raynal <miquel.raynal@bootlin.com >
Acked-by: Ulf Hansson <ulf.hansson@linaro.org > # MMC
Acked-by: Stephen Boyd <sboyd@kernel.org > # clk
Acked-by: Vinod Koul <vkoul@kernel.org > # dma
Acked-by: Mark Brown <broonie@kernel.org >
Acked-by: Hans Verkuil <hverkuil-cisco@xs4all.nl > # media
Acked-by: Sebastian Reichel <sre@kernel.org > # power
Acked-by: Viresh Kumar <viresh.kumar@linaro.org > # opp
Link: https://lore.kernel.org/r/20221216163815.522628-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Rob Herring <robh@kernel.org >
2022-12-16 11:41:49 -06:00
Oleksij Rempel
f7e196fc08
dt-bindings:iio:adc: add generic settling-time-us and oversampling-ratio channel properties
...
Settling time and over sampling is a typical challenge for different IIO ADC
devices. So, introduce channel specific settling-time-us and oversampling-ratio
properties to cover this use case.
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de >
Reviewed-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20210428073208.19570-2-o.rempel@pengutronix.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2021-05-17 13:49:11 +01:00
Jonathan Cameron
b70d154d65
dt-bindings:iio:adc: convert adc.txt to yaml
...
Each driver that uses this will need to use a $ref
We can't always enable it like most of the generic bindings due to
channel@X matching far more widely than IIO.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20201031182423.742798-2-jic23@kernel.org
2020-12-03 19:32:45 +00:00