Browse Source

boards: st: fix STM32F0 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]:
- 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
c865aa5b39
  1. 2
      boards/st/nucleo_f030r8/nucleo_f030r8.dts
  2. 2
      boards/st/nucleo_f031k6/nucleo_f031k6.dts
  3. 2
      boards/st/nucleo_f042k6/nucleo_f042k6.dts
  4. 2
      boards/st/nucleo_f070rb/nucleo_f070rb.dts
  5. 2
      boards/st/nucleo_f072rb/nucleo_f072rb.dts
  6. 3
      boards/st/nucleo_f091rc/nucleo_f091rc.dts
  7. 10
      boards/st/stm32f072_eval/stm32f072_eval.dts
  8. 5
      boards/st/stm32f072b_disco/stm32f072b_disco.dts
  9. 5
      boards/st/stm32f0_disco/stm32f0_disco.dts

2
boards/st/nucleo_f030r8/nucleo_f030r8.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>;

2
boards/st/nucleo_f031k6/nucleo_f031k6.dts

@ -21,6 +21,7 @@ @@ -21,6 +21,7 @@
leds: leds {
compatible = "gpio-leds";
green_led_3: led_3 {
gpios = <&gpiob 3 GPIO_ACTIVE_HIGH>;
label = "User LD3";
@ -29,6 +30,7 @@ @@ -29,6 +30,7 @@
pwmleds {
compatible = "pwm-leds";
green_pwm_led: green_pwm_led {
pwms = <&pwm2 2 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
};

2
boards/st/nucleo_f042k6/nucleo_f042k6.dts

@ -21,6 +21,7 @@ @@ -21,6 +21,7 @@
leds: leds {
compatible = "gpio-leds";
green_led_3: led_3 {
gpios = <&gpiob 3 GPIO_ACTIVE_HIGH>;
label = "User LD3";
@ -29,6 +30,7 @@ @@ -29,6 +30,7 @@
pwmleds {
compatible = "pwm-leds";
green_pwm_led: green_pwm_led {
pwms = <&pwm3 3 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
};

2
boards/st/nucleo_f070rb/nucleo_f070rb.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 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;

2
boards/st/nucleo_f072rb/nucleo_f072rb.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>;

3
boards/st/nucleo_f091rc/nucleo_f091rc.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 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "User";
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
@ -142,7 +144,6 @@ @@ -142,7 +144,6 @@
};
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;

10
boards/st/stm32f072_eval/stm32f072_eval.dts

@ -22,18 +22,22 @@ @@ -22,18 +22,22 @@
leds {
compatible = "gpio-leds";
green_led_1: led_1 {
gpios = <&gpiod 8 GPIO_ACTIVE_HIGH>;
label = "User LD1";
};
orange_led_2: led_2 {
gpios = <&gpiod 9 GPIO_ACTIVE_HIGH>;
label = "User LD2";
};
red_led_3: led_3 {
gpios = <&gpiod 10 GPIO_ACTIVE_HIGH>;
label = "User LD3";
};
blue_led_4: led_4 {
gpios = <&gpiod 11 GPIO_ACTIVE_HIGH>;
label = "User LD4";
@ -42,31 +46,37 @@ @@ -42,31 +46,37 @@
gpio_keys {
compatible = "gpio-keys";
tamper: tamper_button {
label = "tamper button";
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
zephyr,code = <INPUT_KEY_0>;
};
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 = <&gpiof 10 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
zephyr,code = <INPUT_KEY_DOWN>;
};
joy_up: joystick_up {
label = "joystick up";
gpios = <&gpiof 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
zephyr,code = <INPUT_KEY_UP>;
};
joy_left: joystick_left {
label = "joystick left";
gpios = <&gpiof 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
zephyr,code = <INPUT_KEY_LEFT>;
};
joy_right: joystick_right {
label = "joystick right";
gpios = <&gpioe 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;

5
boards/st/stm32f072b_disco/stm32f072b_disco.dts

@ -23,18 +23,22 @@ @@ -23,18 +23,22 @@
leds {
compatible = "gpio-leds";
red_up_led_3: led_3 {
gpios = <&gpioc 6 GPIO_ACTIVE_HIGH>;
label = "User LD3";
};
yellow_left_4: led_4 {
gpios = <&gpioc 8 GPIO_ACTIVE_HIGH>;
label = "User LD4";
};
green_right_led_5: led_5 {
gpios = <&gpioc 9 GPIO_ACTIVE_HIGH>;
label = "User LD5";
};
blue_low_led_6: led_6 {
gpios = <&gpioc 7 GPIO_ACTIVE_HIGH>;
label = "User LD6";
@ -43,6 +47,7 @@ @@ -43,6 +47,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "User";
gpios = <&gpioa 0 GPIO_ACTIVE_LOW>;

5
boards/st/stm32f0_disco/stm32f0_disco.dts

@ -23,10 +23,12 @@ @@ -23,10 +23,12 @@
leds {
compatible = "gpio-leds";
green_led_3: led_3 {
gpios = <&gpioc 9 GPIO_ACTIVE_HIGH>;
label = "User LD3";
};
blue_led_4: led_4 {
gpios = <&gpioc 8 GPIO_ACTIVE_HIGH>;
label = "User LD4";
@ -35,6 +37,7 @@ @@ -35,6 +37,7 @@
gpio_keys {
compatible = "gpio-keys";
user_button: button {
label = "Key";
gpios = <&gpioa 0 GPIO_ACTIVE_LOW>;
@ -112,10 +115,12 @@ @@ -112,10 +115,12 @@
label = "image-0";
reg = <0x00004000 DT_SIZE_K(16)>;
};
slot1_partition: partition@8000 {
label = "image-1";
reg = <0x00008000 DT_SIZE_K(16)>;
};
scratch_partition: partition@c000 {
label = "image-scratch";
reg = <0x0000C000 DT_SIZE_K(16)>;

Loading…
Cancel
Save