From c98c388da6ec041f924ccf46bbf8597dfebff53e Mon Sep 17 00:00:00 2001 From: Jason Yu Date: Thu, 18 Apr 2024 12:14:06 +0900 Subject: [PATCH] dts: mcxn947: Fix input key error Fix the compile error when input driver is enabled. Error message: In file included from zephyr/zephyr/include/zephyr/sys/util_macro.h:34, from zephyr/zephyr/include/zephyr/irq_multilevel.h:15, from zephyr/zephyr/include/zephyr/devicetree.h:20, from zephyr/zephyr/include/zephyr/device.h:12, from zephyr/zephyr/drivers/input/input_gpio_keys.c:9: zephyr/zephyr/include/zephyr/toolchain/gcc.h:87:36: error: static assertion failed: "zephyr-code must be specified to use the input-gpio-keys driver" Signed-off-by: Jason Yu --- boards/nxp/frdm_mcxn947/frdm_mcxn947.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boards/nxp/frdm_mcxn947/frdm_mcxn947.dtsi b/boards/nxp/frdm_mcxn947/frdm_mcxn947.dtsi index e928f64ab33..37e15451bc9 100644 --- a/boards/nxp/frdm_mcxn947/frdm_mcxn947.dtsi +++ b/boards/nxp/frdm_mcxn947/frdm_mcxn947.dtsi @@ -6,6 +6,7 @@ #include "frdm_mcxn947-pinctrl.dtsi" #include +#include / { aliases{ @@ -41,11 +42,13 @@ user_button_2: button_0 { label = "User SW2"; gpios = <&gpio0 23 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + zephyr,code = ; status = "disabled"; }; user_button_3: button_1 { label = "User SW3"; gpios = <&gpio0 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + zephyr,code = ; status = "disabled"; }; };