sensor config for (nct6779D) ASRock X370 Gaming K4

Rigo Reddig
2017-06-27T12:19:11Z

[-- Attachment #1: Type: text/plain, Size: 355 bytes --]

I recently puzzled out the scalars and inputs for my mainboard and was told to
submit the config here for others that might find it useful.

These may apply to other nct6779D boards but so far this is purely specific to
the ASRock X370 Gaming K4.

I have linked to and attached the file.
https://gist.github.com/rigred/000cb8486dfae1972154ec9bf8355ac0

[-- Attachment #2: ASRock-X370-Gaming-K4 --]
[-- Type: text/plain, Size: 1627 bytes --]

chip "nct6779-isa-0290"

# Fans
label fan1 "Chassis Fan 3 Speed"
label fan2 "CPU Fan 1 Speed"
label fan3 "CPU Optional Fan Speed"
label fan4 "Chassis Fan 1 Speed"
label fan5 "Chassis Fan 2 Speed"

#Fan minimums
#set fan2_min 950
#set fan2_target 30000

# Temperatures
label temp1 "Motherboard"
label temp2 "CPU"
label temp3 "Auxillary"
label temp4 "VRM"
label temp5 "AUXTIN2"
label temp6 "CPU (PECI)" #Needs scalar sits at -25

# Voltages

label in0 "VCore"
label in1 "VPPM" #scalar
label in2 "AVCC"
label in3 "3VCC"
label in4 "+12V" #scalar
label in5 "VDDCR_SOC"
label in6 "DRAM"
label in7 "3VSB"
label in8 "VBat"
label in9 "Null"
label in10 "VIIN10"
label in11 "Chipset 1.05V"
label in12 "+5V" #scalar
label in13 "VDDP"
label in14 "1.8V+"

# Compute Inputs
# The nct6779D uses a 2.048V input range, all inputs above that are scaled using a voltage divider.
# Specific inputs like the ADC, AVCC, VBAT, 3VSB and 3VCC utilize an integrated voltage divider
#
# values as per nuvoton nct6779D datasheet
# Section 8.5 Analog Inputs (Page 54,55)
# # Vs R1,Rin R2,Rf Vin
# in4 +12.0 56 10 ~+1.84
# in12 +5.0 20 10 ~+1.67
#
compute in1 @*2, @/2
compute in4 ((56/10)+1)*@, @/((56/10)+1)
compute in12 ((20/10)+1)*@, @/((20/10)+1)