tests/drivers/spi: nucleo_g474re: Configure bus using device tree
Bus config should now be done using device tree. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
7d21af4d39
commit
13860524dd
2 changed files with 9 additions and 4 deletions
|
@ -6,7 +6,3 @@ CONFIG_SPI_STM32_INTERRUPT=n
|
|||
CONFIG_SPI_ASYNC=n
|
||||
|
||||
CONFIG_SPI_LOOPBACK_MODE_LOOP=n
|
||||
|
||||
# Reduce bus clock speed to be able to reach SPI_LOOPBACK_SLOW_FREQ = 500000
|
||||
# with max prescaler 256
|
||||
CONFIG_CLOCK_STM32_APB2_PRESCALER=2
|
||||
|
|
|
@ -4,6 +4,15 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
&rcc {
|
||||
/*
|
||||
* Reduce bus clock speed to be able
|
||||
* to reach SPI_LOOPBACK_SLOW_FREQ = 500000
|
||||
* with max prescaler 256
|
||||
*/
|
||||
apb2-prescaler = <2>;
|
||||
};
|
||||
|
||||
&spi1 {
|
||||
dmas = <&dmamux1 0 11 0x20440 0
|
||||
&dmamux1 8 10 0x20480 0>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue