Skip to content

Commit

Permalink
tests: drivers: pwm: add overlays for ucans32k1sic
Browse files Browse the repository at this point in the history
Enable pwm tests on ucans32k1sic board.

Signed-off-by: Manuel Argüelles <[email protected]>
  • Loading branch information
manuargue committed Dec 26, 2023
1 parent d9ca916 commit 6cb282e
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions tests/drivers/pwm/pwm_loopback/boards/ucans32k1sic.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*
* Copyright 2023 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/

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

/ {
pwm_loopback_0 {
compatible = "test-pwm-loopback";
pwms = <&ftm1 1 0 PWM_POLARITY_NORMAL>, /* PTB3, P1.3 */
<&ftm0 4 0 PWM_POLARITY_NORMAL>; /* PTB4, P1.4 */
};
};

&pinctrl {
ftm0_loopback: ftm0_loopback {
group0 {
pinmux = <FTM0_CH4_PTB4>;
drive-strength = "low";
};
};

ftm1_loopback: ftm1_loopback {
group0 {
pinmux = <FTM1_CH1_PTB3>;
drive-strength = "low";
};
};
};

&ftm0 {
pinctrl-0 = <&ftm0_loopback>;
prescaler = <32>;
status = "okay";
};

&ftm1 {
pinctrl-0 = <&ftm1_loopback>;
prescaler = <128>;
status = "okay";
};

0 comments on commit 6cb282e

Please sign in to comment.