boards: add zephyr,code properties to the various gpio-keys nodes

Add gpio-keys codes for all boards. These are mostly INPUT_KEY_0 and so
on but I've used some more specific ones where it was obvious that
there's something else on the boards.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
Fabio Baltieri 2023-08-03 10:52:22 +00:00 committed by Carles Cufí
commit 57e0da4d80
306 changed files with 930 additions and 88 deletions

View file

@ -7,6 +7,7 @@
/dts-v1/;
#include <st/f4/stm32f412Xg.dtsi>
#include <st/f4/stm32f412c(e-g)ux-pinctrl.dtsi>
#include <zephyr/dt-bindings/input/input-event-codes.h>
/ {
model = "Tocoding Argonkey 96boards";
@ -36,6 +37,7 @@
user_button: button {
label = "User";
gpios = <&gpioa 2 GPIO_ACTIVE_LOW>;
zephyr,code = <INPUT_KEY_0>;
};
};