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