boards: arm: Enable the die-temp capabilities of ADC

-Enable the die-temp capabilities of ADC in each dts file of stm32
 boards where it is available.
-Execute the testcase running the samples/sensor/stm32_temp_sensor on each
 available target board.

Signed-off-by: TLIG Dhaou <dhaou.tlig-ext@st.com>
This commit is contained in:
TLIG Dhaou 2022-05-17 17:34:30 +02:00 committed by Carles Cufí
parent 93b4fcc611
commit d97b51d248
37 changed files with 120 additions and 0 deletions

View file

@ -211,6 +211,16 @@ zephyr_udc0: &usbotg_fs {
status = "okay";
};
&adc4 {
pinctrl-0 = <&adc4_in19_pb1>;
pinctrl-names = "default";
status = "okay";
};
&die_temp {
status = "okay";
};
&dac1 {
pinctrl-0 = <&dac1_out1_pa4>;
pinctrl-names = "default";

View file

@ -191,6 +191,7 @@ The Zephyr b_u585i_iot02a board configuration supports the following hardware fe
| USB | on-chip | usb_device |
+-----------+------------+-------------------------------------+
| PWM | on-chip | pwm |
| die-temp | on-chip | die temperature sensor |
+-----------+------------+-------------------------------------+
The default configuration can be found in the defconfig file:

View file

@ -275,6 +275,10 @@ zephyr_udc0: &usbotg_fs {
status = "okay";
};
&die_temp {
status = "okay";
};
&dac1 {
status = "okay";
pinctrl-0 = <&dac1_out1_pa4>;

View file

@ -131,6 +131,8 @@ The Zephyr Disco L475 IoT board configuration supports the following hardware fe
+-----------+------------+-------------------------------------+
| QSPI NOR | on-chip | off-chip flash |
+-----------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported on this Zephyr port.

View file

@ -106,6 +106,8 @@ The Zephyr nucleo_f091rc board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+
| DMA | on-chip | Direct Memory Access |
+-----------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported in this Zephyr port.

View file

@ -142,6 +142,10 @@
status = "okay";
};
&die_temp {
status = "okay";
};
&dac1 {
status = "okay";
pinctrl-0 = <&dac_out1_pa4>;

View file

@ -97,6 +97,8 @@ The Zephyr nucleo_f103rb board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+
| DMA | on-chip | Direct Memory Access |
+-----------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported in this Zephyr port.

View file

@ -125,6 +125,10 @@
status = "okay";
};
&die_temp {
status = "okay";
};
&dma1 {
status = "okay";
};

View file

@ -106,6 +106,8 @@ The Zephyr nucleo_207zg board configuration supports the following hardware feat
+-------------+------------+-------------------------------------+
| DMA | on-chip | Direct Memory Access |
+-------------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-------------+------------+-------------------------------------+
Other hardware features are not yet supported on this Zephyr port.

View file

@ -151,6 +151,10 @@ zephyr_udc0: &usbotg_fs {
status = "okay";
};
&die_temp {
status = "okay";
};
&dma2 {
status = "okay";
};

View file

@ -87,6 +87,8 @@ The Zephyr nucleo_401re board configuration supports the following hardware feat
+-----------+------------+-------------------------------------+
| WATCHDOG | on-chip | System Window Watchdog |
+-----------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported on Zephyr porting.

View file

@ -164,6 +164,10 @@
status = "okay";
};
&die_temp {
status = "okay";
};
&wwdg {
status = "okay";
};

View file

@ -111,6 +111,8 @@ The Zephyr nucleo_f429zi board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+
| DMA | on-chip | Direct Memory Access |
+-----------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported on this Zephyr port.

View file

@ -84,6 +84,10 @@
status = "okay";
};
&die_temp {
status = "okay";
};
&dac1 {
status = "okay";
pinctrl-0 = <&dac_out1_pa4>;

View file

@ -172,6 +172,10 @@ zephyr_udc0: &usbotg_fs {
status = "okay";
};
&die_temp {
status = "okay";
};
&mac {
status = "okay";
pinctrl-0 = <&eth_mdc_pc1

View file

@ -112,6 +112,8 @@ The Zephyr nucleo_g071rb board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+
| DAC | on-chip | dac |
+-----------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported in this Zephyr port.

View file

@ -157,6 +157,10 @@
pinctrl-names = "default";
};
&die_temp {
status = "okay";
};
&flash0 {
partitions {
compatible = "fixed-partitions";

View file

@ -108,6 +108,8 @@ The Zephyr nucleo_g0b1re board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+
| DAC | on-chip | dac |
+-----------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported in this Zephyr port.

View file

@ -167,6 +167,10 @@ zephyr_udc0: &usb {
status = "okay";
};
&die_temp {
status = "okay";
};
&dac1 {
status = "okay";
pinctrl-0 = <&dac1_out1_pa4>;

View file

@ -127,6 +127,8 @@ The Zephyr nucleo_g474re board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+
| SPI | on-chip | spi |
+-----------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported on this Zephyr port.

View file

@ -170,6 +170,10 @@
status = "okay";
};
&die_temp {
status = "okay";
};
&dac1 {
pinctrl-0 = <&dac1_out1_pa4>;
pinctrl-names = "default";

View file

@ -129,6 +129,8 @@ features:
+-------------+------------+-------------------------------------+
| CAN/CANFD | on-chip | canbus |
+-------------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-------------+------------+-------------------------------------+
Other hardware features are not yet supported on this Zephyr port.

View file

@ -128,6 +128,16 @@ zephyr_udc0: &usbotg_fs {
status = "okay";
};
&die_temp {
status = "okay";
};
&adc3 {
pinctrl-0 = <&adc3_inp5_pf3>;
pinctrl-names = "default";
status = "okay";
};
&dac1 {
status = "okay";
pinctrl-0 = <&dac1_out1_pa4>;

View file

@ -102,6 +102,8 @@ The Zephyr nucleo_l073rz board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+
| RNG | on-chip | Random Number Generator |
+-----------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported in this Zephyr port.

View file

@ -112,6 +112,10 @@
status = "okay";
};
&die_temp {
status = "okay";
};
&dac1 {
status = "okay";
pinctrl-0 = <&dac_out1_pa4>;

View file

@ -100,6 +100,8 @@ The Zephyr nucleo_l152re board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+
| DMA | on-chip | Direct Memory Access |
+-----------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported in this Zephyr port.

View file

@ -94,6 +94,10 @@
status = "okay";
};
&die_temp {
status = "okay";
};
&dac1 {
status = "okay";
pinctrl-0 = <&dac_out1_pa4>;

View file

@ -163,6 +163,8 @@ hardware features:
| UART | on-chip | serial port-polling; |
| | | serial port-interrupt |
+-----------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-----------+------------+-------------------------------------+
The default configuration can be found in the defconfig and dts files:

View file

@ -73,6 +73,10 @@
status = "okay";
};
&die_temp {
status = "okay";
};
&lpuart1 {
pinctrl-0 = <&lpuart1_tx_pg7 &lpuart1_rx_pg8>;
pinctrl-names = "default";

View file

@ -173,6 +173,8 @@ The Zephyr nucleo_wb55rg board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+
| RADIO | on-chip | Bluetooth Low Energy |
+-----------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported on this Zephyr port.

View file

@ -85,6 +85,10 @@
};
};
&die_temp {
status = "okay";
};
&clk_hse {
status = "okay";
};

View file

@ -208,6 +208,8 @@ features:
+-----------+------------+-------------------------------------+
| DAC | on-chip | DAC Controller |
+-----------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported on this Zephyr port.

View file

@ -161,6 +161,10 @@
status = "okay";
};
&die_temp {
status = "okay";
};
&aes {
status = "okay";
};

View file

@ -56,6 +56,8 @@ hardware features:
+-----------+------------+-------------------------------------+
| WATCHDOG | on-chip | independent watchdog |
+-----------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported on this Zephyr porting.

View file

@ -11,3 +11,4 @@ flash: 16
supported:
- uart
- gpio
- adc

View file

@ -109,6 +109,8 @@ features:
+-----------+------------+-------------------------------------+
| DMA | on-chip | Direct Memory Access |
+-----------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported on Zephyr porting.

View file

@ -208,6 +208,10 @@ zephyr_udc0: &usb {
status = "okay";
};
&die_temp {
status = "okay";
};
&dac1 {
status = "okay";
/* dac output pins(pa4,pa5,pa6) might conflict with spi1 pins */