sandbox: add test of wdt_gpio driver
It seems that no other test has claimed gpio_a:7 yet, so use that. The only small wrinkle is modifying the existing wdt test to use uclass_get_device_by_driver() since we now have two UCLASS_WDT instances in play, so it's a little more robust to fetch the device by driver and not merely uclass+index. Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Stefan Roese <sr@denx.de> Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
This commit is contained in:
committed by
Stefan Roese
parent
2ac8490412
commit
a9346b93b4
@@ -793,6 +793,12 @@
|
||||
};
|
||||
};
|
||||
|
||||
gpio-wdt {
|
||||
gpios = <&gpio_a 7 0>;
|
||||
compatible = "linux,wdt-gpio";
|
||||
always-running;
|
||||
};
|
||||
|
||||
mbox: mbox {
|
||||
compatible = "sandbox,mbox";
|
||||
#mbox-cells = <1>;
|
||||
|
||||
Reference in New Issue
Block a user