Skip to content

Commit bfad07f

Browse files
macromorganlag-linaro
authored andcommitted
mfd: axp20x: AXP717: Add AXP717_TS_PIN_CFG to writeable regs
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> Link: https://lore.kernel.org/r/20250204155835.161973-3-macroalpha82@gmail.com Signed-off-by: Lee Jones <lee@kernel.org>
1 parent 2014c95 commit bfad07f

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/mfd/axp20x.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ static const struct regmap_range axp717_writeable_ranges[] = {
224224
regmap_reg_range(AXP717_VSYS_V_POWEROFF, AXP717_VSYS_V_POWEROFF),
225225
regmap_reg_range(AXP717_IRQ0_EN, AXP717_IRQ4_EN),
226226
regmap_reg_range(AXP717_IRQ0_STATE, AXP717_IRQ4_STATE),
227+
regmap_reg_range(AXP717_TS_PIN_CFG, AXP717_TS_PIN_CFG),
227228
regmap_reg_range(AXP717_ICC_CHG_SET, AXP717_CV_CHG_SET),
228229
regmap_reg_range(AXP717_DCDC_OUTPUT_CONTROL, AXP717_CPUSLDO_CONTROL),
229230
regmap_reg_range(AXP717_ADC_CH_EN_CONTROL, AXP717_ADC_CH_EN_CONTROL),

include/linux/mfd/axp20x.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ enum axp20x_variants {
137137
#define AXP717_IRQ2_STATE 0x4a
138138
#define AXP717_IRQ3_STATE 0x4b
139139
#define AXP717_IRQ4_STATE 0x4c
140+
#define AXP717_TS_PIN_CFG 0x50
140141
#define AXP717_ICC_CHG_SET 0x62
141142
#define AXP717_ITERM_CHG_SET 0x63
142143
#define AXP717_CV_CHG_SET 0x64

0 commit comments

Comments
 (0)