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>
This commit is contained in:
parent
b6a3c0cf93
commit
721b3b8e39
16 changed files with 76 additions and 7 deletions
|
@ -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 @@
|
|||
|
||||
pwmleds {
|
||||
compatible = "pwm-leds";
|
||||
|
||||
green_pwm_led: green_pwm_led {
|
||||
pwms = <&pwm2 1 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
|
||||
};
|
||||
|
@ -129,7 +131,6 @@
|
|||
};
|
||||
|
||||
&flash0 {
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
|
@ -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)>;
|
||||
|
|
|
@ -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>;
|
||||
|
@ -120,7 +122,6 @@
|
|||
};
|
||||
|
||||
&flash0 {
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
|
@ -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 @@
|
|||
label = "image-1";
|
||||
reg = <0x00010000 DT_SIZE_K(32)>;
|
||||
};
|
||||
|
||||
scratch_partition: partition@18000 {
|
||||
label = "image-scratch";
|
||||
reg = <0x00018000 DT_SIZE_K(32)>;
|
||||
|
|
|
@ -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>;
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
user_button: button {
|
||||
label = "User";
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
user_button: button {
|
||||
label = "User";
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
user_button: button {
|
||||
label = "User";
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
||||
|
@ -241,7 +245,6 @@ zephyr_udc0: &usbotg_fs {
|
|||
label = "image-scratch";
|
||||
reg = <0x000a0000 DT_SIZE_K(128)>;
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
pwmleds {
|
||||
compatible = "pwm-leds";
|
||||
|
||||
green_pwm_led: green_pwm_led {
|
||||
pwms = <&pwm2 1 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
|
||||
};
|
||||
|
@ -40,6 +42,7 @@
|
|||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
user_button: button {
|
||||
label = "User";
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
|
||||
|
@ -157,7 +160,6 @@
|
|||
};
|
||||
|
||||
&flash0 {
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
|
@ -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)>;
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
user_button: button {
|
||||
label = "User";
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
|
||||
|
@ -184,7 +188,6 @@ zephyr_udc0: &usbotg_fs {
|
|||
};
|
||||
|
||||
&flash0 {
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
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 @@
|
|||
width = <240>;
|
||||
height = <320>;
|
||||
duplex = <0x800>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -135,7 +143,6 @@
|
|||
status = "okay";
|
||||
};
|
||||
|
||||
|
||||
&i2c1 {
|
||||
pinctrl-0 = <&i2c1_scl_pb6 &i2c1_sda_pb7>;
|
||||
pinctrl-names = "default";
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
red_led_1: led_1 {
|
||||
gpios = <&gpiob 5 GPIO_ACTIVE_HIGH>;
|
||||
label = "User LD1";
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
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 @@
|
|||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
user_button: button {
|
||||
label = "User";
|
||||
gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
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)>;
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
user_button: button {
|
||||
label = "User";
|
||||
gpios = <&gpioa 0 GPIO_ACTIVE_LOW>;
|
||||
|
@ -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 @@
|
|||
hfront-porch = <10>;
|
||||
vfront-porch = <4>;
|
||||
};
|
||||
|
||||
def-back-color-red = <0xFF>;
|
||||
def-back-color-green = <0xFF>;
|
||||
def-back-color-blue = <0xFF>;
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
user_button: button {
|
||||
label = "User";
|
||||
gpios = <&gpioa 0 GPIO_ACTIVE_LOW>;
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
user_button: button {
|
||||
label = "Key";
|
||||
gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue