Skip to contentSkip to conversation

asm58 (Mozart-2) driver for 2.6.30

lm-sensors Michael Loßin 3 participants 4 messages Jun 28, 2009 – Jul 3, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello everyone,

I understand since there is no datasheet available for the asm58 (Mozart-2) chip, it won't be officially supported by lm-sensors.

Anyway, I ported the old driver by Rigel Freden found at

http://lists.lm-sensors.org/pipermail/lm-sensors/2006-March/015735.html

to the 2.6.30 kernel. So if anyone wants to get this chip working, just apply the attached kernel patch and update sensors3.conf with the asm58 section.

This is a "works-for-me" patch, but I'd be interested in any adjustments or fixes that need to be done.

Regards,

Michael

Documentation/hwmon/asm58 +42 -0
diff -urN linux-2.6.30/Documentation/hwmon/asm58 linux-2.6.30-asm58/Documentation/hwmon/asm58
@@ -0,0 +1,42 @@
+Kernel driver asm58
+===================
+
+Supported Chips:
+* Asus ASM58 Mozart-2
+* Asus AS2K129R Mozart-2
+* Asus ??? Mozart-2
+  All three seem to be the same save for exterior markings
+  Prefix: 'asm58'
+  Addresses scanned: I2C 0x77
+  Datasheet: not available
+
+
+Description
+-----------
+
+This chip is discontinued and unsupported by the manufacturer. The driver was
+developed with xmbmon205 source as a reference.  It is found on
+the following Asus mainboards:
+ P4B533-VM
+ P4S333 (in conjunction with another asus chip?)
+ P4S333-VM
+ Terminator P4
+
+Registers:
+temp:
+temp1: 0x27
+temp2: 0x13
+fan:
+fan 1:  0x28,  divisor on register 0xA1 (bits 4-5)
+fan 2: 0x29,  divisor on register 0xA1 (bits 6-7)
+voltage:
+in0=r(0x20)
+in1=r(0x22)
+in2=r(0x23)
+in3=r(0x24)
+config, or bank register at 0x40
+
+notes:
+ * there is another undocumented asus chip at i2c 0x77 on a different board
+ * there is reason to believe this chip implements a watchdog and perhaps other
+   features, probably fan control among them
drivers/hwmon/Kconfig +10 -0
diff -urN linux-2.6.30/drivers/hwmon/Kconfig linux-2.6.30-asm58/drivers/hwmon/Kconfig
@@ -260,6 +260,16 @@
 	  This driver can also be built as a module. If so, the module
 	  will be called asus_atk0110.
 
+config SENSORS_ASM58
+        tristate "Asus Mozart-2"
+        depends on HWMON && I2C && EXPERIMENTAL
+        help
+          If you say yes here you get support for the ASM58 Mozart-2 sensor
+          chip found on some Asus mainboards.
+
+          This driver can also be built as a module.  If so, the module
+          will be called asm58.
+
 config SENSORS_ATXP1
 	tristate "Attansic ATXP1 VID controller"
 	depends on I2C && EXPERIMENTAL
drivers/hwmon/Makefile +1 -0
diff -urN linux-2.6.30/drivers/hwmon/Makefile linux-2.6.30-asm58/drivers/hwmon/Makefile
@@ -24,6 +24,7 @@
 obj-$(CONFIG_SENSORS_ADM1029)	+= adm1029.o
 obj-$(CONFIG_SENSORS_ADM1031)	+= adm1031.o
 obj-$(CONFIG_SENSORS_ADM9240)	+= adm9240.o
+obj-$(CONFIG_SENSORS_ASM58)	+= asm58.o
 obj-$(CONFIG_SENSORS_ADS7828)	+= ads7828.o
 obj-$(CONFIG_SENSORS_ADT7462)	+= adt7462.o
 obj-$(CONFIG_SENSORS_ADT7470)	+= adt7470.o
drivers/hwmon/asm58.c +387 -0

387 lines not on this page · raw message

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

#1 lore raw

Abend Michael,

Quoted 8 lines · Michael Loßin

Hello everyone,

I understand since there is no datasheet available for the asm58 (Mozart-2) chip,
it won't be officially supported by lm-sensors.

Anyway, I ported the old driver by Rigel Freden found at

Quoted 8 lines

http://lists.lm-sensors.org/pipermail/lm-sensors/2006-March/015735.html

to the 2.6.30 kernel. So if anyone wants to get this chip working, just apply the attached kernel patch and update sensors3.conf with the asm58 section.

This is a "works-for-me" patch, but I'd be interested in any adjustments or fixes that need to be done.

I've added a link on the wiki, but that's about all I can offer.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#2 lore raw
In reply to Michael Loßin
Quoted 8 lines · Michael Loßin

Hello everyone,

I understand since there is no datasheet available for the asm58 (Mozart-2) chip,
it won't be officially supported by lm-sensors.

Anyway, I ported the old driver by Rigel Freden found at

Quoted 9 lines

http://lists.lm-sensors.org/pipermail/lm-sensors/2006-March/015735.html

to the 2.6.30 kernel. So if anyone wants to get this chip working, just apply the attached kernel patch and update sensors3.conf with the asm58 section.

This is a "works-for-me" patch, but I'd be interested in any adjustments or fixes that need to be done.

Hi,

Are you interested in maintaining this driver as part of the mainline kernel?

The fact that there is no datasheet does not mean the driver cannot go into the mainline, it just means that it is hard to write a driver. Since that part is already done, it can go in to the mainline if someone is willing to actively maintain it (as needed, will probably not be a lot of work).

If you're interested in this I'll do a full review of the driver and get back to you on this.

Regards,

Hans

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

#3 lore raw
In reply to Michael Loßin

Am 03.07.2009, 09:07 Uhr schrieb Hans de Goede <[email protected]>:

Quoted 2 lines

Are you interested in maintaining this driver as part of the mainline kernel?

Hello Hans,

I'd like to see this driver in mainline kernel, but I don't know if I'm able to properly maintain it. My hardware resources regarding asm58 are limited (read: one motherboard available, and who knows how long it will stay alive...)

Also, I haven't been an active part of linux development yet, so I guess I'll have to dig through the kernel docs first, just to see what's supposed to be done.

The patch requires some cleanup as well, I'm sure.

Michael

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