[FROM-VALVE]: Add missing Steam Deck EC and mfd drivers#63
Open
RodoMa92 wants to merge 4 commits into
Open
Conversation
Author
|
Just realised that I'm still missing another tiny driver dependent part. I'll merge it in shortly. |
6a6c329 to
a6820de
Compare
Author
|
This should be ready to test, I'm compiling a build just to be sure rn. |
Author
pastaq
requested changes
Jun 10, 2026
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>
a6820de to
c1843c7
Compare
Author
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 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.