tests: drivers: pwm: pwm_loopback: Enable QTMR test.
Provide kconfig conf file to set timing parameters.
Provide overlay file for QTMR channel and pin configuration.
Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
diff --git a/tests/drivers/pwm/pwm_loopback/boards/mimxrt1180_evk_mimxrt1189_cm33.conf b/tests/drivers/pwm/pwm_loopback/boards/mimxrt1180_evk_mimxrt1189_cm33.conf
new file mode 100644
index 0000000..bda6fb5
--- /dev/null
+++ b/tests/drivers/pwm/pwm_loopback/boards/mimxrt1180_evk_mimxrt1189_cm33.conf
@@ -0,0 +1,5 @@
+CONFIG_TEST_PWM_PERIOD_NSEC=10000000
+CONFIG_TEST_PWM_PULSE_NSEC=1500000
+
+CONFIG_TEST_PWM_PERIOD_USEC=10000
+CONFIG_TEST_PWM_PULSE_USEC=7500
diff --git a/tests/drivers/pwm/pwm_loopback/boards/mimxrt1180_evk_mimxrt1189_cm33.overlay b/tests/drivers/pwm/pwm_loopback/boards/mimxrt1180_evk_mimxrt1189_cm33.overlay
new file mode 100644
index 0000000..3a871d1
--- /dev/null
+++ b/tests/drivers/pwm/pwm_loopback/boards/mimxrt1180_evk_mimxrt1189_cm33.overlay
@@ -0,0 +1,53 @@
+/*
+ * Copyright 2025 NXP
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+&pinctrl {
+ qtmr4_timer0_default: qtmr4_timer0_default {
+ group0 {
+ pinmux = <&iomuxc_gpio_ad_00_qtimer4_timer0>;
+ drive-strength = "normal";
+ slew-rate = "fast";
+ };
+ };
+
+ qtmr5_timer0_default: qtmr5_timer0_default {
+ group0 {
+ pinmux = <&iomuxc_gpio_ad_04_qtimer5_timer0>;
+ drive-strength = "normal";
+ slew-rate = "fast";
+ };
+ };
+};
+
+/* To test this sample, connect
+ * GPIO_AD_00(J45-15) ---> GPIO_AD_04(J45-5)
+ */
+
+/ {
+ pwm_loopback_0 {
+ compatible = "test-pwm-loopback";
+ pwms = <&qtmr4 0 0 PWM_POLARITY_NORMAL>, /* GPIO_AD_00, J45 pin 15, out */
+ <&qtmr5 0 0 PWM_POLARITY_NORMAL>; /* GPIO_AD_04, J45 pin 5, in */
+ };
+};
+
+&qtmr4 {
+ compatible = "nxp,qtmr-pwm";
+ pinctrl-0 = <&qtmr4_timer0_default>;
+ pinctrl-names = "default";
+ #pwm-cells = <3>;
+ prescaler = <128>;
+ status = "okay";
+};
+
+&qtmr5 {
+ compatible = "nxp,qtmr-pwm";
+ pinctrl-0 = <&qtmr5_timer0_default>;
+ pinctrl-names = "default";
+ #pwm-cells = <3>;
+ prescaler = <128>;
+ status = "okay";
+};