tests: drivers: build_all: input: Add adc-keys

* so that it'll be built by the CI

Signed-off-by: Chen Xingyu <hi@xingrz.me>
This commit is contained in:
Chen Xingyu 2024-02-02 17:49:00 +08:00 committed by Fabio Baltieri
parent d181607f4e
commit eaa492ab3e
2 changed files with 18 additions and 0 deletions

View File

@ -33,6 +33,20 @@
status = "okay";
};
adc-keys {
compatible = "adc-keys";
io-channels = <&test_adc 0>;
keyup-threshold-mv = <0>;
button_0 {
press-thresholds-mv = <1500>, <1750>;
zephyr,code = <0>;
};
button_1 {
press-thresholds-mv = <2500>, <1750>;
zephyr,code = <1>;
};
};
gpio-keys {
compatible = "gpio-keys";
debounce-interval-ms = <30>;

View File

@ -24,3 +24,7 @@ tests:
extra_configs:
- CONFIG_ADC=y
- CONFIG_SETTINGS=y
drivers.input.adc_keys:
extra_configs:
- CONFIG_ADC=y