2024-10-04 04:59 AM
Hello
I currently run on hardware STM32MP135f-DK and am preparing for running a custom HW.
When assigning PA12 as a gpio-key in the devicetree,I get this error on boot:
[ 3.544391] genirq: Flags mismatch irq 45. 00000083 (my-input) vs. 00002088 (0-0021)
[ 3.551110] gpio-keys gpio-keys: Unable to claim irq 45; error -16
[ 3.557446] gpio-keys: probe of gpio-keys failed with error -16
The result is that nothing from that gpio-keys-node is initialized (if I run gpioinfo)
PA12 is also referenced by ETH2 by default, and all references to eth2 are removed from my devicetree
This is how I add the new gpio to the devicetree, basically the same as the default user-pa13, but with 12 instead of 13.
gpio-keys {
compatible = "gpio-keys";
my-input {
label = "my-input";
linux,code = <BTN_2>;
gpios = <&gpioa 12 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
};
I cannot find anything else pointing at PA12 in the devicetree.
Other pins that I define as gpio-keys work.
Does anyone know what is interfering or where to start looking?