tests: drivers: build_all: counter: Add i2c-devices build tests
Add build tests for following devices. - maxim,ds3231 - microchip,mcp7940n Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
This commit is contained in:
parent
cbec7c8569
commit
3d2b18a5ff
|
@ -0,0 +1,40 @@
|
|||
/*
|
||||
* Copyright (c) 2024 TOKITA Hiroshi
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/ {
|
||||
test {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
test_gpio: gpio@deadbeef {
|
||||
compatible = "vnd,gpio";
|
||||
gpio-controller;
|
||||
reg = <0xdeadbeef 0x1000>;
|
||||
#gpio-cells = <0x2>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
test_i2c: i2c@11112222 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "vnd,i2c";
|
||||
reg = <0x11112222 0x1000>;
|
||||
status = "okay";
|
||||
clock-frequency = <100000>;
|
||||
|
||||
test_ds3231: ds3231@0 {
|
||||
compatible = "maxim,ds3231";
|
||||
status = "okay";
|
||||
reg = <0x0>;
|
||||
};
|
||||
|
||||
test_mcp7940n: mcp7940n@1 {
|
||||
compatible = "microchip,mcp7940n";
|
||||
status = "okay";
|
||||
reg = <0x1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
|
@ -8,3 +8,12 @@ tests:
|
|||
platform_allow: arty_a7/designstart_fpga_cortex_m1
|
||||
extra_configs:
|
||||
- CONFIG_COUNTER_XLNX_AXI_TIMER=y
|
||||
drivers.counter.build.i2c:
|
||||
extra_args: DTC_OVERLAY_FILE="i2c_devices.overlay"
|
||||
extra_configs:
|
||||
- CONFIG_I2C=y
|
||||
platform_allow:
|
||||
- native_posix
|
||||
- native_posix/native/64
|
||||
- native_sim
|
||||
- native_sim/native/64
|
||||
|
|
Loading…
Reference in New Issue