iio: Add channels for LSM6DSR sensor HUB

Add new channels types support for LSM6DSR sensor HUB:
* IIO_SIGN_MOTION
* IIO_STEP_DETECTOR
* IIO_STEP_COUNTER
* IIO_TILT
* IIO_TAP
* IIO_TAP_TAP
* IIO_WRIST_TILT_GESTURE
* IIO_GESTURE

Signed-off-by: Jason Zhang <jason.zhang@rock-chips.com>
Change-Id: I8f3f2feae32b94ad6802a9a359ec11ab94a96816
This commit is contained in:
Jason Zhang
2022-06-07 11:50:56 +08:00
committed by Tao Huang
parent 2c5b0fb9db
commit a2c96f974d
3 changed files with 30 additions and 0 deletions

View File

@@ -87,6 +87,16 @@ static const char * const iio_chan_type_name_spec[] = {
[IIO_POSITIONRELATIVE] = "positionrelative",
[IIO_PHASE] = "phase",
[IIO_MASSCONCENTRATION] = "massconcentration",
#ifdef CONFIG_NO_GKI
[IIO_SIGN_MOTION] = "signmotion",
[IIO_STEP_DETECTOR] = "stepdetector",
[IIO_STEP_COUNTER] = "stepcounter",
[IIO_TILT] = "tilt",
[IIO_TAP] = "tap",
[IIO_TAP_TAP] = "taptap",
[IIO_WRIST_TILT_GESTURE] = "wristtiltgesture",
[IIO_GESTURE] = "gesture",
#endif
};
static const char * const iio_modifier_names[] = {

View File

@@ -47,6 +47,16 @@ enum iio_chan_type {
IIO_POSITIONRELATIVE,
IIO_PHASE,
IIO_MASSCONCENTRATION,
#ifdef CONFIG_NO_GKI
IIO_SIGN_MOTION,
IIO_STEP_DETECTOR,
IIO_STEP_COUNTER,
IIO_TILT,
IIO_TAP,
IIO_TAP_TAP,
IIO_WRIST_TILT_GESTURE,
IIO_GESTURE,
#endif
};
enum iio_modifier {

View File

@@ -58,6 +58,16 @@ static const char * const iio_chan_type_name_spec[] = {
[IIO_POSITIONRELATIVE] = "positionrelative",
[IIO_PHASE] = "phase",
[IIO_MASSCONCENTRATION] = "massconcentration",
#ifdef CONFIG_NO_GKI
[IIO_SIGN_MOTION] = "signmotion",
[IIO_STEP_DETECTOR] = "stepdetector",
[IIO_STEP_COUNTER] = "stepcounter",
[IIO_TILT] = "tilt",
[IIO_TAP] = "tap",
[IIO_TAP_TAP] = "taptap",
[IIO_WRIST_TILT_GESTURE] = "wristtiltgesture",
[IIO_GESTURE] = "gesture",
#endif
};
static const char * const iio_ev_type_text[] = {