|
| 1 | +# Copyright (c) 2025 Microchip Technology Inc. |
| 2 | +# SPDX-License-Identifier: Apache-2.0 |
| 3 | + |
| 4 | +menuconfig MTCH9010 |
| 5 | + bool "MTCH9010" |
| 6 | + default y |
| 7 | + depends on DT_HAS_MICROCHIP_MTCH9010_ENABLED |
| 8 | + help |
| 9 | + Configure the MTCH9010 driver |
| 10 | + |
| 11 | +if MTCH9010 |
| 12 | + |
| 13 | + config MTCH9010_RESET_ON_STARTUP |
| 14 | + bool "Reset MTCH9010 on Startup" |
| 15 | + default y |
| 16 | + help |
| 17 | + Resets the MTCH9010 before the driver configures it. |
| 18 | + If disabled and the MTCH9010 was configured already, configuration will fail. |
| 19 | + |
| 20 | + config MTCH9010_LOCK_ON_STARTUP |
| 21 | + bool "Save MTCH9010 Settings on Startup" |
| 22 | + default n |
| 23 | + help |
| 24 | + If set, this option will assert SYS_LK after initialization. |
| 25 | + The sensor will use these parameters if SYS_LK is asserted on the next POR. |
| 26 | + |
| 27 | + config MTCH9010_RESET_TIME_MS |
| 28 | + int "Reset Assertion Time (ms)" |
| 29 | + default 10 |
| 30 | + range 1 100 |
| 31 | + depends on MTCH9010_RESET_ON_STARTUP |
| 32 | + help |
| 33 | + Sets the time in milliseconds to wait while resetting the device. |
| 34 | + |
| 35 | + config MTCH9010_BOOT_TIME_MS |
| 36 | + int "Device Boot Time (ms)" |
| 37 | + default 10 |
| 38 | + range 1 100 |
| 39 | + help |
| 40 | + Sets the time in milliseconds to wait for the device to reboot. |
| 41 | + |
| 42 | + config MTCH9010_UART_COMMAND_TIMEOUT_MS |
| 43 | + int "UART Command Timeout (ms)" |
| 44 | + default 20 |
| 45 | + help |
| 46 | + Sets the time in milliseconds to wait for a response from the MTCH9010 before timing out. |
| 47 | + |
| 48 | + config MTCH9010_SAMPLE_DELAY_TIMEOUT_MS |
| 49 | + int "Maximum wait time to get a sample (ms)" |
| 50 | + default 500 |
| 51 | + help |
| 52 | + Sets the maximum amount of time in milliseconds to wait for a response from the MTCH9010 |
| 53 | + when asking for a sample. Conductive mode is much faster than capacitive mode. |
| 54 | + |
| 55 | + config MTCH9010_OVERRIDE_DELAY_ENABLE |
| 56 | + bool "Override Delay if not Wake on Request" |
| 57 | + default y |
| 58 | + help |
| 59 | + If the MTCH9010 has a sleep period defined, the wake pin will not wake the device. |
| 60 | + If this option is set, the API will allow for <sleep period + timeout> length |
| 61 | + delays during fetch. Otherwise, the API will use the normal timeout, and likely fail. |
| 62 | + |
| 63 | + config MTCH9010_REFERENCE_AVERAGING_COUNT |
| 64 | + int "Reference Averaging Count" |
| 65 | + default 1 |
| 66 | + range 1 64 |
| 67 | + help |
| 68 | + If the MTCH9010 is using the current measurement as its reference, then this |
| 69 | + is the number of samples to average. |
| 70 | + |
| 71 | + config MTCH9010_WAKE_PULSE_WIDTH_MS |
| 72 | + int "Wake Pulse Width (ms)" |
| 73 | + default 1 |
| 74 | + range 1 1000 |
| 75 | + help |
| 76 | + Sets the time in milliseconds to assert the wake signal. |
| 77 | + |
| 78 | + config MTCH9010_HEARTBEAT_MONITORING_ENABLE |
| 79 | + bool "Heartbeat Monitoring" |
| 80 | + default y |
| 81 | + help |
| 82 | + Configures monitoring of the heartbeat output |
| 83 | + |
| 84 | + config MTCH9010_ERROR_PERIOD_MS |
| 85 | + int "Minimum Heartbeat Period (ms)" |
| 86 | + default 220 |
| 87 | + help |
| 88 | + The heartbeat signal will be considered an error indication if below this value. |
| 89 | + |
| 90 | + # Logging Settings |
| 91 | + module = MTCH9010 |
| 92 | + module-str = MTCH9010 |
| 93 | + source "subsys/logging/Kconfig.template.log_config" |
| 94 | + |
| 95 | +endif |
0 commit comments