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:
parent
c064006ecc
commit
ef4583a32c
2 changed files with 19 additions and 0 deletions
16
tests/drivers/build_all/pwm/boards/qemu_cortex_m3.overlay
Normal file
16
tests/drivers/build_all/pwm/boards/qemu_cortex_m3.overlay
Normal 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";
|
||||
};
|
||||
};
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue