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 @@
#include <espressif/esp32s3/esp32s3_mini_n8.dtsi>
#include "esp32s3_devkitm-pinctrl.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h>
/ {
model = "esp32s3_devkitm";
@ -34,6 +35,7 @@
button0: button_0 {
gpios = <&gpio0 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "BOOT Button";
zephyr,code = <INPUT_KEY_0>;
};
};
};