On 07/07/2014 15:03, Charles Lepple wrote:
Giuseppe Corbelli <giuseppe.corbelli <at> copanitalia.com> writes:
Nevermind, please try the one attached, just created by
git diff -p 80d9534 configure.ac data/driver.list.in drivers/Makefile.am
drivers/asem.c > asem.patch
Just applied it on current master (80d9534a133da170cade150700407920450a9753)
and seems ok.
Sorry I did not test this sooner - this went to Gmane but not to my email.
If you have time, could you please write up a quick man page for this driver?
Saw you merged in master the code and the man page I should have written.
Here's a small patch, adds some useful info to the man page and (most
important, of course) my name to the AUTHORS file.
--
Giuseppe Corbelli
WASP Software Engineer, Copan Italia S.p.A
Phone: +390303666318 Fax: +390302659932
E-mail: [email protected]
diff --git a/AUTHORS b/AUTHORS
index 320efbe..c179b0c 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -170,3 +170,7 @@ D: pwmib support for snmp-ups
N: Kjell Claesson
E: [email protected]
D: Author of bcmxcp driver, 3-phase work.
+
+N: Giuseppe Corbelli
+E: [email protected]
+D: Author of asem driver
diff --git a/docs/man/asem.txt b/docs/man/asem.txt
index 9374835..331930e 100644
--- a/docs/man/asem.txt
+++ b/docs/man/asem.txt
@@ -13,7 +13,15 @@ linkman:nutupsdrv[8].
SUPPORTED HARDWARE
------------------
-The *asem* driver supports the UPS in ASEM PB1300 embedded PCs.
+The *asem* driver supports the UPS in ASEM PB1300 embedded PCs. Likely other
+I2C devices from the same manufacturer will work too, since this is a "custom"
+charger.
+
+Seems that there are are 2 versions of the charger. Older one is based on
+Max1667, newer one is a custom solution. Both are on I2C address 0x09.
+To be compatible with both versions the driver just reads bit 15 of address
+0x13 which yields online/on battery status.
+Battery monitor is a BQ2060 at address 0x0B.
EXTRA ARGUMENTS
---------------
@@ -30,6 +38,11 @@ INSTALLATION
This driver is specific to the Linux i2c API, and requires the lm_sensors
libi2c-dev or its equivalent to compile.
+Beware that the SystemIO memory used by the i2c controller is reserved by ACPI.
+If only a native I2C driver (i.e i2c_i801 as of of 3.5.X Linux kernels) is
+available then you'll need to relax ACPI resources check. For example you can
+boot with acpi_enforce_resources=lax option.
+
//////////////////////////////////////////
Optional: use DIAGNOSTICS to describe troubleshooting techniques that are
longer than what can be conveniently described in the driver error messages.
@@ -58,5 +71,6 @@ linkman:nutupsdrv[8]
Internet resources:
~~~~~~~~~~~~~~~~~~~
PB1300 specifications: http://www.asem.it/en/products/industrial-automation/box-pcs/performance/pb1300/
+BQ2060 datasheet: http://www.ti.com/lit/ds/symlink/bq2060.pdf
The NUT (Network UPS Tools) home page: http://www.networkupstools.org/
_______________________________________________
Nut-upsdev mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsdev