diff --git a/boards/st/nucleo_f030r8/nucleo_f030r8.dts b/boards/st/nucleo_f030r8/nucleo_f030r8.dts index 398c3ded4ba..6b0b2224353 100644 --- a/boards/st/nucleo_f030r8/nucleo_f030r8.dts +++ b/boards/st/nucleo_f030r8/nucleo_f030r8.dts @@ -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>; diff --git a/boards/st/nucleo_f031k6/nucleo_f031k6.dts b/boards/st/nucleo_f031k6/nucleo_f031k6.dts index 49669945087..db79962a35c 100644 --- a/boards/st/nucleo_f031k6/nucleo_f031k6.dts +++ b/boards/st/nucleo_f031k6/nucleo_f031k6.dts @@ -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>; }; diff --git a/boards/st/nucleo_f042k6/nucleo_f042k6.dts b/boards/st/nucleo_f042k6/nucleo_f042k6.dts index 0f8a31e35b4..b71ca1e4404 100644 --- a/boards/st/nucleo_f042k6/nucleo_f042k6.dts +++ b/boards/st/nucleo_f042k6/nucleo_f042k6.dts @@ -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>; }; diff --git a/boards/st/nucleo_f070rb/nucleo_f070rb.dts b/boards/st/nucleo_f070rb/nucleo_f070rb.dts index 8c0b43d71c8..444f6d43b0f 100644 --- a/boards/st/nucleo_f070rb/nucleo_f070rb.dts +++ b/boards/st/nucleo_f070rb/nucleo_f070rb.dts @@ -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>; diff --git a/boards/st/nucleo_f072rb/nucleo_f072rb.dts b/boards/st/nucleo_f072rb/nucleo_f072rb.dts index 207639f73b1..dad3e3ddc6a 100644 --- a/boards/st/nucleo_f072rb/nucleo_f072rb.dts +++ b/boards/st/nucleo_f072rb/nucleo_f072rb.dts @@ -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>; diff --git a/boards/st/nucleo_f091rc/nucleo_f091rc.dts b/boards/st/nucleo_f091rc/nucleo_f091rc.dts index cb9348240ca..7f9d4b14aea 100644 --- a/boards/st/nucleo_f091rc/nucleo_f091rc.dts +++ b/boards/st/nucleo_f091rc/nucleo_f091rc.dts @@ -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>; diff --git a/boards/st/stm32f072_eval/stm32f072_eval.dts b/boards/st/stm32f072_eval/stm32f072_eval.dts index 711629df7a9..c42dcd9c264 100644 --- a/boards/st/stm32f072_eval/stm32f072_eval.dts +++ b/boards/st/stm32f072_eval/stm32f072_eval.dts @@ -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 = ; }; + joy_sel: joystick_selection { label = "joystick selection"; gpios = <&gpioa 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; zephyr,code = ; }; + joy_down: joystick_down { label = "joystick down"; gpios = <&gpiof 10 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; zephyr,code = ; }; + joy_up: joystick_up { label = "joystick up"; gpios = <&gpiof 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; zephyr,code = ; }; + joy_left: joystick_left { label = "joystick left"; gpios = <&gpiof 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; zephyr,code = ; }; + joy_right: joystick_right { label = "joystick right"; gpios = <&gpioe 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; diff --git a/boards/st/stm32f072b_disco/stm32f072b_disco.dts b/boards/st/stm32f072b_disco/stm32f072b_disco.dts index de73e11af6f..5060091577b 100644 --- a/boards/st/stm32f072b_disco/stm32f072b_disco.dts +++ b/boards/st/stm32f072b_disco/stm32f072b_disco.dts @@ -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>; diff --git a/boards/st/stm32f0_disco/stm32f0_disco.dts b/boards/st/stm32f0_disco/stm32f0_disco.dts index ae13a4300ab..00f3928fa54 100644 --- a/boards/st/stm32f0_disco/stm32f0_disco.dts +++ b/boards/st/stm32f0_disco/stm32f0_disco.dts @@ -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)>;