blob: 7ebf049ee13efd8c3f0c267f61716a9db744b4c7 [file] [log] [blame]
/*
* Copyright (c) 2021 Denx Software Engineering GmbH
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/dt-bindings/pwm/pwm.h>
/ {
pwm_loopback_0 {
compatible = "test-pwm-loopback";
/* first index must be a 32-Bit timer */
pwms = <&pwm2 4 0 PWM_POLARITY_NORMAL>,
<&pwm5 1 0 PWM_POLARITY_NORMAL>;
};
};
/* 32-Bit timers */
&timers2 {
status = "okay";
pwm2: pwm {
status = "okay";
pinctrl-0 = <&tim2_ch4_pa3>; /* CN9 PIN1 A0 */
pinctrl-names = "default";
};
};
&timers5 {
status = "okay";
pwm5: pwm {
status = "okay";
pinctrl-0 = <&tim5_ch1_pa0>; /* CN11 PIN28 */
pinctrl-names = "default";
/* At least one of the test devices need to verify
* the four-channel-capture-support in this test.
*/
four-channel-capture-support;
};
};