boards: frdm_mcxn947: Move the GPIO button nodes to the common file

Move the GPIO button dts nodes to the common dts file so it
be selected by either cpu core.
Also fix an error in the GPIO setting for one of the switches.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
This commit is contained in:
Mahesh Mahadevan 2024-03-14 11:30:19 -05:00 committed by Anas Nashif
commit 3c68a20d75
2 changed files with 20 additions and 17 deletions

View file

@ -11,6 +11,8 @@
led0 = &red_led;
led1 = &green_led;
led2 = &blue_led;
sw0 = &user_button_2;
sw1 = &user_button_3;
};
leds {
@ -31,6 +33,20 @@
status = "disabled";
};
};
gpio_keys {
compatible = "gpio-keys";
user_button_2: button_0 {
label = "User SW2";
gpios = <&gpio0 23 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
status = "disabled";
};
user_button_3: button_1 {
label = "User SW3";
gpios = <&gpio0 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
status = "disabled";
};
};
};
&flexcomm4_lpuart4 {

View file

@ -17,11 +17,6 @@
/delete-node/ cpu@1;
};
aliases{
sw0 = &user_button_3;
sw1 = &user_button_2;
};
chosen {
zephyr,sram = &sram0;
zephyr,flash = &flash;
@ -29,18 +24,6 @@
zephyr,console = &flexcomm4_lpuart4;
zephyr,shell-uart = &flexcomm4_lpuart4;
};
gpio_keys {
compatible = "gpio-keys";
user_button_2: button_0 {
label = "User SW2";
gpios = <&gpio0 29 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
user_button_3: button_1 {
label = "User SW3";
gpios = <&gpio0 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
};
};
/*
@ -77,6 +60,10 @@
status = "okay";
};
&user_button_2 {
status = "okay";
};
&flexcomm4 {
status = "okay";
};