dm: test: Add tests for the generic PHY uclass
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Mon, 24 Apr 2017 09:51:28 +0000 (11:51 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 9 May 2017 18:14:16 +0000 (12:14 -0600)
commit86322f5982206f431ee4678a74182859c249aac4
tree02c1bc73ed86147120b77818d09021f8b6d81f90
parent72e5016f878d142e925f0016cee4ee7cbf42ae5b
dm: test: Add tests for the generic PHY uclass

Those tests check:
- the ability for a phy-user to get a phy based on its name or its index
- the ability of a phy device (provider) to manage multiple ports
- the ability to perform operations on the phy (init,deinit,on,off)
- the behavior of the uclass when optional operations are not implemented

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sandbox/dts/test.dts
configs/sandbox_defconfig
configs/sandbox_noblk_defconfig
configs/sandbox_spl_defconfig
drivers/phy/Kconfig
drivers/phy/Makefile
drivers/phy/sandbox-phy.c [new file with mode: 0644]
test/dm/Makefile
test/dm/phy.c [new file with mode: 0644]