File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -184,6 +184,7 @@ Hardware Monitoring Kernel Drivers
184184 sch5627
185185 sch5636
186186 scpi-hwmon
187+ sfctemp
187188 sht15
188189 sht21
189190 sht3x
Original file line number Diff line number Diff line change 1+ .. SPDX-License-Identifier: GPL-2.0
2+
3+ Kernel driver sfctemp
4+ =====================
5+
6+ Supported chips:
7+ - StarFive JH7100
8+ - StarFive JH7110
9+
10+ Authors:
11+ - Emil Renner Berthing <kernel@esmil.dk>
12+
13+ Description
14+ -----------
15+
16+ This driver adds support for reading the built-in temperature sensor on the
17+ JH7100 and JH7110 RISC-V SoCs by StarFive Technology Co. Ltd.
18+
19+ ``sysfs `` interface
20+ -------------------
21+
22+ The temperature sensor can be enabled, disabled and queried via the standard
23+ hwmon interface in sysfs under ``/sys/class/hwmon/hwmonX `` for some value of
24+ ``X ``:
25+
26+ ================ ==== =============================================
27+ Name Perm Description
28+ ================ ==== =============================================
29+ temp1_enable RW Enable or disable temperature sensor.
30+ Automatically enabled by the driver,
31+ but may be disabled to save power.
32+ temp1_input RO Temperature reading in milli-degrees Celsius.
33+ ================ ==== =============================================
Original file line number Diff line number Diff line change @@ -18908,6 +18908,14 @@ S: Supported
1890818908F: Documentation/networking/devlink/sfc.rst
1890918909F: drivers/net/ethernet/sfc/
1891018910
18911+ SFCTEMP HWMON DRIVER
18912+ M: Emil Renner Berthing <kernel@esmil.dk>
18913+ L: linux-hwmon@vger.kernel.org
18914+ S: Maintained
18915+ F: Documentation/devicetree/bindings/hwmon/starfive,jh71x0-temp.yaml
18916+ F: Documentation/hwmon/sfctemp.rst
18917+ F: drivers/hwmon/sfctemp.c
18918+
1891118919SFF/SFP/SFP+ MODULE SUPPORT
1891218920M: Russell King <linux@armlinux.org.uk>
1891318921L: netdev@vger.kernel.org
Original file line number Diff line number Diff line change @@ -1929,6 +1929,16 @@ config SENSORS_STTS751
19291929 This driver can also be built as a module. If so, the module
19301930 will be called stts751.
19311931
1932+ config SENSORS_SFCTEMP
1933+ tristate "Starfive JH71x0 temperature sensor"
1934+ depends on ARCH_STARFIVE || COMPILE_TEST
1935+ help
1936+ If you say yes here you get support for temperature sensor
1937+ on the Starfive JH71x0 SoCs.
1938+
1939+ This driver can also be built as a module. If so, the module
1940+ will be called sfctemp.
1941+
19321942config SENSORS_SMM665
19331943 tristate "Summit Microelectronics SMM665"
19341944 depends on I2C
Original file line number Diff line number Diff line change @@ -181,6 +181,7 @@ obj-$(CONFIG_SENSORS_SBRMI) += sbrmi.o
181181obj-$(CONFIG_SENSORS_SCH56XX_COMMON)+ = sch56xx-common.o
182182obj-$(CONFIG_SENSORS_SCH5627) += sch5627.o
183183obj-$(CONFIG_SENSORS_SCH5636) += sch5636.o
184+ obj-$(CONFIG_SENSORS_SFCTEMP) += sfctemp.o
184185obj-$(CONFIG_SENSORS_SL28CPLD) += sl28cpld-hwmon.o
185186obj-$(CONFIG_SENSORS_SHT15) += sht15.o
186187obj-$(CONFIG_SENSORS_SHT21) += sht21.o
You can’t perform that action at this time.
0 commit comments