[PATCH 4/5] hwmon: DNS323 rev C1 fan support
Simon Guinot
simon at sequanux.org
Wed Oct 13 07:59:51 EDT 2010
Hi Benjamin,
What is the status for the DNS323 fan support ?
Have this patch been merged yet ?
I am currently looking to add hwmon support for the GPIO fan found
on Network Space Max v2 boards. Obviously, some attributes are shared
with the DNS323 fan. Maybe there is some room for a generic GPIO fan
driver ?
Platform data could provide the board specific GPIO pinout and a speed
conversion array (rpm from/to GPIO value). Here is a proposal for this
platform data interface:
struct gpio_fan {
const char *name;
unsigned gpio;
unsigned active_low;
};
struct gpio_fan_speed {
int value;
int rpm;
};
struct gpio_fan_platform_data {
struct gpio_fan *alarm; /* fan alarm GPIO. */
struct gpio_fan *ctrl; /* fan control GPIOs. */
int num_ctrl;
/*
* Speed conversion array: rpm from/to GPIO bit field.
* This array _must_ be sorted in ascending rpm order.
*/
struct gpio_fan_speed *speed;
int num_speed;
};
Based on this informations the GPIO fan driver could perform the
speed conversions (pwm, rpm, GPIO value) and then provide a hwmon
interface.
Thanks for advice.
Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20101013/4327f1b5/attachment.sig>
More information about the linux-arm-kernel
mailing list