devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 0/4] Fix RG35XX Battery Charging Issues
@ 2025-02-04 15:58 Chris Morgan
  2025-02-04 15:58 ` [PATCH V2 1/4] dt-bindings: power: supply: axp20x-battery: Add x-powers,no-thermistor Chris Morgan
                   ` (5 more replies)
  0 siblings, 6 replies; 14+ messages in thread
From: Chris Morgan @ 2025-02-04 15:58 UTC (permalink / raw)
  To: linux-sunxi
  Cc: devicetree, linux-pm, lee, samuel, jernej.skrabec, wens, conor+dt,
	krzk+dt, robh, sre, Chris Morgan

From: Chris Morgan <macromorgan@hotmail.com>

The Anbernic RG35XX devices sometimes fail to charge when the register
for the battery temperature sensor is set to the incorrect value either
by user error or an incorrectly programmed efuse. Allow users to
hard-code if a temperature sensor is not present (which is the case for
all Anbernic RGxx series devices) to prevent this issue from causing
problems. Additionally, a bug was identified with the handling of PMU
faults while this fix was being tested.

Note that the MFD updates to the writeable regs are required build
dependencies of the battery fix, as it defines a register that was
previously not defined or writeable.

Changes from V1:
 - Updated cover letter to note that the MFD updates are build
   dependencies.
 - Removed patch for "power: supply: axp20x_battery: Fix fault handling
   for AXP717" as it has already been accepted upstream.
 - Simplified binding documentation with a "not" statement.
 - Corrected writeable regs in MFD driver.
 - Updated comment in driver to note a correctly defined device tree
   with a simple-battery node is required to apply the thermistor fix.

Chris Morgan (4):
  dt-bindings: power: supply: axp20x-battery: Add 
    x-powers,no-thermistor
  mfd: axp20x: AXP717: Add AXP717_TS_PIN_CFG to writeable  regs
  power: supply: axp20x_battery: Update temp sensor for  AXP717 from
    device tree
  arm64: dts: allwinner: rg35xx: Add no-thermistor property  for battery

 .../x-powers,axp20x-battery-power-supply.yaml | 20 +++++++++++++++---
 .../sun50i-h700-anbernic-rg35xx-2024.dts      |  1 +
 drivers/mfd/axp20x.c                          |  1 +
 drivers/power/supply/axp20x_battery.c         | 21 +++++++++++++++++++
 include/linux/mfd/axp20x.h                    |  1 +
 5 files changed, 41 insertions(+), 3 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2025-02-22 13:25 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-04 15:58 [PATCH V2 0/4] Fix RG35XX Battery Charging Issues Chris Morgan
2025-02-04 15:58 ` [PATCH V2 1/4] dt-bindings: power: supply: axp20x-battery: Add x-powers,no-thermistor Chris Morgan
2025-02-19 23:23   ` Sebastian Reichel
2025-02-04 15:58 ` [PATCH V2 2/4] mfd: axp20x: AXP717: Add AXP717_TS_PIN_CFG to writeable regs Chris Morgan
2025-02-11 13:42   ` (subset) " Lee Jones
2025-02-19 23:26     ` Sebastian Reichel
2025-02-20 16:07       ` Lee Jones
2025-02-04 15:58 ` [PATCH V2 3/4] power: supply: axp20x_battery: Update temp sensor for AXP717 from device tree Chris Morgan
2025-02-11 21:02   ` Philippe Simons
2025-02-19 23:24   ` Sebastian Reichel
2025-02-04 15:58 ` [PATCH V2 4/4] arm64: dts: allwinner: rg35xx: Add no-thermistor property for battery Chris Morgan
2025-02-21 18:17   ` Jernej Škrabec
2025-02-21  1:23 ` (subset) [PATCH V2 0/4] Fix RG35XX Battery Charging Issues Sebastian Reichel
2025-02-22 13:25 ` Chen-Yu Tsai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).