tests: drivers: pwm: test dummy PWM driver

Add a testcase for compiling the dummy `vnd,pwm` driver.

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
This commit is contained in:
Jordan Yates 2021-12-21 10:58:42 +10:00 committed by Carles Cufí
commit ef4583a32c
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,16 @@
/*
* Copyright (c) 2022, Commonwealth Scientific and Industrial Research
* Organisation (CSIRO) ABN 41 687 119 230.
*
* SPDX-License-Identifier: Apache-2.0
*/
/{
test_pwm: pwm@11112222 {
compatible = "vnd,pwm";
#pwm-cells = <3>;
reg = <0x11112222 0x1000>;
label = "TEST_PWM_CTLR";
status = "okay";
};
};

View file

@ -76,3 +76,6 @@ tests:
tags: pwm_xlnx_axi_timer
extra_configs:
- CONFIG_PWM_XLNX_AXI_TIMER=y
drivers.pwm.build.test:
platform_allow: qemu_cortex_m3
tags: pwm_test