# lm-sensors configuration for the MSI X470 GAMING PRO motherboard
#
# Manufacturer: Micro-Star International (MSI) 
# Product Name: X470 GAMING PRO
# Code Name: MS-7B79
# Version: Ver 1.1
# Super I/O: NCT6795D
# UEFI BIOS tested: 1.90 03/07/2019
#
# Recommended drivers: k10temp, nct6775
# Other X470 boards from MSI might use a similar setup
#
#
# Federico Magnani, 2019
#

chip "nct6795-isa-0a20"

    label fan1 "PUMP_FAN1"
    label fan2 "CPU_FAN1"
    label fan3 "SYS_FAN1"
    label fan4 "SYS_FAN2"
    label fan5 "SYS_FAN3"
    label fan6 "SYS_FAN4"

    ignore temp4 # not functional
    ignore temp6 # not functional
    ignore temp8 # not functional
    ignore temp9 # not functional
    ignore temp10 # not functional
    ignore temp11 # not functional

    set temp1_min 15
    set temp1_max 50
    set temp1_max_hyst 45

    label temp1 "Super I/O"
    label temp2 "SoC VRM"
    label temp3 "CPU VRM"
    label temp5 "PCH Temp"
    label temp7 "CPU Temp"

    ignore in10 # not functional / always 0

    compute in1 @*5.04, @/5.04
    compute in4 @*12, @/12
    compute in13 @*2, @/2

    label in0 "CPU Core"
    label in1 "ATX +5V"
    label in2 "AVCC Analog"
    label in3 "ATX +3.3V"
    label in4 "ATX +12V"
    label in5 "Unknown"
    label in6 "Unknown" # probably CPU Graphics
    label in7 "3VSB Standby"
    label in8 "RTC Battery"
    label in9 "CPU +1.8V"
    label in11 "Unknown"
    label in12 "CPU SoC"
    label in13 "DDRAM"
    label in14 "Unknown"

    set in0_min 0.4
    set in0_max 1.55 # max BIOS setting
    set in1_min 5 * 0.95  # ATX 2.4
    set in1_max 5 * 1.05  # ATX 2.4
    set in2_min 3.3 * 0.95  # assume ATX ±5% is enough
    set in2_max 3.3 * 1.05  # assume ATX ±5% is enough
    set in3_min 3.3 * 0.95  # ATX 2.4
    set in3_max 3.3 * 1.05  # ATX 2.4
    set in4_min 12 * 0.95  # ATX 2.4
    set in4_max 12 * 1.05  # ATX 2.4
    set in5_min  0.13 # Unkwown maybe not used in R2700X
    set in5_max  0.16 # Unkwown maybe not used in R2700X
    set in6_min  0.6 # Unkwown maybe not used in R2700X
    set in6_max  1.10 # Unkwown maybe not used in R2700X
    set in7_min 3.3 * 0.95  # assume ATX ±5% is enough
    set in7_max 3.3 * 1.05  # assume ATX ±5% is enough
    set in8_min 2.0  # from Intel 200-series chipset spec
    set in8_max 3.4  # from random CR2032 datasheet
    set in9_min  1.82 * 0.90
    set in9_max  1.82 * 1.10
    set in11_min  0.5
    set in11_max  1.2
    set in12_min  0.9 # max BIOS setting
    set in12_max  1.55 # max BIOS setting
    set in13_min  1.1 # DDR min voltage
    set in13_max  1.5 # DDR max voltage
    set in14_min  1.5 * 0.90
    set in14_max  1.5 * 1.10

    label intrusion0 "Intrusion"

    ignore intrusion1
    ignore beep_enable

