Support of i2c-nscacb
Hi all
I am new to this mailing list and also to the LM_Sensors package. I have a WRAP Embedded System (http://www.pcengines.ch/) which is based on the GEODE SC1100 and the i2c-nscacb.c driver from National. I saw, that there were some discussions in this mailing list about this driver 6 months ago, but couldn't find further information about the support of this Bus Driver. Is there already some work going on or is there a way to contribute to enable this chip?
Thanks in advance for any information!
Best Regards
Mirko
BTW: How can I subscribe to this list?
Quoted 10 lines · Mirko Buholzer
Hi all
I am new to this mailing list and also to the
LM_Sensorspackage. I have a WRAP Embedded System (http://www.pcengines.ch/) which is based on the GEODE SC1100 and thei2c-nscacb.cdriver from National. I saw, that there were some discussions in this mailing list about this driver 6 months ago, but couldn't find further information about the support of this Bus Driver. Is there already some work going on or is there a way to contribute to enable this chip?
Quoted 5 lines
Thanks in advance for any information!
Best Regards
MirkoBTW: How can I subscribe to this list?
If you are using a 2.6 kernel then the scx200_acb driver is the one you need. The iscacb driver is obsolete. The lm87 driver then does the sensing.
I am using it on several WRAP boards.
David
Sorry, I forgot that you need to add some parameters.
scx200_acb base=0x810,0x820
David
Quoted 77 lines · Mirko Buholzer
Hi David
I had some additional time to work with my WRAP System. I am currently having troubles getting data from the LM77.
I did the following tasks as described below. I assume that the lm77 is working properly. But I don't know why no data is transfered.Do you have any hint where I could start working?
I appreciate any Help!
Best Regards
Miko------
# modprobe scx200_acb # modprobe lm77 # i2cdetect 10 1 2 3 4 5 6 7 8 9 a b c d e f
00: XX XX XX XX XX XX XX XX XX XX XX XX XX
10: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 20: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 30: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 40: XX XX XX XX XX XX XX XX UU XX XX XX XX XX XX XX 50: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 60: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 70: XX XX XX XX XX XX XX XX# sensors lm77-i2c-0-48 Adapter: SCx200 ACB0# i2cdump 0 0x48 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 00: 02 XX 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 ?X.X.?X?X..X.?X? 10: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 X..X.?X?X..X.?X? 20: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 X..X.?X?X..X.?X? 30: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 X..X.?X?X..X.?X? 40: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 X..X.?X?X..X.?X? 50: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 X..X.?X?X..X.?X? 60: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 X..X.?X?X..X.?X? 70: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 X..X.?X?X..X.?X? 80: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 X..X.?X?X..X.?X? 90: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 X..X.?X?X..X.?X? a0: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 X..X.?X?X..X.?X? b0: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 X..X.?X?X..X.?X? c0: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 X..X.?X?X..X.?X? d0: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 X..X.?X?X..X.?X? e0: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 X..X.?X?X..X.?X? f0: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 X..X.?X?X..X.?X?Quoted 24 lines · David Goodenough
Quoted 10 lines · Mirko Buholzer
Hi all
I am new to this mailing list and also to the
LM_Sensorspackage. I have a WRAP Embedded System (http://www.pcengines.ch/) which is based on the GEODE SC1100 and thei2c-nscacb.cdriver from National. I saw, that there were some discussions in this mailing list about this driver 6 months ago, but couldn't find further information about the support of this Bus Driver. Is there already some work going on or is there a way to contribute to enable this chip?Quoted 5 lines
Thanks in advance for any information!
Best Regards
MirkoBTW: How can I subscribe to this list?
If you are using a 2.6 kernel then the
scx200_acbdriver is the one you need. The iscacb driver is obsolete. The lm87 driver then does the sensing.I am using it on several WRAP boards.
David
Hi Miko,
Quoted 9 lines
I did the following tasks as described below. I assume that the lm77 is working properly. But I don't know why no data is transfered. (...)
# modprobe scx200_acb # modprobe lm77 (...) # sensors lm77-i2c-0-48 Adapter: SCx200 ACB0
The lm77 driver currently has no user-space support. You can get the raw values from /sys/bus/i2c/devices/0-0048. If you want "sensors" to display something for lm77 chips, you'll have to hack libsensors and sensors by yourself. If you do, we would appreciate a patch so that other users can benefit too.
Signature · 1 line
Jean Delvare
Hi Mirko,
Quoted 2 lines
Do you have any hints or docu links where I can find more information to extend the lm77 driver with user-space?
Checklist from lm_sensors2/doc/developers/new_drivers (which you can read for additional information):
=* Add chip information to lib/chips.{c,h} (for chip drivers only).
Until you have done this, the chip will be invisible for user-level programs which use libsensors. Use standard names in lib/chips.c; see also the comments in etc/sensors.conf.eg for help. Contact us if you need more assistance.
* Be sure that SYSCTL and ALARM definitions in the driver are bracketed by the special comments so that the kernel/include/sensors.h file, which is generated automatically, contains your definitions. (for chip drivers only)
* Add a procedure to prog/sensors/chips.[ch] (for chip drivers only). This is a function specific for your driver that
makes the included 'sensors' program pretty-print your chip information.
* Add a call to the procedure in prog/sensors/main.c (for chip drivers only). Put it at the bottom of do_a_print().
* Add entries to etc/sensors.conf.eg (for chip drivers only). If needed, you can set defaults here.
* Add the name of the device to the README file.
=
That's for the theory. In fact, I'd invite you to grep for "lm92" in lm_sensors2/{lib,prog/sensors,etc}, and duplicate everything as "lm77", and start from there (the LM92 and LM77 have very similar functionalities IIRC).
Note that SYSCTL values are only needed for Linux 2.4 drivers, 2.6 drivers don't have them, and there is no 2.4 version of the lm77 driver, so no SYSCTL values have been defined for the lm77 driver. This means that you can safely use NOSYSCTL instead of real SYSCTL values.
If you meet specific problems, feel free to ask questions and we'll try to answer them.
Thanks,
Signature · 1 line
Jean Delvare
Hi David
I had some additional time to work with my WRAP System. I am currently having troubles getting data from the LM77.
I did the following tasks as described below. I assume that the lm77 is working properly. But I don't know why no data is transfered.
Do you have any hint where I could start working?
I appreciate any Help!
Best Regards
Miko
------
# modprobe scx200_acb # modprobe lm77 # i2cdetect 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: XX XX XX XX XX XX XX XX XX XX XX XX XX
10: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 20: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 30: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 40: XX XX XX XX XX XX XX XX UU XX XX XX XX XX XX XX 50: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 60: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 70: XX XX XX XX XX XX XX XX
# sensors lm77-i2c-0-48 Adapter: SCx200 ACB0
# i2cdump 0 0x48
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef
00: 02 XX 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 ?X.X.?X?X..X.?X?
10: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 X..X.?X?X..X.?X?
20: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 X..X.?X?X..X.?X?
30: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 X..X.?X?X..X.?X?
40: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 X..X.?X?X..X.?X?
50: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 X..X.?X?X..X.?X?
60: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 X..X.?X?X..X.?X?
70: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 X..X.?X?X..X.?X?
80: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 X..X.?X?X..X.?X?
90: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 X..X.?X?X..X.?X?
a0: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 X..X.?X?X..X.?X?
b0: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 X..X.?X?X..X.?X?
c0: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 X..X.?X?X..X.?X?
d0: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 X..X.?X?X..X.?X?
e0: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 X..X.?X?X..X.?X?
f0: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04 X..X.?X?X..X.?X?Quoted 30 lines · David Goodenough
Quoted 10 lines · Mirko Buholzer
Hi all
I am new to this mailing list and also to the
LM_Sensorspackage. I have a WRAP Embedded System (http://www.pcengines.ch/) which is based on the GEODE SC1100 and thei2c-nscacb.cdriver from National. I saw, that there were some discussions in this mailing list about this driver 6 months ago, but couldn't find further information about the support of this Bus Driver. Is there already some work going on or is there a way to contribute to enable this chip?Quoted 7 lines
Thanks in advance for any information!
Best Regards
MirkoBTW: How can I subscribe to this list?
If you are using a 2.6 kernel then the
scx200_acbdriver is the one you need. The iscacb driver is obsolete. The lm87 driver then does the sensing.I am using it on several WRAP boards.
David
Do you have any hints or docu links where I can find more information to extend the lm77 driver with user-space?
Thanks Mirko
Quoted 24 lines · Jean Delvare
Hi Miko,
Quoted 11 lines
I did the following tasks as described below. I assume that the lm77 is working properly. But I don't know why no data is transfered. (...)
# modprobe scx200_acb # modprobe lm77 (...) # sensors lm77-i2c-0-48 Adapter: SCx200 ACB0The lm77 driver currently has no user-space support. You can get the raw values from
/sys/bus/i2c/devices/0-0048. If you want "sensors" to display something for lm77 chips, you'll have to hack libsensors and sensors by yourself. If you do, we would appreciate a patch so that other users can benefit too.
Quoted 5 lines · Jean Delvare
* Add a call to the procedure in
prog/sensors/main.c(for chip drivers only). Put it at the bottom ofdo_a_print().
make that 'add the procedure to the matches[] table in prog/sensors/main.c'. I'll update our docs.