From 8f02dc56336bc0fa63dc8aaa447ef9e36dcc56c2 Mon Sep 17 00:00:00 2001 From: Etienne Carriere Date: Wed, 21 May 2025 18:52:34 +0200 Subject: [PATCH] boards: st: fix STM32C0 boards DTS files coding style MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix board DTS coding style issues to prevent they spread when a new board is introduced and used this DTS as example start point. Issues addressed from Zephyr devicetree style guidelines [1]: - Don’t insert empty lines before a dedenting };. - Insert a single empty line to separate nodes at the same hierarchy level. No functional change. Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1] Signed-off-by: Etienne Carriere --- boards/st/nucleo_c031c6/nucleo_c031c6.dts | 2 ++ boards/st/nucleo_c071rb/nucleo_c071rb.dts | 2 ++ boards/st/stm32c0116_dk/stm32c0116_dk.dts | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/boards/st/nucleo_c031c6/nucleo_c031c6.dts b/boards/st/nucleo_c031c6/nucleo_c031c6.dts index e14cf235121..20209c278e8 100644 --- a/boards/st/nucleo_c031c6/nucleo_c031c6.dts +++ b/boards/st/nucleo_c031c6/nucleo_c031c6.dts @@ -23,6 +23,7 @@ leds: leds { compatible = "gpio-leds"; + green_led_4: led_4 { gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>; label = "User LD4"; @@ -39,6 +40,7 @@ gpio_keys { compatible = "gpio-keys"; + user_button: button { label = "user button"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; diff --git a/boards/st/nucleo_c071rb/nucleo_c071rb.dts b/boards/st/nucleo_c071rb/nucleo_c071rb.dts index 2344c71a1aa..53f72085ba5 100644 --- a/boards/st/nucleo_c071rb/nucleo_c071rb.dts +++ b/boards/st/nucleo_c071rb/nucleo_c071rb.dts @@ -23,6 +23,7 @@ leds: leds { compatible = "gpio-leds"; + green_led_1: led_1 { gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>; label = "User LD1"; @@ -44,6 +45,7 @@ gpio_keys { compatible = "gpio-keys"; + user_button: button { label = "user button"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; diff --git a/boards/st/stm32c0116_dk/stm32c0116_dk.dts b/boards/st/stm32c0116_dk/stm32c0116_dk.dts index 1e388a0a281..a38065c6e9e 100644 --- a/boards/st/stm32c0116_dk/stm32c0116_dk.dts +++ b/boards/st/stm32c0116_dk/stm32c0116_dk.dts @@ -22,6 +22,7 @@ leds: leds { compatible = "gpio-leds"; + green_led_3: led_3 { gpios = <&gpiob 6 GPIO_ACTIVE_LOW>; label = "User LD3"; @@ -38,6 +39,7 @@ gpio_keys { compatible = "gpio-keys"; + reset_button: button { label = "reset button"; gpios = <&gpiof 2 GPIO_ACTIVE_LOW>; @@ -156,7 +158,6 @@ zephyr,resolution = <12>; zephyr,vref-mv = <3300>; }; - }; &die_temp {