Browse Source

boards: st: fix STM32H7* 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
39a9fe9f59
  1. 4
      boards/st/nucleo_h723zg/nucleo_h723zg.dts
  2. 4
      boards/st/nucleo_h743zi/nucleo_h743zi.dts
  3. 3
      boards/st/nucleo_h745zi_q/nucleo_h745zi_q.dtsi
  4. 4
      boards/st/nucleo_h753zi/nucleo_h753zi.dts
  5. 4
      boards/st/nucleo_h755zi_q/nucleo_h755zi_q.dtsi
  6. 3
      boards/st/nucleo_h7a3zi_q/nucleo_h7a3zi_q.dts
  7. 7
      boards/st/nucleo_h7s3l8/nucleo_h7s3l8.dts
  8. 19
      boards/st/stm32h735g_disco/stm32h735g_disco.dts
  9. 4
      boards/st/stm32h745i_disco/stm32h745i_disco.dtsi
  10. 13
      boards/st/stm32h745i_disco/stm32h745i_disco_stm32h745xx_m7.dts
  11. 10
      boards/st/stm32h747i_disco/stm32h747i_disco.dtsi
  12. 1
      boards/st/stm32h747i_disco/stm32h747i_disco_stm32h747xx_m4.dts
  13. 13
      boards/st/stm32h747i_disco/stm32h747i_disco_stm32h747xx_m7.dts
  14. 7
      boards/st/stm32h750b_dk/stm32h750b_dk.dts
  15. 22
      boards/st/stm32h7b3i_dk/stm32h7b3i_dk.dts
  16. 8
      boards/st/stm32h7s78_dk/stm32h7s78_dk.dts

4
boards/st/nucleo_h723zg/nucleo_h723zg.dts

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

4
boards/st/nucleo_h743zi/nucleo_h743zi.dts

