Skip to content

woa-a52s/windows_hardware_pmic_sm5714_src

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Siliconmitus SM5714 PMIC Driver

This driver is designed for the Siliconmitus SM5714 PMIC fuel gauges found on various Samsung devices.

This driver enables Windows to get information about the battery pack used in Samsung devices utilizing the SM5714 PMIC.

Available features

  • Capacity (State of Charge) in %
  • Voltage in mV
  • Current mA
  • Power state (Charging & Discharging & Critical)
  • Charging

PMIC ACPI Sample

Device(PM3P)
{
    Name (_HID, "SM5714P")
    Name (_UID, 1)
    Name (_DEP, Package() {\_SB_.I2C4, \_SB_.I2C9})

    Method (_CRS, 0x0, NotSerialized)
    {
        Name (RBUF, ResourceTemplate ()
        {
            // Charger Slave Address
            I2CSerialBus (0x49,, 400000, AddressingMode7Bit, "\\_SB.I2C4",,,,)

            // USBPD Slave Address
            I2CSerialBus (0x33,, 400000, AddressingMode7Bit, "\\_SB.I2C9",,,,)

            // Charger GPIO Interrupt
            GpioInt (Edge, ActiveLow, Shared, PullNone, 0, "\\_SB.GIO0") {54}

            // USBPD GPIO Interrupt
            GpioInt (Edge, ActiveLow, Shared, PullNone, 0, "\\_SB.GIO0") {140}
        })
        Return (RBUF)
    }
}

Miniclass ACPI Sample

Device(BAT)
{
    Name (_HID, "SM5714F")
    Name (_UID, 1)
    Name (_DEP, Package() {\_SB_.I2C4})

    Method (_CRS, 0x0, NotSerialized)
    {
        Name (RBUF, ResourceTemplate ()
        {
            I2CSerialBus (0x71,, 400000, AddressingMode7Bit, "\\_SB.I2C4",,,,)

            GpioInt (Edge, ActiveLow, Shared, PullNone, 0, "\\_SB.GIO0") {54}
        })
        Return (RBUF)
    }
}

Acknowledgements

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages