[PATCH v4 0/2] Input: axp20x-pek - add AXP313A support

From: Steven Feng

Date: Wed Jun 03 2026 - 03:48:07 EST


This series adds power button support for the AXP313A PMIC.

The AXP313A lacks the PEK_KEY register used for configuring startup
and shutdown timings. To handle this, the first patch adds an
is_visible callback to hide unsupported sysfs attributes, and the
second patch adds the AXP313A device itself.

Changes in v4:
- Split into two patches
- First patch adds is_visible infrastructure
- Second patch adds AXP313A device support
- Fixed subject line to show version number

Changes in v3:
- Use is_visible to hide attributes instead of returning -EOPNOTSUPP
- Corrected author name from "steven" to "Steven Feng"

Changes in v2:
- Fixed regmap out-of-bounds access issue reported by Sashiko AI
- Created dedicated axp313a_info with NULL time tables
- AXP313A lacks PEK_KEY (0x36) per datasheet verification

v3: https://lore.kernel.org/all/tencent_81FCC0443B81A3078C17F44AB4B22DFB2E07@xxxxxx/
v2: https://lore.kernel.org/all/tencent_48A497E0CA81323CFB6C7CB84428019A8707@xxxxxx/
v1: https://lore.kernel.org/all/tencent_5F1FF80489E702360F352F889570656BF608@xxxxxx/

Steven Feng (2):
Input: axp20x-pek - add is_visible callback for sysfs attributes
Input: axp20x-pek - add support for AXP313A variant

drivers/input/misc/axp20x-pek.c | 34 ++++++++++++++++++++++++++++++++-
1 file changed, 33 insertions(+), 1 deletion(-)

--
2.43.0