Skip to content

Commit

Permalink
Initial commt for SN5640 system
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksandr Shamray <[email protected]>
  • Loading branch information
sholeksandr committed Oct 14, 2024
1 parent f625b58 commit 65b4be8
Show file tree
Hide file tree
Showing 12 changed files with 1,058 additions and 9 deletions.
1 change: 1 addition & 0 deletions recipes-kernel/linux/kconfig_5_10.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ CONFIG_SENSORS_MLXREG_FAN=m
CONFIG_SENSORS_JC42=m
CONFIG_SENSORS_LM75=m
CONFIG_SENSORS_TMP102=m
CONFIG_SENSORS_TMP401=m
CONFIG_SENSORS_TMP421=m
CONFIG_SENSORS_STTS751=m
CONFIG_SENSORS_EMC1403=m
Expand Down
1 change: 1 addition & 0 deletions recipes-kernel/linux/kconfig_6_1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ CONFIG_SENSORS_MLXREG_FAN=m
CONFIG_SENSORS_JC42=m
CONFIG_SENSORS_LM75=m
CONFIG_SENSORS_TMP102=m
CONFIG_SENSORS_TMP401=m
CONFIG_SENSORS_TMP421=m
CONFIG_SENSORS_STTS751=m
CONFIG_LEDS_MLXREG=m
Expand Down
321 changes: 321 additions & 0 deletions usr/etc/hw-management-sensors/sn5640_sensors.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,321 @@
##################################################################################
# Copyright (c) 2019 - 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# Platform specific sensors config for SN5600
##################################################################################

# Temperature sensors
chip "mlxsw-i2c-*-48"
label temp1 "Ambient ASIC Temp"

chip "tmp102-i2c-6-49"
label temp1 "Ambient Fan Side Temp (air intake)"
chip "adt75-i2c-6-49"
label temp1 "Ambient Fan Side Temp (air intake)"
chip "stts751-i2c-6-49"
label temp1 "Ambient Fan Side Temp (air intake)"
chip "tmp102-i2c-7-4a"
label temp1 "Ambient Port Side Temp (air exhaust)"
chip "adt75-i2c-7-4a"
label temp1 "Ambient Port Side Temp (air exhaust)"
chip "stts751-i2c-7-4a"
label temp1 "Ambient Port Side Temp (air exhaust)"
chip "tmp411-i2c-7-4c"
label temp1 "Ambient External Temp"

# Power controllers
chip "mp2891-i2c-*-62"
label in1 "PMIC-1 PSU 13V5 Rail (in1)"
label in2 "PMIC-1 VDD_M ADJ Rail (out1)"
ignore in3
label temp1 "PMIC-1 VDD_M ADJ Temp 1"
ignore temp2
label power1 "PMIC-1 13V5 VDD_M (in)"
label power2 "PMIC-1 VDD_M Rail Pwr (out1)"
ignore power3
label curr1 "PMIC-1 13V5 VDD_M Rail Curr (in1)"
label curr2 "PMIC-1 VDD_M Rail Curr (out1)"
ignore curr3
ignore curr4
ignore curr5
ignore curr6
ignore curr7
ignore curr8
ignore curr9
ignore curr10

chip "mp2891-i2c-*-63"
label in1 "PMIC-2 PSU 13V5 Rail (in1)"
label in2 "PMIC-2 VDD_T0 ADJ Rail (out1)"
label in3 "PMIC-2 VDD_T1 ADJ Rail (out2)"
label temp1 "PMIC-2 VDD_T0 ADJ Temp 1"
label temp2 "PMIC-2 VDD_T1 ADJ Temp 2"
label power1 "PMIC-2 13V5 VDD_T0 VDD_T1 (in)"
label power2 "PMIC-2 VDD_T0 Rail Pwr (out1)"
label power3 "PMIC-2 VDD_T1 Rail Pwr (out2)"
label curr1 "PMIC-2 13V5 VDD_T0 VDD_T1 Rail Curr (in1)"
label curr2 "PMIC-2 VDD_T0 Rail Curr (out1)"
label curr3 "PMIC-2 VDD_T1 Rail Curr (out2)"
ignore curr4
ignore curr5
ignore curr6

