Loading Documentation/devicetree/bindings/power/supply/qcom/qpnp-fg-gen4.txt +6 −0 Original line number Diff line number Diff line Loading @@ -269,6 +269,12 @@ First Level Node - FG Gen4 device based on change in battery SOC during a charging cycle. If this is specified "qcom,cl-start-capacity" is not used. - qcom,cl-skew Usage: optional Value type: <u32> Definition: Skew in decipercentage which when specified will be applied to the final learned capacity. - qcom,hold-soc-while-full Usage: optional Value type: <empty> Loading drivers/power/supply/qcom/qpnp-fg-gen4.c +2 −0 Original line number Diff line number Diff line Loading @@ -4718,6 +4718,8 @@ static int fg_gen4_parse_dt(struct fg_gen4_chip *chip) else chip->cl->dt.max_cap_limit = temp; of_property_read_u32(node, "qcom,cl-skew", &chip->cl->dt.skew_decipct); rc = of_property_read_u32(node, "qcom,fg-batt-temp-hot", &temp); if (rc < 0) chip->dt.batt_temp_hot_thresh = -EINVAL; Loading Loading
Documentation/devicetree/bindings/power/supply/qcom/qpnp-fg-gen4.txt +6 −0 Original line number Diff line number Diff line Loading @@ -269,6 +269,12 @@ First Level Node - FG Gen4 device based on change in battery SOC during a charging cycle. If this is specified "qcom,cl-start-capacity" is not used. - qcom,cl-skew Usage: optional Value type: <u32> Definition: Skew in decipercentage which when specified will be applied to the final learned capacity. - qcom,hold-soc-while-full Usage: optional Value type: <empty> Loading
drivers/power/supply/qcom/qpnp-fg-gen4.c +2 −0 Original line number Diff line number Diff line Loading @@ -4718,6 +4718,8 @@ static int fg_gen4_parse_dt(struct fg_gen4_chip *chip) else chip->cl->dt.max_cap_limit = temp; of_property_read_u32(node, "qcom,cl-skew", &chip->cl->dt.skew_decipct); rc = of_property_read_u32(node, "qcom,fg-batt-temp-hot", &temp); if (rc < 0) chip->dt.batt_temp_hot_thresh = -EINVAL; Loading