xref: /linux/Documentation/hwmon/sfctemp.rst (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1.. SPDX-License-Identifier: GPL-2.0
2
3Kernel driver sfctemp
4=====================
5
6Supported chips:
7 - StarFive JH7100
8 - StarFive JH7110
9
10Authors:
11 - Emil Renner Berthing <kernel@esmil.dk>
12
13Description
14-----------
15
16This driver adds support for reading the built-in temperature sensor on the
17JH7100 and JH7110 RISC-V SoCs by StarFive Technology Co. Ltd.
18
19``sysfs`` interface
20-------------------
21
22The temperature sensor can be enabled, disabled and queried via the standard
23hwmon interface in sysfs under ``/sys/class/hwmon/hwmonX`` for some value of
24``X``:
25
26================ ==== =============================================
27Name             Perm Description
28================ ==== =============================================
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