Skip to content

Commit

Permalink
boards: nxp: vmu_rt1170: dts use gpio-keys
Browse files Browse the repository at this point in the history
Fix vmu_rt1170 board input tests by adding gpio-keys to dts.

Signed-off-by: Benjamin Perseghetti <[email protected]>
  • Loading branch information
bperseghetti authored and jhedberg committed Apr 6, 2024
1 parent 8372df0 commit 2581228
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions boards/nxp/vmu_rt1170/vmu_rt1170.dts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <nxp/nxp_rt11xx_cm7.dtsi>
#include <zephyr/dt-bindings/led/led.h>
#include "vmu_rt1170.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h>

/ {
model = "NXP VMU RT1170";
Expand All @@ -35,12 +36,13 @@
zephyr,code-partition = &slot0_partition;
};

/* This is the Button on the included GPS module for 10 pin JST-GH */
buttons {
/* This is the Arming Button on the included GPS module for 10 pin JST-GH */
gpio_keys {
compatible = "gpio-keys";
arming_button: button_0 {
label = "Arming Switch";
gpios = <&gpio1 24 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>;
zephyr,code = <INPUT_KEY_0>;
};
};

Expand Down

0 comments on commit 2581228

Please sign in to comment.