From nobody Sun Oct 5 18:19:55 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3D2D52147EF; Fri, 1 Aug 2025 07:59:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754035169; cv=none; b=a7CucPNyMFXanzbUPNEtkpNOHH+W40zLS8B+JNEanJKFECoK/PPtjQ8qzniw/fw71G5ilupqv2fduEDnkRPvSAPBfBPrSkZxVk6sH1vnE3ktOnmnaTfWwdq5dvg6as20XJwX2u6iU135LSUIoUy//UGp+bYGY8ViyOCIxfAYBoI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754035169; c=relaxed/simple; bh=ZiH2+0ApCDD5Cy6uBvn/D2hA4NFJk84G69zqJgH2K3o=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=C9OzxIZcWK/43I2jjYufY345hVepGuvcTBAfMEmYSQhCyDMwZhxIksErBpnf4KoxAsmMDF80DFUcom1PXR+k68VCcrgh4Bxc074g2RLJBG2fwM4IzbIhPfzgi0+CN5Az3IN1dJnovVT0HPG26UDyAKDwm1pv0GnnQa5Hoq+9bCc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aX4aT2mt; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="aX4aT2mt" Received: by smtp.kernel.org (Postfix) with ESMTPS id C31D8C4CEF4; Fri, 1 Aug 2025 07:59:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1754035168; bh=ZiH2+0ApCDD5Cy6uBvn/D2hA4NFJk84G69zqJgH2K3o=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=aX4aT2mtxE0pyyqZi088jIgy+EVLGoCYqaODkhz7uMd+jJhBT4QPhk8CLP+U4sjMm zJexr48d6BwnH/7ESg3OvI/A7lGvMP3/zfEa+sXU8ApxHbTs/6Z0IVwSSICcXnTBLr eiy5FthSGi5vDCX5Cy60hDz4+pgCaZvs2YV+qSE7iPC0vsvCFECo1snSDGavSOfXfJ VpHj2GbDcClxjRPKw1bnptegcWNYfRn3YLSvK68g6mDFZh4q0O97lxob9C0DuRBzb7 ox62DS+8t4Yuc5sicHoG7sTMomr53bY9O7vch9CdkYWWxsEz1tYjMvfSEyJFzHWa3v qHUiro1uOPKjg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B583AC87FDA; Fri, 1 Aug 2025 07:59:28 +0000 (UTC) From: Cryolitia PukNgae via B4 Relay Date: Fri, 01 Aug 2025 15:59:21 +0800 Subject: [PATCH v7 2/2] hwmon: document: add gpd-fan Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250801-gpd_fan-v7-2-548b9d8f57d7@uniontech.com> References: <20250801-gpd_fan-v7-0-548b9d8f57d7@uniontech.com> In-Reply-To: <20250801-gpd_fan-v7-0-548b9d8f57d7@uniontech.com> To: Jean Delvare , Guenter Roeck , Jonathan Corbet , Cryolitia PukNgae Cc: linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, Celeste Liu , Yao Zi , Derek John Clark , WangYuli , Jun Zhan , =?utf-8?q?Marcin_Str=C4=85gowski?= , someone5678 , Justin Weiss , Antheas Kapenekakis , command_block , derjohn X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1754035167; l=3233; i=cryolitia@uniontech.com; s=20250730; h=from:subject:message-id; bh=YeZ2S1Xd3SzI2j73X7MPaeHtszEUNsz3Uuv4BXy3AyA=; b=/HfULSeyuj1YoBPbO5SksgzxxgGNRcmuqH9se1nB6oBtbGdX4YbSJClAdd+s3Qd4yuGVabURr ggH/4bAvzfFA8HLcClUoeW4VmuFVs8KGRZccTp6LmtEYQsXd6KEPNbp X-Developer-Key: i=cryolitia@uniontech.com; a=ed25519; pk=tZ+U+kQkT45GRGewbMSB4VPmvpD+KkHC/Wv3rMOn/PU= X-Endpoint-Received: by B4 Relay for cryolitia@uniontech.com/20250730 with auth_id=474 X-Original-From: Cryolitia PukNgae Reply-To: cryolitia@uniontech.com From: Cryolitia PukNgae Add GPD fan driver document Signed-off-by: Cryolitia PukNgae --- Documentation/hwmon/gpd-fan.rst | 71 +++++++++++++++++++++++++++++++++++++= ++++ Documentation/hwmon/index.rst | 1 + MAINTAINERS | 1 + 3 files changed, 73 insertions(+) diff --git a/Documentation/hwmon/gpd-fan.rst b/Documentation/hwmon/gpd-fan.= rst new file mode 100644 index 0000000000000000000000000000000000000000..82f064c80aac485348f7c5179a9= c4104fd6a4745 --- /dev/null +++ b/Documentation/hwmon/gpd-fan.rst @@ -0,0 +1,71 @@ +.. SPDX-License-Identifier: GPL-2.0-or-later + +Kernel driver gpd-fan +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D + +Author: + - Cryolitia PukNgae + +Description +------------ + +Handheld devices from Shenzhen GPD Technology Co., Ltd. provide fan readin= gs 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 Mini (HX370) + - GPD Pocket 4 + - GPD Duo + - GPD Win Max 2 (6800U) + - GPD Win Max 2 2023 (7840U) + - GPD Win Max 2 2024 (8840U) + - GPD Win Max 2 2025 (HX370) + - GPD Win 4 (6800U) + - GPD Win 4 (7840U) + +Module parameters +----------------- + +gpd_fan_board + Force specific which module quirk should be used. + Use it like "gpd_fan_board=3Dwm2". + + - wm2 + - GPD Win 4 (7840U) + - GPD Win Max 2 (6800U) + - GPD Win Max 2 2023 (7840U) + - GPD Win Max 2 2024 (8840U) + - GPD Win Max 2 2025 (HX370) + - win4 + - GPD Win 4 (6800U) + - win_mini + - GPD Win Mini (7840U) + - GPD Win Mini (8840U) + - GPD Win Mini (HX370) + - GPD Pocket 4 + - GPD Duo + +Sysfs entries +------------- + +The following attributes are supported: + +fan1_input + Read Only. Reads current fan RPM. + +pwm1_enable + Read/Write. Enable manual fan control. Write "0" to disable control and = run at + 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]. + When pwm1_enable is set to "1" (manual) write any value in the range [0-= 255] + to set fan speed. + diff --git a/Documentation/hwmon/index.rst b/Documentation/hwmon/index.rst index d292a86ac5da902cad02c1965c90f5de530489df..ce4419f064e1368740387af70af= 38a85cadd952d 100644 --- a/Documentation/hwmon/index.rst +++ b/Documentation/hwmon/index.rst @@ -82,6 +82,7 @@ Hardware Monitoring Kernel Drivers gigabyte_waterforce gsc-hwmon gl518sm + gpd-fan gxp-fan-ctrl hih6130 hp-wmi-sensors diff --git a/MAINTAINERS b/MAINTAINERS index e81eeb61d49b282a5a2dc701f1c932c3a82d8b85..26da2b93173477716fe3abc5250= 78eebeaed3f45 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10338,6 +10338,7 @@ GPD FAN DRIVER M: Cryolitia PukNgae L: linux-hwmon@vger.kernel.org S: Maintained +F: Documentation/hwmon/gpd-fan.rst F: drivers/hwmon/gpd-fan.c =20 GPD POCKET FAN DRIVER --=20 2.50.1