[PATCH 2/6] sandbox: test: Add a second SPI slave on sandbox_spi bus
Simon Glass
sjg at chromium.org
Sat Dec 12 16:39:30 CET 2020
On Sun, 6 Dec 2020 at 14:23, Ovidiu Panait <ovidiu.panait at windriver.com> wrote:
>
> Place a second spi slave on the sandbox_spi bus, to be used by the
> spi_claim_bus() testcase we are about to introduce. We need to make sure
> that jumping between slaves calling spi_claim_bus() sets the bus speed and
> mode appropriately. Use different max-hz and mode properties for this new
> slave.
>
> Also, update sandbox_spi cs_info call to allow activity on CS0/CS1 and
> adapt dm_test_spi_find() testcase for this new setup.
>
> Signed-off-by: Ovidiu Panait <ovidiu.panait at windriver.com>
> ---
>
> arch/sandbox/dts/test.dts | 10 +++++++++-
> drivers/spi/sandbox_spi.c | 4 ++--
> test/dm/spi.c | 2 +-
> 3 files changed, 12 insertions(+), 4 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list