boards: numaker_m55m1: add BTN0/BTN1 buttons
Add BTN0/BTN1 buttons on numaker_m55m1 board for e.g. hid-mouse sample test Signed-off-by: Chun-Chieh Li <ccli8@nuvoton.com>
This commit is contained in:
parent
7095608f7c
commit
2a7ffe5f02
1 changed files with 16 additions and 0 deletions
|
@ -17,6 +17,8 @@
|
|||
aliases {
|
||||
led0 = &green_led;
|
||||
led1 = &yellow_led;
|
||||
sw0 = &btn0;
|
||||
sw1 = &btn1;
|
||||
};
|
||||
|
||||
chosen {
|
||||
|
@ -43,6 +45,20 @@
|
|||
label = "User LD1";
|
||||
};
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
btn0: btn0 {
|
||||
label = "BTN0";
|
||||
gpios = <&gpioi 11 GPIO_ACTIVE_LOW>;
|
||||
zephyr,code = <INPUT_KEY_0>;
|
||||
};
|
||||
btn1: btn1 {
|
||||
label = "BTN1";
|
||||
gpios = <&gpioh 1 GPIO_ACTIVE_LOW>;
|
||||
zephyr,code = <INPUT_KEY_1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&gpiod {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue