tests: drivers: adc: test dummy ADC driver

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

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
This commit is contained in:
Jordan Yates 2021-12-22 10:35:55 +10:00 committed by Anas Nashif
commit bb00120e8b
2 changed files with 19 additions and 0 deletions

View file

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

View file

@ -58,3 +58,6 @@ tests:
platform_allow: mec15xxevb_assy6853
tags: adc_xec
extra_args: "CONFIG_ADC_XEC=y"
drivers.adc.test.build:
platform_allow: qemu_cortex_m3
tags: adc_test