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:
parent
8a92eec91b
commit
ff9e6cfa49
1 changed files with 3 additions and 0 deletions
|
|
@ -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>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue