Browse Source

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>
pull/90576/head
Etienne Carriere 2 months ago committed by Benjamin Cabé
parent
commit
0a3526b6de
  1. 4
      boards/st/nucleo_l552ze_q/nucleo_l552ze_q-common.dtsi
  2. 5
      boards/st/nucleo_l552ze_q/nucleo_l552ze_q_stm32l552xx_ns.dts
  3. 4
      boards/st/stm32l562e_dk/stm32l562e_dk.dts
  4. 4
      boards/st/stm32l562e_dk/stm32l562e_dk_common.dtsi
  5. 5
      boards/st/stm32l562e_dk/stm32l562e_dk_stm32l562xx_ns.dts

4
boards/st/nucleo_l552ze_q/nucleo_l552ze_q-common.dtsi

@ -12,14 +12,17 @@ @@ -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 @@ @@ -28,6 +31,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;

5
boards/st/nucleo_l552ze_q/nucleo_l552ze_q_stm32l552xx_ns.dts

@ -29,7 +29,6 @@ @@ -29,7 +29,6 @@
};
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
@ -47,21 +46,25 @@ @@ -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";

4
boards/st/stm32l562e_dk/stm32l562e_dk.dts

@ -51,7 +51,7 @@ @@ -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)>;
};
};
};

4
boards/st/stm32l562e_dk/stm32l562e_dk_common.dtsi

@ -14,10 +14,12 @@ @@ -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 @@ @@ -26,6 +28,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
@ -90,6 +93,7 @@ @@ -90,6 +93,7 @@
register-select-pin = <0>;
#address-cells = <1>;
#size-cells = <0>;
st7789v: lcd-panel@0 {
compatible = "sitronix,st7789v";
reg = <0>;

5
boards/st/stm32l562e_dk/stm32l562e_dk_stm32l562xx_ns.dts

@ -45,16 +45,19 @@ @@ -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)>;
};
};

Loading…
Cancel
Save