Skip to contentSkip to conversation

Preparing patches for pca9552, ad5259, and bq27350

lm-sensors Matthew Bosworth 3 participants 6 messages Feb 18, 2008 – Feb 19, 2008

lore
Share & tools
lore
#0 lore raw

Hi everyone,

I've developed some i2c chip drivers that I'd like to contribute.
They're working in our environment (Atmel at91 (ARM) eval board), and I'm currently checking them against the kernel coding standards.

Specifically, the chips are :

Phillips PCA9552 16-bit I2C-bus LED driver with programmable blink rates Analog Devices AD5259 Nonvolatile, I2C-Compatible 256-Position, Digital Potentiometer
TI BQ27350 Single Cell Li-Ion Battery Manager With Impedance Track Fuel Gauge Technology

Feel free to put my name on the 'New Drivers' page, so no one else needs to start on them.

I have one question that I couldn't find in the docs anywhere. When I provide a patch, what kernel revision / git repository should I be
patching against? I've been working in a Timesys 2.6.22.9 kernel but
I'm happy to merge them with another repo and create patches from there.

Thanks!
-Matt Bosworth
matt at codetastic dot com

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

#1 lore raw

Hi Matthew,

Quoted 14 lines · Matthew Bosworth

Hi everyone,

I've developed some i2c chip drivers that I'd like to contribute.
They're working in our environment (Atmel at91 (ARM) eval board), and I'm currently checking them against the kernel coding standards.

Specifically, the chips are :

Phillips PCA9552 16-bit I2C-bus LED driver with programmable blink rates Analog Devices AD5259 Nonvolatile, I2C-Compatible 256-Position, Digital Potentiometer
TI BQ27350 Single Cell Li-Ion Battery Manager With Impedance Track Fuel Gauge Technology

Quoted 7 lines

Feel free to put my name on the 'New Drivers' page, so no one else needs to start on them.

I have one question that I couldn't find in the docs anywhere. When I provide a patch, what kernel revision / git repository should I be
patching against? I've been working in a Timesys 2.6.22.9 kernel but
I'm happy to merge them with another repo and create patches from there.

These devices do not seem to have anything to do with hardware monitoring, do they? If not, you're using the wrong mailing list, try the i2c list instead.

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 Matthew Bosworth

Hi Jean,

The BQ27350 is a battery monitor for Li-ion batteries, does that
count? I'll send mail to the i2c list about the other two.

Thanks!
-Matt

Quoted 30 lines · Jean Delvare

Hi Matthew,

Quoted 19 lines · Matthew Bosworth

Hi everyone,

I've developed some i2c chip drivers that I'd like to contribute.
They're working in our environment (Atmel at91 (ARM) eval board), and
I'm currently checking them against the kernel coding standards.

Specifically, the chips are :

Phillips PCA9552 16-bit I2C-bus LED driver with programmable blink rates
Analog Devices AD5259 Nonvolatile, I2C-Compatible 256-Position, Digital Potentiometer
TI BQ27350 Single Cell Li-Ion Battery Manager With Impedance Track Fuel Gauge Technology

Feel free to put my name on the 'New Drivers' page, so no one else needs to start on them.

Quoted 7 lines

I have one question that I couldn't find in the docs anywhere. When I
provide a patch, what kernel revision / git repository should I be
patching against? I've been working in a Timesys 2.6.22.9 kernel
but
I'm happy to merge them with another repo and create patches from there.

Quoted 12 lines

These devices do not seem to have anything to do with hardware monitoring, do they? If not, you're using the wrong mailing list, try the i2c list instead.

Signature · 6 lines
Jean Delvare

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

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

#3 lore raw
In reply to Matthew Bosworth

Hi Matthew,

Quoted 2 lines · Matthew Bosworth

The BQ27350 is a battery monitor for Li-ion batteries, does that
count? I'll send mail to the i2c list about the other two.

Does it implement any part of the standard hwmon interface? If not, then it can't be considered a hwmon driver. FWIW, we do not have any battery monitor driver in drivers/hwmon yet, and I am under the impression that your driver would rather belong to drivers/power.

Signature · 6 lines
Jean Delvare

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

There are several monitoring chips that monitor the CMOS battery voltage. That's similar...

Phil P.

Signature · 3 lines
Philip Pokorny, RHCE
Director of Field Engineering 
Penguin Computing  http://www.penguincomputing.com

-----Original Message-----
From: Jean Delvare [mailto:[email protected]]
Sent: Monday, February 18, 2008 01:43 PM Pacific Standard Time
To: Matthew Bosworth
Cc: [email protected]
Subject: Re: [lm-sensors] Preparing patches for pca9552, ad5259, and bq27350

Hi Matthew,

Quoted 2 lines · Matthew Bosworth

The BQ27350 is a battery monitor for Li-ion batteries, does that
count? I'll send mail to the i2c list about the other two.

Does it implement any part of the standard hwmon interface? If not, then it can't be considered a hwmon driver. FWIW, we do not have any battery monitor driver in drivers/hwmon yet, and I am under the impression that your driver would rather belong to drivers/power.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#5 lore raw
In reply to Matthew Bosworth
Quoted 2 lines · Philip Pokorny

There are several monitoring chips that monitor the CMOS battery voltage. That's similar...

While I agree that battery monitoring drivers and hardware monitoring drivers have some features in common (in particular measuring an input voltage) I still believe that having separate subsystems for these, with different sysfs interfaces, makes sense. The user needs are different. The CMOS battery monitoring is only there to tell you when you should change the battery. A "real" battery monitor OTOH will tell you a lot more information on the battery, how much energy there is left inside, how much time you have before the power runs out, how old the battery is, how hot it is, etc. Using the hwmon standard sysfs interface for this would probably put restrictions on what can be done. This doesn't mean though that battery drivers can't additionally export their sensor values as standard, read-only hwmon sysfs values (maybe even using common code for all battery drivers) but I don't think that this should be their primary interface.

Anyway, I didn't look deep enough into the power subsystem to make myself a definitive opinion, so the above is really only a first thought. I might be wrong.

Signature · 6 lines
Jean Delvare

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