tests: drivers: pwm: pwm_loopback: support numaker_pfm_m467
Add support for Nuvoton numaker board numaker_pfm_m467. Signed-off-by: cyliang tw <cyliang@nuvoton.com>
This commit is contained in:
parent
449211a307
commit
0afe4bb980
1 changed files with 28 additions and 0 deletions
|
@ -0,0 +1,28 @@
|
|||
/* SPDX-License-Identifier: Apache-2.0 */
|
||||
|
||||
#include <zephyr/dt-bindings/pwm/pwm.h>
|
||||
|
||||
&pinctrl {
|
||||
epwm1_default: epwm1_default {
|
||||
group0 {
|
||||
/* EVB's D5, D3 --> PC12, PC10 */
|
||||
pinmux = <PC12MFP_EPWM1_CH0 0x0000>,
|
||||
<PC10MFP_EPWM1_CH2 0x0000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
/ {
|
||||
pwm_loopback_0 {
|
||||
compatible = "test-pwm-loopback";
|
||||
pwms = <&epwm1 0 0 PWM_POLARITY_NORMAL>,
|
||||
<&epwm1 2 0 PWM_POLARITY_NORMAL>;
|
||||
};
|
||||
};
|
||||
|
||||
&epwm1 {
|
||||
status = "okay";
|
||||
prescaler = <19>;
|
||||
pinctrl-0 = <&epwm1_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue