boards: mimxrt: add GPIO_PULL_UP flag to button

User switch on mimxrt series boards requires a pull up resistor
to ensure the GPIO state does not float

Fixes #45129

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
This commit is contained in:
Daniel DeGrasse 2022-04-28 11:13:38 -05:00 committed by Carles Cufí
commit b6b0dd3f57
5 changed files with 5 additions and 5 deletions

View file

@ -47,7 +47,7 @@
compatible = "gpio-keys";
user_button: button-1 {
label = "User SW4";
gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
gpios = <&gpio5 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
};
};

View file

@ -49,7 +49,7 @@
compatible = "gpio-keys";
user_button: button-1 {
label = "User SW4";
gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
gpios = <&gpio5 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
};
};
};

View file

@ -50,7 +50,7 @@
compatible = "gpio-keys";
user_button: button_0 {
label = "User SW8";
gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
gpios = <&gpio5 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
};
};

View file

@ -51,7 +51,7 @@
compatible = "gpio-keys";
user_button: button-1 {
label = "User SW8";
gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
gpios = <&gpio5 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
};
};

View file

@ -60,7 +60,7 @@
compatible = "gpio-keys";
user_button: button-1 {
label = "User SW8";
gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
gpios = <&gpio5 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
};
};