input: analog_axis: add output inversion

The driver right now only allows inverting the input value, which can be
useful for differential channels but is quite confusing for single ended
ones. Implement a simple output inversion flag instead to make up for
that.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
Fabio Baltieri 2024-07-17 20:27:28 +01:00 committed by Anas Nashif
commit 32fafc7176
3 changed files with 17 additions and 5 deletions

View file

@ -140,7 +140,8 @@
in-min = <(-100)>;
in-max = <100>;
zephyr,axis = <0>;
invert;
invert-input;
invert-output;
};
};