[PATCH v4 0/2] platform/x86: alienware-wmi-wmax: Add support for GPIO methods

Kurt Borja via B4 Relay posted 2 patches 7 months, 2 weeks ago
Documentation/ABI/testing/debugfs-alienware-wmi |  20 +++++
Documentation/wmi/devices/alienware-wmi.rst     |  82 ++++++++++++++++++-
drivers/platform/x86/dell/alienware-wmi-wmax.c  | 104 +++++++++++++++++++++++-
3 files changed, 201 insertions(+), 5 deletions(-)
[PATCH v4 0/2] platform/x86: alienware-wmi-wmax: Add support for GPIO methods
Posted by Kurt Borja via B4 Relay 7 months, 2 weeks ago
Hi all,

I found a great blog post [1], which described the reverse engineering
process of the GPIO control methods present on this device.

In summary, these methods expose some debugging capabilities of the RGB
lighting controller present on Dell gaming laptops. See [Patch 2] for
more info.

Exposing these methods to DebugFS is useful for developers exploring
this RGB controllers (myself included).

Thanks for your feedback!

[1] https://gabriel.marcanobrady.family/blog/2024/12/16/dell-g5-5505-se-acpi-or-figuring-out-how-to-reset-the-rgb-controller/

Signed-off-by: Kurt Borja <kuurtb@gmail.com>
---
Changes in v4:
- Reuse name[] for all file a directory names in awcc_debugfs_init()
- Reword commit message to correctly reflect previous changes
- Link to v3: https://lore.kernel.org/r/20250502-awcc-gpio-v3-0-ea9a932d1124@gmail.com

Changes in v3:
- Create pinX files dynamically, based on GPIO pin count
- Added note on dummy input arguments in Documentation
- Link to v2: https://lore.kernel.org/r/20250427-awcc-gpio-v2-0-c731373b5d02@gmail.com

Changes in v2:
- Dropped module parameter
- Added ABI documentation to Patch 1
- Small improvements to documentation based on Armin's comments
- Improved Pin description table format
- Link to v1: https://lore.kernel.org/r/20250423-awcc-gpio-v1-0-160a11bc3f9a@gmail.com

---
Kurt Borja (2):
      platform/x86: alienware-wmi-wmax: Expose GPIO debug methods
      Documentation: wmi: alienware-wmi: Add GPIO control documentation

 Documentation/ABI/testing/debugfs-alienware-wmi |  20 +++++
 Documentation/wmi/devices/alienware-wmi.rst     |  82 ++++++++++++++++++-
 drivers/platform/x86/dell/alienware-wmi-wmax.c  | 104 +++++++++++++++++++++++-
 3 files changed, 201 insertions(+), 5 deletions(-)
---
base-commit: 67e2635fe0cca5f0383c0780db986d8237e83f0a
change-id: 20250413-awcc-gpio-24b1f5c546d2

Best regards,
-- 
 ~ Kurt
Re: [PATCH v4 0/2] platform/x86: alienware-wmi-wmax: Add support for GPIO methods
Posted by Ilpo Järvinen 7 months, 1 week ago
On Mon, 05 May 2025 15:43:30 -0300, Kurt Borja wrote:

> I found a great blog post [1], which described the reverse engineering
> process of the GPIO control methods present on this device.
> 
> In summary, these methods expose some debugging capabilities of the RGB
> lighting controller present on Dell gaming laptops. See [Patch 2] for
> more info.
> 
> [...]


Thank you for your contribution, it has been applied to my local
review-ilpo-next branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-next branch only once I've pushed my
local branch there, which might take a while.

The list of commits applied:
[1/2] platform/x86: alienware-wmi-wmax: Expose GPIO debug methods
      commit: 8e27c47983c516a4d9e85199c0904e2da4c447df
[2/2] Documentation: wmi: alienware-wmi: Add GPIO control documentation
      commit: c959bee66489a41555bd2be43a93da8be16b4acd

--
 i.