Skip to content

Commit

Permalink
Added BQ25896 Support
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Jun 4, 2024
1 parent 93abcaf commit 8470899
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/PowersSY6970.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -980,13 +980,15 @@ private:
bool initImpl()
{
__user_disable_charge = false;
if (getChipID() != 0x00) {

uint8_t rev = getChipID();
if (rev != SY6970_DEV_REV && rev != BQ25896_DEV_REV) {
return false;
}
// Set the minimum operating voltage. Below this voltage, the PMU will protect
setSysPowerDownVoltage(3300);

//Default disbale Watchdog
//Default disable Watchdog
disableWatchdog();

return true;
Expand All @@ -998,3 +1000,4 @@ private:



typedef PowersSY6970 XPowersPPM;
7 changes: 7 additions & 0 deletions src/REG/SY6970Constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@
#pragma once

#define SY6970_SLAVE_ADDRESS (0x6A)
// https://www.ti.com/product/BQ25896
#define BQ25896_SLAVE_ADDRESS (0x6B)
// https://www.sg-micro.com/cnproduct/SGM41511
#define SGM41511_SLAVE_ADDRESS (0x6B)

#define SY6970_DEV_REV (0x00)
#define BQ25896_DEV_REV (0x02)

#define POWERS_SY6970_REG_00H (0x00)
#define POWERS_SY6970_REG_01H (0x01)
Expand Down

0 comments on commit 8470899

Please sign in to comment.