Skip to content

Commit da5030e

Browse files
teburdMaureenHelm
authored andcommitted
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>
1 parent 229d049 commit da5030e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/adc/adc_ads7052.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,8 @@ static const struct adc_driver_api ads7052_api = {
288288
#endif
289289
};
290290

291-
#define ADC_ADS7052_SPI_CFG SPI_OP_MODE_MASTER | SPI_MODE_CPHA | SPI_WORD_SET(8)
291+
#define ADC_ADS7052_SPI_CFG \
292+
SPI_OP_MODE_MASTER | SPI_MODE_CPOL | SPI_MODE_CPHA | SPI_WORD_SET(8) | SPI_TRANSFER_MSB
292293

293294
#define ADC_ADS7052_INIT(n) \
294295
\

0 commit comments

Comments
 (0)