boards: st: add die_temp or digi node

update die_temp node for some stm32 boards,
need that for run sensor die_temp_polling samples.
don't need to modify sample.yaml

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
This commit is contained in:
Fabrice DJIATSA 2024-08-29 17:51:04 +02:00 committed by Fabio Baltieri
parent eab0e37e68
commit 0df9e2536b
8 changed files with 40 additions and 3 deletions

View file

@ -26,6 +26,7 @@
led0 = &green_led_1;
led1 = &red_led_1;
sw0 = &user_button;
die-temp0 = &die_temp;
};
octo_nor: memory@70000000 {
@ -87,3 +88,12 @@
status = "okay";
};
};
&die_temp {
status = "okay";
};
&adc1 {
st,adc-prescaler = <4>;
status = "okay";
};

View file

@ -75,6 +75,7 @@
accel0 = &lsm6dsl;
volt-sensor0 = &vref;
volt-sensor1 = &vbat;
die-temp0 = &die_temp;
};
};

View file

@ -30,6 +30,7 @@
watchdog0 = &iwdg;
volt-sensor0 = &vref1;
volt-sensor1 = &vbat4;
die-temp0 = &die_temp;
};
};
@ -43,3 +44,7 @@
&gpdma1 {
status = "okay";
};
&die_temp {
status = "okay";
};

View file

@ -179,7 +179,7 @@
};
&adc1 {
pinctrl-0 = <&adc1_in3_pc2>;
pinctrl-0 = <&adc1_in3_pc2 &adc1_in5_pa0>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <4>;

View file

@ -71,6 +71,7 @@
sw2 = &user_button_3;
mcuboot-led0 = &blue_led_1;
mcuboot-button0 = &user_button_1;
die-temp0 = &die_temp;
};
};
@ -144,13 +145,17 @@
};
&adc4 {
pinctrl-0 = <&adc4_in8_pa1>;
pinctrl-0 = <&adc4_in8_pa1 &adc4_in9_pa0>;
pinctrl-names = "default";
st,adc-clock-source = <ASYNC>;
st,adc-prescaler = <4>;
status = "okay";
};
&die_temp {
status = "okay";
};
stm32_lp_tick_source: &lptim1 {
clocks = <&rcc STM32_CLOCK_BUS_APB7 0x00000800>,
<&rcc STM32_SRC_LSE LPTIM1_SEL(3)>;

View file

@ -147,7 +147,7 @@ stm32_lp_tick_source: &lptim1 {
&adc1 {
pinctrl-0 = <&adc_in5_pb1>;
pinctrl-0 = <&adc_in5_pb1 &adc_in0_pb13>;
pinctrl-names = "default";
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <4>;

View file

@ -58,6 +58,7 @@
sw0 = &user_button;
watchdog0 = &iwdg;
die-temp0 = &die_temp;
die-temp1 = &digi_die_temp;
volt-sensor0 = &vref;
volt-sensor1 = &vbat;
};
@ -311,6 +312,10 @@ zephyr_udc0: &usb {
status = "okay";
};
&digi_die_temp {
status = "okay";
};
&vref {
status = "okay";
};

View file

@ -64,6 +64,7 @@
led0 = &green_led;
led1 = &red_led;
sw0 = &user_button;
die-temp0 = &die_temp;
};
};
@ -232,3 +233,13 @@
<&rcc STM32_SRC_LSE RTC_SEL(1)>;
status = "okay";
};
&die_temp {
status = "okay";
};
&adc3 {
st,adc-clock-source = <SYNC>;
st,adc-prescaler = <4>;
status = "okay";
};