File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 11/dts-v1/;
22#include <ambiq/ambiq_apollo4p_blue.dtsi>
3+ #include <zephyr/dt-bindings/input/input-event-codes.h>
34
45#include "apollo4p_blue_kxr_evb-pinctrl.dtsi"
56
4546
4647 buttons {
4748 compatible = "gpio-keys";
49+ polling-mode;
4850 button0: button_0 {
4951 gpios = <&gpio0_31 17 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
5052 label = "BTN0";
53+ zephyr,code = <INPUT_KEY_0>;
54+ status = "okay";
5155 };
5256 button1: button_1 {
5357 gpios = <&gpio0_31 19 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
5458 label = "BTN1";
59+ zephyr,code = <INPUT_KEY_1>;
60+ status = "okay";
5561 };
5662 };
5763};
Original file line number Diff line number Diff line change 11/dts-v1/;
22#include <ambiq/ambiq_apollo4p.dtsi>
3+ #include <zephyr/dt-bindings/input/input-event-codes.h>
34
45#include "apollo4p_evb-pinctrl.dtsi"
56
4546
4647 buttons {
4748 compatible = "gpio-keys";
49+ polling-mode;
4850 button0: button_0 {
4951 gpios = <&gpio0_31 18 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
5052 label = "BTN0";
53+ zephyr,code = <INPUT_KEY_0>;
54+ status = "okay";
5155 };
5256 button1: button_1 {
5357 gpios = <&gpio0_31 19 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
5458 label = "BTN1";
59+ zephyr,code = <INPUT_KEY_1>;
60+ status = "okay";
5561 };
5662 };
5763};
You can’t perform that action at this time.
0 commit comments