Hi!
I'm use linux driver for ads124s08. When i try to read value, driver return always 0, on all channels.
Mode details:
- Kernel 4.19
- ads124S08 driver https://github.com/torvalds/linux/blob/master/drivers/iio/adc/ti-ads124s08.c
- link to dts file https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/iio/adc/ti,ads124s08.yaml
My dts fragment:
&spi0 { #address-cells = <1>; #size-cells = <0>; status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&spi0_pins>; adc@0 { compatible = "ti,ads124s06"; reg = <0>; spi-max-frequency = <1000000>; spi-cpha; reset-gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; }; };
4. Command to read values
cat /sys/bus/iio/devices/iio\:device0/in_voltage0_raw
Please help me