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>
This commit is contained in:
parent
135e0dd7a3
commit
39a9fe9f59
16 changed files with 94 additions and 28 deletions
|
@ -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 @@
|
|||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
user_button: button_0 {
|
||||
label = "User";
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
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 {
|
|||
label = "image-scratch";
|
||||
reg = <0x000c0000 DT_SIZE_K(128)>;
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
user_button: button_0 {
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
||||
label = "User SB1";
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
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 {
|
|||
label = "image-scratch";
|
||||
reg = <0x000c0000 DT_SIZE_K(128)>;
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
user_button: button_0 {
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
||||
label = "User SB1";
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
user_button: button_0 {
|
||||
label = "User";
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
user_button: button_0 {
|
||||
label = "User";
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
||||
|
@ -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)>;
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
user_button: button {
|
||||
label = "User";
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
||||
|
@ -186,14 +189,14 @@
|
|||
status = "okay";
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
partition@0 {
|
||||
label = "nor";
|
||||
reg = <0x00000000 DT_SIZE_M(4)>;
|
||||
};
|
||||
partition@0 {
|
||||
label = "nor";
|
||||
reg = <0x00000000 DT_SIZE_M(4)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
user_button: button_0 {
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
||||
label = "User SB1";
|
||||
|
|
|
@ -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 @@
|
|||
num-auto-refresh = <8>;
|
||||
mode-register = <0x220>;
|
||||
refresh-rate = <0x603>;
|
||||
|
||||
bank@1 {
|
||||
reg = <1>;
|
||||
st,sdram-control = <STM32_FMC_SDRAM_NC_8
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
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)>;
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
red_led_3:led_3 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
blue_led_4:led_4 {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
@ -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 {
|
|||
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)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
user_button: button {
|
||||
label = "User";
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
||||
|
@ -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 @@
|
|||
width = <480>;
|
||||
height = <272>;
|
||||
pixel-format = <PANEL_PIXEL_FORMAT_RGB_565>;
|
||||
|
||||
display-timings {
|
||||
compatible = "zephyr,panel-timing";
|
||||
de-active = <1>;
|
||||
|
@ -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 @@
|
|||
num-auto-refresh = <8>;
|
||||
mode-register = <0x230>;
|
||||
refresh-rate = <0x603>;
|
||||
|
||||
bank@1 {
|
||||
reg = <1>;
|
||||
st,sdram-control = <STM32_FMC_SDRAM_NC_8
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
user_button: button {
|
||||
label = "User PB";
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
||||
|
@ -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 @@
|
|||
width = <480>;
|
||||
height = <272>;
|
||||
pixel-format = <PANEL_PIXEL_FORMAT_RGB_565>;
|
||||
|
||||
display-timings {
|
||||
compatible = "zephyr,panel-timing";
|
||||
de-active = <0>;
|
||||
|
@ -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 @@
|
|||
status = "okay";
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
partition@0 {
|
||||
label = "nor";
|
||||
reg = <0x00000000 DT_SIZE_M(4)>;
|
||||
};
|
||||
partition@0 {
|
||||
label = "nor";
|
||||
reg = <0x00000000 DT_SIZE_M(4)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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 @@
|
|||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
user_button: button {
|
||||
label = "User";
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
|
||||
|
@ -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…
Add table
Add a link
Reference in a new issue