LTE Module Series
SC20 Charging User Guide
SC20_Charging_User_Guide Confidential / Released 6 / 14
2
Debug
2.1. Related Code Files and Location
Table 1: Related Code Files and Locations
Linux power_supply standard architecture enables power management on Android OS and data can be
sent to user space through Uevent mechanism.
2.2. Debug
Device Registration
The code for device registration is as follows:
static int qpnp_lbc_main_probe(struct spmi_device *spmi)
{
xxx
rc = power_supply_register(chip->dev, &chip->batt_psy); //Device registration
xxx
}
Code Files and Locations
Description
android/kernel/drivers/power/qpnp-linear-charger.c
Driver file for charging
android/kernel/arch/arm/boot/dts/qcom/batterydata-
palladium.dtsi
Battery parameters
android/kernel/arch/arm/boot/dts/qcom/msm-pm890
9.dtsi
Charging parameters
android/kernel/arch/arm/boot/dts/qcom/msm8909-p
m8909-mtp.dtsi
Charging switch
android/kernel/drivers/hwmon/qpnp-adc-common.c
Thermistor voltage and temperature table
qpnp-linear-charger.c
Driver file for charging, it is about device
registration, DTS parse, charging controlling, etc.
Quectel
Confidential