-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: drivers: comparator: gpio_loopback: extend to xg24 and xg29 bo…
…ards Signed-off-by: Christian Galante <[email protected]>
- Loading branch information
1 parent
41e589c
commit be20548
Showing
3 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
tests/drivers/comparator/gpio_loopback/boards/xg24_dk2601b.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright (c) 2024 Silicon Labs | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <zephyr/dt-bindings/gpio/gpio.h> | ||
#include <zephyr/dt-bindings/comparator/silabs/silabs-acmp.h> | ||
|
||
/ { | ||
aliases { | ||
test-comp = &acmp0; | ||
}; | ||
|
||
zephyr,user { | ||
test-gpios = <&gpioc 3 GPIO_ACTIVE_HIGH>; | ||
}; | ||
|
||
}; | ||
|
||
&acmp0 { | ||
status = "okay"; | ||
hysteresis-mode = "disabled"; | ||
accuracy-mode = "high"; | ||
input-range = "full"; | ||
input-positive = <ACMP_INPUT_PC3>; | ||
input-negative = <ACMP_INPUT_VREFDIV1V25>; | ||
vref-divider = <63>; | ||
}; | ||
|
31 changes: 31 additions & 0 deletions
31
tests/drivers/comparator/gpio_loopback/boards/xg29_rb4412a.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright (c) 2024 Silicon Labs | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <zephyr/dt-bindings/gpio/gpio.h> | ||
#include <zephyr/dt-bindings/comparator/silabs/silabs-acmp.h> | ||
|
||
/ { | ||
aliases { | ||
test-comp = &acmp0; | ||
}; | ||
|
||
zephyr,user { | ||
test-gpios = <&gpioc 3 GPIO_ACTIVE_HIGH>; | ||
}; | ||
|
||
}; | ||
|
||
&acmp0 { | ||
status = "okay"; | ||
hysteresis-mode = "disabled"; | ||
accuracy-mode = "high"; | ||
input-range = "full"; | ||
input-positive = <ACMP_INPUT_PC3>; | ||
input-negative = <ACMP_INPUT_VREFDIV1V25>; | ||
vref-divider = <63>; | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters