All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Input: axp20x-pek - add AXP313a support
@ 2026-09-23 10:52 Vladimir
  2026-09-23 11:02 ` sashiko-bot
  0 siblings, 1 reply; 8+ messages in thread
From: Vladimir @ 2026-09-23 10:52 UTC (permalink / raw)
  To: Chen-Yu Tsai, Samuel Holland; +Cc: linux-input, linux-sunxi, Vladnwx

From: Vladnwx <vladnwx@users.noreply.github.com>

The AXP313a MFD driver registers its power button cell as "axp313a-pek",
but the axp20x-pek platform id table only matches "axp20x-pek" and
"axp221-pek". The power button therefore never probes on boards using the
AXP313a PMIC (e.g. the OrangePi Zero 2W).

Add the missing id table entry. The register layout used by the driver
matches the AXP313a, so the generic axp20x_info is reused.

Tested on: OrangePi Zero 2W (Allwinner H618 + AXP313a), kernel 7.1.13.

Signed-off-by: Vladnwx <vladnwx@users.noreply.github.com>
---
 drivers/input/misc/axp20x-pek.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/input/misc/axp20x-pek.c b/drivers/input/misc/axp20x-pek.c
index 24f9e9d89..d4e2fc9a9 100644
--- a/drivers/input/misc/axp20x-pek.c
+++ b/drivers/input/misc/axp20x-pek.c
@@ -393,6 +393,10 @@ static const struct platform_device_id axp_pek_id_match[] = {
 		.name = "axp221-pek",
 		.driver_data = (kernel_ulong_t)&axp221_info,
 	},
+	{
+		.name = "axp313a-pek",
+		.driver_data = (kernel_ulong_t)&axp20x_info,
+	},
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(platform, axp_pek_id_match);
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [PATCH] Input: axp20x-pek - add AXP313a support
@ 2026-09-23 10:57 Vladimir
  2026-09-23 11:07 ` sashiko-bot
  0 siblings, 1 reply; 8+ messages in thread
From: Vladimir @ 2026-09-23 10:57 UTC (permalink / raw)
  To: Chen-Yu Tsai, Samuel Holland; +Cc: linux-input, linux-sunxi, Vladimir

The AXP313a MFD driver registers its power button cell as "axp313a-pek",
but the axp20x-pek platform id table only matches "axp20x-pek" and
"axp221-pek". The power button therefore never probes on boards using the
AXP313a PMIC (e.g. the OrangePi Zero 2W).

Add the missing id table entry. The register layout used by the driver
matches the AXP313a, so the generic axp20x_info is reused.

Tested on: OrangePi Zero 2W (Allwinner H618 + AXP313a), kernel 7.1.13.

Signed-off-by: Vladimir <anykey196@gmail.com>
---
 drivers/input/misc/axp20x-pek.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/input/misc/axp20x-pek.c b/drivers/input/misc/axp20x-pek.c
index 24f9e9d89..d4e2fc9a9 100644
--- a/drivers/input/misc/axp20x-pek.c
+++ b/drivers/input/misc/axp20x-pek.c
@@ -393,6 +393,10 @@ static const struct platform_device_id axp_pek_id_match[] = {
 		.name = "axp221-pek",
 		.driver_data = (kernel_ulong_t)&axp221_info,
 	},
+	{
+		.name = "axp313a-pek",
+		.driver_data = (kernel_ulong_t)&axp20x_info,
+	},
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(platform, axp_pek_id_match);
-- 
2.53.0


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

end of thread, other threads:[~2026-09-23 11:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-23 10:52 [PATCH] Input: axp20x-pek - add AXP313a support Vladimir
2026-09-23 11:02 ` sashiko-bot
     [not found]   ` <CANHPwASJBzich3-2QV3FNNdKX+GHQGe2FuFWu2CUXCYya=-1zA@mail.gmail.com>
2026-09-23 11:22     ` Влад СВН
2026-09-23 11:26   ` Влад СВН
  -- strict thread matches above, loose matches on Subject: below --
2026-09-23 10:57 Vladimir
2026-09-23 11:07 ` sashiko-bot
2026-09-23 11:23   ` Влад СВН
2026-09-23 11:27   ` Влад СВН

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.