All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: Arnaud Ebalard <arno@natisbad.org>
Cc: Jean Delvare <khali@linux-fr.org>,
	Grant Likely <grant.likely@secretlab.ca>,
	Rob Herring <rob.herring@calxeda.com>,
	lm-sensors@lm-sensors.org, devicetree-discuss@lists.ozlabs.org,
	Rob Landley <rob@landley.net>,
	linux-doc@vger.kernel.org,
	Linux ARM Kernel Mailing List
	<linux-arm-kernel@lists.infradead.org>,
	Russell King - ARM Linux <linux@arm.linux.org.uk>,
	Andrew Lunn <andrew@lunn.ch>, Jason Cooper <jason@lakedaemon.net>,
	Simon Guinot <simon.guinot@sequanux.org>,
	Olivier Mouchet <olivier.mouchet@gmail.com>
Subject: Re: [lm-sensors] [PATCHv1 2/3] hwmon: Add documentation for g762 driver
Date: Wed, 24 Apr 2013 17:32:16 +0000	[thread overview]
Message-ID: <20130424173216.GA1073@roeck-us.net> (raw)
In-Reply-To: <24acd174f829d211f5d4c1b8631ffc3f8dd97910.1366753420.git.arno@natisbad.org>

On Wed, Apr 24, 2013 at 12:06:08AM +0200, Arnaud Ebalard wrote:
> 
> Signed-off-by: Arnaud Ebalard <arno@natisbad.org>
> ---
>  Documentation/hwmon/g762 |   67 ++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 67 insertions(+)
>  create mode 100644 Documentation/hwmon/g762
> 
> diff --git a/Documentation/hwmon/g762 b/Documentation/hwmon/g762
> new file mode 100644
> index 0000000..5015829
> --- /dev/null
> +++ b/Documentation/hwmon/g762
> @@ -0,0 +1,67 @@
> +Kernel driver g762
> +=========
> +
> +This documentation is based on G760a one, GMT G762 datasheet available

G760a ? If this refers to Documentation/hwmon/g760a, I think it is just
confusing.

> +at http://natisbad.org/NAS/ref/GMT_EDS-762_763-080710-0.2.pdf (used
> +for the development of the driver) and sysfs bindings described in

I would hope that you used the data sheet for the driver ;), but that
information does not add much if any value here. I would suggest
to drop it. Just point to the data sheet.

> +Documentation/hwmon/sysfs-interface.
> +
> +The GMT G762 Fan Speed PWM Controller is connected directly to a fan
> +and performs closed-loop or open-loop control of the fan speed. Two
> +modes - PWM or linear - are supported by the device.
> +
> +The following entries are available to the user in a subdirectory of
> +/sys/bus/i2c/drivers/g762/ to control the operation of the device.
> +This can be done manually using the following entries but is usually
> +done via a userland daemon like fancontrol.
> +
> +Note that those entries do not provide ways to setup the specific
> +hardware characteristics of the system (reference clock, pulses per
> +fan revolution, ...); Those can be modified via devicetree bindings
> +documented in Documentation/devicetree/bindings/hwmon/g762.txt.
> +
> +
> +  fan1_target: set desired fan speed. This only makes sense in closed-loop
> +            fan speed control (i.e. when pwm1_enable is set to 2).
> +
> +  fan1_input: provide current fan rotation value in RPM as reported by
> +            the fan to the device.
> +
> +  fan1_div: fan clock divisor. Supported value are 1, 2, 4 and 8. Default
> +            value is 1.
> +
> +  fan1_gear_mode: fan gear mode. Supported values are 0, 1 and 2. Default
> +            value is 0. The value is a characteristic of the system
> +            and a higher value can be set for more precisely control
> +            fans with a high rotation speed. Note that this affects the
> +            measurable speed range, not the read value.
> +
This attribute no longer exists.

> +  fan1_fault: reports fan failure, i.e. no transition on fan gear pin for
> +            about 0.7s (if the fan is not voluntarily set off).
> +
> +  fan1_alarm: in closed-loop control mode, if fan RPM value is 25% out
> +            of the programmed value for over 6 seconds 'fan1_alarm' is
> +            set to 1.
> +
> +  pwm1: get or set PWM fan control value. This is an integer value
> +            between 0 and 255. 0 stops the fan, 255 makes it run at
> +            full speed.
> +
> +  pwm1_enable: set current fan speed control mode i.e. 1 for manual fan
> +            speed control (open-loop), 2 for automatic fan speed control
> +            (closed-loop).
> +
> +  pwm1_mode: set or get fan driving mode: 1 for PWM mode, 0 for linear
> +            mode. Default is linear mode.
> +
> +
> +In PWM mode ('pwm1_mode' set to 1), the fan speed is programmed either by
> +setting a value between 0 and 255 via 'pwm1' entry (0 stops the fan, 255
> +makes it run at full speed). This can also be done by passing the
> +expected RPM value via 'fan1_target'. Current fan speed value can be
> +retrieved via 'fan1_input'. This fan speed value is computed based on
> +the parameters associated with the physical characteristics of the
> +system: a reference clock source frequency, a number of pulses per fan
> +revolution, etc.
> +
> +Note that the driver will update its values at most once per second.
> -- 
> 1.7.10.4
> 
> 

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

WARNING: multiple messages have this Message-ID (diff)
From: linux@roeck-us.net (Guenter Roeck)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCHv1 2/3] hwmon: Add documentation for g762 driver
Date: Wed, 24 Apr 2013 10:32:16 -0700	[thread overview]
Message-ID: <20130424173216.GA1073@roeck-us.net> (raw)
In-Reply-To: <24acd174f829d211f5d4c1b8631ffc3f8dd97910.1366753420.git.arno@natisbad.org>

On Wed, Apr 24, 2013 at 12:06:08AM +0200, Arnaud Ebalard wrote:
> 
> Signed-off-by: Arnaud Ebalard <arno@natisbad.org>
> ---
>  Documentation/hwmon/g762 |   67 ++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 67 insertions(+)
>  create mode 100644 Documentation/hwmon/g762
> 
> diff --git a/Documentation/hwmon/g762 b/Documentation/hwmon/g762
> new file mode 100644
> index 0000000..5015829
> --- /dev/null
> +++ b/Documentation/hwmon/g762
> @@ -0,0 +1,67 @@
> +Kernel driver g762
> +==================
> +
> +This documentation is based on G760a one, GMT G762 datasheet available

G760a ? If this refers to Documentation/hwmon/g760a, I think it is just
confusing.

> +at http://natisbad.org/NAS/ref/GMT_EDS-762_763-080710-0.2.pdf (used
> +for the development of the driver) and sysfs bindings described in

I would hope that you used the data sheet for the driver ;), but that
information does not add much if any value here. I would suggest
to drop it. Just point to the data sheet.

> +Documentation/hwmon/sysfs-interface.
> +
> +The GMT G762 Fan Speed PWM Controller is connected directly to a fan
> +and performs closed-loop or open-loop control of the fan speed. Two
> +modes - PWM or linear - are supported by the device.
> +
> +The following entries are available to the user in a subdirectory of
> +/sys/bus/i2c/drivers/g762/ to control the operation of the device.
> +This can be done manually using the following entries but is usually
> +done via a userland daemon like fancontrol.
> +
> +Note that those entries do not provide ways to setup the specific
> +hardware characteristics of the system (reference clock, pulses per
> +fan revolution, ...); Those can be modified via devicetree bindings
> +documented in Documentation/devicetree/bindings/hwmon/g762.txt.
> +
> +
> +  fan1_target: set desired fan speed. This only makes sense in closed-loop
> +            fan speed control (i.e. when pwm1_enable is set to 2).
> +
> +  fan1_input: provide current fan rotation value in RPM as reported by
> +            the fan to the device.
> +
> +  fan1_div: fan clock divisor. Supported value are 1, 2, 4 and 8. Default
> +            value is 1.
> +
> +  fan1_gear_mode: fan gear mode. Supported values are 0, 1 and 2. Default
> +            value is 0. The value is a characteristic of the system
> +            and a higher value can be set for more precisely control
> +            fans with a high rotation speed. Note that this affects the
> +            measurable speed range, not the read value.
> +
This attribute no longer exists.

> +  fan1_fault: reports fan failure, i.e. no transition on fan gear pin for
> +            about 0.7s (if the fan is not voluntarily set off).
> +
> +  fan1_alarm: in closed-loop control mode, if fan RPM value is 25% out
> +            of the programmed value for over 6 seconds 'fan1_alarm' is
> +            set to 1.
> +
> +  pwm1: get or set PWM fan control value. This is an integer value
> +            between 0 and 255. 0 stops the fan, 255 makes it run at
> +            full speed.
> +
> +  pwm1_enable: set current fan speed control mode i.e. 1 for manual fan
> +            speed control (open-loop), 2 for automatic fan speed control
> +            (closed-loop).
> +
> +  pwm1_mode: set or get fan driving mode: 1 for PWM mode, 0 for linear
> +            mode. Default is linear mode.
> +
> +
> +In PWM mode ('pwm1_mode' set to 1), the fan speed is programmed either by
> +setting a value between 0 and 255 via 'pwm1' entry (0 stops the fan, 255
> +makes it run at full speed). This can also be done by passing the
> +expected RPM value via 'fan1_target'. Current fan speed value can be
> +retrieved via 'fan1_input'. This fan speed value is computed based on
> +the parameters associated with the physical characteristics of the
> +system: a reference clock source frequency, a number of pulses per fan
> +revolution, etc.
> +
> +Note that the driver will update its values at most once per second.
> -- 
> 1.7.10.4
> 
> 

WARNING: multiple messages have this Message-ID (diff)
From: Guenter Roeck <linux@roeck-us.net>
To: Arnaud Ebalard <arno@natisbad.org>
Cc: Jean Delvare <khali@linux-fr.org>,
	Grant Likely <grant.likely@secretlab.ca>,
	Rob Herring <rob.herring@calxeda.com>,
	lm-sensors@lm-sensors.org, devicetree-discuss@lists.ozlabs.org,
	Rob Landley <rob@landley.net>,
	linux-doc@vger.kernel.org,
	Linux ARM Kernel Mailing List
	<linux-arm-kernel@lists.infradead.org>,
	Russell King - ARM Linux <linux@arm.linux.org.uk>,
	Andrew Lunn <andrew@lunn.ch>, Jason Cooper <jason@lakedaemon.net>,
	Simon Guinot <simon.guinot@sequanux.org>,
	Olivier Mouchet <olivier.mouchet@gmail.com>
Subject: Re: [PATCHv1 2/3] hwmon: Add documentation for g762 driver
Date: Wed, 24 Apr 2013 10:32:16 -0700	[thread overview]
Message-ID: <20130424173216.GA1073@roeck-us.net> (raw)
In-Reply-To: <24acd174f829d211f5d4c1b8631ffc3f8dd97910.1366753420.git.arno@natisbad.org>

On Wed, Apr 24, 2013 at 12:06:08AM +0200, Arnaud Ebalard wrote:
> 
> Signed-off-by: Arnaud Ebalard <arno@natisbad.org>
> ---
>  Documentation/hwmon/g762 |   67 ++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 67 insertions(+)
>  create mode 100644 Documentation/hwmon/g762
> 
> diff --git a/Documentation/hwmon/g762 b/Documentation/hwmon/g762
> new file mode 100644
> index 0000000..5015829
> --- /dev/null
> +++ b/Documentation/hwmon/g762
> @@ -0,0 +1,67 @@
> +Kernel driver g762
> +==================
> +
> +This documentation is based on G760a one, GMT G762 datasheet available

G760a ? If this refers to Documentation/hwmon/g760a, I think it is just
confusing.

> +at http://natisbad.org/NAS/ref/GMT_EDS-762_763-080710-0.2.pdf (used
> +for the development of the driver) and sysfs bindings described in

I would hope that you used the data sheet for the driver ;), but that
information does not add much if any value here. I would suggest
to drop it. Just point to the data sheet.

> +Documentation/hwmon/sysfs-interface.
> +
> +The GMT G762 Fan Speed PWM Controller is connected directly to a fan
> +and performs closed-loop or open-loop control of the fan speed. Two
> +modes - PWM or linear - are supported by the device.
> +
> +The following entries are available to the user in a subdirectory of
> +/sys/bus/i2c/drivers/g762/ to control the operation of the device.
> +This can be done manually using the following entries but is usually
> +done via a userland daemon like fancontrol.
> +
> +Note that those entries do not provide ways to setup the specific
> +hardware characteristics of the system (reference clock, pulses per
> +fan revolution, ...); Those can be modified via devicetree bindings
> +documented in Documentation/devicetree/bindings/hwmon/g762.txt.
> +
> +
> +  fan1_target: set desired fan speed. This only makes sense in closed-loop
> +            fan speed control (i.e. when pwm1_enable is set to 2).
> +
> +  fan1_input: provide current fan rotation value in RPM as reported by
> +            the fan to the device.
> +
> +  fan1_div: fan clock divisor. Supported value are 1, 2, 4 and 8. Default
> +            value is 1.
> +
> +  fan1_gear_mode: fan gear mode. Supported values are 0, 1 and 2. Default
> +            value is 0. The value is a characteristic of the system
> +            and a higher value can be set for more precisely control
> +            fans with a high rotation speed. Note that this affects the
> +            measurable speed range, not the read value.
> +
This attribute no longer exists.

> +  fan1_fault: reports fan failure, i.e. no transition on fan gear pin for
> +            about 0.7s (if the fan is not voluntarily set off).
> +
> +  fan1_alarm: in closed-loop control mode, if fan RPM value is 25% out
> +            of the programmed value for over 6 seconds 'fan1_alarm' is
> +            set to 1.
> +
> +  pwm1: get or set PWM fan control value. This is an integer value
> +            between 0 and 255. 0 stops the fan, 255 makes it run at
> +            full speed.
> +
> +  pwm1_enable: set current fan speed control mode i.e. 1 for manual fan
> +            speed control (open-loop), 2 for automatic fan speed control
> +            (closed-loop).
> +
> +  pwm1_mode: set or get fan driving mode: 1 for PWM mode, 0 for linear
> +            mode. Default is linear mode.
> +
> +
> +In PWM mode ('pwm1_mode' set to 1), the fan speed is programmed either by
> +setting a value between 0 and 255 via 'pwm1' entry (0 stops the fan, 255
> +makes it run at full speed). This can also be done by passing the
> +expected RPM value via 'fan1_target'. Current fan speed value can be
> +retrieved via 'fan1_input'. This fan speed value is computed based on
> +the parameters associated with the physical characteristics of the
> +system: a reference clock source frequency, a number of pulses per fan
> +revolution, etc.
> +
> +Note that the driver will update its values at most once per second.
> -- 
> 1.7.10.4
> 
> 

  reply	other threads:[~2013-04-24 17:32 UTC|newest]

Thread overview: 102+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-18 22:27 [lm-sensors] [RFC, PATCHv0 0/3] Add support for GMT G762/G763 PWM fan controller Arnaud Ebalard
2013-04-18 22:27 ` [RFC,PATCHv0 " Arnaud Ebalard
2013-04-18 22:27 ` Arnaud Ebalard
2013-04-18 22:28 ` [lm-sensors] [PATCH 1/3] Add support for GMT G72/G763 " Arnaud Ebalard
2013-04-18 22:28   ` Arnaud Ebalard
2013-04-18 22:28   ` Arnaud Ebalard
2013-04-19  4:35   ` [lm-sensors] " Guenter Roeck
2013-04-19  4:35     ` Guenter Roeck
2013-04-19  4:35     ` Guenter Roeck
2013-04-19  5:34     ` [lm-sensors] " Arnaud Ebalard
2013-04-19  5:34       ` Arnaud Ebalard
2013-04-19  5:34       ` Arnaud Ebalard
2013-04-23 22:05     ` [lm-sensors] [PATCHv1 0/3] hwmon: " Arnaud Ebalard
2013-04-23 22:05       ` Arnaud Ebalard
2013-04-23 22:05       ` Arnaud Ebalard
2013-04-23 22:05       ` [lm-sensors] [PATCHv1 1/3] hwmon: Add support for GMT G762/G763 " Arnaud Ebalard
2013-04-23 22:05         ` Arnaud Ebalard
2013-04-23 22:05         ` Arnaud Ebalard
2013-04-24  5:37         ` [lm-sensors] " Andrew Lunn
2013-04-24  5:37           ` Andrew Lunn
2013-04-24  5:37           ` Andrew Lunn
2013-04-24  9:06           ` [lm-sensors] " Arnaud Ebalard
2013-04-24  9:06             ` Arnaud Ebalard
2013-04-24  9:06             ` Arnaud Ebalard
2013-04-24 10:04             ` [lm-sensors] " Simon Guinot
2013-04-24 10:04               ` Simon Guinot
2013-04-24 10:04               ` Simon Guinot
2013-04-24 10:50               ` [lm-sensors] " Arnaud Ebalard
2013-04-24 10:50                 ` Arnaud Ebalard
2013-04-24 10:50                 ` Arnaud Ebalard
2013-04-24 13:38             ` [lm-sensors] " Guenter Roeck
2013-04-24 13:38               ` Guenter Roeck
2013-04-24 13:38               ` Guenter Roeck
2013-04-24 20:28               ` [lm-sensors] " Arnaud Ebalard
2013-04-24 20:28                 ` Arnaud Ebalard
2013-04-24 20:28                 ` Arnaud Ebalard
2013-04-24 22:47                 ` [lm-sensors] " Guenter Roeck
2013-04-24 22:47                   ` Guenter Roeck
2013-04-24 22:47                   ` Guenter Roeck
2013-04-25 10:14                   ` [lm-sensors] " Simon Guinot
2013-04-25 10:14                     ` Simon Guinot
2013-04-25 10:14                     ` Simon Guinot
2013-04-24 17:06         ` [lm-sensors] " Simon Guinot
2013-04-24 17:06           ` Simon Guinot
2013-04-24 17:06           ` Simon Guinot
2013-04-24 23:37         ` [lm-sensors] " Guenter Roeck
2013-04-24 23:37           ` Guenter Roeck
2013-04-24 23:37           ` Guenter Roeck
2013-04-25  9:58         ` [lm-sensors] " Simon Guinot
2013-04-25  9:58           ` Simon Guinot
2013-04-25  9:58           ` Simon Guinot
2013-04-27 14:03         ` [lm-sensors] " Simon Guinot
2013-04-27 14:03           ` Simon Guinot
2013-04-27 14:03           ` Simon Guinot
2013-04-27 14:12           ` [lm-sensors] " Jean Delvare
2013-04-27 14:12             ` Jean Delvare
2013-04-27 14:12             ` Jean Delvare
2013-04-27 16:56           ` [lm-sensors] " Guenter Roeck
2013-04-27 16:56             ` Guenter Roeck
2013-04-27 16:56             ` Guenter Roeck
2013-04-27 18:55             ` [lm-sensors] " Arnaud Ebalard
2013-04-27 18:55               ` Arnaud Ebalard
2013-04-27 18:55               ` Arnaud Ebalard
2013-04-23 22:06       ` [lm-sensors] [PATCHv1 2/3] hwmon: Add documentation for g762 driver Arnaud Ebalard
2013-04-23 22:06         ` Arnaud Ebalard
2013-04-23 22:06         ` Arnaud Ebalard
2013-04-24 17:32         ` Guenter Roeck [this message]
2013-04-24 17:32           ` Guenter Roeck
2013-04-24 17:32           ` Guenter Roeck
2013-04-24 20:33           ` [lm-sensors] " Arnaud Ebalard
2013-04-24 20:33             ` Arnaud Ebalard
2013-04-24 20:33             ` Arnaud Ebalard
2013-04-23 22:06       ` [lm-sensors] [PATCHv1 3/3] hwmon: Add DT " Arnaud Ebalard
2013-04-23 22:06         ` Arnaud Ebalard
2013-04-23 22:06         ` Arnaud Ebalard
2013-04-23 22:23         ` [lm-sensors] " Jason Cooper
2013-04-23 22:23           ` Jason Cooper
2013-04-23 22:23           ` Jason Cooper
2013-04-24  5:43           ` [lm-sensors] " Arnaud Ebalard
2013-04-24  5:43             ` Arnaud Ebalard
2013-04-24  5:43             ` Arnaud Ebalard
2013-04-19  5:50   ` [lm-sensors] [PATCH 1/3] Add support for GMT G72/G763 PWM fan controller Andrew Lunn
2013-04-19  5:50     ` Andrew Lunn
2013-04-19  5:50     ` Andrew Lunn
2013-04-19 11:30     ` [lm-sensors] " Arnaud Ebalard
2013-04-19 11:30       ` Arnaud Ebalard
2013-04-19 11:30       ` Arnaud Ebalard
2013-04-19 13:37       ` [lm-sensors] " Guenter Roeck
2013-04-19 13:37         ` Guenter Roeck
2013-04-19 13:37         ` Guenter Roeck
2013-04-19  6:05   ` [lm-sensors] " Jean Delvare
2013-04-19  6:05     ` Jean Delvare
2013-04-19  6:05     ` Jean Delvare
2013-04-19 11:31     ` [lm-sensors] " Arnaud Ebalard
2013-04-19 11:31       ` Arnaud Ebalard
2013-04-19 11:31       ` Arnaud Ebalard
2013-04-18 22:28 ` [lm-sensors] [RFC, PATCHv0 2/3] Add DT documentation for G762 " Arnaud Ebalard
2013-04-18 22:28   ` [RFC,PATCHv0 " Arnaud Ebalard
2013-04-18 22:28   ` Arnaud Ebalard
2013-04-18 22:28 ` [lm-sensors] [PATCH 3/3] Add documentation for g762 driver Arnaud Ebalard
2013-04-18 22:28   ` Arnaud Ebalard
2013-04-18 22:28   ` Arnaud Ebalard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130424173216.GA1073@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=andrew@lunn.ch \
    --cc=arno@natisbad.org \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=grant.likely@secretlab.ca \
    --cc=jason@lakedaemon.net \
    --cc=khali@linux-fr.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=lm-sensors@lm-sensors.org \
    --cc=olivier.mouchet@gmail.com \
    --cc=rob.herring@calxeda.com \
    --cc=rob@landley.net \
    --cc=simon.guinot@sequanux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.