-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
platform/x86: dell: Add new dell-wmi-ddv driver
The dell-wmi-ddv driver adds support for reading the current temperature and ePPID of ACPI batteries on supported Dell machines. Since the WMI interface used by this driver does not do any input validation and thus cannot be used for probing, the driver depends on the ACPI battery extension machanism to discover batteries. The driver also supports a debugfs interface for retrieving buffers containing fan and thermal sensor information. Since the meaing of the content of those buffers is currently unknown, the interface is meant for reverse-engineering and will likely be replaced with an hwmon interface once the meaning has been understood. The driver was tested on a Dell Inspiron 3505. Signed-off-by: Armin Wolf <W_Armin@gmx.de> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20220927204521.601887-3-W_Armin@gmx.de Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
- Loading branch information
Armin Wolf
authored and
Hans de Goede
committed
Nov 16, 2022
1 parent
878a82c
commit a77272c
Showing
7 changed files
with
414 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
What: /sys/kernel/debug/dell-wmi-ddv-<wmi_device_name>/fan_sensor_information | ||
Date: September 2022 | ||
KernelVersion: 6.1 | ||
Contact: Armin Wolf <W_Armin@gmx.de> | ||
Description: | ||
This file contains the contents of the fan sensor information buffer, | ||
which contains fan sensor entries and a terminating character (0xFF). | ||
|
||
Each fan sensor entry consists of three bytes with an unknown meaning, | ||
interested people may use this file for reverse-engineering. | ||
|
||
What: /sys/kernel/debug/dell-wmi-ddv-<wmi_device_name>/thermal_sensor_information | ||
Date: September 2022 | ||
KernelVersion: 6.1 | ||
Contact: Armin Wolf <W_Armin@gmx.de> | ||
Description: | ||
This file contains the contents of the thermal sensor information buffer, | ||
which contains thermal sensor entries and a terminating character (0xFF). | ||
|
||
Each thermal sensor entry consists of five bytes with an unknown meaning, | ||
interested people may use this file for reverse-engineering. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
What: /sys/class/power_supply/<battery_name>/eppid | ||
Date: September 2022 | ||
KernelVersion: 6.1 | ||
Contact: Armin Wolf <W_Armin@gmx.de> | ||
Description: | ||
Reports the Dell ePPID (electronic Dell Piece Part Identification) | ||
of the ACPI battery. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.