- Miniclass driver is based on windows_hardware_battery_bq27742_src.
- Miniclass reference: SansungTabS6-TypeC_Pmic
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.
- Capacity (State of Charge) in %
- Voltage in mV
- Current mA
- Temperature (not reported to OS yet)
- Power state (Charging & Discharging & Critical)
- Charging
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)
}
Method (PMIC, 0, Serialized)
{
Return (Package ()
{
1, // Autostop
1300, // Input Current Limit (mA)
1300, // Charging Current (mA)
225, // Topoff Current (mA)
})
}
}
Device (BAT)
{
Name (_HID, "SM5714F")
Name (_UID, 1)
Name (_DEP, Package()
{
\_SB_.I2C4
})
Method (_CRS, 0x0, NotSerialized)
{
Name (RBUF, ResourceTemplate ()
{
// SM5714 fuelgauge I2C slave address
I2CSerialBus(0x71,, 400000, AddressingMode7Bit, "\\_SB.I2C4",,,,)
// Fuelgauge GPIO Interrupt
GpioInt(Edge, ActiveLow, Shared, PullNone, 0, "\\_SB.GIO0") {54}
})
Return (RBUF)
}
Method (BATT, 0, Serialized)
{
Return (Package ()
{
19800, // DesignCapacity (mWh)
19228, // FullChargeCapacity (mWh)
1, // BatteryTechnology: 1 = rechargeable
4500, // DesignVoltage (mV)
})
}
}