From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AB2444C6C for ; Mon, 9 Mar 2026 00:03:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773014625; cv=none; b=A5NrRaAF75niPaHT9a/fFfrfrfz3U9b2digo07KXu8NtfDlrFtAb5MbXZMxxLLrOmavYmbxPPTg1RMX+3ssUZRRhgS+TtGYMfn5hzXvKqlWYDn2838AFEr/O4uQ8QCFL/TGzbwTBjeTWWoI7kWwACmSmyGlMJIoTTcwx5/F7+zY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773014625; c=relaxed/simple; bh=2CuwjY5H2zGtQt9T2CoGhnEcmdwVkk7JW6ZVqUKbW9U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hdgVjRnmvFkIFxC7ojji1DBt1xVLan8F0Gx9uiu8+pWtwbhJFSK+WUwaXOMktX7Yq2VOSD/obb7mnjZIMoUhWksfT+HxrJAtsLlTejSLMOoCJwgKveDCby8ohL/mG3l8Mx9My47Olyl/Rbqm73KvuUN5HXZYw0sLoZK3xR+bWE0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Ckpb5uF9; arc=none smtp.client-ip=209.85.214.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Ckpb5uF9" Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-2a9296b3926so84581495ad.1 for ; Sun, 08 Mar 2026 17:03:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773014624; x=1773619424; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=SiMQer80U/YZH35WDQO5BKhpPq/Jh1VP3Y5MXqFJrL0=; b=Ckpb5uF954obzS7PDTlTqO52w8RYYIsT5quYSIvQGxob0NVgFmHc7LxSXOy31xLV6W Vpo2PLajqVcyAA8F7U4VY21goNMKy5cGjKOmQrZXcbX67lr2AikdzukFOcgWDtNaaPXr hO7qh2CxoQTZg8GVlmUSE9rBtrjrUO46CIHLQ5j5PwaYrLdvgRjfmqutRsSR/PZjO49e bgbDKhhuo/fXK8EjTUqTYankks/CgjP5Tro/mcey2nQzW/2gvqMkS+ZhQOrtLbQh9i+b mMKcaPtQ10iIH6nu1k2vRUp35JH5j0WBYyrWougH8cUIbJBH3092Iq+SXLwIv0Y7R0ae GteQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773014624; x=1773619424; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=SiMQer80U/YZH35WDQO5BKhpPq/Jh1VP3Y5MXqFJrL0=; b=Uf3K6rMgL6udXS8zuMXqNzWJwY1KBOXYTNbofym7CrFXxZkn26ucUuDb9kRNF2eise ZP6wh2O46JzMgkvJRqoqdJjcvfzCptuX0cUj5h8OYQg7qTszyjNm/2pCRgMQOtNfarZe 2Lx5zCxskWxPy5JrGZKTAQJybULjptl76uuH+2uwxAF5d+rPvaOwTUAZ5n5aSGZr2el8 BIUeUjrRKn8ioOCt+MvXfg2l23wTijxHJQEXkD8DCJhrEKjnWKRKrIyU2jN2QQuMN5XN Kddxjn79VIp8W7blZgC7Vo/s6yTgP9utXJQ52X47cyu7kc71PtX1W+Thr6OVAflsmkHv f1Mw== X-Forwarded-Encrypted: i=1; AJvYcCXXJoiJH/4rphgl8KNTifRhJD8n6HdMsI+LBTVErXRh3gkPAJjPfN1SN9Ma718EsBCgBvFEvkvkzjjzZPk=@vger.kernel.org X-Gm-Message-State: AOJu0YyLtvmOA9pBEYvrWGZ1XMCWAE0SEEVwTO6EkF37Xcw6NzS7evjt ehc/TR8wjmwsYl+DGhoCWoyZoyaWY+AQzUd+aSPvsuHuRwGsSAKOBn7Z X-Gm-Gg: ATEYQzzdkXSTulV+DC+zRpdJKA4BCIDghu3TQS3AziKz8PRntG3g3BAdyTda8cA/ira pXL8XLLTxy4d1UAg+5QdpHOwNkdZ13CLJ7uDxLQcSAAui1eahKb+A0ExqAXwERS+lzgmsB9iQIv T0BR/fn4uHuoHmFo3KIfdEwy2OviUI95yRI1fCxd/0l6dzspCQ4vWpTOUq/wOB9uethVJ+uytHn S49W3pzXM5wo+zDI9chX20MOiVVmparwbLN8GVtCTWeEkW3nRvnv/a4QAkLPLzMl71BJ09njdAN Sax+WaYwPu/AWXD+GNRTU0kF6ttrnhSA71wNXxb4lsbS5/BMs2KtMY4Vzjp1Z9HnaGzM3ZUgWlp 5POtJYAtuLIWiLMhbcmlzrCJ9YHKmu4ed5jgCNv5XIy8lTRV1wFJ1YglIvLVk9US+mJ+tj/bOwt Dqa9/dqgDMVcPKqxkfKg9SAmZS8izewEtjqX50sBhJ901k3gIpkdzFZAlegg== X-Received: by 2002:a17:902:e745:b0:2aa:d60c:d48a with SMTP id d9443c01a7336-2ae8241815emr92567495ad.7.1773014623892; Sun, 08 Mar 2026 17:03:43 -0700 (PDT) Received: from phuc-desktop.. ([183.91.15.56]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2ae83e9b9c6sm104845405ad.29.2026.03.08.17.03.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Mar 2026 17:03:43 -0700 (PDT) From: phucduc.bui@gmail.com To: krzk+dt@kernel.org, geert+renesas@glider.be Cc: krzk@kernel.org, krzysztof.kozlowski@oss.qualcomm.com, conor+dt@kernel.org, devicetree@vger.kernel.org, dmitry.torokhov@gmail.com, hechtb@gmail.com, javier.carrasco@wolfvision.net, jeff@labundy.com, phucduc.bui@gmail.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, magnus.damm@gmail.com, robh@kernel.org, wsa+renesas@sang-engineering.com Subject: [PATCH v4 0/2] Input: st1232 - add system wakeup support Date: Mon, 9 Mar 2026 07:03:17 +0700 Message-ID: <20260309000319.74880-1-phucduc.bui@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: bui duc phuc 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/20260306111912.58388-1-phucduc.bui@gmail.com/ 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/20260306104025.43970-1-phucduc.bui@gmail.com/ v1 *Link: https://lore.kernel.org/all/20260305113512.227269-1-phucduc.bui@gmail.com/ 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 Link: https://lore.kernel.org/all/20260226054035.30330-1-phucduc.bui@gmail.com/ 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(+) -- 2.43.0