···2626The two programmable GPIOS are optional and have a role assigned if present in2727the devicetree ``interrupt-names`` property:28282929+- GP0: Is assigned the role of Threshold Either signal.2930- GP1: Is assigned the role of Data Ready signal.30313132Device attributes···7574The interrupts are mapped through the ``interrupt-names`` and ``interrupts``7675properties.77767878-The ``interrupt-names`` ``gp1`` entry sets the role of Data Ready signal.7979-If it is not present, the driver fallback to enabling the same role as an7777+The ``interrupt-names`` ``gp0`` entry sets the role of Threshold signal, and7878+entry ``gp1`` the role of Data Ready signal.7979+8080+If each is not present, the driver fallback to enabling the same role as an8081I3C IBI.81828283Low-power mode···10097latency and internal timings, the sample rate is not configurable. The burst10198averaging mode does impact the effective sample rate, since it increases the10299internal timing to output a single sample.100100+101101+Threshold events102102+================103103+104104+The ADC supports a monitoring mode to raise threshold events. The driver105105+supports a single interrupt for both rising and falling readings.106106+107107+The feature is enabled/disabled by setting ``thresh_either_en``. During monitor108108+mode, the device continuously operates in autonomous mode. Any register access109109+puts the device back in configuration mode, due to this, any access disables110110+monitor mode.111111+112112+The following event attributes are available:113113+114114+.. list-table:: Event attributes115115+ :header-rows: 1116116+117117+ * - Attribute118118+ - Description119119+ * - ``sampling_frequency``120120+ - Frequency used in the monitoring mode, sets the device internal sample121121+ rate when the mode is activated.122122+ * - ``sampling_frequency_available``123123+ - List of available sample rates.124124+ * - ``thresh_either_en``125125+ - Enable monitoring mode.126126+ * - ``thresh_falling_hysteresis``127127+ - Set the hysteresis value for the minimum threshold.128128+ * - ``thresh_falling_value``129129+ - Set the minimum threshold value.130130+ * - ``thresh_rising_hysteresis``131131+ - Set the hysteresis value for the maximum threshold.132132+ * - ``thresh_rising_value``133133+ - Set the maximum threshold value.