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:
cyliang tw 2023-08-16 19:43:47 +08:00 committed by Carles Cufí
commit 0afe4bb980

View file

@ -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";
};