All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] hwmon and GPIO fan
@ 2010-10-11 14:25 Simon Guinot
  2010-10-11 14:45 ` Jean Delvare
  2010-10-12  8:05 ` Simon Guinot
  0 siblings, 2 replies; 3+ messages in thread
From: Simon Guinot @ 2010-10-11 14:25 UTC (permalink / raw)
  To: lm-sensors


[-- Attachment #1.1: Type: text/plain, Size: 515 bytes --]

Hello,

I am currently looking to add hwmon support for the fan device found on
Network Space Max v2 boards (ARM Kirkwood SoC).

The fan speed can be configured trough GPIOs. The GPIO settings allow to
change the fan input voltage (via some resistors).
After a quick look at the hwmon sysfs interface, I have failed to find
the appropriate way to expose a non-pwm fan. If any, what is the
dedicated sysfs entry to set speed for a non-pwm fan ?
Maybe that a fake pwm interface is needed ?

Thanks in advance.

Simon

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 153 bytes --]

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [lm-sensors] hwmon and GPIO fan
  2010-10-11 14:25 [lm-sensors] hwmon and GPIO fan Simon Guinot
@ 2010-10-11 14:45 ` Jean Delvare
  2010-10-12  8:05 ` Simon Guinot
  1 sibling, 0 replies; 3+ messages in thread
From: Jean Delvare @ 2010-10-11 14:45 UTC (permalink / raw)
  To: lm-sensors

Salut Simon,

On Mon, 11 Oct 2010 14:25:58 +0000, Simon Guinot wrote:
> I am currently looking to add hwmon support for the fan device found on
> Network Space Max v2 boards (ARM Kirkwood SoC).
> 
> The fan speed can be configured trough GPIOs. The GPIO settings allow to
> change the fan input voltage (via some resistors).
> After a quick look at the hwmon sysfs interface, I have failed to find
> the appropriate way to expose a non-pwm fan. If any, what is the
> dedicated sysfs entry to set speed for a non-pwm fan ?
> Maybe that a fake pwm interface is needed ?

Don't let yourself be fooled by the "pwm[1-n]" and "pwm[1_n]_enable"
files names. These are valid for all fan control outputs, be they PWM
or DC. As a matter of fact, "pwm[1-n]_mode" lets you advertise whether
the controller is using PWM or DC.

All that really matters is that you use 0-255 as the pwm[1-n] range
matching 0-100%.

-- 
Jean Delvare

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [lm-sensors] hwmon and GPIO fan
  2010-10-11 14:25 [lm-sensors] hwmon and GPIO fan Simon Guinot
  2010-10-11 14:45 ` Jean Delvare
@ 2010-10-12  8:05 ` Simon Guinot
  1 sibling, 0 replies; 3+ messages in thread
From: Simon Guinot @ 2010-10-12  8:05 UTC (permalink / raw)
  To: lm-sensors


[-- Attachment #1.1: Type: text/plain, Size: 1046 bytes --]

On Mon, Oct 11, 2010 at 04:45:32PM +0200, Jean Delvare wrote:
> Salut Simon,
> 
> On Mon, 11 Oct 2010 14:25:58 +0000, Simon Guinot wrote:
> > I am currently looking to add hwmon support for the fan device found on
> > Network Space Max v2 boards (ARM Kirkwood SoC).
> > 
> > The fan speed can be configured trough GPIOs. The GPIO settings allow to
> > change the fan input voltage (via some resistors).
> > After a quick look at the hwmon sysfs interface, I have failed to find
> > the appropriate way to expose a non-pwm fan. If any, what is the
> > dedicated sysfs entry to set speed for a non-pwm fan ?
> > Maybe that a fake pwm interface is needed ?
> 
> Don't let yourself be fooled by the "pwm[1-n]" and "pwm[1_n]_enable"
> files names. These are valid for all fan control outputs, be they PWM
> or DC. As a matter of fact, "pwm[1-n]_mode" lets you advertise whether
> the controller is using PWM or DC.
> 
> All that really matters is that you use 0-255 as the pwm[1-n] range
> matching 0-100%.

Thank you.

Simon

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 153 bytes --]

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-10-12  8:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-11 14:25 [lm-sensors] hwmon and GPIO fan Simon Guinot
2010-10-11 14:45 ` Jean Delvare
2010-10-12  8:05 ` Simon Guinot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.