Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions boards/ti/am243x_evm/am243x_evm_am2434_r5f0_0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ toolchain:
supported:
- spi
- sdhc
- pwm
vendor: ti
3 changes: 3 additions & 0 deletions boards/ti/am243x_evm/am243x_evm_am2434_r5f0_0_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ CONFIG_UART_CONSOLE=y

# Enable MPU
CONFIG_ARM_MPU=y

# Enable Clock Control
CONFIG_CLOCK_CONTROL=y
1 change: 1 addition & 0 deletions boards/ti/am62l_evm/am62l_evm_am62l3_a53.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ supported:
- adc
- uart
- shdc
- pwm
testing:
ignore_tags:
- net
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* SPDX-FileCopyrightText: 2026 Texas Instruments Incorporated
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/dt-bindings/pwm/pwm.h>

/ {
pwm_loopback_0 {
compatible = "test-pwm-loopback";
pwms = <&main_epwm0 0 0 PWM_POLARITY_NORMAL>,
<&main_ecap0 0 0 PWM_POLARITY_NORMAL>;
};
};

&main_epwm0 {
status = "okay";
};

&main_ecap0 {
status = "okay";
};
22 changes: 22 additions & 0 deletions tests/drivers/pwm/pwm_loopback/boards/am62l_evm_am62l3_a53.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* SPDX-FileCopyrightText: 2026 Texas Instruments Incorporated
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/dt-bindings/pwm/pwm.h>

/ {
pwm_loopback_0 {
compatible = "test-pwm-loopback";
pwms = <&main_epwm0 0 0 PWM_POLARITY_NORMAL>,
<&main_ecap0 0 0 PWM_POLARITY_NORMAL>;
};
};

&main_epwm0 {
status = "okay";
};

&main_ecap0 {
status = "okay";
};
31 changes: 13 additions & 18 deletions tests/drivers/pwm/pwm_loopback/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
common:
tags:
- pwm
- drivers
- userspace
depends_on: pwm
filter: dt_compat_enabled("test-pwm-loopback")
harness: ztest
harness_config:
fixture: pwm_loopback

tests:
drivers.pwm.loopback:
tags:
- pwm
- drivers
- userspace
depends_on: pwm
filter: dt_compat_enabled("test-pwm-loopback")
harness: ztest
harness_config:
fixture: pwm_loopback
extra_args:
- platform:am62l_evm/am62l3/a53:SNIPPET=ti-io-exp
drivers.pwm.s32k5xxcvb_s32k566_ftm.loopback:
tags:
- pwm
- drivers
- userspace
extra_args: DTC_OVERLAY_FILE="boards/s32k5xxcvb_s32k566_ftm.overlay"
platform_allow:
- s32k5xxcvb/s32k566/m7
- s32k5xxcvb/s32k566/r52
depends_on: pwm
filter: dt_compat_enabled("test-pwm-loopback")
harness: ztest
harness_config:
fixture: pwm_loopback
Loading