Skip to contentSkip to conversation

via686a on I2C

DISCUSSION Jean Delvare 2 participants 3 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

Hi all,

FYI, I just solved the mystery of lm80 being misdetected on systems where the via686a driver is used and works. It happens that the via686a chip can *also* be accessed on the I2C bus. Alex van Kaam just told me about that, he was aware of that for some times already.

We might consider adding some code in sensors-detect to say we detected something there. That said, the via686a as an i2c chip isn't necessarily very easy to detect. I'll take a look and do what I can.

Do we want to add i2c support to the existing via686a driver? Doesn't seem to be necessary since I can't imagine that the chip would be seen on i2c and not available on isa. Still something to consider is someone doesn't want to use i2c-isa for some reason. Also, since via686a and i2c-viapro are not compatible in Linux 2.6, having a way to access the via686a through i2c-viapro may have an interest.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#1 lore raw

Quoting Mark Studebaker <[email protected]>:

Quoted 5 lines

one problem with adding i2c support to via686a in 2.6 is that it's a PCI module so you'd still have the driver conflict problem.

You'd have to delay PCI module registration, or else do a separate driver.

You're right, but don't we want to solve that conflict anyway? It was working with Linux 2.4, so I can't get why it couldn't work with 2.6. Isn't it as simple as only reserving the region we need instead of registering the device?

Quoted 2 lines

Where is the i2c address for the via686a set?
couldn't find it in the docs.

Correct, that's not in the docs, but I suspect that it is at 0x48. I could verify that with two users (value 0x2d, which was the i2c address for them). On my via686a (unused and not on i2c) the value in register 0x48 is 0x00, so this makes sense.

Strangely however, when accessing the chip through i2c, the value at 0x48 is *not* the same (contrary to winbond Chips for example). It was 0xad for both user reports, if I remember correctly.

I plan to update sensors-detect soon so that it can detect the i2c via686a. That said, it doesn't look like something really easy to detect (no chip nor manufacturer IDs).

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#2 lore raw
In reply to Jean Delvare

one problem with adding i2c support to via686a in 2.6 is that it's a PCI module so you'd still have the driver conflict problem.

You'd have to delay PCI module registration, or else do a separate driver.

Where is the i2c address for the via686a set?
couldn't find it in the docs.

Quoted 18 lines · Jean Delvare

Hi all,

FYI, I just solved the mystery of lm80 being misdetected on systems where the via686a driver is used and works. It happens that the via686a chip can *also* be accessed on the I2C bus. Alex van Kaam just told me about that, he was aware of that for some times already.

We might consider adding some code in sensors-detect to say we detected something there. That said, the via686a as an i2c chip isn't necessarily very easy to detect. I'll take a look and do what I can.

Do we want to add i2c support to the existing via686a driver? Doesn't seem to be necessary since I can't imagine that the chip would be seen on i2c and not available on isa. Still something to consider is someone doesn't want to use i2c-isa for some reason. Also, since via686a and i2c-viapro are not compatible in Linux 2.6, having a way to access the via686a through i2c-viapro may have an interest.