tests: drivers: build all: sensor: add current_amp
Add current sense amplifier driver to tests. Signed-off-by: Nick Ward <nix.ward@gmail.com>
This commit is contained in:
parent
17f2046821
commit
43be17a5fe
2 changed files with 19 additions and 0 deletions
|
@ -14,6 +14,16 @@ test_adc_mcp9700a: mcp9700a {
|
|||
io-channels = <&test_adc 0>;
|
||||
};
|
||||
|
||||
test_current: current_amp {
|
||||
status = "okay";
|
||||
compatible = "current-sense-amplifier";
|
||||
io-channels = <&test_adc 2>;
|
||||
io-channel-names = "CURRENT_AMP";
|
||||
sense-resistor-micro-ohms = <10>;
|
||||
sense-gain-mult = <1>;
|
||||
sense-gain-div = <1>;
|
||||
};
|
||||
|
||||
test_adc_emul: adc {
|
||||
compatible = "zephyr,adc-emul";
|
||||
nchannels = <2>;
|
||||
|
|
|
@ -32,6 +32,15 @@
|
|||
zephyr,resolution = <12>;
|
||||
};
|
||||
|
||||
channel@2 {
|
||||
reg = <2>;
|
||||
zephyr,gain = "ADC_GAIN_1_6";
|
||||
zephyr,reference = "ADC_REF_INTERNAL";
|
||||
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
|
||||
zephyr,input-positive = <0>;
|
||||
zephyr,resolution = <12>;
|
||||
};
|
||||
|
||||
#include "adc.dtsi"
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue