From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?q?Moln=C3=A1r_M=C3=A1t=C3=A9?= Date: Sun, 06 Dec 2026 04:09:01 +0100 Subject: [PATCH v7 9/9] mfd: axp20x: Add the AXP192 power key cell MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20261206-axp192-v7-9-0200fc77da53@gmail.com> References: <20261206-axp192-v7-0-0200fc77da53@gmail.com> In-Reply-To: <20261206-axp192-v7-0-0200fc77da53@gmail.com> To: Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Sebastian Reichel , Liam Girdwood , Mark Brown , Dmitry Torokhov , Lee Jones Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-input@vger.kernel.org, mfd@lists.linux.dev, Aidan MacDonald , Alex Bee , =?utf-8?q?Moln=C3=A1r_M=C3=A1t=C3=A9?= X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796526534; l=1492; i=matemolnar88@gmail.com; s=20261206; h=from:subject:message-id; bh=j8ltQdOJS1NoucmdfGScCuJtLtRWcLlc4RzTAEF5H/Y=; b=p87ZAxeMiOeg6C1IllvmQnat9zAYbp+XciJiZBSviF5Yuzfx5L/dBtZJ/p2FA+WM8XivBpiw9 1ZkpnKUNRDkARmYbJmHqzQ1p5efbY42rTmdQviyKpt33ZW25ZJB7DvH X-Developer-Key: i=matemolnar88@gmail.com; a=ed25519; pk=o0eaP3d+Tu4uOuWOIB+3z9PU2PVp44IJx39jgd4q4F4= X-Endpoint-Received: by B4 Relay for matemolnar88@gmail.com/20261206 with auth_id=1759 List-Id: B4 Relay Submissions Register the power key for the AXP192. It only has short and long press interrupts, which are passed to the axp192-pek variant of the axp20x-pek driver under the usual PEK_DBF/PEK_DBR names. Signed-off-by: Molnár Máté --- drivers/mfd/axp20x.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 4d770e718..f9bf06ddb 100644 --- a/drivers/mfd/axp20x.c +++ b/drivers/mfd/axp20x.c @@ -363,6 +363,12 @@ static const struct resource axp288_fuel_gauge_resources[] = { DEFINE_RES_IRQ(AXP288_IRQ_WL1), }; +/* The AXP192 has no PEK edge interrupts, only short and long press events */ +static const struct resource axp192_pek_resources[] = { + DEFINE_RES_IRQ_NAMED(AXP192_IRQ_PEK_LONG, "PEK_DBR"), + DEFINE_RES_IRQ_NAMED(AXP192_IRQ_PEK_SHORT, "PEK_DBF"), +}; + static const struct resource axp313a_pek_resources[] = { DEFINE_RES_IRQ_NAMED(AXP313A_IRQ_PEK_RIS_EDGE, "PEK_DBR"), DEFINE_RES_IRQ_NAMED(AXP313A_IRQ_PEK_FAL_EDGE, "PEK_DBF"), @@ -956,6 +962,10 @@ static const struct mfd_cell axp192_cells[] = { .of_compatible = "x-powers,axp192-usb-power-supply", .num_resources = ARRAY_SIZE(axp192_usb_power_supply_resources), .resources = axp192_usb_power_supply_resources, + }, { + .name = "axp192-pek", + .num_resources = ARRAY_SIZE(axp192_pek_resources), + .resources = axp192_pek_resources, }, { .name = "axp20x-regulator" }, }; -- 2.43.0 From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796526539; b=IhorpGy2i2QGPX1lguVE5hcny9qslBZwhidLgBwcZN/JRgKgWPfO/ou/RHQUOVTKTA7T WzkodqJgHlDmHireYkPganMUvnT69j42ndFHhmzLmR8LNwW0lOOYwpXGMcfGu5pZ+aOJa 5M1zAFHedlBYfnPxeMmi1q0w8sGiPhV1FsFuZ/mApgtnCF2Rl/u+rJIhot00edCyp9eVc aNvUqzpp0dCE3wOq2Ky8w5aq8bRnTXkkywhfn5Y32xhwYnB23uh1FDFgQL8Or6B34tPyT eME2Ci1WIC6oGlWU+EaQNycIYCxj9CUY1/VRmpBjQrMLsa1NVjm7FZwGQzxb9iOUGjw== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796526539; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=seBlCNRnKpLIUQh9PGvp2df1cWmQds8dr8BOHapPAWA=; b=uJrqnQrb6PkBphGrXqbFHRJMV+3fwsNGb6+fQDDZ3kh/SwBJg2rf91tWJBvvFaAWZqaH wCK6X3IjB7g+Es5/ddT3HMYwtNZQioykwowABY59XG/cSdWBdAwIMelgUz9vEZlnbdCyv RUH4wBmelvRd+HC6sAes0avPDPan9rt3lvVIWS8zRZe+6nBAofqmZImTfxdS1XRyYRUmy W2I7ZmFnrX7Y1TZdLwla1D4SaoK865s1x3cv1sOb/o9SE6wyKEefn0FzH6Ds6V/kx6yD5 4IsinOxOv9dQuw1AVRYY+VL7ysWrJC7P5xFOKV7p6rTNCnYi4dnyKHuDzwpSDwYdnrw== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=bABsJDRj; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C280B606A6B6; Sun, 6 Dec 2026 03:08:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=bABsJDRj Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1796526539; b=vJdzFtQphl99p3M3Rmm66r0Ggc3/vM5EExevQ9ihmj8H9jXtq/8hzbEWOFk3sZ4HT8pk VkHwlodCtMRVFXwmJGMWPcmI/Kao20I5CsP/brc3EaiTynpvJYyJ44fMSMIlrao2nW5D3 B3JNBMwVAaDyFtZ9i1QFixSSpWVkCnFMZZnMUPvsOm808SQ2TCsgvhvW0hpfEttYqa6dj KhMHc+bpQwXlCkAMLTDb2FEhqv2gd2uDbzwUre7Koh96xX2YuniQ9vo4kXKec0xskVZkg I7P7XsY9PlATWnpvDSO+Xr7s18tRQKVSQPYnVHWsprC1Uti3wRyPzpT+FjSR5IlnLBw== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1796526539; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=seBlCNRnKpLIUQh9PGvp2df1cWmQds8dr8BOHapPAWA=; b=I201sZAWZyob1LH+m2llyRiW/FLcTkFMEIR6+Cxzmfqx1FjXI1Opo4D1RZu/V0tRAaiX EtZxAx3YdhPdBhL/RA+ZQpeWb1Fbgr4nK4WkwC0pXMDoU1c/xtyrXJ0wIzqb9KOCQPXJT /EbbHgoCFGXvnZm1xvNimaTWu2yMXlW84W4bXSpZtgUsoTO+4bS2zdaWPZ47KJZn41G5o wsMomQvYlFIw1TmVtUzMOUayyKgDzlPAW1v82m/w9y67+P2whc+RrV8desL8X957WKMZC xLUzGdIrbwTr692k2WwnEAV3wQVkYxZG43xOwrFcZyIriCQXucPMMO0PYH7CbdaDoLw== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 704611F00A15; Sun, 6 Dec 2026 03:08:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796526539; bh=seBlCNRnKpLIUQh9PGvp2df1cWmQds8dr8BOHapPAWA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=bABsJDRjNUodDzelJzlhFz19+Tp1oykHf8SRCThhgyhPlzytpBxm3pf9NvLEyGAOv nWTPHAE1U9Rw79OzFSONg3mCB3zzigf0bp8fJLiJGapoqpstRR64V5+/4OgWT+rNmH ZOjFTHWF4VcOovkBSl8q2oKijLy1oke+pHGQRy7qKfPjr/Te+7SdtuKpXDRHw1lgCD rqdBfZgVh1KjVMX48PG9Rb9nUrVkgxifMhdzJeIe1GBquqZ0ujGIjmdJwvJNeQIBYL nxjLkU/vnpqSNDTnJzR2fEboSyhc5UTN+/+n+/5M7JP3iXuB+ymIqkKgyWQh25IHt7 w/zDg5Epr/Y6A== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 6D55E505B5; Sun, 6 Dec 2026 03:08:57 +0000 (UTC) From: =?utf-8?q?Moln=C3=A1r_M=C3=A1t=C3=A9_via_B4_Relay?= Date: Sun, 06 Dec 2026 04:09:01 +0100 Subject: [PATCH v7 9/9] mfd: axp20x: Add the AXP192 power key cell X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20261206-axp192-v7-9-0200fc77da53@gmail.com> References: <20261206-axp192-v7-0-0200fc77da53@gmail.com> In-Reply-To: <20261206-axp192-v7-0-0200fc77da53@gmail.com> To: Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Sebastian Reichel , Liam Girdwood , Mark Brown , Dmitry Torokhov , Lee Jones Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-input@vger.kernel.org, mfd@lists.linux.dev, Aidan MacDonald , Alex Bee , =?utf-8?q?Moln=C3=A1r_M=C3=A1t=C3=A9?= X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796526534; l=1492; i=matemolnar88@gmail.com; s=20261206; h=from:subject:message-id; bh=j8ltQdOJS1NoucmdfGScCuJtLtRWcLlc4RzTAEF5H/Y=; b=p87ZAxeMiOeg6C1IllvmQnat9zAYbp+XciJiZBSviF5Yuzfx5L/dBtZJ/p2FA+WM8XivBpiw9 1ZkpnKUNRDkARmYbJmHqzQ1p5efbY42rTmdQviyKpt33ZW25ZJB7DvH X-Developer-Key: i=matemolnar88@gmail.com; a=ed25519; pk=o0eaP3d+Tu4uOuWOIB+3z9PU2PVp44IJx39jgd4q4F4= X-Endpoint-Received: by B4 Relay for matemolnar88@gmail.com/20261206 with auth_id=1759 X-Original-From: =?utf-8?q?Moln=C3=A1r_M=C3=A1t=C3=A9?= Reply-To: matemolnar88@gmail.com Content-Transfer-Encoding: 8bit From: Molnár Máté Register the power key for the AXP192. It only has short and long press interrupts, which are passed to the axp192-pek variant of the axp20x-pek driver under the usual PEK_DBF/PEK_DBR names. Signed-off-by: Molnár Máté --- drivers/mfd/axp20x.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 4d770e718..f9bf06ddb 100644 --- a/drivers/mfd/axp20x.c +++ b/drivers/mfd/axp20x.c @@ -363,6 +363,12 @@ static const struct resource axp288_fuel_gauge_resources[] = { DEFINE_RES_IRQ(AXP288_IRQ_WL1), }; +/* The AXP192 has no PEK edge interrupts, only short and long press events */ +static const struct resource axp192_pek_resources[] = { + DEFINE_RES_IRQ_NAMED(AXP192_IRQ_PEK_LONG, "PEK_DBR"), + DEFINE_RES_IRQ_NAMED(AXP192_IRQ_PEK_SHORT, "PEK_DBF"), +}; + static const struct resource axp313a_pek_resources[] = { DEFINE_RES_IRQ_NAMED(AXP313A_IRQ_PEK_RIS_EDGE, "PEK_DBR"), DEFINE_RES_IRQ_NAMED(AXP313A_IRQ_PEK_FAL_EDGE, "PEK_DBF"), @@ -956,6 +962,10 @@ static const struct mfd_cell axp192_cells[] = { .of_compatible = "x-powers,axp192-usb-power-supply", .num_resources = ARRAY_SIZE(axp192_usb_power_supply_resources), .resources = axp192_usb_power_supply_resources, + }, { + .name = "axp192-pek", + .num_resources = ARRAY_SIZE(axp192_pek_resources), + .resources = axp192_pek_resources, }, { .name = "axp20x-regulator" }, }; -- 2.43.0