From fce06403364b1330a8dd2b72a148a6c0cc347e1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Hejnak=20=28LeHack=29?= Date: Sun, 30 Jul 2023 20:33:59 +0200 Subject: [PATCH] boards: nucleo_l552ze_q: Fix green led port/pin definition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit fixes the definition of the green led pin on the nucleo-L552ZE-Q board The new port/pin for this led (LED1) can be confirmed using docs from os.mbed.com for this board. Additionally I tested it on my own hardware. Also updated the LD2 entry in the docs which was incorrect. Signed-off-by: Ɓukasz Hejnak (LeHack) --- boards/arm/nucleo_l552ze_q/doc/nucleol552ze_q.rst | 2 +- boards/arm/nucleo_l552ze_q/nucleo_l552ze_q-common.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/boards/arm/nucleo_l552ze_q/doc/nucleol552ze_q.rst b/boards/arm/nucleo_l552ze_q/doc/nucleol552ze_q.rst index 56de207e45a..37dee841eab 100644 --- a/boards/arm/nucleo_l552ze_q/doc/nucleol552ze_q.rst +++ b/boards/arm/nucleo_l552ze_q/doc/nucleol552ze_q.rst @@ -261,7 +261,7 @@ Default Zephyr Peripheral Mapping: - SPI_3_MOSI : PC12 - PWM_2_CH1 : PA0 - USER_PB : PC13 -- LD2 : PA5 +- LD2 : PB7 - DAC1 : PA4 - ADC1 : PC0 diff --git a/boards/arm/nucleo_l552ze_q/nucleo_l552ze_q-common.dtsi b/boards/arm/nucleo_l552ze_q/nucleo_l552ze_q-common.dtsi index aa782aa16f3..057cbebe2c5 100644 --- a/boards/arm/nucleo_l552ze_q/nucleo_l552ze_q-common.dtsi +++ b/boards/arm/nucleo_l552ze_q/nucleo_l552ze_q-common.dtsi @@ -12,7 +12,7 @@ leds { compatible = "gpio-leds"; green_led_1: led_1 { - gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>; + gpios = <&gpioc 7 GPIO_ACTIVE_HIGH>; label = "User LD1"; }; blue_led_1: led_2 {