diff mbox series

[V2,2/4] mfd: axp20x: AXP717: Add AXP717_TS_PIN_CFG to writeable regs

Message ID 20250204155835.161973-3-macroalpha82@gmail.com (mailing list archive)
State Handled Elsewhere, archived
Headers show
Series Fix RG35XX Battery Charging Issues | expand

Commit Message

Chris Morgan Feb. 4, 2025, 3:58 p.m. UTC
From: Chris Morgan <macromorgan@hotmail.com>

Add AXP717_TS_PIN_CFG (register 0x50) to the table of writeable
registers so that the temperature sensor can be configured by the
battery driver.

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
---
 drivers/mfd/axp20x.c       | 1 +
 include/linux/mfd/axp20x.h | 1 +
 2 files changed, 2 insertions(+)

Comments

Lee Jones Feb. 11, 2025, 1:42 p.m. UTC | #1
On Tue, 04 Feb 2025 09:58:32 -0600, Chris Morgan wrote:
> Add AXP717_TS_PIN_CFG (register 0x50) to the table of writeable
> registers so that the temperature sensor can be configured by the
> battery driver.
> 
> 

Applied, thanks!

[2/4] mfd: axp20x: AXP717: Add AXP717_TS_PIN_CFG to writeable regs
      commit: ab797d7faf4c28328d2e45b09991f47a9b8e08aa

--
Lee Jones [李琼斯]
Sebastian Reichel Feb. 19, 2025, 11:26 p.m. UTC | #2
Hello Lee,

On Tue, Feb 11, 2025 at 01:42:50PM +0000, Lee Jones wrote:
> On Tue, 04 Feb 2025 09:58:32 -0600, Chris Morgan wrote:
> > Add AXP717_TS_PIN_CFG (register 0x50) to the table of writeable
> > registers so that the temperature sensor can be configured by the
> > battery driver.
> > 
> > 
> 
> Applied, thanks!
> 
> [2/4] mfd: axp20x: AXP717: Add AXP717_TS_PIN_CFG to writeable regs
>       commit: ab797d7faf4c28328d2e45b09991f47a9b8e08aa

Patch 3/4 has a dependency on this one. As you probably haven't done
an immutable branch for this one, please also pick up 1/4 and 3/4. I
just provided Acked-by to them.

Greetings,

-- Sebastian
Lee Jones Feb. 20, 2025, 4:07 p.m. UTC | #3
On Thu, 20 Feb 2025, Sebastian Reichel wrote:

> Hello Lee,
> 
> On Tue, Feb 11, 2025 at 01:42:50PM +0000, Lee Jones wrote:
> > On Tue, 04 Feb 2025 09:58:32 -0600, Chris Morgan wrote:
> > > Add AXP717_TS_PIN_CFG (register 0x50) to the table of writeable
> > > registers so that the temperature sensor can be configured by the
> > > battery driver.
> > > 
> > > 
> > 
> > Applied, thanks!
> > 
> > [2/4] mfd: axp20x: AXP717: Add AXP717_TS_PIN_CFG to writeable regs
> >       commit: ab797d7faf4c28328d2e45b09991f47a9b8e08aa
> 
> Patch 3/4 has a dependency on this one. As you probably haven't done
> an immutable branch for this one, please also pick up 1/4 and 3/4. I
> just provided Acked-by to them.

Here you go: :)

The following changes since commit 2014c95afecee3e76ca4a56956a936e23283f05b:

  Linux 6.14-rc1 (2025-02-02 15:39:26 -0800)

are available in the Git repository at:

  ssh://git@gitolite.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git tags/ib-mfd-power-v6.15

for you to fetch changes up to bfad07fe298bfba0c7ddab87c5b5325970203a1e:

  mfd: axp20x: AXP717: Add AXP717_TS_PIN_CFG to writeable regs (2025-02-20 16:05:09 +0000)

----------------------------------------------------------------
Immutable branch between MFD and Power due for the v6.15 merge window

----------------------------------------------------------------
Chris Morgan (1):
      mfd: axp20x: AXP717: Add AXP717_TS_PIN_CFG to writeable regs

 drivers/mfd/axp20x.c       | 1 +
 include/linux/mfd/axp20x.h | 1 +
 2 files changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c
index cff56deba24f..e9914e8a29a3 100644
--- a/drivers/mfd/axp20x.c
+++ b/drivers/mfd/axp20x.c
@@ -224,6 +224,7 @@  static const struct regmap_range axp717_writeable_ranges[] = {
 	regmap_reg_range(AXP717_VSYS_V_POWEROFF, AXP717_VSYS_V_POWEROFF),
 	regmap_reg_range(AXP717_IRQ0_EN, AXP717_IRQ4_EN),
 	regmap_reg_range(AXP717_IRQ0_STATE, AXP717_IRQ4_STATE),
+	regmap_reg_range(AXP717_TS_PIN_CFG, AXP717_TS_PIN_CFG),
 	regmap_reg_range(AXP717_ICC_CHG_SET, AXP717_CV_CHG_SET),
 	regmap_reg_range(AXP717_DCDC_OUTPUT_CONTROL, AXP717_CPUSLDO_CONTROL),
 	regmap_reg_range(AXP717_ADC_CH_EN_CONTROL, AXP717_ADC_CH_EN_CONTROL),
diff --git a/include/linux/mfd/axp20x.h b/include/linux/mfd/axp20x.h
index c3df0e615fbf..3c5aecf1d4b5 100644
--- a/include/linux/mfd/axp20x.h
+++ b/include/linux/mfd/axp20x.h
@@ -137,6 +137,7 @@  enum axp20x_variants {
 #define AXP717_IRQ2_STATE		0x4a
 #define AXP717_IRQ3_STATE		0x4b
 #define AXP717_IRQ4_STATE		0x4c
+#define AXP717_TS_PIN_CFG		0x50
 #define AXP717_ICC_CHG_SET		0x62
 #define AXP717_ITERM_CHG_SET		0x63
 #define AXP717_CV_CHG_SET		0x64