tests: drivers: build_all: sensor: add tsic_xx6
Enable PWM and PWM_CAPTURE in conf and add pwm node to app.overlay. Add TSic xx6 node to pwm.dtsi. Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
This commit is contained in:
parent
c9f53d3374
commit
332d362595
3 changed files with 27 additions and 0 deletions
|
@ -74,6 +74,15 @@
|
|||
#include "i2c.dtsi"
|
||||
};
|
||||
|
||||
test_pwm: pwm@12341234 {
|
||||
compatible = "vnd,pwm";
|
||||
reg = <0x12341234 0x1000>;
|
||||
#pwm-cells = <3>;
|
||||
status = "okay";
|
||||
|
||||
#include "pwm.dtsi"
|
||||
};
|
||||
|
||||
test_spi: spi@33334444 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
|
|
@ -7,6 +7,8 @@ CONFIG_ADC=y
|
|||
CONFIG_GPIO=y
|
||||
CONFIG_I2C=y
|
||||
CONFIG_I3C=y
|
||||
CONFIG_PWM=y
|
||||
CONFIG_PWM_CAPTURE=y
|
||||
CONFIG_SERIAL=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_MFD=y
|
||||
|
|
16
tests/drivers/build_all/sensor/pwm.dtsi
Normal file
16
tests/drivers/build_all/sensor/pwm.dtsi
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* Copyright (c) 2024 Vitrolife A/S
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Application overlay for pwm devices
|
||||
*/
|
||||
|
||||
test_pwm_tsic_xx6: tsic_xx6 {
|
||||
status = "okay";
|
||||
compatible = "ist,tsic-xx6";
|
||||
pwms = <&test_pwm 0 0 0>;
|
||||
data-bits = <14>;
|
||||
lower-temperature-limit = <(-100)>;
|
||||
higher-temperature-limit = <250>;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue