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,6 @@
LABEL_in1 = "ps0_input_voltage"
LABEL_in2 = "ps0_output_voltage"
LABEL_curr1 = "ps0_input_current"
LABEL_curr2 = "ps0_output_current"
LABEL_power1 = "ps0_input_power"
LABEL_power2 = "ps0_output_power"
@@ -0,0 +1,6 @@
LABEL_in1 = "ps1_input_voltage"
LABEL_in2 = "ps1_output_voltage"
LABEL_curr1 = "ps1_input_current"
LABEL_curr2 = "ps1_output_current"
LABEL_power1 = "ps1_input_power"
LABEL_power2 = "ps1_output_power"
@@ -0,0 +1,5 @@
LABEL_temp1 = "psu_inlet"
WARNHI_temp1 = "63000"
WARNLO_temp1 = "0"
CRITHI_temp1 = "65000"
CRITLO_temp1 = "0"
@@ -0,0 +1,5 @@
LABEL_temp1 = "ocp_zone"
WARNHI_temp1 = "63000"
WARNLO_temp1 = "0"
CRITHI_temp1 = "65000"
CRITLO_temp1 = "0"
@@ -0,0 +1,5 @@
LABEL_temp1 = "bmc_zone"
WARNHI_temp1 = "120000"
WARNLO_temp1 = "0"
CRITHI_temp1 = "125000"
CRITLO_temp1 = "0"
@@ -0,0 +1,5 @@
LABEL_temp1 = "inlet"
WARNHI_temp1 = "40000"
WARNLO_temp1 = "0"
CRITHI_temp1 = "42000"
CRITLO_temp1 = "0"
@@ -0,0 +1,5 @@
LABEL_temp1 = "outlet"
WARNHI_temp1 = "68000"
WARNLO_temp1 = "0"
CRITHI_temp1 = "70000"
CRITLO_temp1 = "0"
@@ -0,0 +1,17 @@
LABEL_fan1 = "fan0_0"
LABEL_fan2 = "fan0_1"
LABEL_fan3 = "fan1_0"
LABEL_fan4 = "fan1_1"
LABEL_fan5 = "fan2_0"
LABEL_fan6 = "fan2_1"
LABEL_fan7 = "fan3_0"
LABEL_fan8 = "fan3_1"
PWM_TARGET_fan1 = "1"
PWM_TARGET_fan2 = "1"
PWM_TARGET_fan3 = "2"
PWM_TARGET_fan4 = "2"
PWM_TARGET_fan5 = "3"
PWM_TARGET_fan6 = "3"
PWM_TARGET_fan7 = "4"
PWM_TARGET_fan8 = "4"
@@ -0,0 +1,70 @@
MODE_temp1 = "label"
MODE_temp2 = "label"
MODE_temp3 = "label"
MODE_temp4 = "label"
MODE_temp5 = "label"
MODE_temp6 = "label"
MODE_temp7 = "label"
MODE_temp8 = "label"
MODE_temp9 = "label"
MODE_temp10 = "label"
MODE_temp11 = "label"
MODE_temp12 = "label"
MODE_temp13 = "label"
MODE_temp14 = "label"
MODE_temp15 = "label"
MODE_temp16 = "label"
MODE_temp17 = "label"
MODE_temp18 = "label"
MODE_temp19 = "label"
MODE_temp20 = "label"
MODE_temp21 = "label"
MODE_temp22 = "label"
MODE_temp23 = "label"
MODE_temp24 = "label"
MODE_temp25 = "label"
MODE_temp26 = "label"
MODE_temp27 = "label"
MODE_temp28 = "label"
MODE_temp29 = "label"
MODE_temp30 = "label"
MODE_temp31 = "label"
MODE_temp32 = "label"
LABEL_temp91 = "p0_core0_temp"
LABEL_temp92 = "p0_core1_temp"
LABEL_temp93 = "p0_core2_temp"
LABEL_temp94 = "p0_core3_temp"
LABEL_temp95 = "p0_core4_temp"
LABEL_temp96 = "p0_core5_temp"
LABEL_temp97 = "p0_core6_temp"
LABEL_temp98 = "p0_core7_temp"
LABEL_temp99 = "p0_core8_temp"
LABEL_temp100 = "p0_core9_temp"
LABEL_temp101 = "p0_core10_temp"
LABEL_temp102 = "p0_core11_temp"
LABEL_temp103 = "p0_core12_temp"
LABEL_temp104 = "p0_core13_temp"
LABEL_temp105 = "p0_core14_temp"
LABEL_temp106 = "p0_core15_temp"
LABEL_temp107 = "p0_core16_temp"
LABEL_temp108 = "p0_core17_temp"
LABEL_temp109 = "p0_core18_temp"
LABEL_temp110 = "p0_core19_temp"
LABEL_temp111 = "p0_core20_temp"
LABEL_temp112 = "p0_core21_temp"
LABEL_temp113 = "p0_core22_temp"
LABEL_temp114 = "p0_core23_temp"
LABEL_temp27 = "dimm0_temp"
LABEL_temp28 = "dimm1_temp"
LABEL_temp29 = "dimm2_temp"
LABEL_temp30 = "dimm3_temp"
LABEL_temp31 = "dimm4_temp"
LABEL_temp32 = "dimm5_temp"
LABEL_temp33 = "dimm6_temp"
LABEL_temp34 = "dimm7_temp"
LABEL_power1 = "others"
LABEL_power2 = "hdd"
LABEL_power3 = "gpu_01"
LABEL_power4 = "gpu_23"
LABEL_power5 = "standby"
LABEL_power16 = "total_power"
@@ -0,0 +1,64 @@
MODE_temp1 = "label"
MODE_temp2 = "label"
MODE_temp3 = "label"
MODE_temp4 = "label"
MODE_temp5 = "label"
MODE_temp6 = "label"
MODE_temp7 = "label"
MODE_temp8 = "label"
MODE_temp9 = "label"
MODE_temp10 = "label"
MODE_temp11 = "label"
MODE_temp12 = "label"
MODE_temp13 = "label"
MODE_temp14 = "label"
MODE_temp15 = "label"
MODE_temp16 = "label"
MODE_temp17 = "label"
MODE_temp18 = "label"
MODE_temp19 = "label"
MODE_temp20 = "label"
MODE_temp21 = "label"
MODE_temp22 = "label"
MODE_temp23 = "label"
MODE_temp24 = "label"
MODE_temp25 = "label"
MODE_temp26 = "label"
MODE_temp27 = "label"
MODE_temp28 = "label"
MODE_temp29 = "label"
MODE_temp30 = "label"
MODE_temp31 = "label"
MODE_temp32 = "label"
LABEL_temp115 = "p1_core0_temp"
LABEL_temp116 = "p1_core1_temp"
LABEL_temp117 = "p1_core2_temp"
LABEL_temp118 = "p1_core3_temp"
LABEL_temp119 = "p1_core4_temp"
LABEL_temp120 = "p1_core5_temp"
LABEL_temp121 = "p1_core6_temp"
LABEL_temp122 = "p1_core7_temp"
LABEL_temp123 = "p1_core8_temp"
LABEL_temp124 = "p1_core9_temp"
LABEL_temp125 = "p1_core10_temp"
LABEL_temp126 = "p1_core11_temp"
LABEL_temp127 = "p1_core12_temp"
LABEL_temp128 = "p1_core13_temp"
LABEL_temp129 = "p1_core14_temp"
LABEL_temp130 = "p1_core15_temp"
LABEL_temp131 = "p1_core16_temp"
LABEL_temp132 = "p1_core17_temp"
LABEL_temp133 = "p1_core18_temp"
LABEL_temp134 = "p1_core19_temp"
LABEL_temp135 = "p1_core20_temp"
LABEL_temp136 = "p1_core21_temp"
LABEL_temp137 = "p1_core22_temp"
LABEL_temp138 = "p1_core23_temp"
LABEL_temp35 = "dimm8_temp"
LABEL_temp36 = "dimm9_temp"
LABEL_temp37 = "dimm10_temp"
LABEL_temp38 = "dimm11_temp"
LABEL_temp39 = "dimm12_temp"
LABEL_temp40 = "dimm13_temp"
LABEL_temp41 = "dimm14_temp"
LABEL_temp42 = "dimm15_temp"
@@ -0,0 +1,9 @@
LABEL_in1=p3v_bat
GAIN_in1=3.00
MINVALUE_in1=2300
MAXVALUE_in1=5500
# The battery read is controlled by S5
GPIOCHIP_in1=0
GPIO_in1=149
# Sleep in microseconds (stored into a uint64_t)
INTERVAL=86400000000
@@ -0,0 +1,109 @@
LABEL_in1=P3V3
GAIN_in1=2.47
WARNHI_in1=3531
WARNLO_in1=3069
CRITHI_in1=3630
CRITLO_in1=2970
MINVALUE_in1=3135
MAXVALUE_in1=3465
LABEL_in2=P5V
GAIN_in2=4.30
WARNHI_in2=5350
WARNLO_in2=4650
CRITHI_in2=5500
CRITLO_in2=4500
MINVALUE_in2=4750
MAXVALUE_in2=5250
LABEL_in3=P12V
GAIN_in3=9.22
WARNHI_in3=12840
WARNLO_in3=11160
CRITHI_in3=13200
CRITLO_in3=10800
MINVALUE_in3=11400
MAXVALUE_in3=12600
LABEL_in4=PVDD_CPU0
WARNHI_in4=1177
WARNLO_in4=558
CRITHI_in4=1210
CRITLO_in4=540
MINVALUE_in4=600
MAXVALUE_in4=1100
LABEL_in5=PVDD_CPU1
WARNHI_in5=1177
WARNLO_in5=558
CRITHI_in5=1210
CRITLO_in5=540
MINVALUE_in5=600
MAXVALUE_in5=1100
LABEL_in6=PVCS_CPU0
WARNHI_in6=1177
WARNLO_in6=893
CRITHI_in6=1210
CRITLO_in6=864
MINVALUE_in6=960
MAXVALUE_in6=1100
LABEL_in7=PVCS_CPU1
WARNHI_in7=1177
WARNLO_in7=893
CRITHI_in7=1210
CRITLO_in7=864
MINVALUE_in7=960
MAXVALUE_in7=1100
LABEL_in8=PVDN_CPU0
WARNHI_in8=1177
WARNLO_in8=605
CRITHI_in8=1210
CRITLO_in8=585
MINVALUE_in8=650
MAXVALUE_in8=1100
LABEL_in9=PVDN_CPU1
WARNHI_in9=1177
WARNLO_in9=605
CRITHI_in9=1210
CRITLO_in9=585
MINVALUE_in9=650
MAXVALUE_in9=1100
LABEL_in10=PVIO_CPU0
WARNHI_in10=1124
WARNLO_in10=977
CRITHI_in10=1155
CRITLO_in10=945
MINVALUE_in10=998
MAXVALUE_in10=1103
LABEL_in11=PVIO_CPU1
WARNHI_in11=1124
WARNLO_in11=977
CRITHI_in11=1155
CRITLO_in11=945
MINVALUE_in11=998
MAXVALUE_in11=1103
LABEL_in12=PVDDQ_CPU0_CH01
WARNHI_in12=1284
WARNLO_in12=1116
CRITHI_in12=1320
CRITLO_in12=1080
MINVALUE_in12=1140
MAXVALUE_in12=1260
LABEL_in13=PVDDQ_CPU0_CH67
WARNHI_in13=1284
WARNLO_in13=1116
CRITHI_in13=1320
CRITLO_in13=1080
MINVALUE_in13=1140
MAXVALUE_in13=1260
LABEL_in14=PVDDQ_CPU1_CH01
WARNHI_in14=1284
WARNLO_in14=1116
CRITHI_in14=1320
CRITLO_in14=1080
MINVALUE_in14=1140
MAXVALUE_in14=1260
LABEL_in15=PVDDQ_CPU1_CH67
WARNHI_in15=1284
WARNLO_in15=1116
CRITHI_in15=1320
CRITLO_in15=1080
MINVALUE_in15=1140
MAXVALUE_in15=1260
@@ -0,0 +1,30 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
EXTRA_OEMESON:append:fp5280g2= " -Dnegative-errno-on-fail=true"
CHIPS = " \
bus@1e78a000/i2c-bus@c0/tmp112@48 \
bus@1e78a000/i2c-bus@c0/tmp112@49 \
bus@1e78a000/i2c-bus@c0/i2c-switch@70/i2c@0/tmp112@4a \
bus@1e78a000/i2c-bus@c0/i2c-switch@70/i2c@1/tmp112@4a \
bus@1e78a000/i2c-bus@c0/i2c-switch@70/i2c@2/tmp112@4a \
bus@1e78a000/i2c-bus@400/power-supply@58 \
bus@1e78a000/i2c-bus@400/power-supply@59 \
pwm-tacho-controller@1e786000 \
"
ITEMSFMT = "ahb/apb/{0}.conf"
ITEMS = "${@compose_list(d, 'ITEMSFMT', 'CHIPS')}"
ITEMS += "iio-hwmon.conf iio-hwmon-battery.conf"
OCCS = " \
00--00--00--06/sbefifo1-dev0/occ-hwmon.1 \
00--00--00--0a/fsi1/slave@01--00/01--01--00--06/sbefifo2-dev0/occ-hwmon.2 \
"
OCCSFMT = "devices/platform/gpio-fsi/fsi-master/fsi0/slave@00--00/{0}.conf"
OCCITEMS = "${@compose_list(d, 'OCCSFMT', 'OCCS')}"
ENVS = "obmc/hwmon/{0}"
SYSTEMD_ENVIRONMENT_FILE:${PN}:append:fp5280g2 = " ${@compose_list(d, 'ENVS', 'ITEMS')}"
SYSTEMD_ENVIRONMENT_FILE:${PN}:append:fp5280g2 = " ${@compose_list(d, 'ENVS', 'OCCITEMS')}"