boards: st: fix STM3U5 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.

Also remove a few spurious space characters.

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:19:31 +02:00 committed by Benjamin Cabé
commit 2418d03869
9 changed files with 57 additions and 9 deletions

View file

@ -13,10 +13,12 @@
/ {
leds {
compatible = "gpio-leds";
green_led_1: led_1 {
gpios = <&gpioh 7 GPIO_ACTIVE_LOW>;
label = "User LD7";
};
red_led_1: led_3 {
gpios = <&gpioh 6 GPIO_ACTIVE_LOW>;
label = "User LD6";
@ -25,6 +27,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "User";
gpios = <&gpioc 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
@ -104,6 +107,7 @@ stm32_lp_tick_source: &lptim1 {
&timers4 {
status = "okay";
st,prescaler = <1>;
pwm4: pwm {
status = "okay";
pinctrl-0 = <&tim4_ch1_pb6>;
@ -114,6 +118,7 @@ stm32_lp_tick_source: &lptim1 {
&timers3 {
status = "okay";
st,prescaler = <255>;
pwm3: pwm {
status = "okay";
pinctrl-0 = <&tim3_ch2_pe4>;

View file

@ -53,23 +53,26 @@
label = "mcuboot";
reg = <0x00000000 DT_SIZE_K(64)>;
};
slot0_partition: partition@10000 {
label = "image-0";
reg = <0x00010000 DT_SIZE_K(416)>;
};
slot1_partition: partition@78000 {
label = "image-1";
reg = <0x00078000 DT_SIZE_K(416)>;
};
scratch_partition: partition@e0000 {
label = "image-scratch";
reg = <0x000e0000 DT_SIZE_K(64)>;
};
storage_partition: partition@f0000 {
label = "storage";
reg = <0x000f0000 DT_SIZE_K(64)>;
};
};
};

View file

@ -27,7 +27,6 @@
};
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
@ -44,26 +43,31 @@
reg = <0x00000000 DT_SIZE_K(224)>;
read-only;
};
/* Secure image primary slot */
slot0_partition: partition@38000 {
label = "image-0";
reg = <0x00038000 DT_SIZE_K(384)>;
};
/* Non-secure image primary slot */
slot0_ns_partition: partition@98000 {
label = "image-0-nonsecure";
reg = <0x00098000 DT_SIZE_K(512)>;
};
/* Secure image secondary slot */
slot1_partition: partition@118000 {
label = "image-1";
reg = <0x00118000 DT_SIZE_K(384)>;
};
/* Non-secure image secondary slot */
slot1_ns_partition: partition@178000 {
label = "image-1-nonsecure";
reg = <0x00178000 DT_SIZE_K(512)>;
};
/* Applicative Non Volatile Storage */
storage_partition: partition@1f8000 {
label = "storage";

View file

@ -13,14 +13,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 = <&gpiog 2 GPIO_ACTIVE_HIGH>;
label = "User LD3";
@ -29,6 +32,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
@ -147,7 +151,7 @@
status = "okay";
pwm3: pwm {
pinctrl-0 = <&tim3_ch2_pc7>;
pinctrl-0 = <&tim3_ch2_pc7>;
pinctrl-names = "default";
status = "okay";
};

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 = <&gpiog 2 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>;
@ -146,7 +150,7 @@
status = "okay";
pwm3: pwm {
pinctrl-0 = <&tim3_ch2_pc7>;
pinctrl-0 = <&tim3_ch2_pc7>;
pinctrl-names = "default";
status = "okay";
};

View file

@ -48,14 +48,17 @@
label = "mcuboot";
reg = <0x00000000 DT_SIZE_K(64)>;
};
slot0_partition: partition@10000 {
label = "image-0";
reg = <0x00010000 DT_SIZE_K(1952)>;
};
slot1_partition: partition@1f8000 {
label = "image-1";
reg = <0x001f8000 DT_SIZE_K(1960)>;
};
storage_partition: partition@3e2000 {
label = "storage";
reg = <0x003e2000 DT_SIZE_K(120)>;

View file

@ -22,18 +22,22 @@
leds {
compatible = "gpio-leds";
green_led_1: led_1 {
gpios = <&gpiof 6 GPIO_ACTIVE_HIGH>;
label = "User GREEN led";
};
red_led_1: led_2 {
gpios = <&gpioh 11 GPIO_ACTIVE_HIGH>;
label = "User RED led";
};
yellow_led_1: led_3 {
gpios = <&gpioh 12 GPIO_ACTIVE_HIGH>;
label = "User YELLOW led";
};
blue_led_1: led_4 {
gpios = <&gpiof 9 GPIO_ACTIVE_HIGH>;
label = "User YELLOW led";
@ -42,11 +46,13 @@
gpio_keys {
compatible = "gpio-keys";
button1: button1 {
label = "User BT1";
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
zephyr,code = <INPUT_KEY_0>;
};
button2: button2 {
label = "User BT2";
gpios = <&gpioe 0 GPIO_ACTIVE_HIGH>;
@ -202,6 +208,7 @@ stm32_lp_tick_source: &lptim1 {
&timers4 {
status = "okay";
st,prescaler = <1>;
pwm4: pwm {
status = "okay";
pinctrl-0 = <&tim4_ch1_pb6>;
@ -212,6 +219,7 @@ stm32_lp_tick_source: &lptim1 {
&timers3 {
status = "okay";
st,prescaler = <255>;
pwm3: pwm {
status = "okay";
pinctrl-0 = <&tim3_ch2_pe4>;
@ -338,23 +346,26 @@ zephyr_udc0: &usbotg_fs {
label = "mcuboot";
reg = <0x00000000 DT_SIZE_K(64)>;
};
slot0_partition: partition@10000 {
label = "image-0";
reg = <0x00010000 DT_SIZE_K(416)>;
};
slot1_partition: partition@78000 {
label = "image-1";
reg = <0x00078000 DT_SIZE_K(416)>;
};
scratch_partition: partition@e0000 {
label = "image-scratch";
reg = <0x000e0000 DT_SIZE_K(64)>;
};
storage_partition: partition@f0000 {
label = "storage";
reg = <0x000f0000 DT_SIZE_K(64)>;
};
};
};

View file

@ -23,10 +23,12 @@
leds {
compatible = "gpio-leds";
green_led: led_1 {
gpios = <&gpioh 12 GPIO_ACTIVE_HIGH>;
label = "LED_1";
};
orange_led: led_2 {
gpios = <&gpioh 10 GPIO_ACTIVE_HIGH>;
label = "LED_2";
@ -44,6 +46,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "User";
gpios = <&gpioe 0 GPIO_ACTIVE_HIGH>;
@ -154,19 +157,20 @@ stm32_lp_tick_source: &lptim1 {
cs-gpios = <&gpioh 6 GPIO_ACTIVE_LOW>,
<&gpioh 15 GPIO_ACTIVE_LOW>,
<&gpioi 7 GPIO_ACTIVE_LOW>;
iis2dlpc: iis2dlpc@0 {
compatible = "st,iis2dlpc";
spi-max-frequency = <DT_FREQ_M(10)>;
reg = <0>;
drdy-gpios = <&gpiof 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
drdy-int = <1>;
drdy-int = <1>;
};
ism330dhcx: ism330dhcx@1 {
compatible = "st,ism330dhcx";
spi-max-frequency = <DT_FREQ_M(10)>;
reg = <1>;
drdy-gpios = <&gpiob 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
drdy-gpios = <&gpiob 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
int-pin = <1>;
};
@ -175,7 +179,7 @@ stm32_lp_tick_source: &lptim1 {
spi-max-frequency = <DT_FREQ_M(10)>;
reg = <2>;
drdy-gpios = <&gpiof 11 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
int-pin = <2>;
int-pin = <2>;
};
};
@ -184,6 +188,7 @@ stm32_lp_tick_source: &lptim1 {
pinctrl-names = "default";
status = "okay";
cs-gpios = <&gpioe 1 GPIO_ACTIVE_LOW>;
hci_spi: bluenrg-2@0 {
compatible = "st,hci-spi-v2";
reg = <0>;
@ -312,23 +317,26 @@ zephyr_udc0: &usbotg_fs {
label = "mcuboot";
reg = <0x00000000 DT_SIZE_K(64)>;
};
slot0_partition: partition@10000 {
label = "image-0";
reg = <0x00010000 DT_SIZE_K(416)>;
};
slot1_partition: partition@78000 {
label = "image-1";
reg = <0x00078000 DT_SIZE_K(416)>;
};
scratch_partition: partition@e0000 {
label = "image-scratch";
reg = <0x000e0000 DT_SIZE_K(64)>;
};
storage_partition: partition@f0000 {
label = "storage";
reg = <0x000f0000 DT_SIZE_K(64)>;
};
};
};

View file

@ -23,10 +23,12 @@
leds {
compatible = "gpio-leds";
green_led_0: led_3 {
gpios = <&gpioe 0 GPIO_ACTIVE_HIGH>;
label = "User LD3";
};
red_led_0: led_4 {
gpios = <&gpioe 1 GPIO_ACTIVE_HIGH>;
label = "User LD4";
@ -35,6 +37,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button_0 {
label = "User";
gpios = <&gpioc 13 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
@ -267,14 +270,17 @@ zephyr_udc0: &usbotg_hs {
label = "mcuboot";
reg = <0x00000000 DT_SIZE_K(64)>;
};
slot0_partition: partition@10000 {
label = "image-0";
reg = <0x00010000 DT_SIZE_K(1952)>;
};
slot1_partition: partition@1f8000 {
label = "image-1";
reg = <0x001f8000 DT_SIZE_K(1960)>;
};
storage_partition: partition@3e2000 {
label = "storage";
reg = <0x003e2000 DT_SIZE_K(120)>;