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>
This commit is contained in:
parent
8f02dc5633
commit
c865aa5b39
9 changed files with 32 additions and 1 deletions
|
@ -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 @@
|
|||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
user_button: button {
|
||||
label = "User";
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
pwmleds {
|
||||
compatible = "pwm-leds";
|
||||
|
||||
green_pwm_led: green_pwm_led {
|
||||
pwms = <&pwm2 2 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
|
||||
};
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
pwmleds {
|
||||
compatible = "pwm-leds";
|
||||
|
||||
green_pwm_led: green_pwm_led {
|
||||
pwms = <&pwm3 3 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
|
||||
};
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
user_button: button {
|
||||
label = "User";
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
user_button: button {
|
||||
label = "User";
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
user_button: button {
|
||||
label = "User";
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
|
||||
|
@ -142,7 +144,6 @@
|
|||
};
|
||||
|
||||
&flash0 {
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
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)>;
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
user_button: button {
|
||||
label = "User";
|
||||
gpios = <&gpioa 0 GPIO_ACTIVE_LOW>;
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
user_button: button {
|
||||
label = "Key";
|
||||
gpios = <&gpioa 0 GPIO_ACTIVE_LOW>;
|
||||
|
@ -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…
Add table
Add a link
Reference in a new issue