chip "mp2891-i2c-*-64"
label in1 "PMIC-3 PSU 13V5 Rail (in1)"
label in2 "PMIC-3 VDD_T2 ADJ Rail (out1)"
label in3 "PMIC-3 VDD_T3 ADJ Rail (out2)"
label temp1 "PMIC-3 VDD_T2 ADJ Temp 1"
label temp2 "PMIC-3 VDD_T3 ADJ Temp 2"
label power1 "PMIC-3 13V5 VDD_T2 VDD_T3 (in)"
label power2 "PMIC-3 VDD_T2 Rail Pwr (out1)"
label power3 "PMIC-3 VDD_T3 Rail Pwr (out2)"
label curr1 "PMIC-3 13V5 VDD_T2 VDD_T3 Rail Curr (in1)"
label curr2 "PMIC-3 VDD_T2 Rail Curr (out1)"
label curr3 "PMIC-3 VDD_T3 Rail Curr (out2)"
ignore curr4
ignore curr5
ignore curr6

chip "mp2891-i2c-*-65"
label in1 "PMIC-4 PSU 13V5 Rail (in1)"
label in2 "PMIC-4 VDD_T4 ADJ Rail (out1)"
label in3 "PMIC-4 VDD_T5 ADJ Rail (out2)"
label temp1 "PMIC-4 VDD_T4 ADJ Temp 1"
label temp2 "PMIC-4 VDD_T5 ADJ Temp 2"
label power1 "PMIC-4 13V5 VDD_T4 VDD_T5 (in)"
label power2 "PMIC-4 VDD_T4 Rail Pwr (out1)"
label power3 "PMIC-4 VDD_T5 Rail Pwr (out2)"
label curr1 "PMIC-4 13V5 VDD_T4 VDD_T5 Rail Curr (in1)"
label curr2 "PMIC-4 VDD_T4 Rail Curr (out1)"
label curr3 "PMIC-4 VDD_T5 Rail Curr (out2)"
ignore curr4
ignore curr5
ignore curr6

chip "mp2891-i2c-*-66"
label in1 "PMIC-5 PSU 13V5 Rail (in1)"
label in2 "PMIC-5 VDD_T6 ADJ Rail (out1)"
label in3 "PMIC-5 VDD_T7 ADJ Rail (out2)"
label temp1 "PMIC-5 VDD_T6 ADJ Temp 1"
label temp2 "PMIC-5 VDD_T7 ADJ Temp 2"
label power1 "PMIC-5 13V5 VDD_T6 VDD_T7 (in)"
label power2 "PMIC-5 VDD_T6 Rail Pwr (out1)"
label power3 "PMIC-5 VDD_T7 Rail Pwr (out2)"
label curr1 "PMIC-5 13V5 VDD_T6 VDD_T7 Rail Curr (in1)"
label curr2 "PMIC-5 VDD_T6 Rail Curr (out1)"
label curr3 "PMIC-5 VDD_T7 Rail Curr (out2)"
ignore curr4
ignore curr5
ignore curr6

chip "mp2891-i2c-*-67"
label in1 "PMIC-6 PSU 13V5 Rail (in1)"
label in2 "PMIC-6 DVDD_T0 ADJ Rail (out1)"
label in3 "PMIC-6 DVDD_T1 ADJ Rail (out2)"
label temp1 "PMIC-6 DVDD_T0 ADJ Temp 1"
label temp2 "PMIC-6 DVDD_T1 ADJ Temp 2"
label power1 "PMIC-6 13V5 DVDD_T0 DVDD_T1 (in)"
label power2 "PMIC-6 DVDD_T0 Rail Pwr (out1)"
label power3 "PMIC-6 DVDD_T1 Rail Pwr (out2)"
label curr1 "PMIC-6 13V5 DVDD_T0 DVDD_T1 Rail Curr (in1)"
label curr2 "PMIC-6 DVDD_T0 Rail Curr (out1)"
label curr3 "PMIC-6 DVDD_T1 Rail Curr (out2)"
ignore curr4
ignore curr5
ignore curr6

chip "mp2891-i2c-*-68"
label in1 "PMIC-7 PSU 13V5 Rail (in1)"
label in2 "PMIC-7 DVDD_T2 ADJ Rail (out1)"
label in3 "PMIC-7 DVDD_T3 ADJ Rail (out2)"
label temp1 "PMIC-7 DVDD_T2 ADJ Temp 1"
label temp2 "PMIC-7 DVDD_T3 ADJ Temp 2"
label power1 "PMIC-7 13V5 DVDD_T2 DVDD_T3 (in)"
label power2 "PMIC-7 DVDD_T2 Rail Pwr (out1)"
label power3 "PMIC-7 DVDD_T3 Rail Pwr (out2)"
label curr1 "PMIC-7 13V5 DVDD_T2 DVDD_T3 Rail Curr (in1)"
label curr2 "PMIC-7 DVDD_T2 Rail Curr (out1)"
label curr3 "PMIC-7 DVDD_T3 Rail Curr (out2)"
ignore curr4
ignore curr5
ignore curr6

