I'm running V2.60 NCD on a custom n5340 processor and I can't decipher what is the proper device tree based on the examples.
I have a 10 button keypad and want to detect short and long presses on all the keys.
i tried the test suite code here: v2.6.0\zephyr\tests\subsys\input\input_longpress which runs (simulating keypresses) and I get the test_cb() to execute. I can read the keypad via
Here is the zephyr testsuite code and their devicetree
Their Device tree
I used that same code changing from the "fake" names to mine, but but I get this error during build:
C:/ncs/v2.6.0/zephyr/include/zephyr/toolchain/gcc.h:87:36: error: static assertion failed: "zephyr-code must be specified to use the input-gpio-keys driver".
here's my devicetree file. I don't know what to use for the kp_input_device compatible value (probably causing the error?). The test code uses "vnd,input-device" which is a dummy device for test suite.
my device tree
my longpress code
there is a good example code here: \v2.6.0\zephyr\subsys\input that has all the processing inside, but this has the same problem as above.
thanks