Skip to content

Commit

Permalink
boards: arm: add support for die_temp_polling sample for stm32 boards
Browse files Browse the repository at this point in the history
Add die_temp0 alias for all the STM32 boards that already enable the
temperature sensor so that the die_temp_polling samples can be used.
Also enable die_temp for two boards that are supported by the
stm32_temp_sensor sample.

Signed-off-by: Guillaume Gautier <[email protected]>
  • Loading branch information
gautierg-st authored and MaureenHelm committed Apr 13, 2023
1 parent d3b3a4f commit fee0c82
Show file tree
Hide file tree
Showing 19 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions boards/arm/b_u585i_iot02a/b_u585i_iot02a-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
aliases {
watchdog0 = &iwdg;
spi-flash0 = &mx25lm51245;
die-temp0 = &die_temp;
};
};

Expand Down
1 change: 1 addition & 0 deletions boards/arm/nucleo_f091rc/nucleo_f091rc.dts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
sw0 = &user_button;
pwm-led0 = &green_pwm_led;
watchdog0 = &iwdg;
die-temp0 = &die_temp;
};
};

Expand Down
1 change: 1 addition & 0 deletions boards/arm/nucleo_f103rb/nucleo_f103rb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
led0 = &green_led_2;
sw0 = &user_button;
watchdog0 = &iwdg;
die-temp0 = &die_temp;
};
};

Expand Down
1 change: 1 addition & 0 deletions boards/arm/nucleo_f207zg/nucleo_f207zg.dts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
red-pwm-led = &red_pwm_led;
sw0 = &user_button;
watchdog0 = &iwdg;
die-temp0 = &die_temp;
};
};

Expand Down
1 change: 1 addition & 0 deletions boards/arm/nucleo_f401re/nucleo_f401re.dts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
sw0 = &user_button;
pwm-led0 = &green_pwm_led;
watchdog0 = &wwdg;
die-temp0 = &die_temp;
};
};

Expand Down
1 change: 1 addition & 0 deletions boards/arm/nucleo_f429zi/nucleo_f429zi.dts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
led2 = &red_led_1;
sw0 = &user_button;
watchdog0 = &iwdg;
die-temp0 = &die_temp;
};
};

Expand Down
1 change: 1 addition & 0 deletions boards/arm/nucleo_f746zg/nucleo_f746zg.dts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
led2 = &red_led;
sw0 = &user_button;
watchdog0 = &iwdg;
die-temp0 = &die_temp;
};
};

Expand Down
1 change: 1 addition & 0 deletions boards/arm/nucleo_g070rb/nucleo_g070rb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
led0 = &green_led_1;
sw0 = &user_button;
watchdog0 = &iwdg;
die-temp0 = &die_temp;
};
};

Expand Down
1 change: 1 addition & 0 deletions boards/arm/nucleo_g071rb/nucleo_g071rb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
led0 = &green_led_1;
sw0 = &user_button;
watchdog0 = &iwdg;
die-temp0 = &die_temp;
};
};

Expand Down
1 change: 1 addition & 0 deletions boards/arm/nucleo_g0b1re/nucleo_g0b1re.dts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
led0 = &green_led_1;
sw0 = &user_button;
watchdog0 = &iwdg;
die-temp0 = &die_temp;
};
};

Expand Down
1 change: 1 addition & 0 deletions boards/arm/nucleo_g474re/nucleo_g474re.dts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
pwm-led0 = &green_pwm_led;
sw0 = &user_button;
watchdog0 = &iwdg;
die-temp0 = &die_temp;
};
};

Expand Down
1 change: 1 addition & 0 deletions boards/arm/nucleo_h743zi/nucleo_h743zi.dts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
pwm-led0 = &red_pwm_led;
sw0 = &user_button;
watchdog0 = &iwdg;
die-temp0 = &die_temp;
};
};

Expand Down
1 change: 1 addition & 0 deletions boards/arm/nucleo_l073rz/nucleo_l073rz.dts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
pwm-led0 = &green_pwm_led;
watchdog0 = &iwdg;
eeprom-0 = &eeprom;
die-temp0 = &die_temp;
};
};

Expand Down
4 changes: 4 additions & 0 deletions boards/arm/nucleo_l552ze_q/nucleo_l552ze_q-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
};
};

aliases {
die-temp0 = &die_temp;
};
};

&clk_hsi48 {
Expand Down
1 change: 1 addition & 0 deletions boards/arm/nucleo_wb55rg/nucleo_wb55rg.dts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
sw1 = &user_button_2;
sw2 = &user_button_3;
watchdog0 = &iwdg;
die-temp0 = &die_temp;
};
};

Expand Down
1 change: 1 addition & 0 deletions boards/arm/nucleo_wl55jc/nucleo_wl55jc.dts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
sw2 = &user_button_3;
lora0 = &lora;
watchdog0 = &iwdg;
die-temp0 = &die_temp;
};
};

Expand Down
5 changes: 5 additions & 0 deletions boards/arm/stm32f103_mini/stm32f103_mini.dts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
aliases {
led0 = &green_led_1;
watchdog0 = &iwdg;
die-temp0 = &die_temp;
};
};

Expand Down Expand Up @@ -129,3 +130,7 @@ zephyr_udc0: &usb {
pinctrl-names = "default";
status = "okay";
};

&die_temp {
status = "okay";
};
1 change: 1 addition & 0 deletions boards/arm/stm32f3_disco/stm32f3_disco.dts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
magn0 = &lsm303dlhc_magn;
watchdog0 = &iwdg;
accel0 = &lsm303dlhc_accel;
die-temp0 = &die_temp;
};
};

Expand Down
5 changes: 5 additions & 0 deletions boards/arm/stm32l562e_dk/stm32l562e_dk_common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

aliases {
spi-flash0 = &mx25lm51245;
die-temp0 = &die_temp;
};
};

Expand Down Expand Up @@ -204,6 +205,10 @@
status = "okay";
};

&die_temp {
status = "okay";
};

&spi3 {
pinctrl-0 = <&spi3_sck_pg9 &spi3_mosi_pb5 &spi3_miso_pb4>;
pinctrl-names = "default";
Expand Down

0 comments on commit fee0c82

Please sign in to comment.