Input: st1232 - add system wakeup support
Subsystems (4)
v4 cover Input: st1232 - add system wakeup support
From: bui duc phuc <[email protected]>
This patch series adds support for using the Sitronix ST1232 touchscreen as a wakeup source on the Armadillo800EVA board.
Patch 1 documents the generic wakeup-source property in the Devicetree binding for the ST1232 touchscreen controller.
Patch 2 enables the wakeup-source property in the ST1232 touchscreen node for the Armadillo800EVA board, allowing touch events to wake the system from suspend.
Verified functionality
* The "power/wakeup" sysfs attribute is present for the device.
* The system resumes correctly from 'mem' and 'freeze' states when the touchscreen is touched.
Additional test information
Demo video showing wakeup from suspend:
https://youtu.be/POJhbguiA7A
Kernel config and boot logs:
https://gist.github.com/BuiDucPhuc/ac7d5d732658ca293af4323ad04accca
Changes in v4:
*Drop patch 3 as the I2C core already performs the initialization,
registration, and management of the wakeup interrupt, making the implementation in the driver redundant.
The original intention of patch 3 was to expose active_count, event_count, and wakeup_count to user space. However, this is not necessary since the R8A7740 SoC has some specific characteristics in its wakeup interrupt handling.
Moreover, modifying this driver could potentially affect other SoCs sharing the same driver, so the patch is removed.
*Going back to v1 design.
*Update the cover letter
Changes in v3:
* Patch 3: Removed debug dev_info() log messages for a cleaner production-ready implementation.
* No changes to Patch 1 and Patch 2.
* Link :
https://lore.kernel.org/all/[email protected]/
Changes in v2
* Drop description for wakeup-source property as suggested by Krzysztof Kozlowski.
* Updated commit messages for clarity.
* Added driver-side wakeup handling in st1232.c.
* Link :
https://lore.kernel.org/all/[email protected]/
v1
*Link:
https://lore.kernel.org/all/[email protected]/
This series depends on the following patch which has been submitted but not yet merged:
drm: shmobile: Fix blank screen after resume when LCDC is stopped
bui duc phuc (2):
dt-bindings: input: touchscreen: sitronix,st1232: Add wakeup-source
arm: dts: renesas: r8a7740-armadillo800eva: Add wakeup-source to
st1232
.../bindings/input/touchscreen/sitronix,st1232.yaml | 4 ++++ arch/arm/boot/dts/renesas/r8a7740-armadillo800eva.dts | 1 + 2 files changed, 5 insertions(+)
Signature · 1 line
2.43.0
PATCH v4 1/2 dt-bindings: input: touchscreen: sitronix,st1232: Add wakeup-source
From: bui duc phuc <[email protected]>
Document the 'wakeup-source' property for Sitronix ST1232 touchscreen controllers to allow the device to wake the system from suspend.
--- .../bindings/input/touchscreen/sitronix,st1232.yaml | 4 ++++ 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/input/touchscreen/sitronix,st1232.yaml +4 -0
@@ -32,6 +32,9 @@ properties: description: A phandle to the reset GPIO maxItems: 1 + wakeup-source: + type: boolean + required: - compatible - reg
@@ -51,6 +54,7 @@ examples: reg = <0x55>; interrupts = <2 0>; gpios = <&gpio1 166 0>; + wakeup-source; touch-overlay { segment-0 {
Signature · 1 line
2.43.0
Re: [PATCH v4 1/2] dt-bindings: input: touchscreen: sitronix,st1232: Add wakeup-source
Quoted 7 lines · On Mon, Mar 09, 2026 at 07:03:18AM +0700, [email protected] wrote:
From: bui duc phuc <[email protected]>
Document the 'wakeup-source' property for Sitronix ST1232 touchscreen controllers to allow the device to wake the system from suspend.
Signed-off-by bui duc phuc <[email protected]>
Applied, thank you.
Signature · 1 line
Dmitry
Re: [PATCH v4 1/2] dt-bindings: input: touchscreen:
Hi Dmitry,
Thank you for applying the patch.
Best regards,
Phuc
PATCH v4 2/2 arm: dts: renesas: r8a7740-armadillo800eva: Add wakeup-source to st1232
In reply to [email protected]From: bui duc phuc <[email protected]>
Add the wakeup-source property to the ST1232 touchscreen node in the device tree so that the touchscreen interrupt can wake the system from suspend when the panel is touched.
--- arch/arm/boot/dts/renesas/r8a7740-armadillo800eva.dts | 1 + 1 file changed, 1 insertion(+)
arch/arm/boot/dts/renesas/r8a7740-armadillo800eva.dts +1 -0
@@ -228,6 +228,7 @@ touchscreen@55 { pinctrl-0 = <&st1232_pins>; pinctrl-names = "default"; gpios = <&pfc 166 GPIO_ACTIVE_LOW>; + wakeup-source; }; };
Signature · 1 line
2.43.0
Re: [PATCH v4 2/2] arm: dts: renesas: r8a7740-armadillo800eva: Add wakeup-source to st1232
Quoted 7 lines · On Mon, Mar 09, 2026 at 07:03:19AM +0700, [email protected] wrote:
From: bui duc phuc <[email protected]>
Add the wakeup-source property to the ST1232 touchscreen node in the device tree so that the touchscreen interrupt can wake the system from suspend when the panel is touched.
Signed-off-by bui duc phuc <[email protected]>
Re: [PATCH v4 2/2] arm: dts: renesas: r8a7740-armadillo800eva:
Hi Wolfram,
Thank you for your review.
Best regards,
Phuc
Re: [PATCH v4 2/2] arm: dts: renesas: r8a7740-armadillo800eva: Add wakeup-source to st1232
In reply to [email protected]Quoted 7 lines · On Mon, 9 Mar 2026 at 01:04, <[email protected]> wrote:
From: bui duc phuc <[email protected]>
Add the wakeup-source property to the ST1232 touchscreen node in the device tree so that the touchscreen interrupt can wake the system from suspend when the panel is touched.
Signed-off-by bui duc phuc <[email protected]>
i.e. will queue in renesas-devel for v7.1.
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Hi,
Quoted 2 lines
Demo video showing wakeup from suspend:
https://youtu.be/POJhbguiA7A
Nice video! You really put some effort here, kudos.
Really awesome seeing Linux 7 on this old platform :)
Happy hacking,
Wolfram
Hi,
Quoted 8 lines
Quoted 2 lines
Demo video showing wakeup from suspend:
https://youtu.be/POJhbguiA7ANice video! You really put some effort here, kudos.
Really awesome seeing Linux 7 on this old platform :)
Happy hacking,
Thanks for the kind words and encouragement.
I'll keep learning from the feedback here and
continue hacking on it.
Best regards,
Phuc