boards: nxp: vmu_rt1170: dts use gpio-keys
Fix vmu_rt1170 board input tests by adding gpio-keys to dts. Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com>
This commit is contained in:
parent
8372df0a48
commit
2581228977
1 changed files with 4 additions and 2 deletions
|
@ -9,6 +9,7 @@
|
||||||
#include <nxp/nxp_rt11xx_cm7.dtsi>
|
#include <nxp/nxp_rt11xx_cm7.dtsi>
|
||||||
#include <zephyr/dt-bindings/led/led.h>
|
#include <zephyr/dt-bindings/led/led.h>
|
||||||
#include "vmu_rt1170.dtsi"
|
#include "vmu_rt1170.dtsi"
|
||||||
|
#include <zephyr/dt-bindings/input/input-event-codes.h>
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "NXP VMU RT1170";
|
model = "NXP VMU RT1170";
|
||||||
|
@ -35,12 +36,13 @@
|
||||||
zephyr,code-partition = &slot0_partition;
|
zephyr,code-partition = &slot0_partition;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* This is the Button on the included GPS module for 10 pin JST-GH */
|
/* This is the Arming Button on the included GPS module for 10 pin JST-GH */
|
||||||
buttons {
|
gpio_keys {
|
||||||
compatible = "gpio-keys";
|
compatible = "gpio-keys";
|
||||||
arming_button: button_0 {
|
arming_button: button_0 {
|
||||||
label = "Arming Switch";
|
label = "Arming Switch";
|
||||||
gpios = <&gpio1 24 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>;
|
gpios = <&gpio1 24 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>;
|
||||||
|
zephyr,code = <INPUT_KEY_0>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue