# ASRock AB350 Pro4
# 2018, contributed by Leigh Brown
#
# dmi: board_name:   AB350 Pro4
# dmi: board_vendor: ASRock
# dmi: bios_version: P4.60
# cpu: AMD Ryzen 5 1600 Six-Core Processor
# driver: nct6775

chip "k10temp-pci-00c3"
    label temp1 "CPU Core Temp"

chip "nct6779-isa-0290"
    label   in0     "Vcore"
    compute in0     @*2, @/2
    set     in0_min 0.30
    set     in0_max 1.45

    label   in1     "+5.0V"
    compute in1     @*4, @/4
    set     in1_min 5.00 * 0.90
    set     in1_max 5.00 * 1.10

    label   in2     "AVCC"
    set     in2_min 3.30 * 0.90
    set     in2_max 3.30 * 1.10

    label   in3     "+3.3V"
    set     in3_min 3.30 * 0.90
    set     in3_max 3.30 * 1.10

    label   in4     "+12.0V"
    compute in4     @*(66/10), @/(66/10)
    set     in4_min 12.0 * 0.95
    set     in4_max 12.0 * 1.05

    label   in5      "VDDCR_SOC"
    set     in5_min  0.80
    set     in5_max  1.20

    label   in6     "DRAMV"
    set     in6_min 1.10 # DDR4 Underclocking
    set     in6_max 1.50 # DDR4 Intel XMP2.0 recommended max safe voltage

    label   in7     "3VSB"
    set     in7_min 3.30 * 0.90
    set     in7_max 3.30 * 1.10

    label   in8 "VBAT"
    set     in8_min 3.00 * 0.90
    set     in8_max 3.30 * 1.10

    ignore in9

    label   in10     "VDDP"
    set     in10_min 0.90
    set     in10_max 1.20

    label   in11     "+1.05V"
    set     in11_min 1.05 * 0.9
    set     in11_max 1.05 * 1.1

    ignore in12
    ignore in13

    label   in14     "+1.8V"
    set     in14_min 1.8 * 0.9
    set     in14_max 1.8 * 1.1

    label  fan1     "Chassis Fan 3"
    label  fan2     "CPU Fan 1"
    set    fan2_min 400
    ignore fan3
    label  fan4     "Chassis Fan 1"
    label  fan5     "Chassis Fan 2"

    label  temp1   "Motherboard Temp"
    set temp1_max      55.0
    set temp1_max_hyst 50.0

    label  temp2   "CPU Temp"

    ignore temp3
    ignore temp4
    ignore temp5
    ignore temp6
    ignore temp7
    ignore temp8
    ignore temp9
    ignore temp10

    ignore intrusion0
    ignore intrusion1
