Skip to content
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

[AXPxxx] Add support for AXP2101 and AXP202 #1015

Merged
merged 3 commits into from
Jun 27, 2024

Conversation

TD-er
Copy link
Contributor

@TD-er TD-er commented Jun 27, 2024

Split the code into several sections for AXP192/AXP2101/AXP202

ToDo:

  • Test AXP192 on real hardware
  • Test AXP2101 on real hardware
  • Test AXP202 on real hardware
  • Add more defines/boards using these chips
  • Add defines on which LDO/DC ports should be enabled/disabled to be used in board .h files.

The code for AXP192 should not have changed, so that should probably be safe to use.

!!!The other chips have absolutely NOT been tested on real hardware!!!

Status: "it compiles"

Do NOT run this on real hardware unless you really know what to check for your board!

Fixes: #990

@TD-er
Copy link
Contributor Author

TD-er commented Jun 27, 2024

@cyberman54
Please note the state of this code is "it compiles".
So please have a very thorough look before uploading it to some board as I really hope I did not mess up.

@cyberman54 cyberman54 changed the base branch from master to feature-axp2101 June 27, 2024 20:22
@cyberman54
Copy link
Owner

Thanks for this work. Merged to new temporary development branch "feature-axp2101". Using for testing.

@cyberman54 cyberman54 merged commit c676972 into cyberman54:feature-axp2101 Jun 27, 2024
40 of 42 checks passed
@TD-er
Copy link
Contributor Author

TD-er commented Jun 27, 2024

Will you continue from here?
Or should I try to tweak some more? (from that branch)

@TD-er TD-er deleted the feature/AXP2101 branch June 27, 2024 20:40
@cyberman54
Copy link
Owner

please use the feature-axp2102 branch, i will continue and test from here. First, will merge the experimental tsupremes3.hal from development branch with your axp20xx.hal, then check voltages for T-Supreme, and then give it a try.

@TD-er
Copy link
Contributor Author

TD-er commented Jun 27, 2024

Please double/triple check to see if I do toggle the correct DCDC/LDO channels

@cyberman54
Copy link
Owner

cyberman54 commented Jun 28, 2024

Please double/triple check to see if I do toggle the correct DCDC/LDO channels

@TD-er Meanwhile, i found some prior art here:
https:/meshtastic/firmware/blob/master/src/Power.cpp#L843

This should work, because the purchased T-Beam Supreme S3 came with working Meshtastic firmware preinstalled.

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.

Hardware support for T-Beam V1.2 with AXP2101
2 participants