Skip to content

[FROM-VALVE]: Add missing Steam Deck EC and mfd drivers#63

Open
RodoMa92 wants to merge 4 commits into
OpenGamingCollective:masterfrom
RodoMa92:add_steamdeck_ec_driver
Open

[FROM-VALVE]: Add missing Steam Deck EC and mfd drivers#63
RodoMa92 wants to merge 4 commits into
OpenGamingCollective:masterfrom
RodoMa92:add_steamdeck_ec_driver

Conversation

@RodoMa92

@RodoMa92 RodoMa92 commented Jun 6, 2026

Copy link
Copy Markdown

All credits goes to the original Steam Deck team: https://github.com/evlaV/linux-integration/commits/50af83e8fd75dc52221edd3fb6fd7a7f70c4d8a4/drivers/hwmon/steamdeck-hwmon.c

This has never been upstreamed AFAICS and it's needed to allow fan and battery level control on the Deck.

@RodoMa92 RodoMa92 changed the title Add missing Steam Deck EC driver. platform/hwmon: Add missing Steam Deck EC driver Jun 6, 2026
@RodoMa92 RodoMa92 marked this pull request as draft June 6, 2026 13:53
@RodoMa92

RodoMa92 commented Jun 6, 2026

Copy link
Copy Markdown
Author

Just realised that I'm still missing another tiny driver dependent part. I'll merge it in shortly.

@RodoMa92 RodoMa92 force-pushed the add_steamdeck_ec_driver branch from 6a6c329 to a6820de Compare June 6, 2026 16:46
@RodoMa92 RodoMa92 marked this pull request as ready for review June 6, 2026 16:52
@RodoMa92

RodoMa92 commented Jun 6, 2026

Copy link
Copy Markdown
Author

This should be ready to test, I'm compiling a build just to be sure rn.

@RodoMa92 RodoMa92 changed the title platform/hwmon: Add missing Steam Deck EC driver [platform/hwmon; mfd]: Add missing Steam Deck EC driver Jun 6, 2026
@RodoMa92

RodoMa92 commented Jun 6, 2026

Copy link
Copy Markdown
Author

All good, the config needs to be updated by adding SENSORS_STEAMDECK and MFD_STEAMDECK as either modules or built in drivers. Reference used are this for the mfd driver and this for the hwmon part.

@pastaq pastaq left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the patche descriptions IAW the documentation found in the governance. Specifically, include

  • Source label in patch title
  • link or cherry pick sha
  • signed off by tag

RodoMa92 added 4 commits June 10, 2026 12:26
Add MFD core driver for Steam Deck. Doesn't really do much so far
besides instantiating a number of MFD cells that implement all the
interesting functionality.

(cherry picked from commit 5f534c2d6ebdefccb9c024eb0f013bc1c0c622d9)
[fwd-ported to v6.11 and v7.0]
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Signed-off-by: Marco Rodolfi <marco.rodolfi@tuta.io>
As of version 118 Deck's BIOS implements "SCBP" method that allows
gating power of the controller board (VBUS). Add a basic WO method to
our root MFD device to allow toggling that.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
(cherry picked from commit f97f32718acc10cbb51fef925842392e80904d74)
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Add driver for sensors exposed by EC firmware on Steam Deck hardware.

(cherry picked from commit 6917aac77bee6185ae3920b936cdbe7876118c0b)
[fwd-ported to v7.0]
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Signed-off-by: Marco Rodolfi <marco.rodolfi@tuta.io>
 level/rate

Add support for max battery level/charge rate attributes.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
@RodoMa92 RodoMa92 force-pushed the add_steamdeck_ec_driver branch from a6820de to c1843c7 Compare June 10, 2026 11:46
@RodoMa92 RodoMa92 changed the title [platform/hwmon; mfd]: Add missing Steam Deck EC driver [FROM-VALVE]: Add missing Steam Deck EC and mfd drivers Jun 10, 2026
@RodoMa92

RodoMa92 commented Jun 10, 2026

Copy link
Copy Markdown
Author

Please update the patche descriptions IAW the documentation found in the governance. Specifically, include

* Source label in patch title

* link or cherry pick sha

* signed off by tag

Let me know if now the commits are up to standard, I've just remerged them mantaining the original commit message and added my signature on the patches that require a rebase in order to be merged on top of 7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants