-
-
Notifications
You must be signed in to change notification settings - Fork 7
Ae 591 configure correctly the sw1 and sw3 pmic output rails #43
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
sebromero
merged 7 commits into
main
from
AE-591_configure_correctly_the_SW1_and_SW3_PMIC_output_rails
Sep 2, 2025
Merged
Changes from 2 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
4b22633
AE-591: The SW1 (3.1V) and SW3 (3.3V) were not configured properly, a…
bogdanarduino a3d2615
AE-591: Added extensise comment explaining the need for the newly int…
bogdanarduino 6d44754
Update app/power/power.cpp
bogdanarduino 7249099
AE-591: Fixed comment error.
bogdanarduino e69c1ee
Merge branch 'AE-591_configure_correctly_the_SW1_and_SW3_PMIC_output_…
bogdanarduino 8d6e143
Update app/power/power.cpp
bogdanarduino b5cada0
Update app/power/power.cpp
bogdanarduino File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -75,16 +75,42 @@ static void portenta_power_init() { | |||||
| data[0]=0x94; | ||||||
| data[1]=(20 << 3); | ||||||
| i2c.write(8 << 1, data, sizeof(data)); | ||||||
|
|
||||||
| // At this point in the start-up sequence, the DC/DC converter output voltages of the PF1550, power management IC (PMIC), | ||||||
| // have been configured with the values found in the one-time programmable registers, themselves written prior to the PMIC, during production. | ||||||
| // On some commercial samples, these values were programmed incorrectly, and the PMIC outputs 3.0V instead of 3.1 or 3.3 on the respective rails. | ||||||
| // Therefore, it is first necessary to turn the SW1 and SW2 rails off, program the correct values in the SWx_VOLT registers, | ||||||
| // and then turn them back on using the SWx_VOLT_CTRL register for the changes to take full effect. | ||||||
|
|
||||||
| // SW1 turn off before config (SW1_VOLT_CTRL) | ||||||
| data[0]=0x35; | ||||||
| data[1]=0x0; | ||||||
| i2c.write(8 << 1, data, sizeof(data)); | ||||||
|
|
||||||
| // SW2 to 3.3V (SW2_VOLT) | ||||||
| // SW2 turn off before config (SW2_VOLT_CTRL) | ||||||
| data[0]=0x3B; | ||||||
| data[1]=0xF; | ||||||
| data[1]=0x0; | ||||||
| i2c.write(8 << 1, data, sizeof(data)); | ||||||
|
|
||||||
| // SW1 set to 3.0V (SW1_VOLT) | ||||||
| data[0]=0x32; | ||||||
| data[1]=0x6; | ||||||
| i2c.write(8 << 1, data, sizeof(data)); | ||||||
|
|
||||||
| // SW2 set to 3.3V (SW2_VOLT) | ||||||
| data[0]=0x38; | ||||||
| data[1]=0x7; | ||||||
| i2c.write(8 << 1, data, sizeof(data)); | ||||||
|
|
||||||
| // SW1 to 3.0V (SW1_VOLT) | ||||||
|
||||||
| // SW1 to 3.0V (SW1_VOLT) | |
| // SW1 turn on (turned off by OTP settings) (SW1_CTRL) |
Contributor
Author
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushed suggested change, without the OTP mention, since the rail was turned off by prior commands and not via the OTP config.
bogdanarduino marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
bogdanarduino marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
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.
Uh oh!
There was an error while loading. Please reload this page.