From: Alexandru Ardelean <alexandru.ardelean@xxxxxxxxxx> Signed-off-by: Alexandru Ardelean <alexandru.ardelean@xxxxxxxxxx> --- drivers/staging/iio/Documentation/adc/ad7192.txt | 60 ++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 drivers/staging/iio/Documentation/adc/ad7192.txt diff --git a/drivers/staging/iio/Documentation/adc/ad7192.txt b/drivers/staging/iio/Documentation/adc/ad7192.txt new file mode 100644 index 000000000000..19efc0a9411c --- /dev/null +++ b/drivers/staging/iio/Documentation/adc/ad7192.txt @@ -0,0 +1,60 @@ +Analog Devices AD719x ADC Driver + +1. Overview + +The driver is intended to work with all AD719x ADC chips +from Analog Devices (AD7190, AD7192, AD7193, AD7195). + +It's based on top of the AD Sigma Delta driver + +2. Device Tree Configuration + +Example for use on a Raspberry Pi with interrupt line +connected to PIN 25 on the GPIO: + + adc_vref: fixedregulator@0 { + reg = <0>; + + compatible = "regulator-fixed"; + regulator-name = "fixed-supply"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + }; + + ad7190@0 { + compatible = "ad7190"; + reg = <0>; + spi-max-frequency = <1000000>; + spi-cpol; + spi-cpha; + + #interrupt-cells = <2>; + interrupts = <25 0x2>; + interrupt-parent = <&gpio>; + avdd-supply = <&adc_vref>; + + adi,clock-source-select = /bits/ 8 <0>; + adi,reference-voltage-mv = /bits/ 16 <3300>; + + adi,refin2-pins-enable; + adi,rejection-60-Hz-enable; + adi,chop-enable; + adi,buffer-enable; + adi,burnout-currents-enable; + adi,sinc3-filter-enable; + adi,unipolar-enable; + }; + +Notes (about this example): +* be sure to replace `compatible = "ad7190";` with + your actual chip model (ad7190, ad7192, ad7193, ad7195) + in order to make sure it works correctly +* PIN 25 must also be connected also to the DOUT pin + of the ADC (or MISO on the host) +* be sure to add the "/bits/" specifiers ; newer dtc versions + specify the property type/size using this field, + and the driver may not be able to find the property +* not all "adi,xxx" parameters are required ; + see the datasheet to get an idea of what you need + -- 2.14.1 -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html