boards: renesas: add missing input key codes for rzt2m buttons

zephyr,code property is required for input subsystem to work

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
Benjamin Cabé 2024-12-17 09:57:30 +01:00 committed by Benjamin Cabé
parent 8a92eec91b
commit ff9e6cfa49

View file

@ -7,6 +7,7 @@
/dts-v1/;
#include <dt-bindings/pinctrl/renesas-rzt2m-pinctrl.h>
#include <arm/renesas/rz/rzt2m.dtsi>
#include <zephyr/dt-bindings/input/input-event-codes.h>
/ {
model = "RZT/2M Starter Kit";
@ -48,10 +49,12 @@
sw1: sw1 {
label = "sw1";
gpios = <&gpio10 5 0>;
zephyr,code = <INPUT_KEY_0>;
};
sw2: sw2 {
label = "sw2";
gpios = <&gpio16 3 0>;
zephyr,code = <INPUT_KEY_1>;
};
};
};