"Das U-Boot" Source Tree
at master 53 lines 1.1 kB view raw
1.. SPDX-License-Identifier: GPL-2.0-or-later 2 3.. index:: 4 single: temperature (command) 5 6temperature 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.