34 lines · plain
1.. SPDX-License-Identifier: GPL-2.02 3Kernel driver sfctemp4=====================5 6Supported chips:7 - StarFive JH71008 - StarFive JH71109 10Authors:11 - Emil Renner Berthing <kernel@esmil.dk>12 13Description14-----------15 16This driver adds support for reading the built-in temperature sensor on the17JH7100 and JH7110 RISC-V SoCs by StarFive Technology Co. Ltd.18 19``sysfs`` interface20-------------------21 22The temperature sensor can be enabled, disabled and queried via the standard23hwmon interface in sysfs under ``/sys/class/hwmon/hwmonX`` for some value of24``X``:25 26================ ==== =============================================27Name Perm Description28================ ==== =============================================29temp1_enable RW Enable or disable temperature sensor.30 Automatically enabled by the driver,31 but may be disabled to save power.32temp1_input RO Temperature reading in milli-degrees Celsius.33================ ==== =============================================34