boards: stm32: Fix buttons and leds configuration
On some stm32 based boards buttons and leds configuration was wrong. Fix that. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
50984b17a1
commit
fc52f097b8
11 changed files with 14 additions and 14 deletions
|
@ -39,7 +39,7 @@
|
|||
compatible = "gpio-keys";
|
||||
user_button: button {
|
||||
label = "User";
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
compatible = "gpio-keys";
|
||||
user_button: button {
|
||||
label = "User";
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
compatible = "gpio-keys";
|
||||
user_button: button {
|
||||
label = "User";
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
compatible = "gpio-keys";
|
||||
user_button: button {
|
||||
label = "User";
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
compatible = "gpio-keys";
|
||||
user_button: button_0 {
|
||||
label = "User";
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
compatible = "gpio-keys";
|
||||
user_button: button_0 {
|
||||
label = "User";
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_1: led_4 {
|
||||
gpios = <&gpioa 5 GPIO_ACTIVE_LOW>;
|
||||
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
|
||||
label = "User LD4";
|
||||
};
|
||||
};
|
||||
|
@ -32,7 +32,7 @@
|
|||
compatible = "gpio-keys";
|
||||
user_button: button {
|
||||
label = "User";
|
||||
gpios = <&gpioa 0 GPIO_ACTIVE_LOW>;
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
compatible = "gpio-keys";
|
||||
user_button: button {
|
||||
label = "User Button";
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
compatible = "gpio-keys";
|
||||
user_button: button {
|
||||
label = "User";
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -41,15 +41,15 @@
|
|||
compatible = "gpio-keys";
|
||||
user_button_1: button_0 {
|
||||
label = "SW1";
|
||||
gpios = <&gpioc 4 GPIO_ACTIVE_LOW>;
|
||||
gpios = <&gpioc 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
|
||||
};
|
||||
user_button_2: button_1 {
|
||||
label = "SW2";
|
||||
gpios = <&gpiod 0 GPIO_ACTIVE_LOW>;
|
||||
gpios = <&gpiod 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
|
||||
};
|
||||
user_button_3: button_2 {
|
||||
label = "SW3";
|
||||
gpios = <&gpiod 1 GPIO_ACTIVE_LOW>;
|
||||
gpios = <&gpiod 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
compatible = "gpio-keys";
|
||||
wake_up: button {
|
||||
label = "Wakeup";
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
|
||||
status = "disabled";
|
||||
};
|
||||
joy_center: joystick_center {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue