Skip to content

Commit 46b94c4

Browse files
KCFENG0groeck
authored andcommitted
hwmon: Add driver for I2C chip Nuvoton NCT7363Y
The NCT7363Y is a fan controller which provides up to 16 independent FAN input monitors. It can report each FAN input count values. The NCT7363Y also provides up to 16 independent PWM outputs. Each PWM can output specific PWM signal by manual mode to control the FAN duty outside. Signed-off-by: Ban Feng <[email protected]> Message-ID: <[email protected]> [groeck: Dropped unnecessary variable initialization, and , after { }] Signed-off-by: Guenter Roeck <[email protected]>
1 parent 15cae9c commit 46b94c4

File tree

6 files changed

+497
-0
lines changed

6 files changed

+497
-0
lines changed

Documentation/hwmon/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ Hardware Monitoring Kernel Drivers
175175
mpq8785
176176
nct6683
177177
nct6775
178+
nct7363
178179
nct7802
179180
nct7904
180181
npcm750-pwm-fan

Documentation/hwmon/nct7363.rst

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
.. SPDX-License-Identifier: GPL-2.0
2+
3+
Kernel driver nct7363
4+
=====================
5+
6+
Supported chip:
7+
8+
* Nuvoton NCT7363Y
9+
10+
Prefix: nct7363
11+
12+
Addresses: I2C 0x20, 0x21, 0x22, 0x23
13+
14+
Author: Ban Feng <[email protected]>
15+
16+
17+
Description
18+
-----------
19+
20+
The NCT7363Y is a fan controller which provides up to 16 independent
21+
FAN input monitors, and up to 16 independent PWM outputs with SMBus interface.
22+
23+
24+
Sysfs entries
25+
-------------
26+
27+
Currently, the driver supports the following features:
28+
29+
========== ==========================================
30+
fanX_input provide current fan rotation value in RPM
31+
fanX_alarm report fan low speed real status
32+
fanX_min get or set fan count threshold
33+
34+
pwmX get or set PWM fan control value.
35+
========== ==========================================

MAINTAINERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15955,6 +15955,8 @@ M: Ban Feng <[email protected]>
1595515955
1595615956
S: Maintained
1595715957
F: Documentation/devicetree/bindings/hwmon/nuvoton,nct7363.yaml
15958+
F: Documentation/hwmon/nct7363.rst
15959+
F: drivers/hwmon/nct7363.c
1595815960

1595915961
NETCONSOLE
1596015962
M: Breno Leitao <[email protected]>

drivers/hwmon/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1681,6 +1681,17 @@ config SENSORS_NCT6775_I2C
16811681
This driver can also be built as a module. If so, the module
16821682
will be called nct6775-i2c.
16831683

1684+
config SENSORS_NCT7363
1685+
tristate "Nuvoton NCT7363Y"
1686+
depends on I2C
1687+
select REGMAP_I2C
1688+
help
1689+
If you say yes here you get support for the Nuvoton NCT7363Y
1690+
hardware monitoring chip.
1691+
1692+
This driver can also be built as a module. If so, the module
1693+
will be called nct7363.
1694+
16841695
config SENSORS_NCT7802
16851696
tristate "Nuvoton NCT7802Y"
16861697
depends on I2C

drivers/hwmon/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ obj-$(CONFIG_SENSORS_NCT6775_CORE) += nct6775-core.o
172172
nct6775-objs := nct6775-platform.o
173173
obj-$(CONFIG_SENSORS_NCT6775) += nct6775.o
174174
obj-$(CONFIG_SENSORS_NCT6775_I2C) += nct6775-i2c.o
175+
obj-$(CONFIG_SENSORS_NCT7363) += nct7363.o
175176
obj-$(CONFIG_SENSORS_NCT7802) += nct7802.o
176177
obj-$(CONFIG_SENSORS_NCT7904) += nct7904.o
177178
obj-$(CONFIG_SENSORS_NPCM7XX) += npcm750-pwm-fan.o

0 commit comments

Comments
 (0)