-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: drivers: pwm: add overlays for ucans32k1sic
Enable pwm tests on ucans32k1sic board. Signed-off-by: Manuel Argüelles <[email protected]>
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
tests/drivers/pwm/pwm_loopback/boards/ucans32k1sic.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
}; |