tests: drivers: pwm: add MAX31790

Add MAX31790 to the build all tests of PWM.

Signed-off-by: Benedikt Schmidt <benedikt.schmidt@embedded-solutions.at>
This commit is contained in:
Benedikt Schmidt 2023-03-27 11:05:01 +02:00 committed by Carles Cufí
parent 44810b190c
commit 732b54d825
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,17 @@
/*
* Copyright (c) 2023 SILA Embedded Solutions GmbH
* SPDX-License-Identifier: Apache-2.0
*/
&arduino_i2c {
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
max31790_max31790: max31790@20 {
compatible = "maxim,max31790";
status = "okay";
reg = <0x20>;
pwm-controller;
#pwm-cells = <2>;
};
};

View file

@ -69,3 +69,7 @@ tests:
drivers.pwm.build.test:
platform_allow: qemu_cortex_m3
tags: pwm_test
drivers.pwm.max31790.build:
platform_allow: nucleo_f429zi
extra_args: DTC_OVERLAY_FILE=max31790.overlay
tags: pwm_max31790