iio: add IIO_FREQUENCY channel type

Add IIO_FREQUENCY channel type to support Direct Digital Synthesizer (DDS)
devices that handles frequency values written directly to its buffered
interface.

Signed-off-by: Rodrigo Alencar <rodrigo.alencar@analog.com>
Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
This commit is contained in:
Rodrigo Alencar 2026-07-29 09:25:31 +01:00 committed by Jonathan Cameron
parent 1171811e2a
commit b2b19f8b08
3 changed files with 4 additions and 0 deletions

View File

@ -100,6 +100,7 @@ static const char * const iio_chan_type_name_spec[] = {
[IIO_ALTCURRENT] = "altcurrent",
[IIO_COVERAGE] = "coverage",
[IIO_VOLUMEFLOW] = "volumeflow",
[IIO_FREQUENCY] = "frequency",
};
static const char * const iio_modifier_names[] = {

View File

@ -55,6 +55,7 @@ enum iio_chan_type {
IIO_ALTCURRENT,
IIO_COVERAGE,
IIO_VOLUMEFLOW,
IIO_FREQUENCY,
};
enum iio_modifier {

View File

@ -67,6 +67,7 @@ static const char * const iio_chan_type_name_spec[] = {
[IIO_ALTCURRENT] = "altcurrent",
[IIO_COVERAGE] = "coverage",
[IIO_VOLUMEFLOW] = "volumeflow",
[IIO_FREQUENCY] = "frequency",
};
static const char * const iio_ev_type_text[] = {
@ -198,6 +199,7 @@ static bool event_is_known(struct iio_event_data *event)
case IIO_ALTCURRENT:
case IIO_COVERAGE:
case IIO_VOLUMEFLOW:
case IIO_FREQUENCY:
break;
default:
return false;