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