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:
parent
b8e27297fa
commit
57e0da4d80
306 changed files with 930 additions and 88 deletions
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include <nxp/nxp_rt1015.dtsi>
|
||||
#include "mimxrt1015_evk-pinctrl.dtsi"
|
||||
#include <zephyr/dt-bindings/input/input-event-codes.h>
|
||||
|
||||
/ {
|
||||
model = "NXP MIMXRT1015-EVK board";
|
||||
|
@ -39,6 +40,7 @@
|
|||
user_button: button-1 {
|
||||
label = "User SW4";
|
||||
gpios = <&gpio2 9 GPIO_ACTIVE_LOW>;
|
||||
zephyr,code = <INPUT_KEY_0>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue