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:
Erwan Gouriou 2019-10-08 10:00:32 +02:00 committed by Carles Cufí
commit fc52f097b8
11 changed files with 14 additions and 14 deletions

View file

@ -39,7 +39,7 @@
compatible = "gpio-keys"; compatible = "gpio-keys";
user_button: button { user_button: button {
label = "User"; label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
}; };
}; };

View file

@ -39,7 +39,7 @@
compatible = "gpio-keys"; compatible = "gpio-keys";
user_button: button { user_button: button {
label = "User"; label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
}; };
}; };

View file

@ -39,7 +39,7 @@
compatible = "gpio-keys"; compatible = "gpio-keys";
user_button: button { user_button: button {
label = "User"; label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
}; };
}; };

View file

@ -41,7 +41,7 @@
compatible = "gpio-keys"; compatible = "gpio-keys";
user_button: button { user_button: button {
label = "User"; label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
}; };
}; };

View file

@ -40,7 +40,7 @@
compatible = "gpio-keys"; compatible = "gpio-keys";
user_button: button_0 { user_button: button_0 {
label = "User"; label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
}; };
}; };

View file

@ -40,7 +40,7 @@
compatible = "gpio-keys"; compatible = "gpio-keys";
user_button: button_0 { user_button: button_0 {
label = "User"; label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
}; };
}; };

View file

@ -23,7 +23,7 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
green_led_1: led_4 { green_led_1: led_4 {
gpios = <&gpioa 5 GPIO_ACTIVE_LOW>; gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
label = "User LD4"; label = "User LD4";
}; };
}; };
@ -32,7 +32,7 @@
compatible = "gpio-keys"; compatible = "gpio-keys";
user_button: button { user_button: button {
label = "User"; label = "User";
gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
}; };
}; };

View file

@ -47,7 +47,7 @@
compatible = "gpio-keys"; compatible = "gpio-keys";
user_button: button { user_button: button {
label = "User Button"; label = "User Button";
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
}; };
}; };

View file

@ -41,7 +41,7 @@
compatible = "gpio-keys"; compatible = "gpio-keys";
user_button: button { user_button: button {
label = "User"; label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
}; };
}; };

View file

@ -41,15 +41,15 @@
compatible = "gpio-keys"; compatible = "gpio-keys";
user_button_1: button_0 { user_button_1: button_0 {
label = "SW1"; label = "SW1";
gpios = <&gpioc 4 GPIO_ACTIVE_LOW>; gpios = <&gpioc 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
}; };
user_button_2: button_1 { user_button_2: button_1 {
label = "SW2"; label = "SW2";
gpios = <&gpiod 0 GPIO_ACTIVE_LOW>; gpios = <&gpiod 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
}; };
user_button_3: button_2 { user_button_3: button_2 {
label = "SW3"; label = "SW3";
gpios = <&gpiod 1 GPIO_ACTIVE_LOW>; gpios = <&gpiod 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
}; };
}; };

View file

@ -33,7 +33,7 @@
compatible = "gpio-keys"; compatible = "gpio-keys";
wake_up: button { wake_up: button {
label = "Wakeup"; label = "Wakeup";
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
status = "disabled"; status = "disabled";
}; };
joy_center: joystick_center { joy_center: joystick_center {