Add rotary-encoder support

Hello,

I would like to request adding Kernel driver for rotary-encoder by default in TorizonCore images.

I have added it by myself using torizoncore-builder but it would be nice to have it out of the box. The configuration parameter is CONFIG_INPUT_GPIO_ROTARY_ENCODER.

Best regards,
Kacper

Hi @Kacper !

Your feature request has been created!

Soon it will be added to the TorizonCore Issue Tracker Issue Tracker and made available.

Thanks for using the Community :slight_smile:

Best regards,

Hello @henrique.tx,

Thank you very much!

Best regards,
Kacper

Hi @Kacper !

The CONFIG_INPUT_GPIO_ROTARY_ENCODER option is currently enabled in recent nightly builds of TorizonCore (in case you would like to test) and also will be available in the next monthly release.

Best regards,

Hello,
is this rotary encoder driver supposed to work on gauges only (as an example the temperature of a cooking oven) or on electric motor too?
In this case the encoder is used to calculate rpm and angular position

Hi @vix !

If you want to know more about it, please refer to Linux’s documentation on Rotary Encoder:

https://www.kernel.org/doc/html/latest/input/devices/rotary-encoder.html

I guess that it is also useful for motion sensors as well (angular or linear).

Best regards,

Hello,
I have tried to use monthly release 5.6.0-devel-202203+build.22. Unfortunatelly this functionality is not enabled in kernel configuration
Here is the proof:
image

Hello @Kacper !

We are checking with our team on this issue.
Soon I will be able to give you an answer.

Best regards,

Hello @Kacper !

The encoder is enabled by default on TorizonCore nightly release 5.6.0-devel-20220411+build.585 and also on TorizonCore quarterly release 5.6.0+build.13.
Our team is working on a fix for the monthly release.

You can access these images here: Toradex Download Links (Torizon, Linux BSP, WinCE and Partner Demos) | Toradex Developer Center

Best regards,

Hello @hfranco.tx,

Thank you very much. When I was downloading latest image the 5.6.0 quaterly release was not yet available - I will use it now.

Best Regards