drivers: adc: ads1x1x: add support for RDY pin

Some hardware configuration require rely on the ALERT/RDY
pin to know when and ADC conversion is completed.

The polling thread is left as fallback, when the pin
is not defined.

Signed-off-by: Efrain Calderon <efrain.calderon.estrada@gmail.com>
This commit is contained in:
Efrain Calderon 2023-05-16 15:15:29 +02:00 committed by Carles Cufí
commit 40414f72e9
3 changed files with 223 additions and 6 deletions

View file

@ -49,12 +49,14 @@
test_i2c_ads1014: ads1014@1 {
compatible = "ti,ads1014";
reg = <0x1>;
alert-rdy-gpios = <&test_gpio 0 0>;
#io-channel-cells = <1>;
};
test_i2c_ads1015: ads1015@2 {
compatible = "ti,ads1015";
reg = <0x2>;
alert-rdy-gpios = <&test_gpio 0 0>;
#io-channel-cells = <1>;
};
@ -67,12 +69,14 @@
test_i2c_ads1114: ads1114@4 {
compatible = "ti,ads1114";
reg = <0x4>;
alert-rdy-gpios = <&test_gpio 0 0>;
#io-channel-cells = <1>;
};
test_i2c_ads1115: ads1115@5 {
compatible = "ti,ads1115";
reg = <0x5>;
alert-rdy-gpios = <&test_gpio 0 0>;
#io-channel-cells = <1>;
};