Skip to content

Commit 8b438d2

Browse files
Phuc Phamfabiobaltieri
authored andcommitted
tests: drivers: gpio: Add support for RZ/G2UL-SMARC
Enable GPIO driver tests for RZ/G2UL-SMARC Signed-off-by: Phuc Pham <phuc.pham.xr@bp.renesas.com> Signed-off-by: Nhut Nguyen <nhut.nguyen.kc@renesas.com>
1 parent 14ab7d8 commit 8b438d2

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-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 Renesas Electronics Corporation
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/ {
7+
aliases {
8+
led0 = &led_0;
9+
};
10+
11+
gpio-led {
12+
compatible = "gpio-leds";
13+
14+
led_0: led_0 {
15+
gpios = <&gpio1 4 0>;
16+
};
17+
};
18+
};
19+
20+
&gpio {
21+
status = "okay";
22+
};
23+
24+
&gpio1 {
25+
irqs = <4 20>;
26+
status = "okay";
27+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_SKIP_PULL_TEST=y
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/ {
7+
resources {
8+
compatible = "test-gpio-basic-api";
9+
out-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
10+
in-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
11+
};
12+
};
13+
14+
&gpio {
15+
status = "okay";
16+
};
17+
18+
&gpio1 {
19+
irqs = <4 20>;
20+
status = "okay";
21+
};

0 commit comments

Comments
 (0)