Skip to contentSkip to conversation

hwmon: (nct6775) Add support for NCT5525-S

PATCH Applied Anton Lundin 3 participants 3 messages Nov 17 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hwmon: (nct6775) Add support for NCT5525-S

It's a newer revision of NCT5525 with new id.

---
This was tested on a ASRock 4X4 BOX-AI350 board.

 drivers/hwmon/nct6775-core.c     | 1 +
 drivers/hwmon/nct6775-platform.c | 2 ++
 2 files changed, 3 insertions(+)
drivers/hwmon/nct6775-core.c +1 -0
index 6f7279fb8814..5d512cc21c54 100644
@@ -20,6 +20,7 @@
  *
  * Chip        #vin    #fan    #pwm    #temp  chip IDs       man ID
  * nct5525d     8      3       3       3+3    0xd2b3 0xc1    0x5ca3
+ * nct5525d-s   8      3       3       3+3    0xd294 0xc1    0x5ca3
  * nct6106d     9      3       3       6+3    0xc450 0xc1    0x5ca3
  * nct6116d     9      5       5       3+3    0xd280 0xc1    0x5ca3
  * nct6126d    10      5       5       3+3    0xd283 0xc1    0x5ca3
drivers/hwmon/nct6775-platform.c +2 -0
index f443ae1dac67..7a6f9e8c0993 100644
@@ -77,6 +77,7 @@ MODULE_PARM_DESC(fan_debounce, "Enable debouncing for fan RPM signal");
 #define SIO_REG_ADDR		0x60	/* Logical device address (2 bytes) */
 
 #define SIO_NCT5525_ID		0xd2b0
+#define SIO_NCT5525_S_ID	0xd290
 #define SIO_NCT6106_ID		0xc450
 #define SIO_NCT6116_ID		0xd280
 #define SIO_NCT6122_ID		0xd2a0
@@ -1042,6 +1043,7 @@ static int __init nct6775_find(int sioaddr, struct nct6775_sio_data *sio_data)
 
 	switch (val & SIO_ID_MASK) {
 	case SIO_NCT5525_ID:
+	case SIO_NCT5525_S_ID:
 		sio_data->kind = nct5525;
 		break;
 	case SIO_NCT6106_ID:
Signature · 1 line
2.47.3