-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[accton] Add sensors.conf to multiple models (#7494)
#### Why I did it Improve readability of `show environment` output. #### How I did it In all sensors.conf, give the customized labels according to HW specifications for each model. Signed-off-by: Sean Wu <sean_wu@edge-core.com>
- Loading branch information
Showing
15 changed files
with
720 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# libsensors configuration file for as4630-54pe | ||
# ------------------------------------------------ | ||
# | ||
|
||
bus "i2c-3" "i2c-1-mux (chan_id 1)" | ||
bus "i2c-10" "i2c-2-mux (chan_id 0)" | ||
bus "i2c-11" "i2c-2-mux (chan_id 1)" | ||
bus "i2c-14" "i2c-2-mux (chan_id 4)" | ||
bus "i2c-24" "i2c-3-mux (chan_id 6)" | ||
bus "i2c-25" "i2c-3-mux (chan_id 7)" | ||
|
||
|
||
chip "ype1200am-i2c-*-58" | ||
label in3 "PSU 1 Voltage" | ||
label fan1 "PSU 1 Fan" | ||
label temp1 "PSU 1 Temperature" | ||
label power2 "PSU 1 Power" | ||
label curr2 "PSU 1 Current" | ||
|
||
chip "ype1200am-i2c-*-59" | ||
label in3 "PSU 2 Voltage" | ||
label fan1 "PSU 2 Fan" | ||
label temp1 "PSU 2 Temperature" | ||
label power2 "PSU 2 Power" | ||
label curr2 "PSU 2 Current" | ||
|
||
chip "as4630_54pe_cpld-*" | ||
label fan1 "Fan 1" | ||
label fan2 "Fan 2" | ||
label fan3 "Fan 3" | ||
|
||
|
||
chip "lm77-i2c-*-48" | ||
label temp1 "Main Board Temperature" | ||
|
||
chip "lm75-i2c-*-4a" | ||
label temp1 "Fan Board Temperature" | ||
|
||
chip "lm75-i2c-*-4b" | ||
label temp1 "CPU Board Temperature" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# libsensors configuration file for as4630-54te | ||
# ------------------------------------------------ | ||
# | ||
|
||
bus "i2c-3" "i2c-1-mux (chan_id 1)" | ||
bus "i2c-10" "i2c-2-mux (chan_id 0)" | ||
bus "i2c-11" "i2c-2-mux (chan_id 1)" | ||
bus "i2c-14" "i2c-2-mux (chan_id 4)" | ||
bus "i2c-24" "i2c-3-mux (chan_id 6)" | ||
bus "i2c-25" "i2c-3-mux (chan_id 7)" | ||
|
||
|
||
chip "ype1200am-i2c-*-58" | ||
label in3 "PSU 1 Voltage" | ||
label fan1 "PSU 1 Fan" | ||
label temp1 "PSU 1 Temperature" | ||
label power2 "PSU 1 Power" | ||
label curr2 "PSU 1 Current" | ||
|
||
chip "ype1200am-i2c-*-59" | ||
label in3 "PSU 2 Voltage" | ||
label fan1 "PSU 2 Fan" | ||
label temp1 "PSU 2 Temperature" | ||
label power2 "PSU 2 Power" | ||
label curr2 "PSU 2 Current" | ||
|
||
chip "as4630_54te_cpld-*" | ||
label fan1 "Fan 1" | ||
label fan2 "Fan 2" | ||
label fan3 "Fan 3" | ||
|
||
|
||
chip "lm77-i2c-*-48" | ||
label temp1 "Main Board Temperature" | ||
|
||
chip "lm75-i2c-*-4a" | ||
label temp1 "Fan Board Temperature" | ||
|
||
chip "lm75-i2c-*-4b" | ||
label temp1 "CPU Board Temperature" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# libsensors configuration file for as5712-54x | ||
# ------------------------------------------------ | ||
# | ||
|
||
bus "i2c-57" "i2c-0-mux (chan_id 1)" | ||
bus "i2c-58" "i2c-0-mux (chan_id 2)" | ||
bus "i2c-61" "i2c-0-mux (chan_id 5)" | ||
bus "i2c-62" "i2c-0-mux (chan_id 6)" | ||
bus "i2c-63" "i2c-0-mux (chan_id 7)" | ||
|
||
chip "cpr_4011_4mxx-i2c-*-3c" | ||
label in1 "PSU 1 Voltage In" | ||
label in2 "PSU 1 Voltage Out" | ||
label fan1 "PSU 1 Fan" | ||
label temp1 "PSU 1 Temperature" | ||
label power1 "PSU 1 Power In" | ||
label power2 "PSU 1 Power Out" | ||
label curr1 "PSU 1 Current In" | ||
label curr2 "PSU 1 Current Out" | ||
|
||
chip "cpr_4011_4mxx-i2c-*-3f" | ||
label in1 "PSU 2 Voltage In" | ||
label in2 "PSU 2 Voltage Out" | ||
label fan1 "PSU 2 Fan" | ||
label temp1 "PSU 2 Temperature" | ||
label power1 "PSU 2 Power In" | ||
label power2 "PSU 2 Power Out" | ||
label curr1 "PSU 2 Current In" | ||
label curr2 "PSU 2 Current Out" | ||
|
||
chip "as5712_54x_fan-*" | ||
label fan1 "Fan 1 Front" | ||
label fan2 "Fan 2 Front" | ||
label fan3 "Fan 3 Front" | ||
label fan4 "Fan 4 Front" | ||
label fan5 "Fan 5 Front" | ||
label fan11 "Fan 1 Rear" | ||
label fan12 "Fan 2 Rear" | ||
label fan13 "Fan 3 Rear" | ||
label fan14 "Fan 4 Rear" | ||
label fan15 "Fan 5 Rear" | ||
|
||
|
||
chip "lm75-i2c-*-48" | ||
label temp1 "Main Board Temperature" | ||
|
||
chip "lm75-i2c-*-49" | ||
label temp1 "Main Board Temperature" | ||
|
||
chip "lm75-i2c-*-4a" | ||
label temp1 "Main Board Temperature" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# libsensors configuration file for as5812-54t | ||
# ------------------------------------------------ | ||
# | ||
|
||
bus "i2c-16" "i2c-0-mux (chan_id 6)" | ||
bus "i2c-17" "i2c-0-mux (chan_id 7)" | ||
bus "i2c-11" "i2c-0-mux (chan_id 1)" | ||
bus "i2c-12" "i2c-0-mux (chan_id 2)" | ||
bus "i2c-15" "i2c-0-mux (chan_id 5)" | ||
|
||
|
||
chip "cpr_4011_4mxx-i2c-*-3c" | ||
label in1 "PSU 1 Voltage In" | ||
label in2 "PSU 1 Voltage Out" | ||
label fan1 "PSU 1 Fan" | ||
label temp1 "PSU 1 Temperature" | ||
label power1 "PSU 1 Power In" | ||
label power2 "PSU 1 Power Out" | ||
label curr1 "PSU 1 Current In" | ||
label curr2 "PSU 1 Current Out" | ||
|
||
chip "cpr_4011_4mxx-i2c-*-3f" | ||
label in1 "PSU 2 Voltage In" | ||
label in2 "PSU 2 Voltage Out" | ||
label fan1 "PSU 2 Fan" | ||
label temp1 "PSU 2 Temperature" | ||
label power1 "PSU 2 Power In" | ||
label power2 "PSU 2 Power Out" | ||
label curr1 "PSU 2 Current In" | ||
label curr2 "PSU 2 Current Out" | ||
|
||
chip "ym2401-i2c-*-58" | ||
label in3 "PSU 1 Voltage" | ||
label fan1 "PSU 1 Fan" | ||
label temp1 "PSU 1 Temperature" | ||
label power2 "PSU 1 Power" | ||
label curr2 "PSU 1 Current" | ||
|
||
chip "ym2401-i2c-*-5b" | ||
label in3 "PSU 2 Voltage" | ||
label fan1 "PSU 2 Fan" | ||
label temp1 "PSU 2 Temperature" | ||
label power2 "PSU 2 Power" | ||
label curr2 "PSU 2 Current" | ||
|
||
chip "as5812_54t_fan-*" | ||
label fan1 "Fan 1 Front" | ||
label fan2 "Fan 2 Front" | ||
label fan3 "Fan 3 Front" | ||
label fan4 "Fan 4 Front" | ||
label fan5 "Fan 5 Front" | ||
label fan11 "Fan 1 Rear" | ||
label fan12 "Fan 2 Rear" | ||
label fan13 "Fan 3 Rear" | ||
label fan14 "Fan 4 Rear" | ||
label fan15 "Fan 5 Rear" | ||
|
||
|
||
chip "lm75-i2c-*-48" | ||
label temp1 "Main Board Temperature" | ||
|
||
chip "lm75-i2c-*-49" | ||
label temp1 "Main Board Temperature" | ||
|
||
chip "lm75-i2c-*-4a" | ||
label temp1 "Main Board Temperature" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# libsensors configuration file for as5812-54x | ||
# ------------------------------------------------ | ||
# | ||
|
||
bus "i2c-57" "i2c-0-mux (chan_id 1)" | ||
bus "i2c-58" "i2c-0-mux (chan_id 2)" | ||
bus "i2c-61" "i2c-0-mux (chan_id 5)" | ||
bus "i2c-62" "i2c-0-mux (chan_id 6)" | ||
bus "i2c-63" "i2c-0-mux (chan_id 7)" | ||
|
||
chip "as5812_54x_fan-*" | ||
label fan1 "Fan 1 Front" | ||
label fan2 "Fan 2 Front" | ||
label fan3 "Fan 3 Front" | ||
label fan4 "Fan 4 Front" | ||
label fan5 "Fan 5 Front" | ||
label fan11 "Fan 1 Rear" | ||
label fan12 "Fan 2 Rear" | ||
label fan13 "Fan 3 Rear" | ||
label fan14 "Fan 4 Rear" | ||
label fan15 "Fan 5 Rear" | ||
|
||
|
||
chip "lm75-i2c-*-48" | ||
label temp1 "Main Board Temperature" | ||
|
||
chip "lm75-i2c-*-49" | ||
label temp1 "Main Board Temperature" | ||
|
||
chip "lm75-i2c-*-4a" | ||
label temp1 "Main Board Temperature" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# libsensors configuration file for as5835-54t | ||
# ------------------------------------------------ | ||
# | ||
|
||
bus "i2c-3" "i2c-0-mux (chan_id 1)" | ||
bus "i2c-11" "i2c-2-mux (chan_id 1)" | ||
bus "i2c-12" "i2c-2-mux (chan_id 2)" | ||
bus "i2c-18" "i2c-2-mux (chan_id 0)" | ||
bus "i2c-19" "i2c-2-mux (chan_id 1)" | ||
bus "i2c-20" "i2c-2-mux (chan_id 2)" | ||
bus "i2c-21" "i2c-2-mux (chan_id 3)" | ||
|
||
chip "ym2401-i2c-*-58" | ||
label in3 "PSU 1 Voltage" | ||
label fan1 "PSU 1 Fan" | ||
label temp1 "PSU 1 Temperature" | ||
label power2 "PSU 1 Power" | ||
label curr2 "PSU 1 Current" | ||
|
||
chip "ym2401-i2c-*-5b" | ||
label in3 "PSU 2 Voltage" | ||
label fan1 "PSU 2 Fan" | ||
label temp1 "PSU 2 Temperature" | ||
label power2 "PSU 2 Power" | ||
label curr2 "PSU 2 Current" | ||
|
||
chip "as5835_54t_fan-*" | ||
label fan1 "Fan 1 Front" | ||
label fan2 "Fan 2 Front" | ||
label fan3 "Fan 3 Front" | ||
label fan4 "Fan 4 Front" | ||
label fan5 "Fan 5 Front" | ||
label fan11 "Fan 1 Rear" | ||
label fan12 "Fan 2 Rear" | ||
label fan13 "Fan 3 Rear" | ||
label fan14 "Fan 4 Rear" | ||
label fan15 "Fan 5 Rear" | ||
|
||
|
||
chip "lm75-i2c-*-49" | ||
label temp1 "Main Board Temperature" | ||
|
||
chip "lm75-i2c-*-4a" | ||
label temp1 "Main Board Temperature" | ||
|
||
chip "lm75-i2c-*-4c" | ||
label temp1 "Main Board Temperature" | ||
|
||
chip "lm75-i2c-*-4b" | ||
label temp1 "CPU Board Temperature" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# libsensors configuration file for as5835-54x | ||
# ------------------------------------------------ | ||
# | ||
|
||
bus "i2c-3" "i2c-0-mux (chan_id 1)" | ||
bus "i2c-11" "i2c-2-mux (chan_id 1)" | ||
bus "i2c-12" "i2c-2-mux (chan_id 2)" | ||
bus "i2c-18" "i2c-2-mux (chan_id 0)" | ||
bus "i2c-19" "i2c-2-mux (chan_id 1)" | ||
bus "i2c-20" "i2c-2-mux (chan_id 2)" | ||
bus "i2c-21" "i2c-2-mux (chan_id 3)" | ||
|
||
|
||
chip "ym2401-i2c-*-58" | ||
label in3 "PSU 1 Voltage" | ||
label fan1 "PSU 1 Fan" | ||
label temp1 "PSU 1 Temperature" | ||
label power2 "PSU 1 Power" | ||
label curr2 "PSU 1 Current" | ||
|
||
chip "ym2401-i2c-*-5b" | ||
label in3 "PSU 2 Voltage" | ||
label fan1 "PSU 2 Fan" | ||
label temp1 "PSU 2 Temperature" | ||
label power2 "PSU 2 Power" | ||
label curr2 "PSU 2 Current" | ||
|
||
chip "as5835_54x_fan-*" | ||
label fan1 "Fan 1 Front" | ||
label fan2 "Fan 2 Front" | ||
label fan3 "Fan 3 Front" | ||
label fan4 "Fan 4 Front" | ||
label fan5 "Fan 5 Front" | ||
label fan11 "Fan 1 Rear" | ||
label fan12 "Fan 2 Rear" | ||
label fan13 "Fan 3 Rear" | ||
label fan14 "Fan 4 Rear" | ||
label fan15 "Fan 5 Rear" | ||
|
||
|
||
chip "lm75-i2c-*-49" | ||
label temp1 "Main Board Temperature" | ||
|
||
chip "lm75-i2c-*-4a" | ||
label temp1 "Main Board Temperature" | ||
|
||
chip "lm75-i2c-*-4c" | ||
label temp1 "Main Board Temperature" | ||
|
||
chip "lm75-i2c-*-4b" | ||
label temp1 "CPU Board Temperature" |
Oops, something went wrong.