-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: pwm_loopback: enable test for mr_canhubk3
Enable PWM loopback testing for mr_canhubk3 Signed-off-by: Dat Nguyen Duy <dat.nguyenduy@nxp.com>
- Loading branch information
1 parent
c55b4dd
commit 3df256c
Showing
2 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
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,41 @@ | ||
/* | ||
* Copyright 2023 NXP | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <zephyr/dt-bindings/pwm/pwm.h> | ||
|
||
/ { | ||
pwm_loopback_0 { | ||
compatible = "test-pwm-loopback"; | ||
/* Connect P8A pin 3 and P8A pin 6 */ | ||
pwms = <&emios0_pwm 0 0 PWM_POLARITY_NORMAL>, | ||
<&emios0_pwm 1 0 PWM_POLARITY_NORMAL>; | ||
}; | ||
}; | ||
|
||
&pinctrl { | ||
emios0_default { | ||
group2 { | ||
pinmux = <PTB13_EMIOS_0_CH1_G_I>; | ||
input-enable; | ||
}; | ||
}; | ||
}; | ||
|
||
&emios0 { | ||
emios0_pwm: pwm { | ||
pinctrl-0 = <&emios0_default>; | ||
pinctrl-names = "default"; | ||
status = "okay"; | ||
|
||
pwm_1 { | ||
/delete-property/ period; | ||
/delete-property/ polarity; | ||
/delete-property/ duty-cycle; | ||
prescaler = <16>; | ||
pwm-mode = "SAIC"; | ||
}; | ||
}; | ||
}; |
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