Hello,
I need some explanation for driving a button knob on my IMX7ULP evk.
What i've tried:
Adding to custom dts:
gpio-keys {
compatible = "gpio-keys";
autorepeat;
enter {
label = "GPIO Key Enter";
linux,code = <KEY_ENTER>;
gpios = <&gpio_ptf 9 GPIO_ACTIVE_HIGH>;
};
};
Added to imx7ulp-evk.dts
pinctrl_enter: enter_grp {
fsl,pins = <
IMX7ULP_PAD_PTF9__PTF9 0x0b0b0
>;
};
The button is connected from GND & Target(D10 arduino header == PTF9)
Evtest shows me that the event is available, so the probing is completed. But when i hit the button nothing happens. I assume it has something to do with pull-up input that the button requires. But it never triggers.
When i change:
GPIO_ACTIVE_HIGH -> GPIO_ACTIVE_LOW
It keeps spamming the enter key. And i can't abort it.
How do i handle GPIO input buttons correctly with IMX7?