Skip to content

Commit 36b1f3f

Browse files
committed
tests: comparator: enable gpio_loopback for lpcxpresso55s36
enable gpio_loopback for lpcxpresso55s36 Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
1 parent 395faa8 commit 36b1f3f

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Copyright 2025 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <zephyr/dt-bindings/gpio/gpio.h>
8+
9+
/ {
10+
aliases {
11+
test-comp = &hscmp0;
12+
};
13+
14+
zephyr,user {
15+
/* P0-10 (LPC55S36-EVK J9-7) output connect to P1-5 (LPC55S36-EVK J9-9). */
16+
test-gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
17+
};
18+
};
19+
20+
&hscmp0 {
21+
positive-mux-input = "IN3";
22+
negative-mux-input = "DAC";
23+
dac-vref-source = "VREFH1";
24+
dac-value = <127>;
25+
};

tests/drivers/comparator/gpio_loopback/testcase.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,6 @@ tests:
4444
platform_allow:
4545
- nucleo_h745zi_q/stm32h745xx/m7
4646
- nucleo_g474re/stm32g474xx
47+
drivers.comparator.gpio_loopback.nxp_hscmp:
48+
platform_allow:
49+
- lpcxpresso55s36

0 commit comments

Comments
 (0)