Interfacing the 8-channel A/D converter IC Texas ADC128S052

The Texas Instruments ADC128S052 is a low power 8-Channel @ 12 bit analog-to-digital converter specified for conversion throughput rates of 200 kSPS to 500 kSPS.

SPI building for the dts file at91-ariag25.dts:

spi0: spi@f0000000 {
    status = "okay";
    interrupts = <13 4 5>;
    cs-gpios = <&pioA 14 0>, <0>, <0>, <0>;

    device@0 {
        compatible = "spidev";
        spi-max-frequency = <5000000>;
        reg = <0>;
    };
};

Python example

The following two modules used in this example come from the Quick2wire project:

Bruna Mandolino