Closed attermann closed 8 months ago
Thanks, looking good! I'll merge this as soon as I am able to test it out on a bunch of T-Beams.
Actually, just gonna merge this now. Did you try it on the old PMU as well, or could you only test it on AXP202X?
Unfortunately I only have v1.2 boards so I wasn't able to test on the older AXP192.
I have a t-beam with an AXP192, so I checked out atermann's branch and compiled the firmware for it. It flashed successfully and rnsd is able to properly use the device and transmit packets. I haven't looked at the code at all, I can just confirm it seems to be backwards compatible in the real world ;)
Thanks @Erethon! Good to hear!
This PR adds support for the newer v1.2 T-Beam boards which use the new AXP2101 PMU in place of the AXP192 PMU used in v1.1 boards. This fixes the issue where the v1.2 board hangs on radio access, and reports failure to start radio on power-cycle.
I attempted to keep AXP192 support as close as possible to what it was previoulsy, and to implement new AXP2101 support as closely as possible to AXP192. Some features appear to be missing though in the AXP2101 implementation (eg battery and vbus current measurements). It also wasn't clear how to disable the OLED at the PMU on the AXP2101 so I left that out for now.