From 56014df8d9adef9eb62d2f02310539be072cb8ac Mon Sep 17 00:00:00 2001 From: Braeden Lane Date: Wed, 10 Dec 2025 14:06:37 -0800 Subject: [PATCH] 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 --- .../button/boards/cy8ckit_041s_max.overlay | 26 +++++++++++++++++++ .../boards/cy8ckit_041s_max.overlay | 17 ++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 samples/basic/button/boards/cy8ckit_041s_max.overlay create mode 100644 tests/drivers/gpio/gpio_basic_api/boards/cy8ckit_041s_max.overlay diff --git a/samples/basic/button/boards/cy8ckit_041s_max.overlay b/samples/basic/button/boards/cy8ckit_041s_max.overlay new file mode 100644 index 00000000000..6a5b7691bc0 --- /dev/null +++ b/samples/basic/button/boards/cy8ckit_041s_max.overlay @@ -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 = ; + }; + }; +}; + +&gpio_prt11 { + status = "okay"; +}; diff --git a/tests/drivers/gpio/gpio_basic_api/boards/cy8ckit_041s_max.overlay b/tests/drivers/gpio/gpio_basic_api/boards/cy8ckit_041s_max.overlay new file mode 100644 index 00000000000..5abf04d5fd3 --- /dev/null +++ b/tests/drivers/gpio/gpio_basic_api/boards/cy8ckit_041s_max.overlay @@ -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"; +};