boards: st: fix STM32F7 boards DTS files coding style

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]:
- Indent with tabs.
- 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 <etienne.carriere@st.com>
This commit is contained in:
Etienne Carriere 2025-05-21 19:00:01 +02:00 committed by Benjamin Cabé
commit 3782c24ad7
8 changed files with 37 additions and 5 deletions

View file

@ -27,14 +27,17 @@
leds {
compatible = "gpio-leds";
green_led: led_1 {
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
label = "User LD1";
};
blue_led: led_2 {
gpios = <&gpiob 7 GPIO_ACTIVE_HIGH>;
label = "User LD2";
};
red_led: led_3 {
gpios = <&gpiob 14 GPIO_ACTIVE_HIGH>;
label = "User LD3";
@ -43,6 +46,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
@ -217,7 +221,6 @@ zephyr_udc0: &usbotg_fs {
};
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;

View file

@ -32,14 +32,17 @@
leds: leds {
compatible = "gpio-leds";
green_led: led_0 {
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
label = "User LD1";
};
blue_led: led_1 {
gpios = <&gpiob 7 GPIO_ACTIVE_HIGH>;
label = "User LD2";
};
red_led: led_2 {
gpios = <&gpiob 14 GPIO_ACTIVE_HIGH>;
label = "User LD3";
@ -48,6 +51,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button_0 {
label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;

View file

@ -32,14 +32,17 @@
leds: leds {
compatible = "gpio-leds";
green_led: led_0 {
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
label = "User LD1";
};
blue_led: led_1 {
gpios = <&gpiob 7 GPIO_ACTIVE_HIGH>;
label = "User LD2";
};
red_led: led_2 {
gpios = <&gpiob 14 GPIO_ACTIVE_HIGH>;
label = "User LD3";
@ -48,6 +51,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button_0 {
label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
@ -198,6 +202,5 @@ zephyr_udc0: &usbotg_fs {
label = "image-scratch";
reg = <0x000C0000 DT_SIZE_K(256)>;
};
};
};

View file

@ -33,14 +33,17 @@
leds: leds {
compatible = "gpio-leds";
green_led: led_0 {
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
label = "User LD1";
};
blue_led: led_1 {
gpios = <&gpiob 7 GPIO_ACTIVE_HIGH>;
label = "User LD2";
};
red_led: led_2 {
gpios = <&gpiob 14 GPIO_ACTIVE_HIGH>;
label = "User LD3";
@ -49,6 +52,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button_0 {
label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;

View file

@ -24,14 +24,17 @@
leds {
compatible = "gpio-leds";
blue_led: led_1 {
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
label = "User LD1";
};
red_led: led_2 {
gpios = <&gpioa 7 GPIO_ACTIVE_HIGH>;
label = "User LD5";
};
green_led: led_3 {
gpios = <&gpiob 1 GPIO_ACTIVE_HIGH>;
label = "User LD6";
@ -40,6 +43,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "User";
gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>;

View file

@ -29,6 +29,7 @@
leds {
compatible = "gpio-leds";
green_led_1: led_1 {
gpios = <&gpioi 1 GPIO_ACTIVE_HIGH>;
label = "User LD1";
@ -37,6 +38,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "User";
gpios = <&gpioi 11 GPIO_ACTIVE_HIGH>;
@ -222,7 +224,7 @@ zephyr_udc0: &usbotg_fs {
slot1_partition: partition@0 {
label = "image-1";
reg = <0x00000000 DT_SIZE_K(640)>;
};
};
storage_partition: partition@a0000 {
label = "storage";
@ -258,6 +260,7 @@ zephyr_udc0: &usbotg_fs {
* Note: SDRAM_CLK_MHZ = HCLK_MHZ / 2 (108 MHz)
*/
refresh-rate = <1667>;
bank@0 {
reg = <0>;
st,sdram-control = <STM32_FMC_SDRAM_NC_8
@ -290,6 +293,7 @@ zephyr_udc0: &usbotg_fs {
width = <480>;
height = <272>;
pixel-format = <PANEL_PIXEL_FORMAT_RGB_565>;
display-timings {
compatible = "zephyr,panel-timing";
de-active = <0>;
@ -303,6 +307,7 @@ zephyr_udc0: &usbotg_fs {
hfront-porch = <8>;
vfront-porch = <4>;
};
def-back-color-red = <0xFF>;
def-back-color-green = <0xFF>;
def-back-color-blue = <0xFF>;

View file

@ -29,6 +29,7 @@
leds {
compatible = "gpio-leds";
green_led_1: led_1 {
gpios = <&gpioi 1 GPIO_ACTIVE_HIGH>;
label = "User LD1";
@ -37,6 +38,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "User";
gpios = <&gpioi 11 GPIO_ACTIVE_HIGH>;
@ -209,7 +211,7 @@ zephyr_udc0: &usbotg_fs {
slot1_partition: partition@0 {
label = "image-1";
reg = <0x00000000 DT_SIZE_K(640)>;
};
};
storage_partition: partition@a0000 {
label = "storage";
@ -245,6 +247,7 @@ zephyr_udc0: &usbotg_fs {
* Note: SDRAM_CLK_MHZ = HCLK_MHZ / 2 (108 MHz)
*/
refresh-rate = <1667>;
bank@0 {
reg = <0>;
st,sdram-control = <STM32_FMC_SDRAM_NC_8
@ -277,6 +280,7 @@ zephyr_udc0: &usbotg_fs {
width = <480>;
height = <272>;
pixel-format = <PANEL_PIXEL_FORMAT_RGB_565>;
display-timings {
compatible = "zephyr,panel-timing";
de-active = <0>;
@ -290,6 +294,7 @@ zephyr_udc0: &usbotg_fs {
hfront-porch = <8>;
vfront-porch = <4>;
};
def-back-color-red = <0xFF>;
def-back-color-green = <0xFF>;
def-back-color-blue = <0xFF>;

View file

@ -40,14 +40,17 @@
leds {
compatible = "gpio-leds";
red_led_1:led_1 {
gpios = <&gpioj 13 GPIO_ACTIVE_HIGH>;
label = "User LD1";
};
green_led_2:led_2 {
gpios = <&gpioj 5 GPIO_ACTIVE_HIGH>;
label = "User LD2";
};
green_led_3:led_3 {
gpios = <&gpioa 12 GPIO_ACTIVE_HIGH>;
label = "User LD3";
@ -56,6 +59,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "User";
gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>;
@ -205,7 +209,7 @@ arduino_serial: &usart6 {};
slot1_partition: partition@0 {
label = "image-1";
reg = <0x00000000 DT_SIZE_K(16)>;
};
};
storage_partition: partition@1a0000 {
label = "storage";