boards: arm: apollo4p_blue_kxr_evb: Enable buttons.

This commit adds buttons instances and aliases for them on
apollo4p_blue_kxr_evb.

Signed-off-by: Aaron Ye <aye@ambiq.com>
This commit is contained in:
Aaron Ye 2023-12-02 08:56:16 +08:00 committed by Fabio Baltieri
parent 39ec2d2ce0
commit d3cce8805c

View file

@ -6,6 +6,7 @@
/ {
model = "Ambiq Apollo4 Blue Plus KXR evaluation board";
compatible = "ambiq,apollo4p_blue_kxr_evb";
chosen {
zephyr,itcm = &tcm;
zephyr,sram = &sram0;
@ -15,11 +16,14 @@
zephyr,uart-pipe = &uart0;
zephyr,flash-controller = &flash;
};
aliases {
watchdog0 = &wdt0;
led0 = &led0;
led1 = &led1;
led2 = &led2;
sw0 = &button0;
sw1 = &button1;
};
leds {
@ -38,6 +42,17 @@
};
};
buttons {
compatible = "gpio-keys";
button0: button_0 {
gpios = <&gpio0_31 17 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "BTN0";
};
button1: button_1 {
gpios = <&gpio0_31 19 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "BTN1";
};
};
};
&uart0 {