diff --git a/tests/drivers/build_all/sensor/adc.dtsi b/tests/drivers/build_all/sensor/adc.dtsi index fb004abaf37..e5d24cc4f31 100644 --- a/tests/drivers/build_all/sensor/adc.dtsi +++ b/tests/drivers/build_all/sensor/adc.dtsi @@ -14,6 +14,16 @@ test_adc_mcp9700a: mcp9700a { io-channels = <&test_adc 0>; }; +test_voltage: voltage { + status = "okay"; + compatible = "voltage-divider"; + io-channels = <&test_adc 1>; + io-channel-names = "VOLTAGE"; + output-ohms = <47000>; /* R1 */ + full-ohms = <(100000 + 47000)>; /* R2 + R1 */ + power-gpios = <&test_gpio 0 0>; +}; + test_current: current_amp { status = "okay"; compatible = "current-sense-amplifier"; diff --git a/tests/drivers/build_all/sensor/app.overlay b/tests/drivers/build_all/sensor/app.overlay index 6348c648e3c..629334bc396 100644 --- a/tests/drivers/build_all/sensor/app.overlay +++ b/tests/drivers/build_all/sensor/app.overlay @@ -32,6 +32,15 @@ zephyr,resolution = <12>; }; + channel@1 { + reg = <1>; + zephyr,gain = "ADC_GAIN_1_6"; + zephyr,reference = "ADC_REF_INTERNAL"; + zephyr,acquisition-time = ; + zephyr,input-positive = <0>; + zephyr,resolution = <12>; + }; + channel@2 { reg = <2>; zephyr,gain = "ADC_GAIN_1_6";