Support for Fintek F71872F
I have an Epox 9NPA7I board that uses the F71872F chip. The CVS version of sensors-detect returns:
Driver `f71805f' (should be inserted):
Detects correctly:
* ISA bus address 0x0295 (Busdriver i2c-isa') Chip Fintek F71872F/FG Super IO Sensors' (confidence: 9)
However I am unable to successfully insert the f71805f module for the 2.6.16 kernel. How much work still has to be done to support the F71872F chip? I'd be willing to program the support myself, but I would need a few pointers and the necessary documentation.
Thanks,
Jure
Quoted 8 lines · Jure Klako??ar
I have an Epox 9NPA7I board that uses the F71872F chip. The CVS version of sensors-detect returns:
Driver `f71805f' (should be inserted):
Detects correctly:
* ISA bus address0x0295(Busdriveri2c-isa') ChipFintek F71872F/FG Super IO Sensors' (confidence: 9)
Quoted 4 lines
However I am unable to successfully insert the f71805f module for the 2.6.16 kernel. How much work still has to be done to support the F71872F chip? I'd be willing to program the support myself, but I would need a few pointers and the necessary documentation.
Having started playing with i2c a couple of weeks ago, I'd say just give it a try yourself: Rebuild your kernel with i2c debugging enabled, and then just have a look at dmesg output to see what happens. What I do is put a bunch of printk messages in the driver, and just watch to see what happens. It isn't hard to figure it out.
-Thomas
Hi Jure,
Quoted 8 lines
I have an Epox 9NPA7I board that uses the F71872F chip. The CVS version of sensors-detect returns:
Driver `f71805f' (should be inserted):
Detects correctly:
* ISA bus address0x0295(Busdriveri2c-isa') ChipFintek F71872F/FG Super IO Sensors' (confidence: 9)
Quoted 4 lines
However I am unable to successfully insert the f71805f module for the 2.6.16 kernel. How much work still has to be done to support the F71872F chip? I'd be willing to program the support myself, but I would need a few pointers and the necessary documentation.
No surprise here. I listed the Fintek F71872F chip as supported by the f71805f driver in sensors-detect because I know that the F71805F and F71872F are essentially compatible. However, the driver currently doesn't have actual support for your chip.
I have an F71872F datasheet, which I can send to you. You are welcome to work on this. Adding support for the F71872F chip should be easy. First thing to do is to add the F71872F chip ID (definition and use in f71805f_find()). This will let the driver load and detect your chip. If I remember correctly, the additional features of the F71872F over the F71805F are:
* Three more voltage inputs
* VID pins
So you can then add support for this in the driver. You'll have to keep track of the chip type somehow, so that you don't create sysfs interface files for features which do not exist in a given chip. Don't forget to update the documentation (Documentation/hwmon/f71805f). When done, please submit your work as a patch against the latest -mm kernel.
When you're done with the driver, you'll have to update the user-space part. Here again it should be really simple, mostly copy-n-paste work. See how the F71805F is supported in libsensors (lib subdirectory in lm_sensors) and do the same for the F71872F. Please reuse the F71805F constants wherever possible. Same for the sensors program (prog/sensors subdirectory in lm_sensors.) You should be able to keep most code in common here. Last is the configuration file (etc/sensors.conf.eg). When done, please submit your work as a patch against lm_sensors CVS.
Once you're done with all this, you may notice that the driver lacks support for fan speed control, while both the F71805F and the F71872F chips do support this. I didn't have the time to implement it when writing the driver in the first place. If you want to work on this, you're welcome.
If you have any problem or question, just ask and I'll try to help.
Thanks,
Signature · 1 line
Jean Delvare
Hi Thomas,
Quoted 10 lines
Quoted 4 lines
However I am unable to successfully insert the f71805f module for the 2.6.16 kernel. How much work still has to be done to support the F71872F chip? I'd be willing to program the support myself, but I would need a few pointers and the necessary documentation.
Having started playing with i2c a couple of weeks ago, I'd say just give it a try yourself: Rebuild your kernel with i2c debugging enabled, and then just have a look at dmesg output to see what happens. What I do is put a bunch of printk messages in the driver, and just watch to see what happens. It isn't hard to figure it out.
That wouldn't work, the f71805f driver is a platform driver, not an i2c driver.
It's not a bug anyway. As I said in another post, the f71805f driver simply lacks support for the F71872F chip at the moment, so some additional code will be needed. Should be easy to do though.
Signature · 1 line
Jean Delvare