Skip to content

Commit a877018

Browse files
committed
tests: drivers: auxdisplay: Add TM1637 build test
Add build test coverage for the TM1637 auxdisplay driver. Creates gpio_devices.overlay for GPIO-based auxdisplay devices and adds corresponding test case to verify the driver builds correctly on native_sim platforms. Signed-off-by: Siratul Islam <[email protected]>
1 parent 88edce2 commit a877018

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* Copyright (c) 2025 Siratul Islam
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/ {
7+
test {
8+
#address-cells = <1>;
9+
#size-cells = <1>;
10+
11+
test_gpio: gpio@deadbeef {
12+
compatible = "vnd,gpio";
13+
gpio-controller;
14+
reg = <0xdeadbeef 0x1000>;
15+
#gpio-cells = <0x2>;
16+
status = "okay";
17+
};
18+
19+
test_tm1637: tm1637 {
20+
compatible = "titanmicro,tm1637";
21+
clk-gpios = <&test_gpio 0 0>;
22+
dio-gpios = <&test_gpio 1 0>;
23+
bit-delay-us = <100>;
24+
status = "okay";
25+
};
26+
};
27+
};

tests/drivers/build_all/auxdisplay/testcase.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ common:
44
- drivers
55
- rtc
66
tests:
7+
drivers.auxdisplay.build.gpio:
8+
extra_args: DTC_OVERLAY_FILE="gpio_devices.overlay"
9+
extra_configs:
10+
- CONFIG_GPIO=y
11+
platform_allow:
12+
- native_sim
13+
- native_sim/native/64
714
drivers.auxdisplay.build.i2c:
815
extra_args: DTC_OVERLAY_FILE="i2c_devices.overlay"
916
extra_configs:

0 commit comments

Comments
 (0)