Skip to content

Commit fc41950

Browse files
JiafeiPankartben
authored andcommitted
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 <[email protected]>
1 parent 9f81205 commit fc41950

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

boards/nxp/imx93_evk/dts/imx93_evk_mimx9352_exp_btn.overlay

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@
2323
btn_1: btn_1{
2424
label = "BTN1";
2525
gpios = <&gpio_exp1 5 GPIO_ACTIVE_LOW>;
26+
zephyr,code = <INPUT_KEY_0>;
2627
};
2728

2829
btn_2: btn_2{
2930
label = "BTN2";
3031
gpios = <&gpio_exp1 6 GPIO_ACTIVE_LOW>;
32+
zephyr,code = <INPUT_KEY_1>;
3133
};
3234
};
3335
};

boards/nxp/imx93_evk/imx93_evk_mimx9352_a55.dts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include <nxp/nxp_mimx93_a55.dtsi>
1010
#include "imx93_evk-pinctrl.dtsi"
11+
#include <zephyr/dt-bindings/input/input-event-codes.h>
1112

1213
/ {
1314
model = "NXP i.MX93 A55";
@@ -59,11 +60,13 @@
5960
btn_1: btn_1{
6061
label = "BTN1";
6162
gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
63+
zephyr,code = <INPUT_KEY_0>;
6264
};
6365

6466
btn_2: btn_2{
6567
label = "BTN2";
6668
gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
69+
zephyr,code = <INPUT_KEY_1>;
6770
};
6871
};
6972

boards/nxp/imx93_evk/imx93_evk_mimx9352_m33.dts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include <nxp/nxp_imx93_m33.dtsi>
1010
#include "imx93_evk-pinctrl.dtsi"
11+
#include <zephyr/dt-bindings/input/input-event-codes.h>
1112

1213
/ {
1314
model = "NXP i.MX93 EVK board";
@@ -50,11 +51,13 @@
5051
btn_1: btn_1{
5152
label = "BTN1";
5253
gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
54+
zephyr,code = <INPUT_KEY_0>;
5355
};
5456

5557
btn_2: btn_2{
5658
label = "BTN2";
5759
gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
60+
zephyr,code = <INPUT_KEY_1>;
5861
};
5962
};
6063
};

0 commit comments

Comments
 (0)