############################################################
#
# Platform: Quanta LB9
#
############################################################

bus "i2c-5" "i2c-0-mux (chan_id 4)"
bus "i2c-6" "i2c-0-mux (chan_id 5)"
bus "i2c-7" "i2c-0-mux (chan_id 6)"
bus "i2c-8" "i2c-0-mux (chan_id 7)"

chip "adt7470-i2c-5-2c"
	label fan1 "Fan 1"
	label fan2 "Fan 2"
	label fan3 "Fan 3"
	label fan4 "Fan 4"
	label temp1 "Temp 1"
	label temp2 "Temp 2"
	label temp3 "Temp 3"
	label temp4 "Temp 4"
	label temp5 "Temp 5"
	ignore temp6
	ignore temp7
	ignore temp8
	ignore temp9
	ignore temp10


chip "adt7470-i2c-6-2f"
        ignore fan1
        ignore fan2
        ignore fan3
        ignore fan4
        ignore temp1
        ignore temp2
        ignore temp3
        ignore temp4
        ignore temp5
        ignore temp6
        ignore temp7
        ignore temp8
        ignore temp9
        ignore temp10


chip "pmbus-i2c-7-58"
	label fan1 "PSU-2 Fan"
	label temp1 "PSU-2 Temp 1"
	label temp2 "PSU-2 Temp 2"
	label temp3 "PSU-2 Temp 3"
	label in1 "PSU-2 Vin 1"
	label in2 "PSU-2 Vout 1"
	# in2 reads > 6000 V without this correction...(?)
	compute in2 @/500,500*@
	label curr1 "PSU-2 Iin 1"
	label curr2 "PSU-2 Iout 1"
	label power1 "PSU-2 Pin 1"
	label power2 "PSU-2 Pout 1"

chip "pmbus-i2c-8-59"
	label fan1 "PSU-1 Fan"
	label temp1 "PSU-1 Temp 1"
	label temp2 "PSU-1 Temp 2"
	label temp3 "PSU-1 Temp 3"
	label in1 "PSU-1 Vin 1"
	label in2 "PSU-1 Vout 1"
	# in2 reads > 6000 V without this correction...(?)
	compute in2 @/500,500*@
	label curr1 "PSU-1 Iin 1"
	label curr2 "PSU-1 Iout 1"
	label power1 "PSU-1 Pin 1"
	label power2 "PSU-1 Pout 1"
