diff options
| author | Rasmus Villemoes <[email protected]> | 2021-08-19 11:57:05 +0200 |
|---|---|---|
| committer | Stefan Roese <[email protected]> | 2021-08-31 12:04:03 +0200 |
| commit | a9346b93b4c19003a8b14393811e1eb6063f0ed4 (patch) | |
| tree | 3b6fb1964336febe5e76982d7b5680f77fa8644e /arch | |
| parent | 2ac8490412c98211750e5fde9b7a5cda3035d7fd (diff) | |
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 <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Signed-off-by: Rasmus Villemoes <[email protected]>
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/sandbox/dts/test.dts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts index 962bdbe5567..e91387a81f8 100644 --- a/arch/sandbox/dts/test.dts +++ b/arch/sandbox/dts/test.dts @@ -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>; |
