From 3df256c3af0f4579064814f164fab2af6dde06bc Mon Sep 17 00:00:00 2001 From: Dat Nguyen Duy Date: Sat, 16 Sep 2023 10:06:04 +0700 Subject: [PATCH] tests: pwm_loopback: enable test for mr_canhubk3 Enable PWM loopback testing for mr_canhubk3 Signed-off-by: Dat Nguyen Duy --- .../pwm_loopback/boards/mr_canhubk3.overlay | 41 +++++++++++++++++++ west.yml | 2 +- 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 tests/drivers/pwm/pwm_loopback/boards/mr_canhubk3.overlay diff --git a/tests/drivers/pwm/pwm_loopback/boards/mr_canhubk3.overlay b/tests/drivers/pwm/pwm_loopback/boards/mr_canhubk3.overlay new file mode 100644 index 000000000000000..898b6d938f79793 --- /dev/null +++ b/tests/drivers/pwm/pwm_loopback/boards/mr_canhubk3.overlay @@ -0,0 +1,41 @@ +/* + * Copyright 2023 NXP + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#include + +/ { + 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 = ; + 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"; + }; + }; +}; diff --git a/west.yml b/west.yml index 39aa1827835d4ed..865a04c171c8040 100644 --- a/west.yml +++ b/west.yml @@ -199,7 +199,7 @@ manifest: groups: - hal - name: hal_nxp - revision: 6d91c1727dadb170facc48f5370358a12ae36677 + revision: pull/277/head path: modules/hal/nxp groups: - hal