Browse Source

boards: st: fix STM32F4 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>
pull/90576/head
Etienne Carriere 2 months ago committed by Benjamin Cabé
parent
commit
721b3b8e39
  1. 5
      boards/st/nucleo_f401re/nucleo_f401re.dts
  2. 5
      boards/st/nucleo_f410rb/nucleo_f410rb.dts
  3. 2
      boards/st/nucleo_f411re/nucleo_f411re.dts
  4. 4
      boards/st/nucleo_f412zg/nucleo_f412zg.dts
  5. 4
      boards/st/nucleo_f413zh/nucleo_f413zh.dts
  6. 5
      boards/st/nucleo_f429zi/nucleo_f429zi.dts
  7. 6
      boards/st/nucleo_f446re/nucleo_f446re.dts
  8. 5
      boards/st/nucleo_f446ze/nucleo_f446ze.dts
  9. 11
      boards/st/st25dv_mb1283_disco/st25dv_mb1283_disco.dts
  10. 1
      boards/st/steval_fcu001v1/steval_fcu001v1.dts
  11. 9
      boards/st/stm32f411e_disco/stm32f411e_disco.dts
  12. 9
      boards/st/stm32f412g_disco/stm32f412g_disco.dts
  13. 2
      boards/st/stm32f413h_disco/stm32f413h_disco.dts
  14. 5
      boards/st/stm32f429i_disc1/stm32f429i_disc1.dts
  15. 5
      boards/st/stm32f469i_disco/stm32f469i_disco.dts
  16. 5
      boards/st/stm32f4_disco/stm32f4_disco.dts

5
boards/st/nucleo_f401re/nucleo_f401re.dts

@ -26,6 +26,7 @@ @@ -26,6 +26,7 @@
leds: leds {
compatible = "gpio-leds";
green_led_2: led_2 {
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
label = "User LD2";
@ -34,6 +35,7 @@ @@ -34,6 +35,7 @@
pwmleds {
compatible = "pwm-leds";
green_pwm_led: green_pwm_led {
pwms = <&pwm2 1 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
};
@ -129,7 +131,6 @@ @@ -129,7 +131,6 @@
};
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
@ -150,10 +151,12 @@ @@ -150,10 +151,12 @@
label = "image-0";
reg = <0x00020000 DT_SIZE_K(128)>;
};
slot1_partition: partition@40000 {
label = "image-1";
reg = <0x00040000 DT_SIZE_K(128)>;
};
scratch_partition: partition@60000 {
label = "image-scratch";
reg = <0x00060000 DT_SIZE_K(128)>;

5
boards/st/nucleo_f410rb/nucleo_f410rb.dts

@ -24,6 +24,7 @@ @@ -24,6 +24,7 @@
leds: leds {
compatible = "gpio-leds";
green_led_2: led_2 {
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
label = "User LD2";
@ -32,6 +33,7 @@ @@ -32,6 +33,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
@ -120,7 +122,6 @@ @@ -120,7 +122,6 @@
};
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
@ -140,6 +141,7 @@ @@ -140,6 +141,7 @@
label = "image-0";
reg = <0x00008000 DT_SIZE_K(32)>;
};
/*
* The flash sectors 4 at 0x00010000 and ending at
* 0x001ffff
@ -148,6 +150,7 @@ @@ -148,6 +150,7 @@
label = "image-1";
reg = <0x00010000 DT_SIZE_K(32)>;
};
scratch_partition: partition@18000 {
label = "image-scratch";
reg = <0x00018000 DT_SIZE_K(32)>;

2
boards/st/nucleo_f411re/nucleo_f411re.dts

@ -24,6 +24,7 @@ @@ -24,6 +24,7 @@
leds: leds {
compatible = "gpio-leds";
green_led_2: led_2 {
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
label = "User LD2";
@ -32,6 +33,7 @@ @@ -32,6 +33,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;

4
boards/st/nucleo_f412zg/nucleo_f412zg.dts

@ -23,14 +23,17 @@ @@ -23,14 +23,17 @@
leds: leds {
compatible = "gpio-leds";
green_led_1: led_1 {
gpios = <&gpiob 0 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 = <&gpiob 14 GPIO_ACTIVE_HIGH>;
label = "User LD3";
@ -39,6 +42,7 @@ @@ -39,6 +42,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;

4
boards/st/nucleo_f413zh/nucleo_f413zh.dts

@ -24,14 +24,17 @@ @@ -24,14 +24,17 @@
leds: leds {
compatible = "gpio-leds";
green_led_1: led_1 {
gpios = <&gpiob 0 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 = <&gpiob 14 GPIO_ACTIVE_HIGH>;
label = "User LD3";
@ -40,6 +43,7 @@ @@ -40,6 +43,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;

5
boards/st/nucleo_f429zi/nucleo_f429zi.dts

@ -25,14 +25,17 @@ @@ -25,14 +25,17 @@
leds: leds {
compatible = "gpio-leds";
green_led_1: led_1 {
gpios = <&gpiob 0 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 = <&gpiob 14 GPIO_ACTIVE_HIGH>;
label = "User LD3";
@ -41,6 +44,7 @@ @@ -41,6 +44,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
@ -241,7 +245,6 @@ zephyr_udc0: &usbotg_fs { @@ -241,7 +245,6 @@ zephyr_udc0: &usbotg_fs {
label = "image-scratch";
reg = <0x000a0000 DT_SIZE_K(128)>;
};
};
};

6
boards/st/nucleo_f446re/nucleo_f446re.dts

@ -25,6 +25,7 @@ @@ -25,6 +25,7 @@
leds: leds {
compatible = "gpio-leds";
green_led_2: led_2 {
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
label = "User LD2";
@ -33,6 +34,7 @@ @@ -33,6 +34,7 @@
pwmleds {
compatible = "pwm-leds";
green_pwm_led: green_pwm_led {
pwms = <&pwm2 1 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
};
@ -40,6 +42,7 @@ @@ -40,6 +42,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
@ -157,7 +160,6 @@ @@ -157,7 +160,6 @@
};
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
@ -183,10 +185,12 @@ @@ -183,10 +185,12 @@
label = "image-0";
reg = <0x00020000 DT_SIZE_K(128)>;
};
slot1_partition: partition@40000 {
label = "image-1";
reg = <0x00040000 DT_SIZE_K(128)>;
};
scratch_partition: partition@60000 {
label = "image-scratch";
reg = <0x00060000 DT_SIZE_K(128)>;

5
boards/st/nucleo_f446ze/nucleo_f446ze.dts

@ -24,14 +24,17 @@ @@ -24,14 +24,17 @@
leds: leds {
compatible = "gpio-leds";
green_led_1: led_1 {
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
label = "User LD1";
};
blue_led_2: led_2 {
gpios = <&gpiob 7 GPIO_ACTIVE_HIGH>;
label = "User LD2";
};
red_led_3: led_3 {
gpios = <&gpiob 14 GPIO_ACTIVE_HIGH>;
label = "User LD3";
@ -40,6 +43,7 @@ @@ -40,6 +43,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
@ -184,7 +188,6 @@ zephyr_udc0: &usbotg_fs { @@ -184,7 +188,6 @@ zephyr_udc0: &usbotg_fs {
};
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;

11
boards/st/st25dv_mb1283_disco/st25dv_mb1283_disco.dts

@ -24,9 +24,11 @@ @@ -24,9 +24,11 @@
leds {
compatible = "gpio-leds";
orange_led: led_1 {
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
};
yellow_led: led_2 {
gpios = <&gpioc 4 GPIO_ACTIVE_HIGH>;
};
@ -34,26 +36,32 @@ @@ -34,26 +36,32 @@
buttons: gpio_keys {
compatible = "gpio-keys";
blue_button: button_1 {
gpios = <&gpioc 14 GPIO_ACTIVE_LOW>;
zephyr,code = <INPUT_KEY_0>;
};
sel_button: button_2 {
gpios = <&gpioe 8 GPIO_ACTIVE_LOW>;
zephyr,code = <INPUT_KEY_ENTER>;
};
left_button: button_3 {
gpios = <&gpioe 9 GPIO_ACTIVE_LOW>;
zephyr,code = <INPUT_KEY_LEFT>;
};
right_button: button_4 {
gpios = <&gpioe 11 GPIO_ACTIVE_LOW>;
zephyr,code = <INPUT_KEY_RIGHT>;
};
up_button: button_5 {
gpios = <&gpioe 10 GPIO_ACTIVE_LOW>;
zephyr,code = <INPUT_KEY_UP>;
};
down_button: button_6 {
gpios = <&gpioe 12 GPIO_ACTIVE_LOW>;
zephyr,code = <INPUT_KEY_DOWN>;
@ -83,7 +91,7 @@ @@ -83,7 +91,7 @@
width = <240>;
height = <320>;
duplex = <0x800>;
};
};
};
};
@ -135,7 +143,6 @@ @@ -135,7 +143,6 @@
status = "okay";
};
&i2c1 {
pinctrl-0 = <&i2c1_scl_pb6 &i2c1_sda_pb7>;
pinctrl-names = "default";

1
boards/st/steval_fcu001v1/steval_fcu001v1.dts

@ -21,6 +21,7 @@ @@ -21,6 +21,7 @@
leds {
compatible = "gpio-leds";
red_led_1: led_1 {
gpios = <&gpiob 5 GPIO_ACTIVE_HIGH>;
label = "User LD1";

9
boards/st/stm32f411e_disco/stm32f411e_disco.dts

@ -24,18 +24,22 @@ @@ -24,18 +24,22 @@
leds {
compatible = "gpio-leds";
orange_led_3: led_3 {
gpios = <&gpiod 13 GPIO_ACTIVE_HIGH>;
label = "User LD3";
};
green_led_4: led_4 {
gpios = <&gpiod 12 GPIO_ACTIVE_HIGH>;
label = "User LD4";
};
red_led_5: led_5 {
gpios = <&gpiod 14 GPIO_ACTIVE_HIGH>;
label = "User LD5";
};
blue_led_6: led_6 {
gpios = <&gpiod 15 GPIO_ACTIVE_HIGH>;
label = "User LD6";
@ -44,15 +48,19 @@ @@ -44,15 +48,19 @@
pwmleds {
compatible = "pwm-leds";
green_pwm_led: green_pwm_led {
pwms = <&pwm4 1 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
};
orange_pwm_led: orange_pwm_led {
pwms = <&pwm4 2 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
};
red_pwm_led: red_pwm_led {
pwms = <&pwm4 3 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
};
blue_pwm_led: blue_pwm_led {
pwms = <&pwm4 4 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
};
@ -60,6 +68,7 @@ @@ -60,6 +68,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "User";
gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>;

9
boards/st/stm32f412g_disco/stm32f412g_disco.dts

@ -23,18 +23,22 @@ @@ -23,18 +23,22 @@
leds {
compatible = "gpio-leds";
green_led_1: led_1 {
gpios = <&gpioe 0 GPIO_ACTIVE_HIGH>;
label = "User LD1";
};
orange_led_2: led_2 {
gpios = <&gpioe 1 GPIO_ACTIVE_HIGH>;
label = "User LD2";
};
red_led_3: led_3 {
gpios = <&gpioe 2 GPIO_ACTIVE_HIGH>;
label = "User LD3";
};
blue_led_4: led_4 {
gpios = <&gpioe 3 GPIO_ACTIVE_HIGH>;
label = "User LD4";
@ -43,26 +47,31 @@ @@ -43,26 +47,31 @@
gpio_keys {
compatible = "gpio-keys";
joy_sel: joystick_selection {
label = "joystick selection";
gpios = <&gpioa 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
zephyr,code = <INPUT_KEY_ENTER>;
};
joy_down: joystick_down {
label = "joystick down";
gpios = <&gpiog 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
zephyr,code = <INPUT_KEY_DOWN>;
};
joy_up: joystick_up {
label = "joystick up";
gpios = <&gpiog 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
zephyr,code = <INPUT_KEY_UP>;
};
joy_left: joystick_left {
label = "joystick left";
gpios = <&gpiof 15 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
zephyr,code = <INPUT_KEY_LEFT>;
};
joy_right: joystick_right {
label = "joystick right";
gpios = <&gpiof 14 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;

2
boards/st/stm32f413h_disco/stm32f413h_disco.dts

@ -23,10 +23,12 @@ @@ -23,10 +23,12 @@
leds {
compatible = "gpio-leds";
green_led_1: led_1 {
gpios = <&gpioc 5 GPIO_ACTIVE_HIGH>;
label = "User LD1";
};
red_led_2: led_2 {
gpios = <&gpioe 3 GPIO_ACTIVE_HIGH>;
label = "User LD4";

5
boards/st/stm32f429i_disc1/stm32f429i_disc1.dts

@ -34,10 +34,12 @@ @@ -34,10 +34,12 @@
leds {
compatible = "gpio-leds";
green_led_3: led_3 {
gpios = <&gpiog 13 GPIO_ACTIVE_HIGH>;
label = "User LD3";
};
red_led_4: led_4 {
gpios = <&gpiog 14 GPIO_ACTIVE_HIGH>;
label = "User LD4";
@ -46,6 +48,7 @@ @@ -46,6 +48,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "User";
gpios = <&gpioa 0 GPIO_ACTIVE_LOW>;
@ -242,6 +245,7 @@ @@ -242,6 +245,7 @@
width = <240>;
height = <320>;
pixel-format = <PANEL_PIXEL_FORMAT_RGB_565>;
display-timings {
compatible = "zephyr,panel-timing";
de-active = <0>;
@ -255,6 +259,7 @@ @@ -255,6 +259,7 @@
hfront-porch = <10>;
vfront-porch = <4>;
};
def-back-color-red = <0xFF>;
def-back-color-green = <0xFF>;
def-back-color-blue = <0xFF>;

5
boards/st/stm32f469i_disco/stm32f469i_disco.dts

@ -24,18 +24,22 @@ @@ -24,18 +24,22 @@
leds {
compatible = "gpio-leds";
green_led_1: led_1 {
gpios = <&gpiog 6 GPIO_ACTIVE_HIGH>;
label = "User LD1";
};
orange_led_2: led_2 {
gpios = <&gpiod 4 GPIO_ACTIVE_HIGH>;
label = "User LD2";
};
red_led_3: led_3 {
gpios = <&gpiod 5 GPIO_ACTIVE_HIGH>;
label = "User LD3";
};
blue_led_4: led_4 {
gpios = <&gpiok 3 GPIO_ACTIVE_HIGH>;
label = "User LD4";
@ -44,6 +48,7 @@ @@ -44,6 +48,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "User";
gpios = <&gpioa 0 GPIO_ACTIVE_LOW>;

5
boards/st/stm32f4_disco/stm32f4_disco.dts

@ -24,18 +24,22 @@ @@ -24,18 +24,22 @@
leds {
compatible = "gpio-leds";
orange_led_3: led_3 {
gpios = <&gpiod 13 GPIO_ACTIVE_HIGH>;
label = "User LD3";
};
green_led_4: led_4 {
gpios = <&gpiod 12 GPIO_ACTIVE_HIGH>;
label = "User LD4";
};
red_led_5: led_5 {
gpios = <&gpiod 14 GPIO_ACTIVE_HIGH>;
label = "User LD5";
};
blue_led_6: led_6 {
gpios = <&gpiod 15 GPIO_ACTIVE_HIGH>;
label = "User LD6";
@ -44,6 +48,7 @@ @@ -44,6 +48,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "Key";
gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>;

Loading…
Cancel
Save