Linux Hardware Monitor development
 help / color / mirror / Atom feed
From: Cryolitia PukNgae <cryolitia@gmail.com>
To: Randy Dunlap <rdunlap@infradead.org>,
	Jean Delvare <jdelvare@suse.com>,
	Guenter Roeck <linux@roeck-us.net>,
	Jonathan Corbet <corbet@lwn.net>
Cc: linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org,
	linux-doc@vger.kernel.org,
	"Celeste Liu" <CoelacanthusHex@gmail.com>,
	"Marcin Strągowski" <marcin@stragowski.com>
Subject: Re: [PATCH 2/2] hwmon: document: add gpd-fan
Date: Wed, 17 Jul 2024 01:27:41 +0800	[thread overview]
Message-ID: <bff5cb83-54fe-4e18-a0fe-32d90d90726f@gmail.com> (raw)
In-Reply-To: <c81b25ec-3e6a-4b9b-8e3b-9991f1645d47@infradead.org>


On 2024/7/16 22:36, Randy Dunlap wrote:
> Hi--
>
> On 7/16/24 4:49 AM, Cryolitia PukNgae via B4 Relay wrote:
>> From: Cryolitia PukNgae <Cryolitia@gmail.com>
>>
>> Add GPD fan driver document
>>
>> Signed-off-by: Cryolitia PukNgae <Cryolitia@gmail.com>
>> ---
>>   Documentation/hwmon/gpd-fan.rst | 68 +++++++++++++++++++++++++++++++++++++++++
>>   Documentation/hwmon/index.rst   |  1 +
>>   MAINTAINERS                     |  1 +
>>   3 files changed, 70 insertions(+)
>>
>> diff --git a/Documentation/hwmon/gpd-fan.rst b/Documentation/hwmon/gpd-fan.rst
>> new file mode 100644
>> index 000000000000..0e5bb8b5feed
>> --- /dev/null
>> +++ b/Documentation/hwmon/gpd-fan.rst
>> @@ -0,0 +1,68 @@
>> +.. SPDX-License-Identifier: GPL-2.0-or-later
>> +
>> +Kernel driver gpd-fan
>> +=========================
>> +
>> +Authors:
>> +    - Cryolitia PukNgae <Cryolitia@gmail.com>
>> +
>> +Description:
> No ending ':' above, please.
>
>> +------------
>> +
>> +Handheld devices from GPD provide fan readings and fan control through
>> +their embedded controllers.
>> +
>> +Supported devices
>> +-----------------
>> +
>> +Currently the driver supports the following handhelds:
>> +
>> + - GPD Win Mini (7840U)
>> + - GPD Win Mini (8840U)
>> + - GPD Win Max 2
>> + - GPD Win Max 2 2023 (7840U)
>> + - GPD Win Max 2 2024 (8840U)
>> + - GPD Win 4 (6800U)
>> + - GPD Win 4 (7840U)
>> +
>> +Module parameters
>> +-----------------
>> +
>> +gpd_fan_model
>> +  Force specific which module quirk should be use.
>                                                   used.
>
>> +
>> +   - wm2
>> +       - GPD Win 4 (7840U)
>> +       - GPD Win Max 2 (6800U)
>> +       - GPD Win Max 2 2023 (7840U)
>> +       - GPD Win Max 2 2024 (8840U)
>> +   - win4
>> +       - GPD Win 4 (6800U)
>> +   - win_mini
>> +       - GPD Win Mini (7840U)
>> +       - GPD Win Mini (8840U)
> so how is the module parameter used? like so?
>
>     gpd_fan_model=wm2
>
>> +
>> +Sysfs entries
>> +-------------
>> +
>> +The following attributes are supported:
>> +
>> +fan1_input
>> +  Read Only. Reads current fan RMP.
> Should that be                    RPM
> ?
>
>> +
>> +pwm1_enable
>> +  Read Write. Enable manual fan control. Write "0" to disable control and run
>       Read/Write
> or
>       Read-Write
>
>> +  full speed. Write "1" to set to manual, write "2" to let the EC control decide
>> +  fan speed. Read this attribute to see current status.
>> +
>> +pwm1
>> +  Read Write. Read this attribute to see current duty cycle in the range [0-255].
>       Read-Write
> or
>       Read/Write
>
>> +  When pwm1_enable is set to "1" (manual) write any value in the range [0-255]
>> +  to set fan speed.
>> +
>> +pwm1_mode
>> +  Read Only. Should always be "1" by now to indicate the fan being under PWM mode.
>                      Drop             by now
>
>> +
>> +update_interval
>> +  Read Write. Set the interval in milliseconds to update fan speed. The default
>       Read-Write
> or
>       Read/Write
>
>> +  and minimum time is 1 second
Thanks for review! v2 sent.

      reply	other threads:[~2024-07-16 17:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-16 11:49 [PATCH 0/2] hwmon: add GPD devices sensor driver Cryolitia PukNgae via B4 Relay
2024-07-16 11:49 ` [PATCH 1/2] " Cryolitia PukNgae via B4 Relay
2024-07-16 11:49 ` [PATCH 2/2] hwmon: document: add gpd-fan Cryolitia PukNgae via B4 Relay
2024-07-16 14:36   ` Randy Dunlap
2024-07-16 17:27     ` Cryolitia PukNgae [this message]

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=bff5cb83-54fe-4e18-a0fe-32d90d90726f@gmail.com \
    --to=cryolitia@gmail.com \
    --cc=CoelacanthusHex@gmail.com \
    --cc=corbet@lwn.net \
    --cc=jdelvare@suse.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=marcin@stragowski.com \
    --cc=rdunlap@infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox