Skip to content

Commit 9f14cf8

Browse files
ycsincarlescufi
authored andcommitted
dts: arm: stm32g0b1: Add support for die temp sensor
Add node for the die temp sensor with configurations from the datasheet. Signed-off-by: Yong Cong Sin <[email protected]>
1 parent fbd0cd0 commit 9f14cf8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

dts/arm/st/g0/stm32g0b1.dtsi

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,19 @@
120120
};
121121
};
122122

123+
die_temp: dietemp {
124+
compatible = "st,stm32-temp-cal";
125+
ts-cal1-addr = <0x1FFF75A8>;
126+
ts-cal2-addr = <0x1FFF75CA>;
127+
ts-cal1-temp = <30>;
128+
ts-cal2-temp = <130>;
129+
ts-cal-vrefanalog = <3000>;
130+
ts-cal-offset = <30>;
131+
io-channels = <&adc1 12>;
132+
status = "disabled";
133+
label = "DIE_TEMP";
134+
};
135+
123136
usb_fs_phy: usbphy {
124137
compatible = "usb-nop-xceiv";
125138
#phy-cells = <0>;

0 commit comments

Comments
 (0)