From: Peng Fan <peng.fan@oss.nxp.com>
To: sashiko-reviews@lists.linux.dev
Cc: robh@kernel.org, imx@lists.linux.dev, Frank.Li@kernel.org,
conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v2 5/9] arm64: dts: imx8ulp-evk: Add gpio-keys node for power button
Date: Thu, 23 Jul 2026 15:27:54 +0800 [thread overview]
Message-ID: <amHCerZ5p6UlSyEF@shlinux89> (raw)
In-Reply-To: <20260720143716.036BB1F000E9@smtp.kernel.org>
On Mon, Jul 20, 2026 at 02:37:15PM +0000, sashiko-bot@kernel.org wrote:
>Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
>- [Medium] The power button lacks the `wakeup-source` property, preventing it from waking up the system from suspend.
>--
>
>--- Patch [5]: [PATCH v2 5/9] arm64: dts: imx8ulp-evk: Add gpio-keys node for power button ---
>commit 7fed30ac7ebed8088b601492b14b387b09c09f46
>Author: Peng Fan <peng.fan@nxp.com>
>
>arm64: dts: imx8ulp-evk: Add gpio-keys node for power button
>
>This commit adds a gpio-keys node for the power-on button to both the
>imx8ulp-9x9-evk and imx8ulp-evk device trees. The button is mapped to
>report KEY_POWER to user space.
>
>> diff --git a/arch/arm64/boot/dts/freescale/imx8ulp-9x9-evk.dts b/arch/arm64/boot/dts/freescale/imx8ulp-9x9-evk.dts
>> index 5497e3d78136f..af8f0d6087f71 100644
>> --- a/arch/arm64/boot/dts/freescale/imx8ulp-9x9-evk.dts
>> +++ b/arch/arm64/boot/dts/freescale/imx8ulp-9x9-evk.dts
>> @@ -10,6 +10,18 @@
>> / {
>> model = "NXP i.MX8ULP EVK9";
>> compatible = "fsl,imx8ulp-9x9-evk", "fsl,imx8ulp";
>> +
>> + gpio-keys {
>> + compatible = "gpio-keys";
>> + pinctrl-names = "default";
>> + pinctrl-0 = <&pinctrl_gpio_keys>;
>> +
>> + button-power-on {
>> + label = "PowerOn";
>> + gpios = <&gpiof 11 GPIO_ACTIVE_LOW>;
>> + linux,code = <KEY_POWER>;
>
>[Severity: Medium]
>Will this power button be able to wake the system from suspend? It looks
>like the wakeup-source property is missing from this node, which might
>prevent the button from acting as a wake source for the board.
No. this button could not work as wake source when APD in PD mode.
>
>> + };
>> + };
>> };
>
>[ ... ]
>
>> diff --git a/arch/arm64/boot/dts/freescale/imx8ulp-evk.dts b/arch/arm64/boot/dts/freescale/imx8ulp-evk.dts
>> index 5dea66c1e7aa0..6a92c5ca9a412 100644
>> --- a/arch/arm64/boot/dts/freescale/imx8ulp-evk.dts
>> +++ b/arch/arm64/boot/dts/freescale/imx8ulp-evk.dts
>> @@ -20,6 +21,18 @@ chosen {
>> stdout-path = &lpuart5;
>> };
>>
>> + gpio-keys {
>> + compatible = "gpio-keys";
>> + pinctrl-names = "default";
>> + pinctrl-0 = <&pinctrl_gpio_keys>;
>> +
>> + button-power-on {
>> + label = "PowerOn";
>> + gpios = <&gpiof 31 GPIO_ACTIVE_LOW>;
>> + linux,code = <KEY_POWER>;
>
>[Severity: Medium]
>Similarly here, does this button need the wakeup-source property to wake
>the board from sleep states? Without it, the GPIO interrupt for the power
>button may not be configured as a wake source when the system is suspended.
Ditto.
Regards
Peng
>
>> + };
>> + };
>> +
>
>--
>Sashiko AI review · https://sashiko.dev/#/patchset/20260720-imx8ulp-dts-v2-0-d05c67676f53@nxp.com?part=5
next prev parent reply other threads:[~2026-07-23 7:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-20 14:12 [PATCH v2 0/9] arm64: dts: imx8ulp: Device tree updates for i.MX 8ULP EVK boards Peng Fan (OSS)
2026-07-20 14:12 ` [PATCH v2 1/9] arm64: dts: imx8ulp: Add DMA channel properties and use eDMA flag macros Peng Fan (OSS)
2026-07-20 14:12 ` [PATCH v2 2/9] arm64: dts: imx8ulp: Add I3C2 controller node Peng Fan (OSS)
2026-07-20 14:12 ` [PATCH v2 3/9] arm64: dts: imx8ulp: Correct SRAM node address and size to cover full SSRAM P2 Peng Fan (OSS)
2026-07-20 14:12 ` [PATCH v2 4/9] arm64: dts: imx8ulp: Add assigned clock properties for LPUART nodes Peng Fan (OSS)
2026-07-20 14:12 ` [PATCH v2 5/9] arm64: dts: imx8ulp-evk: Add gpio-keys node for power button Peng Fan (OSS)
2026-07-20 14:37 ` sashiko-bot
2026-07-23 7:27 ` Peng Fan [this message]
2026-07-20 14:12 ` [PATCH v2 6/9] arm64: dts: imx8ulp-evk: Enable LPUART6 for Bluetooth Peng Fan (OSS)
2026-07-20 14:12 ` [PATCH v2 7/9] arm64: dts: imx8ulp-evk: Enable LPUART7 Peng Fan (OSS)
2026-07-20 14:12 ` [PATCH v2 8/9] arm64: dts: imx8ulp-evk: Change the values of some PCRs of ENET Peng Fan (OSS)
2026-07-20 14:12 ` [PATCH v2 9/9] arm64: dts: imx8ulp-9x9-evk: Rename model string to reflect die size Peng Fan (OSS)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=amHCerZ5p6UlSyEF@shlinux89 \
--to=peng.fan@oss.nxp.com \
--cc=Frank.Li@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=imx@lists.linux.dev \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox