Commit Graph
59 Commits
Author SHA1 Message Date
Fenglin Wu a0f2fde233 dt-bindings: qpnp-smb5: Add property to specify HVDCP2 12V ICL
Add property to specify ICL when HVDCP2 working at 12V.

Change-Id: I6cf10722873ea9f05ee9254f31c6994e9fda0b6d
2021-09-14 15:26:11 +08:00
Shilpa Suresh 6dddd5afa4 ARM: dts: msm: Add v-cutoff-mv to pm8916 linear-charger node
Add the voltage cutoff value parameter to the qpnp-linear-charger
node in pm8916.dtsi. This will be used in the driver to ensure
deep discharging is avoided.

Change-Id: I745d3f6f2247758caf6c828c5d33984b569f772d
2021-05-19 21:28:41 -07:00
Guru Das Srinagesh aa8b790805 bindings: smb1398: Add support for SMB1394
Add compatible strings for SMB1394, which is a variant of SMB1398.

Change-Id: I3434c5a5522b3d1bb162ddff3aea4e66d1c8501d
2021-05-17 22:41:16 -07:00
qctecmdr e2df62fa08 Merge "dt-bindings: Add documentation for MSM8917/MSM8937" 2021-01-20 21:20:03 -08:00
Anirudh Ghayal ca44660b6c dt-bindings: qpnp-smb5: Property to enable JEITA-ARB configuration
"qcom,jeita-arb-enable" enable JEITA ARB sequence.

Change-Id: Ie7089d0970444d0d9e4e6449a7b9799e680ed19f
2021-01-11 08:55:22 -08:00
Swetha Chikkaboraiah 349ab7eb5e dt-bindings: Add documentation for MSM8917/MSM8937
Add documentation for MSM8917/MSM8937 related nodes.

Change-Id: I7bbb6df7653e2ee554089aa216303ebf2371630a
2021-01-10 05:37:47 -08:00
Anirudh Ghayal 566c4b938a dt-bindings: qpnp-qg: Property to disable ESR below a battery-temperature
"qcom,esr-low-temp-threshold" disables ESR below the defined threshold.

Change-Id: Ie7089d0970444d0d9e4e6449a7b9799e680ed190
2020-07-23 10:48:26 +05:30
Anirudh Ghayal ebcb623ae5 dt-bindings: qpnp-qg: Property to enable SMB sensing for CP
DT property to enable SMB-sensing for CP.

Change-Id: Ic6aefbc5b2f89d4908f02859c63dc4c6b4c7ad31
2020-05-19 21:14:48 +05:30
qctecmdr b7ad5a46c9 Merge "dt-bindings: Update smb5 documentation for qcom,qc4-max-icl-ua" 2020-05-17 10:51:58 -07:00
Swetha Chikkaboraiah b159d5da02 dt-bindings: Add documentation for SDM660
Add documentation for SDM660 related nodes

Change-Id: I93a2ac59ec0325857aa5d210867b7f7c7271020d
2020-05-12 16:18:29 +05:30
Ashish Chavan 3cf781ad80 dt-bindings: Update smb5 documentation for qcom,qc4-max-icl-ua
Add optional DT property to specify the QC4 max-adapter ICL while
operating the adapter in CV mode.

Change-Id: Id738dfbce2bc16ff29c1292942193d3f4fd78ba8
2020-05-12 15:25:58 +05:30
qctecmdr c23493a3ff Merge "bindings: binding documentation for QPNP SMBLITE charger driver" 2020-03-24 18:09:46 -07:00
Ashay c25a2bb252 bindings: binding documentation for QPNP SMBLITE charger driver
The QPNP SMBLITE charger driver supports the charger peripherals present
in the PMIC PM2250. PM2250 incorporates a single input switch/linear mode
battery charger for single-cell Lithium batteries.

Register access is provided by the parent device via regmap. Interrupts
are controlled by the parent device, and handlers are registered by the
QPNP SMBLITE charger driver.

The power supply framework is used to communicate battery and usb
properties to userspace and other driver consumers such as fuel gauge,
USB.

Change-Id: Ie1b56902f474b326d6709cb841e06c36811ec76d
2020-03-23 11:36:13 +05:30
Anirudh Ghayal 8f84e95a43 ARM: dts: msm: Add device-tree node for QG_LITE
Add the QG_LITE node for PM2250. It uses SDAM7 for
non-volatile storage.

While at it, add the battery-profile data.

Change-Id: I1cdd7199882547019129ed5711b4c014ac260b55
2020-03-17 05:09:36 -07:00
qctecmdr 5725ec5dab Merge "ARM: dts: msm: Add property to limit max ICL of QC2.0 for bengal" 2020-02-13 18:20:38 -08:00
Umang Chheda e9fed9cf9e ARM: dts: msm: Add property to limit max ICL of QC2.0 for bengal
Limit the QC 2.0 max ICL to 2A. This is done to avoid frequent
adapter collapses.

Change-Id: I4dddf45740077edcd15d08e7e69b7e93f3aaddec
2020-02-13 12:08:33 +05:30
Fenglin Wu fdd2c8c6a8 dt-bindings: smb1398: Add binding documents for SMB1398 charger
Initial version of the binding document for SMB1398 charger,
which can work in DIV2 charge pump mode as downstream chargers
or combo mode as a pre-regulator.

Change-Id: If40a1166f05ae77d56b663ffc97546b7db7680bd
2020-01-21 10:49:29 +05:30
Anirudh Ghayal dd71825f3d dt-bindings: qpnp-qg: Add documentation for BASS
Battery-soc based SOC scaling (BASS) enables SOC scaling
at low temperature.

Change-Id: Ic0642b54659281dded83fcda5b4e84151a045f6d
2019-12-30 10:28:25 +05:30
Subbaraman Narayanamurthy 6b80a74b14 bindings: qpnp-smb5: add property to show fake charging status
Add "qcom,fake-chg-status-on-debug-batt" property to show
charging status as unknown when debug battery is present.

Change-Id: I7e9052285473f39477f5bf21e0cae10d1fdd8970
2019-11-20 18:27:14 -08:00
qctecmdr ee1e125535 Merge "dt-bindings: qpnp-fg-gen4: Add property to force calibration level" 2019-11-16 09:20:25 -08:00
qctecmdr f98f34d4e3 Merge "dt-bindings: qpnp-qg: Add documentation for TCSS" 2019-11-10 07:53:19 -08:00
Anirudh Ghayal baee03fb07 dt-bindings: qpnp-qg: Add documentation for TCSS
Termination-current based SOC scaling makes sure that the
SOC reaches 100% at the configured QG termination current.

Change-Id: I62815359e6e81cfe299787e7ee62d25e87cff77b
2019-11-10 07:18:01 +05:30
Sahil Chandna dc7339474c dt-bindings: smb1390-chg-psy: Add property to specify input topology
Add property "qcom,parallel-input-mode" to specify the input connection
topology and rename "qcom,hvdcp3-with-cp" to
"qcom,hvdcp3-standalone-config".

Change-Id: I8bebb6eaea4253ce3397002fe5e97500451585a8
2019-11-05 20:55:03 +05:30
Ashish Chavan 4725581a6d dt-bindings: Add DT property to disable max FCC restriction
The max FCC restriction was added due to a improper board
design on SM6150/7150. This is fixed on atoll, hence add
a DT property to selectively disable the FCC restriction.

Change-Id: I62815359e6e81cfe299787e7ee62d25e87cff77a
2019-10-30 13:34:20 +05:30
Ashay 9dfc1cf47b dt-bindings: add documentation of charger DT parameters
Add optional DT properties to configure charger FCC stepper
algorithm and input current limit.

Change-Id: Iee1a856d990d2ab4b5c67b90b723885e909e7901
2019-10-25 10:06:41 +05:30
Sahil Chandna e5112886b5 dt-bindings: qpnp-fg-gen4: Add property to force calibration level
Add DT property to force the calibrate level. Once specified this
will ignore all the values and calibrate level is force set to this
level.

