Question
Use rotary encoder on stm32mp157
I'm doing a project, that I need a rotary encoder working on cortex-a7 core of stm32mp157.
I met problem, my rotary encoder can not work.
This is what I have done:
1. In kernel menuconfig I have config: use rotary encoder as a build-in module;
2. Write dts, and I am sure these gpio not been use anywhere:
rotary@3 {
compatible = "rotary-encoder";
gpios = <&gpioa 0 GPIO_ACTIVE_LOW>, <&gpiog 3 GPIO_ACTIVE_LOW>;
linux,axis = <6>;
rotary-encoder,encoding = "gray";
rotary-encoder,relative-axis;
status = "okay";
};
In dmesg I can see my roary is started

In /proc/device-tree, I can see the device node

In evtest nothing output, when I turn the knob of encoder.

what is the problem, I need your help, thank you!