@ -26,10 +26,12 @@ @@ -26,10 +26,12 @@
leds: leds {
compatible = "gpio-leds";
green_led: led_0 {
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
label = "User LD1";
};
yellow_led: led_1 {
gpios = <&gpioe 1 GPIO_ACTIVE_HIGH>;
label = "User LD2";
@ -46,6 +48,7 @@ @@ -46,6 +48,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button_0 {
label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
@ -272,7 +275,6 @@ zephyr_udc0: &usbotg_fs { @@ -272,7 +275,6 @@ zephyr_udc0: &usbotg_fs {
label = "image-scratch";
reg = <0x000c0000 DT_SIZE_K(128)>;
};
};
};

3
boards/st/nucleo_h745zi_q/nucleo_h745zi_q.dtsi

@ -11,10 +11,12 @@ @@ -11,10 +11,12 @@
/ {
leds: leds {
compatible = "gpio-leds";
green_led: led_1 {
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
label = "User LD1";
};
yellow_led: led_2 {
gpios = <&gpioe 1 GPIO_ACTIVE_HIGH>;
label = "User LD2";
@ -23,6 +25,7 @@ @@ -23,6 +25,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button_0 {
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
label = "User SB1";

4
boards/st/nucleo_h753zi/nucleo_h753zi.dts

@ -26,10 +26,12 @@ @@ -26,10 +26,12 @@
leds: leds {
compatible = "gpio-leds";
green_led: led_0 {
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
label = "User LD1";
};
yellow_led: led_1 {
gpios = <&gpioe 1 GPIO_ACTIVE_HIGH>;
label = "User LD2";
@ -46,6 +48,7 @@ @@ -46,6 +48,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button_0 {
label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
@ -260,6 +263,5 @@ zephyr_udc0: &usbotg_fs { @@ -260,6 +263,5 @@ zephyr_udc0: &usbotg_fs {
label = "image-scratch";
reg = <0x000c0000 DT_SIZE_K(128)>;
};
};
};

4
boards/st/nucleo_h755zi_q/nucleo_h755zi_q.dtsi

@ -11,14 +11,17 @@ @@ -11,14 +11,17 @@
/ {
leds: leds {
compatible = "gpio-leds";
green_led: led_1 {
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
label = "User LD1";
};
yellow_led: led_2 {
gpios = <&gpioe 1 GPIO_ACTIVE_HIGH>;
label = "User LD2";
};
red_led: led_3 {
gpios = <&gpiob 14 GPIO_ACTIVE_HIGH>;
label = "User LD3";
@ -27,6 +30,7 @@ @@ -27,6 +30,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button_0 {
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
label = "User SB1";

3
boards/st/nucleo_h7a3zi_q/nucleo_h7a3zi_q.dts

@ -25,10 +25,12 @@ @@ -25,10 +25,12 @@
leds: leds {
compatible = "gpio-leds";
green_led: led_0 {
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
label = "User LD1";
};
yellow_led: led_1 {
gpios = <&gpioe 1 GPIO_ACTIVE_HIGH>;
label = "User LD2";
@ -45,6 +47,7 @@ @@ -45,6 +47,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button_0 {
label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;

7
boards/st/nucleo_h7s3l8/nucleo_h7s3l8.dts

@ -24,14 +24,17 @@ @@ -24,14 +24,17 @@
leds: leds {
compatible = "gpio-leds";
green_led: led_1 {
gpios = <&gpiod 10 GPIO_ACTIVE_HIGH>;
label = "User LD1";
};
yellow_led: led_2 {
gpios = <&gpiod 13 GPIO_ACTIVE_HIGH>;
label = "User LD2";
};
red_led: led_3 {
gpios = <&gpiob 7 GPIO_ACTIVE_HIGH>;
label = "User LD3";
@ -40,6 +43,7 @@ @@ -40,6 +43,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button_0 {
label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
@ -196,14 +200,17 @@ @@ -196,14 +200,17 @@
label = "image-0";
reg = <0x00000000 DT_SIZE_K(512)>;
};
slot1_partition: partition@80000 {
label = "image-1";
reg = <0x0080000 DT_SIZE_K(512)>;
};
scratch_partition: partition@100000 {
label = "image-scratch";
reg = <0x00100000 DT_SIZE_K(64)>;
};
storage_partition: partition@110000 {
label = "storage";
reg = <0x00110000 DT_SIZE_K(64)>;

19
boards/st/stm32h735g_disco/stm32h735g_disco.dts

@ -24,10 +24,12 @@ @@ -24,10 +24,12 @@
leds {
compatible = "gpio-leds";
red_led: led_1 {
gpios = <&gpioc 2 GPIO_ACTIVE_LOW>;
label = "User LD2";
};
green_led: led_2 {
gpios = <&gpioc 3 GPIO_ACTIVE_LOW>;
label = "User LD1";
@ -36,6 +38,7 @@ @@ -36,6 +38,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
@ -186,14 +189,14 @@ @@ -186,14 +189,14 @@
status = "okay";
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "nor";
reg = <0x00000000 DT_SIZE_M(4)>;
};
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "nor";
reg = <0x00000000 DT_SIZE_M(4)>;
};
};
};
};

4
boards/st/stm32h745i_disco/stm32h745i_disco.dtsi

@ -12,14 +12,17 @@ @@ -12,14 +12,17 @@
/ {
leds: leds {
compatible = "gpio-leds";
green_led: led_1 {
gpios = <&gpioj 2 GPIO_ACTIVE_HIGH>;
label = "User LD7";
};
red_led: led_2 {
gpios = <&gpioi 13 GPIO_ACTIVE_HIGH>;
label = "User LD6";
};
green_led_2: led_3 {
gpios = <&gpiod 3 GPIO_ACTIVE_HIGH>;
label = "User LD8";
@ -28,6 +31,7 @@ @@ -28,6 +31,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button_0 {
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
label = "User SB1";

13
boards/st/stm32h745i_disco/stm32h745i_disco_stm32h745xx_m7.dts

@ -189,13 +189,13 @@ @@ -189,13 +189,13 @@
status = "okay";
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
storage_partition: partition@0 {
reg = <0x0 DT_SIZE_M(64)>;
};
storage_partition: partition@0 {
reg = <0x0 DT_SIZE_M(64)>;
};
};
};
@ -264,6 +264,7 @@ @@ -264,6 +264,7 @@
num-auto-refresh = <8>;
mode-register = <0x220>;
refresh-rate = <0x603>;
bank@1 {
reg = <1>;
st,sdram-control = <STM32_FMC_SDRAM_NC_8

10
boards/st/stm32h747i_disco/stm32h747i_disco.dtsi

@ -11,21 +11,25 @@ @@ -11,21 +11,25 @@
/ {
leds {
compatible = "gpio-leds";
green_led_1:led_1 {
gpios = <&gpioi 12 GPIO_ACTIVE_LOW>;
label = "User LD1";
status = "disabled";
};
orange_led_2:led_2 {
gpios = <&gpioi 13 GPIO_ACTIVE_LOW>;
label = "User LD2";
status = "disabled";
};
red_led_3:led_3 {
gpios = <&gpioi 14 GPIO_ACTIVE_LOW>;
label = "User LD3";
status = "disabled";
};
blue_led_4:led_4 {
gpios = <&gpioi 15 GPIO_ACTIVE_LOW>;
label = "User LD4";
@ -35,36 +39,42 @@ @@ -35,36 +39,42 @@
gpio_keys {
compatible = "gpio-keys";
wake_up: button {
label = "Wakeup";
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
status = "disabled";
zephyr,code = <INPUT_KEY_WAKEUP>;
};
joy_center: joystick_center {
label = "joystick center";
gpios = <&gpiok 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
status = "disabled";
zephyr,code = <INPUT_KEY_ENTER>;
};
joy_down: joystick_down {
label = "joystick down";
gpios = <&gpiok 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
status = "disabled";
zephyr,code = <INPUT_KEY_DOWN>;
};
joy_up: joystick_up {
label = "joystick up";
gpios = <&gpiok 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
status = "disabled";
zephyr,code = <INPUT_KEY_UP>;
};
joy_left: joystick_left {
label = "joystick left";
gpios = <&gpiok 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
status = "disabled";
zephyr,code = <INPUT_KEY_LEFT>;
};
joy_right: joystick_right {
label = "joystick right";
gpios = <&gpiok 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;

1
boards/st/stm32h747i_disco/stm32h747i_disco_stm32h747xx_m4.dts

@ -25,6 +25,7 @@ @@ -25,6 +25,7 @@
red_led_3:led_3 {
status = "okay";
};
blue_led_4:led_4 {
status = "okay";
};

13
boards/st/stm32h747i_disco/stm32h747i_disco_stm32h747xx_m7.dts

@ -43,6 +43,7 @@ @@ -43,6 +43,7 @@
green_led_1:led_1 {
status = "okay";
};
orange_led_2:led_2 {
status = "okay";
};
@ -261,13 +262,13 @@ zephyr_udc0: &usbotg_hs { @@ -261,13 +262,13 @@ zephyr_udc0: &usbotg_hs {
status = "okay";
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
reg = <0x0 DT_SIZE_M(64)>;
};
partition@0 {
reg = <0x0 DT_SIZE_M(64)>;
};
};
};

7
boards/st/stm32h750b_dk/stm32h750b_dk.dts

@ -42,10 +42,12 @@ @@ -42,10 +42,12 @@
leds {
compatible = "gpio-leds";
red_led: led_1 {
gpios = <&gpioi 13 GPIO_ACTIVE_LOW>;
label = "USER1 LD6";
};
green_led: led_2 {
gpios = <&gpioj 2 GPIO_ACTIVE_LOW>;
label = "USER2 LD7";
@ -54,6 +56,7 @@ @@ -54,6 +56,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
@ -84,6 +87,7 @@ @@ -84,6 +87,7 @@
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
/* Flash has 128KB sector size */
boot_partition: partition@0 {
label = "mcuboot";
@ -113,6 +117,7 @@ @@ -113,6 +117,7 @@
width = <480>;
height = <272>;
pixel-format = <PANEL_PIXEL_FORMAT_RGB_565>;
display-timings {
compatible = "zephyr,panel-timing";
de-active = <1>;
@ -126,6 +131,7 @@ @@ -126,6 +131,7 @@
hfront-porch = <8>;
vfront-porch = <4>;
};
def-back-color-red = <0xFF>;
def-back-color-green = <0xFF>;
def-back-color-blue = <0xFF>;
@ -240,6 +246,7 @@ @@ -240,6 +246,7 @@
num-auto-refresh = <8>;
mode-register = <0x230>;
refresh-rate = <0x603>;
bank@1 {
reg = <1>;
st,sdram-control = <STM32_FMC_SDRAM_NC_8

22
boards/st/stm32h7b3i_dk/stm32h7b3i_dk.dts

@ -27,10 +27,12 @@ @@ -27,10 +27,12 @@
leds {
compatible = "gpio-leds";
red_led: led_0 {
gpios = <&gpiog 11 GPIO_ACTIVE_HIGH>;
label = "User LD1";
};
blue_led: led_1 {
gpios = <&gpiog 2 GPIO_ACTIVE_HIGH>;
label = "User LD2";
@ -39,6 +41,7 @@ @@ -39,6 +41,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "User PB";
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
@ -210,6 +213,7 @@ @@ -210,6 +213,7 @@
num-auto-refresh = <8>;
mode-register = <0x220>;
refresh-rate = <0x603>;
bank@1 {
reg = <1>;
st,sdram-control = <STM32_FMC_SDRAM_NC_9
@ -252,6 +256,7 @@ @@ -252,6 +256,7 @@
width = <480>;
height = <272>;
pixel-format = <PANEL_PIXEL_FORMAT_RGB_565>;
display-timings {
compatible = "zephyr,panel-timing";
de-active = <0>;
@ -265,6 +270,7 @@ @@ -265,6 +270,7 @@
hfront-porch = <8>;
vfront-porch = <4>;
};
def-back-color-red = <0xFF>;
def-back-color-green = <0xFF>;
def-back-color-blue = <0xFF>;
@ -290,14 +296,14 @@ @@ -290,14 +296,14 @@
status = "okay";
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "nor";
reg = <0x00000000 DT_SIZE_M(4)>;
};
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "nor";
reg = <0x00000000 DT_SIZE_M(4)>;
};
};
};
};

8
boards/st/stm32h7s78_dk/stm32h7s78_dk.dts

@ -30,18 +30,22 @@ @@ -30,18 +30,22 @@
leds {
compatible = "gpio-leds";
green_led: led_1 {
gpios = <&gpioo 1 GPIO_ACTIVE_LOW>;
label = "User LD1";
};
orange_led: led_2 {
gpios = <&gpioo 5 GPIO_ACTIVE_LOW>;
label = "User LD2";
};
red_led: led_3 {
gpios = <&gpiom 2 GPIO_ACTIVE_LOW>;
label = "User LD3";
};
blue_led: led_4 {
gpios = <&gpiom 3 GPIO_ACTIVE_LOW>;
label = "User LD4";
@ -50,6 +54,7 @@ @@ -50,6 +54,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
@ -250,14 +255,17 @@ @@ -250,14 +255,17 @@
label = "image-0";
reg = <0x00000000 DT_SIZE_K(512)>;
};
slot1_partition: partition@80000 {
label = "image-1";
reg = <0x0080000 DT_SIZE_K(512)>;
};
scratch_partition: partition@100000 {
label = "image-scratch";
reg = <0x00100000 DT_SIZE_K(64)>;
};
storage_partition: partition@110000 {
label = "storage";
reg = <0x00110000 DT_SIZE_K(64)>;

Loading…
Cancel
Save