boards: stm32l496g_disco: Fix joystick pins polarity
Add pull_down to joystick pins to make samples/basic/button work Signed-off-by: Thomas LE ROUX <thomas.leroux@smile.fr>
This commit is contained in:
parent
cc0244bdd7
commit
2469a2e218
1 changed files with 5 additions and 5 deletions
|
@ -30,23 +30,23 @@
|
|||
compatible = "gpio-keys";
|
||||
joy_sel: joystick_select {
|
||||
label = "joystick select";
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
|
||||
gpios = <&gpioc 13 (GPIO_ACTIVE_LOW | GPIO_PULL_DOWN)>;
|
||||
};
|
||||
joy_down: joystick_down {
|
||||
label = "joystick down";
|
||||
gpios = <&gpioi 10 GPIO_ACTIVE_LOW>;
|
||||
gpios = <&gpioi 10 (GPIO_ACTIVE_LOW | GPIO_PULL_DOWN)>;
|
||||
};
|
||||
joy_up: joystick_up {
|
||||
label = "joystick up";
|
||||
gpios = <&gpioi 8 GPIO_ACTIVE_LOW>;
|
||||
gpios = <&gpioi 8 (GPIO_ACTIVE_LOW | GPIO_PULL_DOWN)>;
|
||||
};
|
||||
joy_left: joystick_left {
|
||||
label = "joystick left";
|
||||
gpios = <&gpioi 9 GPIO_ACTIVE_LOW>;
|
||||
gpios = <&gpioi 9 (GPIO_ACTIVE_LOW | GPIO_PULL_DOWN)>;
|
||||
};
|
||||
joy_right: joystick_right {
|
||||
label = "joystick right";
|
||||
gpios = <&gpiof 11 GPIO_ACTIVE_LOW>;
|
||||
gpios = <&gpiof 11 (GPIO_ACTIVE_LOW | GPIO_PULL_DOWN)>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue