tests: drivers: build_all: pwm: Add i2c-devices build test
Add build tests for following devices. - maxim,max31790-pwm - nxp,pca9685-pwm Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
This commit is contained in:
parent
f3e870dfa5
commit
20ff7ddff9
40
tests/drivers/build_all/pwm/boards/native_sim.overlay
Normal file
40
tests/drivers/build_all/pwm/boards/native_sim.overlay
Normal file
@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright (c) 2024 TOKITA Hiroshi
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/ {
|
||||
test {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
test_i2c: i2c@11112222 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "vnd,i2c";
|
||||
reg = <0x11112222 0x1000>;
|
||||
status = "okay";
|
||||
clock-frequency = <100000>;
|
||||
|
||||
test_i2c_max31790: max31790@0 {
|
||||
compatible = "maxim,max31790";
|
||||
status = "okay";
|
||||
reg = <0x0>;
|
||||
|
||||
max31790_max31790_pwm: max31790_max31790_pwm {
|
||||
compatible = "maxim,max31790-pwm";
|
||||
status = "okay";
|
||||
pwm-controller;
|
||||
#pwm-cells = <2>;
|
||||
};
|
||||
};
|
||||
|
||||
test_i2c_pca9685: pca9685@1 {
|
||||
status = "okay";
|
||||
compatible = "nxp,pca9685-pwm";
|
||||
reg = <0x1>;
|
||||
#pwm-cells = <2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -50,7 +50,10 @@ tests:
|
||||
drivers.pwm.build.xlnx:
|
||||
platform_allow: arty_a7/designstart_fpga_cortex_m1
|
||||
drivers.pwm.build.test:
|
||||
platform_allow: qemu_cortex_m3
|
||||
platform_allow:
|
||||
- qemu_cortex_m3
|
||||
- native_sim
|
||||
- native_sim/native/64
|
||||
drivers.pwm.max31790.build:
|
||||
platform_allow: nucleo_f429zi
|
||||
extra_args: DTC_OVERLAY_FILE=max31790.overlay
|
||||
|
||||
Loading…
Reference in New Issue
Block a user