tests: Add cy8ckit_041s_max test overlays

Add test and sample overlays for CY8CKIT-041S-MAX board:
- GPIO basic API test using P1.2 and P1.3 pins
- Button sample using P11.5 with pull-up configuration

Signed-off-by: Braeden Lane <Braeden.Lane@infineon.com>
This commit is contained in:
Braeden Lane
2025-12-10 14:06:37 -08:00
committed by Anas Nashif
parent 060fe41df0
commit 56014df8d9
2 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
/*
* Copyright (c) 2025 Infineon Technologies AG,
* or an affiliate of Infineon Technologies AG.
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
aliases {
sw0 = &user_btn;
};
gpio_keys {
compatible = "gpio-keys";
user_btn: button_0 {
label = "SW_0";
gpios = <&gpio_prt11 5 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
zephyr,code = <INPUT_KEY_0>;
};
};
};
&gpio_prt11 {
status = "okay";
};

View File

@@ -0,0 +1,17 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright (c) 2025 Infineon Technologies AG
*/
/ {
resources {
compatible = "test-gpio-basic-api";
out-gpios = <&gpio_prt1 2 0>;
in-gpios = <&gpio_prt1 3 0>;
};
};
&gpio_prt1 {
status = "okay";
};