Change-Id: I88644b5e62966df4cb189a807d4d37c4b09796b6
2019-10-07 12:35:43 +05:30
Subbaraman Narayanamurthy c3e47d17d9 dt-bindings: qpnp-fg-gen4: support configuring filtered battery current
To qualify the capacity learning algorithm start, add support to
configure filtered battery current threshold.

Change-Id: If8be108c1879572a4fafe62bb29afdb21fb1d9fe
2019-09-30 12:28:47 -07:00
Subbaraman Narayanamurthy c4951ff448 dt-bindings: qpnp-fg-gen4: update default values for ki-coefficients
Update the default values of ki-coefficients as per the hardware
recommendation.

Change-Id: Ia6378773bd1c788054721ecb6b63beb937975846
2019-09-30 12:06:46 -07:00
Kavya Nunna 90c086ec65 dt-bindings: qpnp-qg: Add property for multi-profile-load
User can select the profile based on batt age level
from multiple battery profiles.

Change-Id: I65247e43eefd8eb1147837c4ab41062c6e10b021
2019-08-30 10:44:54 +05:30
Anirudh Ghayal f4fa2432ad dt-bindings: qpnp-qg: Add documentation for FVSS
Add documentation of device tree properties for
Filtered Voltage based SOC scaling (FVSS).

Change-Id: I58214402b2d79feb25209f5a1451d3f41edf181c
2019-08-23 10:03:18 +05:30
qctecmdr 5b6aba5704 Merge "dt-bindings: qpnp-smb5: Add property to enable thermal mitigation" 2019-08-13 04:47:30 -07:00
Sahil Chandna 66b5f00ac6 dt-bindings: qpnp-smb5: Add property to enable thermal mitigation
Add DT properties to enable thermal mitigation for triple
charging in CC mode. In thermal mitigation, thermal status
of main charger, SMB, skin and connector are polled
periodically and power supply change event is generated to
notify userspace.

Change-Id: I431605ea961796184c237ead127b628fe18f3e32
2019-08-12 12:20:13 +05:30
qctecmdr 2ce9af981b Merge "dt-bindings: smb1390: Correct temp alarm thresholds" 2019-08-08 11:59:35 -07:00
Guru Das Srinagesh 881704365c dt-bindings: smb1390: Correct temp alarm thresholds
The temperature alert levels were set to incorrect values; correct them.

Change-Id: I16bdf908a2e93aeca8e0c84c8113b661e5261216
2019-08-07 13:41:14 -07:00
Guru Das Srinagesh d12729e14b dt-bindings: smb1390-charger-psy: add property to specify output topology
Add support to specify charger output connection topology.

Change-Id: I8ed8f2dabc207ce0640f783f58a440e6a011733b
2019-08-05 18:23:14 -07:00
Subbaraman Narayanamurthy 959fe84906 dt-bindings: qpnp-fg-gen4: add support for PBS configuration
Add support to obtain PBS handle so that PBS trigger can be made
to do certain configurations.

Change-Id: Id2d8eb032650be5f04c7abe602a145347c904282
2019-07-23 14:40:10 -07:00
qctecmdr 7aefbecb2e Merge "dt-bindings: qpnp-qg: Add properties for fast-charge config" 2019-07-23 10:36:50 -07:00
Anirudh Ghayal dc25364410 dt-bindings: qpnp-qg: Add properties for fast-charge config
Allow configuring the FIFO length during fast-charging.

Change-Id: I8018f8033d05273320fd92cc7d21fcdce0885df7
2019-07-21 10:20:28 +05:30
Anirudh Ghayal 1487498076 dt-bindings: qpnp-qg: Add properties to specify S2 config in sleep
Allow configuring the FIFO length, accumulator length and
accumulator interval when system goes to sleep during
discharge.

