Skip to contentSkip to conversation

Support for SMBus based GMT G781 and G7811 temperature sensors.

lm-sensors Mike Gorchak 3 participants 11 messages Jan 22, 2012 – Jan 23, 2012

lore
Share & tools
lore
#0 lore raw

Hi All,

I've recently found that lm-sensors doesn't have support for Global Mixed-mode Technology Inc. (GMT) G781 and G7811 temperature sensors.

Overview datasheets are available on manufacturer's site:
http://www.gmt.com.tw/ , registers datasheet is available here:
www.datasheetcatalog.org/datasheets2/35/350422_1.pdf

It seems that this device is registers compatible with ADM1032. SMBus manufacturer id 0x47, device ids 0x01 and 0x03.

Thanks!

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#1 lore raw
Quoted 5 lines · Mike Gorchak

Hi All,

I've recently found that lm-sensors doesn't have support for Global Mixed-mode Technology Inc. (GMT) G781 and G7811 temperature sensors.

Quoted 7 lines

Overview datasheets are available on manufacturer's site: http://www.gmt.com.tw
/ , registers datasheet is available here: www.datasheetcatalog.org/datasheets2 /35/350422_1.pdf

It seems that this device is registers compatible with ADM1032. SMBus manufacturer id 0x47, device ids 0x01 and 0x03.

Should be safe to add support to the lm90 driver. Jean, any thoughts/comments ?

I seem to be unable to find a datasheet for G7811, though. We would need that to know its I2C bus address, and for the correct device id (0x03 ?).

Guenter

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#2 lore raw
In reply to Mike Gorchak
Quoted 10 lines · Guenter Roeck
Quoted 9 lines · Mike Gorchak

Hi All,

I've recently found that lm-sensors doesn't have support for Global Mixed-mode Technology Inc. (GMT) G781 and G7811 temperature sensors.

Overview datasheets are available on manufacturer's site: http://www.gmt.com.tw
/ , registers datasheet is available here: www.datasheetcatalog.org/datasheets2 /35/350422_1.pdf

Quoted 8 lines
Quoted 3 lines

It seems that this device is registers compatible with ADM1032. SMBus manufacturer id 0x47, device ids 0x01 and 0x03.

Should be safe to add support to the lm90 driver. Jean, any thoughts/comments ?

I seem to be unable to find a datasheet for G7811, though. We would need that to know its I2C bus address, and for the correct device id (0x03 ?).

Hi Mike,

never mind; no idea if G7811 ever really existed. I found version 1.3 of the datasheet which describes both G781 and G781-1. Can you test the driver and sensors-detect if I send you a pointer to the code ?

Thanks,
Guenter

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#3 lore raw
In reply to Mike Gorchak

Hello, Guenter!

GR> never mind; no idea if G7811 ever really existed. I found version 1.3 GR> of the datasheet which describes both G781 and G781-1. Can you test the GR> driver and sensors-detect if I send you a pointer to the code ?

It seems that this patch is ok, except for one thing.

Let me explain what I did. I added support for ACPI SMBus connected to Embedded Controller to the lm-sensors (for a netbook without proper ACPI support). There are two G781 sensors connected to this bus, one to the address 0x4C and one to the 0x4D. Both sensors have 0x01 as device id. But patch assumes that only G781-1 can be connected to the 0x4D address.

Thanks for the fast answer! :)

With best regards, Mike Gorchak. E-mail: [email protected]

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#4 lore raw
In reply to Mike Gorchak
Quoted 14 lines · Mike Gorchak

Hello, Guenter!

GR> never mind; no idea if G7811 ever really existed. I found version 1.3 GR> of the datasheet which describes both G781 and G781-1. Can you test the GR> driver and sensors-detect if I send you a pointer to the code ?

It seems that this patch is ok, except for one thing.

Let me explain what I did. I added support for ACPI SMBus connected to Embedded Controller to the lm-sensors (for a netbook without proper ACPI support). There are two G781 sensors connected to this bus, one to the address 0x4C and one to the 0x4D. Both sensors have 0x01 as device id. But patch assumes that only G781-1 can be connected to the 0x4D address.

Quoted 4 lines

Thanks for the fast answer! :)

With best regards, Mike Gorchak. E-mail: [email protected]

Hi Mike,

can you send me the output of i2cdump for both chips ?

Thanks,
Guenter

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#5 lore raw
In reply to Mike Gorchak

Hello, Guenter!

GR>>> never mind; no idea if G7811 ever really existed. I found version 1.3 GR>>> of the datasheet which describes both G781 and G781-1. Can you test GR>>> the driver and sensors-detect if I send you a pointer to the code ? ??>>
??>> It seems that this patch is ok, except for one thing.
??>>
??>> Let me explain what I did. I added support for ACPI SMBus connected to ??>> Embedded Controller to the lm-sensors (for a netbook without proper ??>> ACPI support). There are two G781 sensors connected to this bus, one ??>> to the address 0x4C and one to the 0x4D. Both sensors have 0x01 as ??>> device id. But patch assumes that only G781-1 can be connected to the ??>> 0x4D address.
??>>
??>> Thanks for the fast answer! :)
??>>
??>> With best regards, Mike Gorchak. E-mail: [email protected] ??>>
GR> Hi Mike,
GR> can you send me the output of i2cdump for both chips ?

Of course, but output is produced by another utility with similair behavior.

    Found device presence at address 0x4C
          | 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
       ------------------------------------------------------------------------
       00 | 14 23 00 00 04 73 C0 73 C0 00 04 73 C0 73 C0 14 
.#...s.s...s.s..
       10 | 30 00 00 00 00 14 14 14 14 73 14 14 14 14 14 14 
0........s......
       20 | 73 0A 00 14 14 14 14 14 14 14 14 14 14 14 14 14 
s...............
       30 | 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 
................
       40 | 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 
................
       50 | 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 
................
       60 | 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 
................
       70 | 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 
................
       80 | 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 
................
       90 | 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 
................
       A0 | 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 
................
       B0 | 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 
................
       C0 | 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 
................
       D0 | 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 
................
       E0 | 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 
................
       F0 | 14 06 FF 00 FF 00 00 FF 14 14 14 14 14 14 47 01 

..............G.

    Found device presence at address 0x4D
          | 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
       ------------------------------------------------------------------------
       00 | 11 0D 80 00 08 55 00 55 00 00 08 55 00 55 00 11 
.....U.U...U.U..
       10 | D0 00 00 00 00 11 11 11 11 55 11 11 11 11 11 11 
.........U......
       20 | 55 0A 00 11 11 11 11 11 11 11 11 11 11 11 11 11 
U...............
       30 | 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 
................
       40 | 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 
................
       50 | 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 
................
       60 | 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 
................
       70 | 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 
................
       80 | 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 
................
       90 | 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 
................
       A0 | 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 
................
       B0 | 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 
................
       C0 | 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 
................
       D0 | 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 
................
       E0 | 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 
................
       F0 | 11 06 FF 00 FF E0 00 FF 11 11 11 11 11 11 47 01 

..............G.

Thanks!

With best regards, Mike Gorchak. E-mail: [email protected]

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#6 lore raw
In reply to Mike Gorchak

Hello, Guenter!

GR> can you send me the output of i2cdump for both chips ?

Sorry for the previous message, it looks like dump has been clobbered. The same in the attachment.

With best regards, Mike Gorchak. E-mail: [email protected]

