blob: 945bc8204ac7644540a4abf2f33467bb90627495 [file] [log] [blame]
Robert Marko0e10b6a2022-09-06 13:30:34 +02001.. SPDX-License-Identifier: GPL-2.0-or-later
2
Heinrich Schuchardt1b0c3162024-01-14 14:53:13 +01003.. index::
4 single: temperature (command)
5
Robert Marko0e10b6a2022-09-06 13:30:34 +02006temperature command
7===================
8
9Synopsis
10--------
11
12::
13
14 temperature list
15 temperature get [thermal device name]
16
17Description
18-----------
19
20The *temperature* command is used to list thermal sensors and get their
21readings.
22
23The 'temperature list' command diplays the available thermal devices.
24
25The 'temperature get' command is used to get the reading in degrees C from
26the desired device which is selected by passing its device name.
27
28 thermal device name
29 device name of thermal sensor to select
30
31Example
32-------
33
34::
35
36
37 => temperature list
38 | Device | Driver | Parent
39 | tmon@610508110 | sparx5-temp | axi@600000000
40 =>
41 => temperature get tmon@610508110
42 tmon@610508110: 42 C
43
44Configuration
45-------------
46
47The *temperature* command is only available if CONFIG_CMD_TEMPERATURE=y.
48
49Return value
50------------
51
52The return value $? is set to 0 (true) if the command succeeded and to 1 (false)
53otherwise.