tests: drivers: build_all: sensor: add w1 driver and ds18b20
This commit adds the necessary changes to build w1-devices using the vnd,w1 dummy driver in the build_all test case. Additionally, definitions for the ds18b20 1-wire temperature sensor are added. Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
This commit is contained in:
parent
cbd79250e3
commit
f1a37c9629
|
@ -126,6 +126,17 @@
|
|||
#include "uart.dtsi"
|
||||
};
|
||||
|
||||
test_w1: w1@66660000 {
|
||||
compatible = "vnd,w1";
|
||||
reg = <0x66660000 0x1000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
label = "TEST_W1_MASTER";
|
||||
status = "okay";
|
||||
|
||||
#include "w1.dtsi"
|
||||
};
|
||||
|
||||
dht22 {
|
||||
compatible = "aosong,dht";
|
||||
status = "okay";
|
||||
|
|
|
@ -8,6 +8,7 @@ CONFIG_I2C=y
|
|||
CONFIG_SERIAL=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_SENSOR=y
|
||||
CONFIG_W1=y
|
||||
CONFIG_ADT7420=y
|
||||
CONFIG_ADXL345=y
|
||||
CONFIG_ADXL362=y
|
||||
|
@ -29,6 +30,7 @@ CONFIG_BQ274XX=y
|
|||
CONFIG_CCS811=y
|
||||
CONFIG_DHT=y
|
||||
CONFIG_DPS310=y
|
||||
CONFIG_DS18B20=y
|
||||
CONFIG_ENS210=y
|
||||
CONFIG_FDC2X1X=y
|
||||
CONFIG_FXAS21002=y
|
||||
|
|
15
tests/drivers/build_all/sensor/w1.dtsi
Normal file
15
tests/drivers/build_all/sensor/w1.dtsi
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Thomas Stranger
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Application overlay for w1 devices
|
||||
*/
|
||||
|
||||
test-w1-ds18b20 {
|
||||
compatible = "maxim,ds18b20";
|
||||
family-code = <0x28>;
|
||||
resolution = <12>;
|
||||
label = "DS18B20";
|
||||
status = "okay";
|
||||
};
|
Loading…
Reference in a new issue