Robert Marko | 0e10b6a | 2022-09-06 13:30:34 +0200 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0-or-later |
| 2 | |
Heinrich Schuchardt | 1b0c316 | 2024-01-14 14:53:13 +0100 | [diff] [blame^] | 3 | .. index:: |
| 4 | single: temperature (command) |
| 5 | |
Robert Marko | 0e10b6a | 2022-09-06 13:30:34 +0200 | [diff] [blame] | 6 | temperature command |
| 7 | =================== |
| 8 | |
| 9 | Synopsis |
| 10 | -------- |
| 11 | |
| 12 | :: |
| 13 | |
| 14 | temperature list |
| 15 | temperature get [thermal device name] |
| 16 | |
| 17 | Description |
| 18 | ----------- |
| 19 | |
| 20 | The *temperature* command is used to list thermal sensors and get their |
| 21 | readings. |
| 22 | |
| 23 | The 'temperature list' command diplays the available thermal devices. |
| 24 | |
| 25 | The 'temperature get' command is used to get the reading in degrees C from |
| 26 | the desired device which is selected by passing its device name. |
| 27 | |
| 28 | thermal device name |
| 29 | device name of thermal sensor to select |
| 30 | |
| 31 | Example |
| 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 | |
| 44 | Configuration |
| 45 | ------------- |
| 46 | |
| 47 | The *temperature* command is only available if CONFIG_CMD_TEMPERATURE=y. |
| 48 | |
| 49 | Return value |
| 50 | ------------ |
| 51 | |
| 52 | The return value $? is set to 0 (true) if the command succeeded and to 1 (false) |
| 53 | otherwise. |