Loading Documentation/devicetree/bindings/power/supply/qcom/qpnp-fg-gen4.txt +24 −0 Original line number Diff line number Diff line Loading @@ -435,6 +435,30 @@ First Level Node - FG Gen4 device resolution of monotonic SOC under CAPACITY_RAW property during charging in the scale of 0-10000. - qcom,soc-scale-mode-en Usage: optional Value type: <boolean> Definition: A boolean property that when specified will enable scaling of the SOC linearly, based on the filtered battery voltage after crossing below a Vbatt threshold. - qcom,soc-scale-vbatt-mv Usage: optional Value type: <u32> Definition: Threshold voltage to decide when SOC should be scaled based on filtered voltage when qcom,soc-scale-mode-en is specified. If this is not specified, then the default value is 3400. Unit is in mV. - qcom,soc-scale-time-ms Usage: optional Value type: <u32> Definition: Timer value for doing SOC calculation based on filtered voltage when qcom,soc-scale-mode-en is specified. If this is not specified, then the default value is 10000. Unit is in ms. ========================================================== Second Level Nodes - Peripherals managed by FG Gen4 driver ========================================================== Loading drivers/power/supply/power_supply_sysfs.c +1 −0 Original line number Diff line number Diff line Loading @@ -450,6 +450,7 @@ static struct device_attribute power_supply_attrs[] = { POWER_SUPPLY_ATTR(qc_opti_disable), POWER_SUPPLY_ATTR(cc_soc), POWER_SUPPLY_ATTR(batt_age_level), POWER_SUPPLY_ATTR(scale_mode_en), /* Charge pump properties */ POWER_SUPPLY_ATTR(cp_status1), POWER_SUPPLY_ATTR(cp_status2), Loading include/linux/power_supply.h +1 −0 Original line number Diff line number Diff line Loading @@ -323,6 +323,7 @@ enum power_supply_property { POWER_SUPPLY_PROP_QC_OPTI_DISABLE, POWER_SUPPLY_PROP_CC_SOC, POWER_SUPPLY_PROP_BATT_AGE_LEVEL, POWER_SUPPLY_PROP_SCALE_MODE_EN, /* Charge pump properties */ POWER_SUPPLY_PROP_CP_STATUS1, POWER_SUPPLY_PROP_CP_STATUS2, Loading Loading
Documentation/devicetree/bindings/power/supply/qcom/qpnp-fg-gen4.txt +24 −0 Original line number Diff line number Diff line Loading @@ -435,6 +435,30 @@ First Level Node - FG Gen4 device resolution of monotonic SOC under CAPACITY_RAW property during charging in the scale of 0-10000. - qcom,soc-scale-mode-en Usage: optional Value type: <boolean> Definition: A boolean property that when specified will enable scaling of the SOC linearly, based on the filtered battery voltage after crossing below a Vbatt threshold. - qcom,soc-scale-vbatt-mv Usage: optional Value type: <u32> Definition: Threshold voltage to decide when SOC should be scaled based on filtered voltage when qcom,soc-scale-mode-en is specified. If this is not specified, then the default value is 3400. Unit is in mV. - qcom,soc-scale-time-ms Usage: optional Value type: <u32> Definition: Timer value for doing SOC calculation based on filtered voltage when qcom,soc-scale-mode-en is specified. If this is not specified, then the default value is 10000. Unit is in ms. ========================================================== Second Level Nodes - Peripherals managed by FG Gen4 driver ========================================================== Loading
drivers/power/supply/power_supply_sysfs.c +1 −0 Original line number Diff line number Diff line Loading @@ -450,6 +450,7 @@ static struct device_attribute power_supply_attrs[] = { POWER_SUPPLY_ATTR(qc_opti_disable), POWER_SUPPLY_ATTR(cc_soc), POWER_SUPPLY_ATTR(batt_age_level), POWER_SUPPLY_ATTR(scale_mode_en), /* Charge pump properties */ POWER_SUPPLY_ATTR(cp_status1), POWER_SUPPLY_ATTR(cp_status2), Loading
include/linux/power_supply.h +1 −0 Original line number Diff line number Diff line Loading @@ -323,6 +323,7 @@ enum power_supply_property { POWER_SUPPLY_PROP_QC_OPTI_DISABLE, POWER_SUPPLY_PROP_CC_SOC, POWER_SUPPLY_PROP_BATT_AGE_LEVEL, POWER_SUPPLY_PROP_SCALE_MODE_EN, /* Charge pump properties */ POWER_SUPPLY_PROP_CP_STATUS1, POWER_SUPPLY_PROP_CP_STATUS2, Loading