boards: st: fix STM32L5 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.
- 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:07:43 +02:00 committed by Benjamin Cabé
commit 0a3526b6de
5 changed files with 18 additions and 4 deletions

View file

@ -12,14 +12,17 @@
/ {
leds: leds {
compatible = "gpio-leds";
green_led_1: led_1 {
gpios = <&gpioc 7 GPIO_ACTIVE_HIGH>;
label = "User LD1";
};
blue_led_1: led_2 {
gpios = <&gpiob 7 GPIO_ACTIVE_HIGH>;
label = "User LD2";
};
red_led_1: led_3 {
gpios = <&gpioa 9 GPIO_ACTIVE_HIGH>;
label = "User LD3";
@ -28,6 +31,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;

View file

@ -29,7 +29,6 @@
};
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
@ -47,21 +46,25 @@
reg = <0x00000000 DT_SIZE_K(80)>;
read-only;
};
/* Secure image primary slot */
slot0_partition: partition@14000 {
label = "image-0";
reg = <0x00014000 DT_SIZE_K(180)>;
};
/* Non-secure image primary slot */
slot0_ns_partition: partition@41000 {
label = "image-0-nonsecure";
reg = <0x00041000 DT_SIZE_K(36)>;
};
/* Secure image secondary slot */
slot1_partition: partition@4a000 {
label = "image-1";
reg = <0x0004a000 DT_SIZE_K(180)>;
};
/* Non-secure image secondary slot */
slot1_ns_partition: partition@77000 {
label = "image-1-nonsecure";

View file

@ -51,7 +51,7 @@
/* 2KB at the end of 512KB flash is set for storage */
storage_partition: partition@7f800 {
reg = <0x0007f800 DT_SIZE_K(2)>;
};
reg = <0x0007f800 DT_SIZE_K(2)>;
};
};
};

View file

@ -14,10 +14,12 @@
/ {
leds {
compatible = "gpio-leds";
red_led_9: led_9 {
gpios = <&gpiod 3 GPIO_ACTIVE_LOW>;
label = "User LD9";
};
green_led_10: led_10 {
gpios = <&gpiog 12 GPIO_ACTIVE_LOW>;
label = "User LD10";
@ -26,6 +28,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
@ -90,6 +93,7 @@
register-select-pin = <0>;
#address-cells = <1>;
#size-cells = <0>;
st7789v: lcd-panel@0 {
compatible = "sitronix,st7789v";
reg = <0>;

View file

@ -45,16 +45,19 @@
reg = <0x00000000 DT_SIZE_K(100)>;
read-only;
};
/* Secure image primary slot */
slot0_partition: partition@19000 {
reg = <0x00019000 DT_SIZE_K(240)>;
};
/* Non-secure image primary slot */
slot1_ns_partition: partition@55000 {
reg = <0x00055000 DT_SIZE_K(168)>;
};
/* 4KB at the end of 512KB flash is set for storage */
storage_partition: partition@7f000 {
storage_partition: partition@7f000 {
reg = <0x0007f000 DT_SIZE_K(4)>;
};
};