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

@ -8,6 +8,7 @@
#include <nxp/nxp_rt1020.dtsi>
#include "mimxrt1020_evk-pinctrl.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h>
/ {
model = "NXP MIMXRT1020-EVK board";
@ -49,6 +50,7 @@
user_button: button-1 {
label = "User SW4";
gpios = <&gpio5 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
zephyr,code = <INPUT_KEY_0>;
};
};