Skip to content

Commit fa153a0

Browse files
aurel32galak
authored andcommitted
boards: nucleo_l432kc: fix GPIO definitions
The ST Nucleo L432KC board only has a reset switch and not user switch. It has a single user LED connected to PB3, and called LD3 in the ST documentation. This patch fixes the corresponding device tree definition. At the same time also it also fixes the documentation, where the name of the power and user LEDs are swapped. Signed-off-by: Aurelien Jarno <[email protected]>
1 parent 1d7bd56 commit fa153a0

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

boards/arm/nucleo_l432kc/doc/nucleol432kc.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ some highlights of the Nucleo L432KC board:
1818
- USB VBUS or external source(3.3V, 5V, 7 - 12V)
1919
- Power management access point
2020

21-
- Three LEDs: USB communication (LD1), user LED (LD2), power LED (LD3)
21+
- Three LEDs: USB communication (LD1), power LED (LD2), user LED (LD3)
2222
- One push-button: RESET
2323

2424
.. image:: img/nucleo32_ulp_logo.jpg

boards/arm/nucleo_l432kc/nucleo_l432kc.dts

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,14 @@
1919

2020
leds {
2121
compatible = "gpio-leds";
22-
green_led_2: led@0 {
23-
gpios = <&gpioa 5 GPIO_INT_ACTIVE_HIGH>;
24-
label = "User LD2";
25-
};
26-
};
27-
28-
gpio_keys {
29-
compatible = "gpio-keys";
30-
user_button: button@0 {
31-
label = "User";
32-
gpios = <&gpioc 13 GPIO_INT_ACTIVE_LOW>;
22+
green_led: led@0 {
23+
gpios = <&gpiob 3 GPIO_INT_ACTIVE_HIGH>;
24+
label = "User LD3";
3325
};
3426
};
3527

3628
aliases {
37-
led0 = &green_led_2;
38-
sw0 = &user_button;
29+
led0 = &green_led;
3930
};
4031
};
4132

0 commit comments

Comments
 (0)