Found SMBUS0

    Found Smart Battery Charger at address 0x09
          | 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
       ------------------------------------------------------------------------
       00 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       10 | -- 01 -- 32 -- -- -- -- -- -- -- -- -- -- -- --    -.-2------------
       20 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       30 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       40 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       50 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       60 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       70 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       80 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       90 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       A0 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       B0 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       C0 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       D0 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       E0 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       F0 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
    Found Smart Battery Selector/Manager at address 0x0A
          | 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
       ------------------------------------------------------------------------
       00 | -- 01 11 -- 11 -- -- -- -- -- -- -- -- -- -- --    -..-.-----------
       10 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       20 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       30 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       40 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       50 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       60 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       70 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       80 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       90 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       A0 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       B0 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       C0 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       D0 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       E0 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       F0 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
    Found Smart Battery at address 0x0B
          | 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
       ------------------------------------------------------------------------
       00 | EF 53 0A 01 00 FF -- -- 41 8A 1D 25 0A 63 63 22    .S....--A..%.cc"
       10 | 3E 25 28 FF DC C0 47 2F 3E 30 10 B2 A2 -- -- --    >%(...G/>0...---
       20 | 0A 0B 04 03 -- -- -- -- -- -- -- -- -- -- -- 0D    ....-----------.
       30 | 08 04 -- -- -- -- -- -- -- -- -- -- 00 00 02 C0    ..----------....
       40 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- FF    ---------------.
       50 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       60 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       70 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       80 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       90 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       A0 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       B0 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       C0 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       D0 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       E0 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
       F0 | -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --    ----------------
    Found Sensor Chip at address 0x4C
          | 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
       ------------------------------------------------------------------------
       00 | 14 23 00 00 04 73 C0 73 C0 00 04 73 C0 73 C0 14    .#...s.s...s.s..
       10 | 30 00 00 00 00 14 14 14 14 73 14 14 14 14 14 14    0........s......
       20 | 73 0A 00 14 14 14 14 14 14 14 14 14 14 14 14 14    s...............
       30 | 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14    ................
       40 | 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14    ................
       50 | 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14    ................
       60 | 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14    ................
       70 | 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14    ................
       80 | 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14    ................
       90 | 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14    ................
       A0 | 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14    ................
       B0 | 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14    ................
       C0 | 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14    ................
       D0 | 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14    ................
       E0 | 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14    ................
       F0 | 14 06 FF 00 FF 00 00 FF 14 14 14 14 14 14 47 01    ..............G.
    Found Sensor Chip at address 0x4D
          | 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
       ------------------------------------------------------------------------
       00 | 11 0D 80 00 08 55 00 55 00 00 08 55 00 55 00 11    .....U.U...U.U..
       10 | D0 00 00 00 00 11 11 11 11 55 11 11 11 11 11 11    .........U......
       20 | 55 0A 00 11 11 11 11 11 11 11 11 11 11 11 11 11    U...............
       30 | 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11    ................
       40 | 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11    ................
       50 | 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11    ................
       60 | 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11    ................
       70 | 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11    ................
       80 | 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11    ................
       90 | 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11    ................
       A0 | 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11    ................
       B0 | 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11    ................
       C0 | 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11    ................
       D0 | 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11    ................
       E0 | 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11    ................
       F0 | 11 06 FF 00 FF E0 00 FF 11 11 11 11 11 11 47 01    ..............G.

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#7 lore raw
In reply to Mike Gorchak
Quoted 6 lines · Mike Gorchak

Hello, Guenter!

GR> never mind; no idea if G7811 ever really existed. I found version 1.3 GR> of the datasheet which describes both G781 and G781-1. Can you test the GR> driver and sensors-detect if I send you a pointer to the code ?

Quoted 7 lines

It seems that this patch is ok, except for one thing.

Let me explain what I did. I added support for ACPI SMBus connected to Embedded Controller to the lm-sensors (for a netbook without proper ACPI support). There are two G781 sensors connected to this bus, one to the address 0x4C and one to the 0x4D. Both sensors have 0x01 as device id. But patch assumes that only G781-1 can be connected to the 0x4D address.

If they followed a naming logic similar to National Semiconductor, G781 will have address 0x4C and G781-1 will have address 0x4D. They are basically the exact same chip except for the address, so the driver doesn't even need to know, other than the fact that both addresses 0x4C and 0x4D are possible.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#8 lore raw
In reply to Mike Gorchak

Hello, Jean!

GR>>> never mind; no idea if G7811 ever really existed. I found version 1.3 GR>>> of the datasheet which describes both G781 and G781-1. Can you test GR>>> the driver and sensors-detect if I send you a pointer to the code ? ??>> It seems that this patch is ok, except for one thing.
??>> Let me explain what I did. I added support for ACPI SMBus connected to ??>> Embedded Controller to the lm-sensors (for a netbook without proper ??>> ACPI support). There are two G781 sensors connected to this bus, one ??>> to the address 0x4C and one to the 0x4D. Both sensors have 0x01 as ??>> device id. But patch assumes that only G781-1 can be connected to the ??>> 0x4D address.
JD> If they followed a naming logic similar to National Semiconductor, G781 JD> will have address 0x4C and G781-1 will have address 0x4D. They are JD> basically the exact same chip except for the address, so the driver JD> doesn't even need to know, other than the fact that both addresses 0x4C JD> and 0x4D are possible.

Now driver checks only for 0x03 device id at address 0x4D, which is not correct. 0x01 device id can be present at 0x4D address too. That's all I'd like to say :)

With best regards, Mike Gorchak. E-mail: [email protected]

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#9 lore raw
In reply to Mike Gorchak
Quoted 6 lines · Guenter Roeck
Quoted 5 lines · Mike Gorchak

Hi All,

I've recently found that lm-sensors doesn't have support for Global Mixed-mode Technology Inc. (GMT) G781 and G7811 temperature sensors.

Quoted 8 lines
Quoted 6 lines

Overview datasheets are available on manufacturer's site: http://www.gmt.com.tw
/ , registers datasheet is available here: www.datasheetcatalog.org/datasheets2 /35/350422_1.pdf

It seems that this device is registers compatible with ADM1032. SMBus manufacturer id 0x47, device ids 0x01 and 0x03.

Should be safe to add support to the lm90 driver. Jean, any thoughts/comments ?

Indeed the G781 seems compatible with the other chips supported by the lm90 driver, adding support to that driver sounds good. I'll gladly review any patch.

Quoted 2 lines

I seem to be unable to find a datasheet for G7811, though. We would need that to know its I2C bus address, and for the correct device id (0x03 ?).

GMT have a product sheet for the G7811 so it probably exists:
http://www.gmt.com.tw/product/datasheet/EDS-7811.pdf

Not enough to check for compatibility or write a proper driver though. But its lack of remote sensor means it can't be fully compatible with the ADM1032 anyway. Until we receive a formal support request and get a datasheet (or at the very least a register dump) I think we can just ignore the G7811.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#10 lore raw
In reply to Mike Gorchak
Quoted 18 lines · Mike Gorchak

Hello, Jean!

GR>>> never mind; no idea if G7811 ever really existed. I found version 1.3 GR>>> of the datasheet which describes both G781 and G781-1. Can you test GR>>> the driver and sensors-detect if I send you a pointer to the code ? ??>> It seems that this patch is ok, except for one thing.
??>> Let me explain what I did. I added support for ACPI SMBus connected to ??>> Embedded Controller to the lm-sensors (for a netbook without proper ??>> ACPI support). There are two G781 sensors connected to this bus, one ??>> to the address 0x4C and one to the 0x4D. Both sensors have 0x01 as ??>> device id. But patch assumes that only G781-1 can be connected to the ??>> 0x4D address.
JD> If they followed a naming logic similar to National Semiconductor, G781 JD> will have address 0x4C and G781-1 will have address 0x4D. They are JD> basically the exact same chip except for the address, so the driver JD> doesn't even need to know, other than the fact that both addresses 0x4C JD> and 0x4D are possible.

Quoted 3 lines

Now driver checks only for 0x03 device id at address 0x4D, which is not correct. 0x01 device id can be present at 0x4D address too. That's all I'd like to say :)

Yes, yes, I agree and I'm sure Guenter does as well. Just give me a moment to review his two patches, and then wait for him to wake up, get dressed, have coffee or whatever, and resubmit ;)

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors