This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5728: Does the ti,ads1015 driver support the ADS1018 ADC?

Part Number: AM5728
Other Parts Discussed in Thread: ADS1018, , ADS1015

I'm trying to use the ADS1018 ADC with the AM5728 under the TI linux-rt 6.03.

Originally, I was successfully using the ADS1018 on the 66AK2G ARM processor using the spidev driver.

I'm trying to move this to the AM5728 connected to MCSPI1 and am still trying to get the MCSPI device tree configuration right.

I noticed there is a driver for the ADS1015 ADC in the kernel driver code.

It looks like the ADS1015 and ADS1018 are generally the same, but the ADS1015 uses I2C and and the ADS1018 uses SPI.

Can the ADS1015 linux driver be used with the ADS1018?

In the device tree configuration files found in linux-rt/arch/arm/boot/dts there is an example usage in the file imx53-kp-ddc.dts.

The ti,ads1015 driver appears to need an I2C address so I would assume it won't support the ADS1018.

If the ADS1018 supported by this driver, is there an example device tree configuration?

&i2c3 {
   

    adc@48 {
        compatible = "ti,ads1015";
        reg = <0x48>;
        #address-cells = <1>;
        #size-cells = <0>;

        channel@4 {
            reg = <4>;
            ti,gain = <2>;
            ti,datarate = <4>;
        };

        channel@6 {
            reg = <6>;
            ti,gain = <2>;
            ti,datarate = <4>;
        };
    };
};

Thanks,

sjf