[device][accton] as5812_54x: validate sensors to show values of PSUs #3866
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Validate sensors to show values of PSUs.
- What I did
Validate PSU device nodes to fit the naming of lm-sensors.
- How I did it
Replace PSU drivers which support lm-sensors.
- How to verify it
Simply by
sensors
command.root@as5812-54x:/home/admin# sensors
ym2401-i2c-58-5b
Adapter: i2c-0-mux (chan_id 2)
in3: +0.00 V
fan1: 0 RPM
temp1: +0.0 C
power2: 0.00 W
curr2: +0.00 A
cpr_4011_4mxx-i2c-58-3f
Adapter: i2c-0-mux (chan_id 2)
in1: +227.00 V
in2: +12.00 V
fan1: 6304 RPM
temp1: +28.0 C
power1: 75.00 mW
power2: 64.00 mW
curr1: +0.38 A
curr2: +5.38 A
ym2401-i2c-57-58
...
cpr_4011_4mxx-i2c-57-3c
...
- Description for the changelog
Link cpr_4011_4mxx.c and ym2651y.c to ones at the common directory.
Install ym2401 for this kind of PSUs can be employed.
Fix a typo at cpld driver.