Change-Id: I8018f8033d05273320fd92cc7d21fcdce0885df6
2019-07-21 10:10:15 +05:30
Guru Das Srinagesh 96288a2ff9 dt-bindings: qpnp-fg-gen4: Set defaults for {dis}charging Ki coefficients
Set default values for the low, medium, and high gain Ki coefficients
for both charging and discharging states.

Change-Id: I03a95089cacd78648af28c0e6c51f6571b7881b5
2019-07-19 10:29:55 -07:00
Guru Das Srinagesh 53a76aafe8 dt-bindings: qpnp-fg-gen4: Add ki current threshold properties
Add device tree properties to configure low-to-medium and medium-to-high
current thresholds for charging and discharging.

Change-Id: Iad8757b3afebb99dab1530cd69e5e76200ee17f6
2019-07-19 10:29:55 -07:00
Guru Das Srinagesh 58ba46b019 dt-bindings: qpnp-smb5: Support changing DCIN ICL
Add node to support the changing of the DCIN input current limit.

Change-Id: I8b5deeab3762c43ad6ffef81106eee4d42021486
2019-07-08 16:27:22 -07:00
Anirudh Ghayal 119ebf9705 dt-bindings: qpnp-qg: Add property to specify system minimum voltage
Minimum system voltage is used for calculating the average and
instantaneous power.

Change-Id: I8018f8033d05273320fd92cc7d21fcdce0885dfa
2019-07-05 08:51:41 +05:30
Anirudh Ghayal b9804028c5 dt-bindings: qpnp-qg: Add property for minimum sleep time
Add a DT property so specify the minimum sleep time
to allow an SOC jump.

Change-Id: I8018f8033d05273320fd92cc7d21fcdce0885dfd
2019-07-05 08:46:19 +05:30
qctecmdr d55f120583 Merge "dt-bindings: power: hl6111r: Add bindings" 2019-06-12 01:10:07 -07:00
Harry Yang 7b1f4ad2ff dt-bindings: smb1390-psy: Add property to support dual charge pumps
Dual SMB1390 PMICs, master and slave, are supported as companion chargers
to the primary charge PMIC. The CP driver is split into master and slave
drivers, with slave mirroring master's operations. Add property to support
dual charge pumps.

Change-Id: I5b7f5962afd84243c0269aa56586bb75030e27ed
2019-05-31 17:25:34 -07:00
Guru Das Srinagesh d3d3758842 dt-bindings: power: hl6111r: Add bindings
HL6111R is a wireless charging power receiver IC that has a maximum
power output of 15 W, a maximum current output of 2.2 A, and a
programmable output voltage range of 4 V to 20 V with different step
sizes. It supports both the A4WP and WPC wireless charging standards.

Change-Id: Idb276226c4855c83427913a5368deb70e3f2b04f
2019-05-30 10:23:00 -07:00
Subbaraman Narayanamurthy a435e214e3 dt-bindings: qpnp-fg-gen4: Add qcom,ki-coeff-cutoff property
Add "qcom,ki-coeff-cutoff" device tree property to configure
the cutoff gain.

Change-Id: Ia3743b1d03d8662271087e39dbf5c526735f3f0c
2019-05-16 15:02:30 -07:00
Subbaraman Narayanamurthy da94423c12 dt-bindings: smb1390: add support to disable smb1390 based on SOC
Charger driver disables SMB1390 once charging enters Taper charging
phase, this is to prevent SMB1390 from pumping high current into battery
at higher voltages. There are condition like adapter reset where SMB1390
might get enabled at higher battery voltage and pump current into the
battery before software gets chance to disable it and this could lead to
battery OV.

Fix this by by keeping SMB1390 disabled above a configured battery SOC.

Change-Id: I37a238a94ed94da500390de919547012a7fd1cf4
2019-05-16 15:01:58 -07:00
qctecmdr 8c99f8b6b5 Merge "dt-bindings: qpnp-smb5: Support enabling of ADC based AICL" 2019-05-10 02:13:06 -07:00