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:
Thomas LE ROUX 2020-09-24 15:32:05 +02:00 committed by Kumar Gala
commit 2469a2e218

View file

@ -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)>;
};
};