boards: nxp: imx93_evk: add code property for gpio-keys

drivers/input/input_gpio_keys.c requires property "zephyr,code" must
be provides for gpio-keys, so add code property for imx93_evk A55
and M33 boards.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
This commit is contained in:
Jiafei Pan 2024-12-05 10:45:02 +08:00 committed by Benjamin Cabé
parent 9f8120528d
commit fc41950960
3 changed files with 8 additions and 0 deletions

View file

@ -23,11 +23,13 @@
btn_1: btn_1{
label = "BTN1";
gpios = <&gpio_exp1 5 GPIO_ACTIVE_LOW>;
zephyr,code = <INPUT_KEY_0>;
};
btn_2: btn_2{
label = "BTN2";
gpios = <&gpio_exp1 6 GPIO_ACTIVE_LOW>;
zephyr,code = <INPUT_KEY_1>;
};
};
};

View file

@ -8,6 +8,7 @@
#include <nxp/nxp_mimx93_a55.dtsi>
#include "imx93_evk-pinctrl.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h>
/ {
model = "NXP i.MX93 A55";
@ -59,11 +60,13 @@
btn_1: btn_1{
label = "BTN1";
gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
zephyr,code = <INPUT_KEY_0>;
};
btn_2: btn_2{
label = "BTN2";
gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
zephyr,code = <INPUT_KEY_1>;
};
};

View file

@ -8,6 +8,7 @@
#include <nxp/nxp_imx93_m33.dtsi>
#include "imx93_evk-pinctrl.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h>
/ {
model = "NXP i.MX93 EVK board";
@ -50,11 +51,13 @@
btn_1: btn_1{
label = "BTN1";
gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
zephyr,code = <INPUT_KEY_0>;
};
btn_2: btn_2{
label = "BTN2";
gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
zephyr,code = <INPUT_KEY_1>;
};
};
};