PMIC get/setInputCurrentLimit not setting correctly?

@abatardi,
I agree, it would be nice to see a higher rate when bench testing w/ 2.5A PSU.
But 1 amp is higher than you’ll ever get from the 6-watt panel, correct ?

From Datasheet Section 8.3.1.3 Power Up from DC Source :

  • Checks VBUS, wait 220ms
  • Checks VBUS Voltage > 3.8V while pulling 30 mA, sets status register REG08[2] high
  • D+/D– Detection Sets Input Current Limit
    image
  • After the input current limit detection is done, the host can write to REG00[2:0] to change the input
    current limit.

I’m thinking it may be better to leave the PMIC alone for a few seconds after power-up before making any changes.
For Solar Panels, I think we need pmic.enableDPDM();

For your 2.5amp PSU, You can wait a few seconds after startup, then try :

  pmic.setInputCurrentLimit(2000) ;   // 2000 mA 
  pmic.setChargeVoltage(4208);        //  Set Li-Po charge termination voltage to 4.21V, CAUTION! not for everyone
  pmic.setChargeCurrent(0,1,1,0,0,0); // 2048 mA (1024 + 512 + 512 offset)
  pmic.setInputVoltageLimit(4200);    // just for bench testing....allows higher Voltage Differential for Reg. 
  pmic.enableDPDM(); 

In theory, you should see ~1.5 amps (per table 2, if D+/D- identifies the source as not being a USB host) , or maybe closer to 2 amps, IDK.
Naturally, the setInputVoltageLimit(4200) wouldn’t be optimal when you move back over to a Solar Panel.