adc: ADS7052 correct spi configuration

SPI configuration did not set bit ordering or more importantly the clock
polarity which seemed to be misconfigured. Setting this corrects one more
quirk when working with this part on the TDK Robokit1

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
This commit is contained in:
Tom Burdick 2023-04-29 14:26:19 -05:00 committed by Maureen Helm
parent 229d049d4d
commit da5030eae1

View file

@ -288,7 +288,8 @@ static const struct adc_driver_api ads7052_api = {
#endif
};
#define ADC_ADS7052_SPI_CFG SPI_OP_MODE_MASTER | SPI_MODE_CPHA | SPI_WORD_SET(8)
#define ADC_ADS7052_SPI_CFG \
SPI_OP_MODE_MASTER | SPI_MODE_CPOL | SPI_MODE_CPHA | SPI_WORD_SET(8) | SPI_TRANSFER_MSB
#define ADC_ADS7052_INIT(n) \
\