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:
parent
868f0cdfec
commit
3c68a20d75
2 changed files with 20 additions and 17 deletions
|
@ -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 {
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue