Skip to content

Commit

Permalink
tests: pwm_loopback: enable test for mr_canhubk3
Browse files Browse the repository at this point in the history
Enable PWM loopback testing for mr_canhubk3

Signed-off-by: Dat Nguyen Duy <dat.nguyenduy@nxp.com>
  • Loading branch information
Dat-NguyenDuy committed Sep 28, 2023
1 parent c55b4dd commit 3df256c
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
41 changes: 41 additions & 0 deletions tests/drivers/pwm/pwm_loopback/boards/mr_canhubk3.overlay
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";
};
};
};
2 changes: 1 addition & 1 deletion west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ manifest:
groups:
- hal
- name: hal_nxp
revision: 6d91c1727dadb170facc48f5370358a12ae36677
revision: pull/277/head
path: modules/hal/nxp
groups:
- hal
Expand Down

0 comments on commit 3df256c

Please sign in to comment.