Initial commit

This commit is contained in:
Your Name
2026-04-23 17:07:55 +08:00
commit b7e39e063b
16725 changed files with 1625565 additions and 0 deletions
@@ -0,0 +1,15 @@
# PSU4
LABEL_in1=psu4_vin
LABEL_curr1=psu4_iin
LABEL_power1=psu4_pin
LABEL_in2=psu4_vout
#GAIN_in2=0.001953125
#GAIN is only required for AC PSUs.
LABEL_curr2=psu4_iout
LABEL_power2=psu4_pout
LABEL_temp1=psu4_temp1
LABEL_temp2=psu4_temp2
LABEL_temp3=psu4_temp3
LABEL_fan1=psu4_fan
# 1 minute interval
INTERVAL=60000000
@@ -0,0 +1,15 @@
# PSU1
LABEL_in1=psu1_vin
LABEL_curr1=psu1_iin
LABEL_power1=psu1_pin
LABEL_in2=psu1_vout
#GAIN_in2=0.001953125
#GAIN only required for AC PSUs.
LABEL_curr2=psu1_iout
LABEL_power2=psu1_pout
LABEL_temp1=psu1_temp1
LABEL_temp2=psu1_temp2
LABEL_temp3=psu1_temp3
LABEL_fan1=psu1_fan
# 1 minute interval
INTERVAL=60000000
@@ -0,0 +1,15 @@
# PSU3
LABEL_in1=psu3_vin
LABEL_curr1=psu3_iin
LABEL_power1=psu3_pin
LABEL_in2=psu3_vout
#GAIN_in2=0.001953125
#GAIN only required for AC PSUs
LABEL_curr2=psu3_iout
LABEL_power2=psu3_pout
LABEL_temp1=psu3_temp1
LABEL_temp2=psu3_temp2
LABEL_temp3=psu3_temp3
LABEL_fan1=psu3_fan
# 1 minute interval
INTERVAL=60000000
@@ -0,0 +1,15 @@
# PSU2
LABEL_in1=psu2_vin
LABEL_curr1=psu2_iin
LABEL_power1=psu2_pin
LABEL_in2=psu2_vout
#GAIN_in2=0.001953125
#GAIN is only required for AC PSUs.
LABEL_curr2=psu2_iout
LABEL_power2=psu2_pout
LABEL_temp1=psu2_temp1
LABEL_temp2=psu2_temp2
LABEL_temp3=psu2_temp3
LABEL_fan1=psu2_fan
# 1 minute interval
INTERVAL=60000000
@@ -0,0 +1,9 @@
LABEL_fan1=fan1
LABEL_fan2=fan2
LABEL_fan3=fan3
LABEL_fan4=fan4
LABEL_fan5=fan5
LABEL_fan6=fan6
LABEL_fan7=fan7
LABEL_fan8=fan8
@@ -0,0 +1,7 @@
LABEL_in1=p3v_vbat
GAIN_in1=3.000
# The battery read is controlled by G5
GPIOCHIP_in1=0
GPIO_in1=53
# Sleep in microseconds (stored into a uint64_t)
INTERVAL=86400000000
@@ -0,0 +1,19 @@
LABEL_in1=p3v3_scaled
GAIN_in1=1.62
LABEL_in2=p5v_scaled
GAIN_in2=2.47
LABEL_in3=p12v_aux_scaled
GAIN_in3=6.01
LABEL_in4=p1v1_ssb
LABEL_in5=pvcc_cpu0
LABEL_in6=pvcc_cpu1
LABEL_in7=p3v3_aux_scaled
GAIN_in7=1.62
LABEL_in8=p5v_aux_scaled
GAIN_in8=2.47
LABEL_in9=pvcc_cpu2
LABEL_in10=pvcc_cpu3
LABEL_in11=p12v_scaled
GAIN_in11=6.01
LABEL_in12=p3v_vbat
GAIN_in12=1.4992504
@@ -0,0 +1,26 @@
inherit obmc-phosphor-utils
FILESEXTRAPATHS:prepend:quanta-q71l := "${THISDIR}/${PN}:"
# More conf files can be added as sensors are added.
Q71L_PWM = "pwm-tacho-controller@1e786000"
Q71L_PWM_BASE = "ahb/apb/{0}.conf"
Q71L_ITEMS += "${@compose_list(d, 'Q71L_PWM_BASE', 'Q71L_PWM')}"
Q71L_TEMPS = "tmp75@4c tmp75@4e tmp75@4f"
Q71L_TEMPBASE = "ahb/apb/bus@1e78a000/i2c-bus@80/{0}.conf"
Q71L_ITEMS += "${@compose_list(d, 'Q71L_TEMPBASE', 'Q71L_TEMPS')}"
Q71L_ITEMS += "iio-hwmon.conf"
Q71L_ITEMS += "iio-hwmon-battery.conf"
Q71L_PSUS = "0/psu@59 1/psu@58 2/psu@58 3/psu@59"
Q71L_PSUBASE = "ahb/apb/bus@1e78a000/i2c-bus@300/i2c-switch@70/i2c@{0}.conf"
Q71L_ITEMS += "${@compose_list(d, 'Q71L_PSUBASE', 'Q71L_PSUS')}"
ENVS = "obmc/hwmon/{0}"
SYSTEMD_ENVIRONMENT_FILE:${PN}:append:quanta-q71l := " ${@compose_list(d, 'ENVS', 'Q71L_ITEMS')}"
EXTRA_OEMESON:append:quanta-q71l = " -Dnegative-errno-on-fail=true"