Skip to content

Add debug commands to disable/enable and reset PD controller #165

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jun 5, 2025

Conversation

JohnAZoidberg
Copy link
Member

No description provided.

@JohnAZoidberg JohnAZoidberg requested a review from kiram9 June 4, 2025 14:15
@JohnAZoidberg
Copy link
Member Author

JohnAZoidberg commented Jun 4, 2025

Tested on Windows on Framework Laptop 13 AMD Ryzen AI 300. Works on both sides. Easy to test with charger attached and looking at the LED indicator.

Signed-off-by: Daniel Schaefer <dhs@frame.work>
Pass writes through via I2C passthrough on the EC

Signed-off-by: Daniel Schaefer <dhs@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
framwork_tool --pd-reset 0
framwork_tool --pd-reset 1

Signed-off-by: Daniel Schaefer <dhs@frame.work>
To disable or enable all ports of a PD controller

framwork_tool --pd-disable 0
framwork_tool --pd-enable 1

framwork_tool --pd-disable 0
framwork_tool --pd-enable 1

Signed-off-by: Daniel Schaefer <dhs@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
Signed-off-by: Daniel Schaefer <dhs@frame.work>
If silicon ID can't be read then likely the PD isn't there.

Signed-off-by: Daniel Schaefer <dhs@frame.work>
@JohnAZoidberg
Copy link
Member Author

Works on Framework 12, too.

@JohnAZoidberg JohnAZoidberg merged commit 262b6dc into main Jun 5, 2025
7 checks passed
@JohnAZoidberg JohnAZoidberg deleted the pd-control branch June 5, 2025 08:34
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.

1 participant