chip "mp2891-i2c-*-69"
label in1 "PMIC-8 PSU 13V5 Rail (in1)"
label in2 "PMIC-8 DVDD_T4 ADJ Rail (out1)"
label in3 "PMIC-8 DVDD_T5 ADJ Rail (out2)"
label temp1 "PMIC-8 DVDD_T4 ADJ Temp 1"
label temp2 "PMIC-8 DVDD_T5 ADJ Temp 2"
label power1 "PMIC-8 13V5 DVDD_T4 DVDD_T5 (in)"
label power2 "PMIC-8 DVDD_T4 Rail Pwr (out1)"
label power3 "PMIC-8 DVDD_T5 Rail Pwr (out2)"
label curr1 "PMIC-8 13V5 DVDD_T4 DVDD_T5 Rail Curr (in1)"
label curr2 "PMIC-8 DVDD_T4 Rail Curr (out1)"
label curr3 "PMIC-8 DVDD_T5 Rail Curr (out2)"
ignore curr4
ignore curr5
ignore curr6

chip "mp2891-i2c-*-6a"
label in1 "PMIC-9 PSU 13V5 Rail (in1)"
label in2 "PMIC-9 DVDD_T6 ADJ Rail (out1)"
label in3 "PMIC-9 DVDD_T7 ADJ Rail (out2)"
label temp1 "PMIC-9 DVDD_T6 ADJ Temp 1"
label temp2 "PMIC-9 DVDD_T7 ADJ Temp 2"
label power1 "PMIC-9 13V5 DVDD_T6 DVDD_T7 (in)"
label power2 "PMIC-9 DVDD_T6 Rail Pwr (out1)"
label power3 "PMIC-9 DVDD_T7 Rail Pwr (out2)"
label curr1 "PMIC-9 13V5 DVDD_T6 DVDD_T7 Rail Curr (in1)"
label curr2 "PMIC-9 DVDD_T6 Rail Curr (out1)"
label curr3 "PMIC-9 DVDD_T7 Rail Curr (out2)"
ignore curr4
ignore curr5
ignore curr6

chip "mp2891-i2c-*-6c"
label in1 "PMIC-10 PSU 13V5 Rail (in1)"
label in2 "PMIC-10 HVDD_T03 1V2 Rail (out1)"
label in3 "PMIC-10 HVDD_T47 1V2 Rail (out2)"
label temp1 "PMIC-10 HVDD_T03 1V2 Temp 1"
label temp2 "PMIC-10 HVDD_T47 1V2 Temp 2"
label power1 "PMIC-10 13V5 HVDD_T03 HVDD_T47 (in)"
label power2 "PMIC-10 HVDD_T03 Rail Pwr (out1)"
label power3 "PMIC-10 HVDD_T47 Rail Pwr (out2)"
label curr1 "PMIC-10 13V5 HVDD_T03 HVDD_T47 Rail Curr (in1)"
label curr2 "PMIC-10 HVDD_T03 Rail Curr (out1)"
label curr3 "PMIC-10 HVDD_T47 Rail Curr (out2)"
ignore curr4
ignore curr5
ignore curr6
ignore curr7
ignore curr8
ignore curr9
ignore curr10
ignore curr11

chip "mp2891-i2c-*-6e"
label in1 "PMIC-11 PSU 13V5 Rail (in1)"
label in2 "PMIC-11 VDDSCC 0V75 Rail (out1)"
label in3 "PMIC-11 DVDD_M ADJ Rail (out2)"
label temp1 "PMIC-11 VDDSCC 1V2 Temp 1"
label temp2 "PMIC-11 DVDD_M 0V75 Temp 2"
label power1 "PMIC-11 13V5 VDDSCC DVDD_M (in)"
label power2 "PMIC-11 VDDSCC Rail Pwr (out1)"
label power3 "PMIC-11 DVDD_M Rail Pwr (out2)"
label curr1 "PMIC-11 13V5 VDDSCC DVDD_M Rail Curr (in1)"
label curr2 "PMIC-11 VDDSCC Rail Curr (out1)"
label curr3 "PMIC-11 DVDD_M Rail Curr (out2)"
ignore curr4
ignore curr5
ignore curr6

# Power supplies
chip "dps460-i2c-*-59"
label in1 "PSU-1(L) 220V Rail (in)"
ignore in2
label in3 "PSU-1(L) 54V Rail (out)"
ignore fan2
ignore fan3
label fan1 "PSU-1(L) Fan 1"
label temp1 "PSU-1(L) Temp 1"
label temp2 "PSU-1(L) Temp 2"
label temp3 "PSU-1(L) Temp 3"
label power1 "PSU-1(L) 220V Rail Pwr (in)"
label power2 "PSU-1(L) 54V Rail Pwr (out)"
label curr1 "PSU-1(L) 220V Rail Curr (in)"
label curr2 "PSU-1(L) 54V Rail Curr (out)"
set power2_cap 0
chip "dps460-i2c-*-58"
label in1 "PSU-2(R) 220V Rail (in)"
ignore in2
label in3 "PSU-2(R) 54V Rail (out)"
ignore fan2
ignore fan3
label fan1 "PSU-2(R) Fan 1"
label temp1 "PSU-2(R) Temp 1"
label temp2 "PSU-2(R) Temp 2"
label temp3 "PSU-2(R) Temp 3"
label power1 "PSU-2(R) 220V Rail Pwr (in)"
label power2 "PSU-2(R) 54V Rail Pwr (out)"
label curr1 "PSU-2(R) 220V Rail Curr (in)"
label curr2 "PSU-2(R) 54V Rail Curr (out)"
set power2_cap 0
chip "dps460-i2c-*-5b"
label in1 "PSU-3(R) 220V Rail (in)"
ignore in2
label in3 "PSU-3(R) 54V Rail (out)"
ignore fan2
ignore fan3
label fan1 "PSU-3(R) Fan 1"
label temp1 "PSU-3(R) Temp 1"
label temp2 "PSU-3(R) Temp 2"
label temp3 "PSU-3(R) Temp 3"
label power1 "PSU-3(R) 220V Rail Pwr (in)"
label power2 "PSU-3(R) 54V Rail Pwr (out)"
label curr1 "PSU-3(R) 220V Rail Curr (in)"
label curr2 "PSU-3(R) 54V Rail Curr (out)"
set power2_cap 0
chip "dps460-i2c-*-5a"
label in1 "PSU-4(R) 220V Rail (in)"
ignore in2
label in3 "PSU-4(R) 54V Rail (out)"
ignore fan2
ignore fan3
label fan1 "PSU-4(R) Fan 1"
label temp1 "PSU-4(R) Temp 1"
label temp2 "PSU-4(R) Temp 2"
label temp3 "PSU-4(R) Temp 3"
label power1 "PSU-4(R) 220V Rail Pwr (in)"
label power2 "PSU-4(R) 54V Rail Pwr (out)"
label curr1 "PSU-4(R) 220V Rail Curr (in)"
label curr2 "PSU-4(R) 54V Rail Curr (out)"
set power2_cap 0

# AMD Comex
bus "i2c-68" "i2c-9-mux (chan_id 6)"
chip "mp2855-i2c-*-69"
label in1 "PMIC-12 COMEX (in) VDDCR INPUT VOLT"
label in2 "PMIC-12 COMEX (out) VDDCR_CPU VOLT"
label in3 "PMIC-12 COMEX (out2) VDDCR_SOC VOLT"
label temp1 "PMIC-12 COMEX VDDCR_CPU PHASE TEMP"
label temp2 "PMIC-12 COMEX VDDCR_SOC PHASE TEMP"
label curr1 "PMIC-12 COMEX VDDCR_CPU CURR"
label curr2 "PMIC-12 COMEX VDDCR_SOC CURR"

bus "i2c-69" "i2c-9-mux (chan_id 6)"
chip "mp2975-i2c-*-6a"
label in1 "PMIC-13 COMEX VDD_MEM INPUT VOLT"
label in2 "PMIC-13 COMEX VDD_MEM OUTPUT VOLT"
label temp1 "PMIC-13 COMEX VDD_MEM PHASE TEMP"
label curr1 "PMIC-13 COMEX VDD_MEM INPUT CURR"
label curr2 "PMIC-13 COMEX VDD_MEM OUTPUT CURR"
ignore curr3
ignore curr4
label power1 "PMIC-13 COMEX VDD_MEM INPUT POWER"
label power2 "PMIC-13 COMEX VDD_MEM OUTPUT POWER"

#bus "i2c-0" "Synopsys DesignWare I2C adapter"
chip "jc42-i2c-*-1a"
label temp1 "SODIMM1 Temp"

chip "jc42-i2c-*-1b"
label temp1 "SODIMM2 Temp"

chip "jc42-i2c-*-1e"
label temp1 "SODIMM3 Temp"

chip "jc42-i2c-*-1f"
label temp1 "SODIMM4 Temp"

chip "k10temp-pci-*"
label temp1 "CPU PACKAGE TEMP"
label temp2 "CPU DIE0 TEMP"

chip "nvme-pci-*"
label temp1 "SSD Temp"
ignore temp2
ignore temp3

chip "00000500400-mdio-5"
label temp1 "PHY TEMP"

Loading

0 comments on commit 65b4be8

Please sign in to comment.