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.
I bought a mother with IT8785E chip which is not supported for now. The motherboard web page has Watchdog/GPIO sample code. Reading this sample code, I guess most things should be compatible with other IT87 chip. As the sample code has a
8786 sample code
folder, I guess this chip resembles 8786 most.I make some very small modifications to make
it87
module load on this chip. The fan speed results are almost the same to fan speeed values in BIOS. I'm not familiar with voltage values so those are not throughly verified.Note that this chip on motherboard is using index register
0x4e
. Not sure whether this is determined by chip or by motherboard.The motherboard has 2 fans but only fan1 is recongnized at first. I tested all the GPIO registers' values by adding printing code and here's the result:
GPIO 4 is the only register that does not skip fan so I used this register. But the value of this register will skip pwm, which I guess is not correct because the motherboard has 4 pin pwm fan connector.