Quantcast
Viewing all articles
Browse latest Browse all 4845

Device Tree • Re: SPI1-2cs in dtoverlay GPIO18 Output instead of SPI1_CE0_N

Ah - according to the datasheet, the ADS1118 wants CPHA=1. SPI1 and SPI2 can handle CPOL=0 and CPOL=1, but only CPHA=0 (the driver sets the mode_bits field to (SPI_CPOL | SPI_CS_HIGH | SPI_NO_CS), i.e. no SPI_CPHA.

Statistics: Posted by PhilE — Wed Nov 20, 2024 10:13 am



Viewing all articles
Browse latest Browse all 4845

Trending Articles