From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) (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 E31BF393DD7 for ; Mon, 9 Mar 2026 11:01:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773054068; cv=none; b=rBYvcmFlw2m9NjbsHRHjFP3TdUA6SFU/i8FAzNH0RoiPVABdc3Rfqj7OozOBp911K9kd4i8ixEBtvxWjvHXuH50axG1c2PC5urEDcnw6JZZdaeHrcWGau/X8fqSELVb1Saswg5gMkizgpsXaRdQPToVf1mWQEiB12UwoMLFEkmg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773054068; c=relaxed/simple; bh=gKhrwmRy1/But6o5WM7jY3uT6q9+gXw34J3KmZB341Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qAHU1HVr/4KMDXr08loV0Dlsc/TLBNBb5zE0KA72ORg3O1+SkgvibDsHJNL/J74iiYMZsfgOomHws5iDtgQnZmi0ZyTvJkdhCG3FOC6uV2AFQiwvq1PJVykK9sk37wfZ9otcVqveyuLRQ0Wl12lC/VAk2EilVpPG6TB7vxRVSXc= 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=abhr5uNJ; arc=none smtp.client-ip=209.85.216.53 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="abhr5uNJ" Received: by mail-pj1-f53.google.com with SMTP id 98e67ed59e1d1-354a18c48b5so10343228a91.1 for ; Mon, 09 Mar 2026 04:01:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773054065; x=1773658865; 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=6qS9+QDrPf/of251vEjU1bJ/OgJ+OlOTQdnd6J3ZiR4=; b=abhr5uNJzayz7t//5uTPlWM/kqh0SKBgDUJtUNtbtO0J/aLDKd07ZbeNQK1FLiRqI4 WHOo2yH59tuLUUY+f3CR3siCoPEPmu6geN2e4sxct3or44j37yC7+RenWGS3fKE769Mh OsdO32MX3fSaYL/4JfY3GDQGANpScgi64ACCA3bURJ/Bb8pstnvunli/7M45344WDPTG IJAnw69pU7VGFOiICzqSqreYy28UN6+o3Ux+slQ6WNQRfF261wi9rBa0ng8FeMsd6sqk HbwdIMCOmdivj7dGiGr1bzFEvKlkUZjJzRhfsrHU+5KeZ/JwrOSdKaHnKAQjrzN28bBy 087A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773054065; x=1773658865; 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=6qS9+QDrPf/of251vEjU1bJ/OgJ+OlOTQdnd6J3ZiR4=; b=XwWc8FPoc5UZL2P6LYSkB6sVmNpBxyqZbft0J2WhFqj9sZHZeJA9ADvCZ/tj/1KjjV ZgvAh1SpwHOtDRWXbXTvqxmpttasJfH82nGTsF3kcjS+XMz/b9gzvB1GcLO7BY+A1OC3 QbOagGZPVGIRnfYgGg5+A/Ur+xjf0HOwxyiP/JTumL2e+XzA50tumnfbUHj3CFNsp4yb f8b5x831P9bPaZBKiOgunv2XAxf4mhQe2E76W/SfZw2r3vilNIaQDLHLPMuy5qF2GFiu sTd3k82VmXvnd5cU3smhwHwdjxcNKodfHQS2bUL+tU8uzeONsGOzzCmDZV6Qft5PTucA 8QOA== X-Forwarded-Encrypted: i=1; AJvYcCW1GPLmGmBOd6Vw6ftl0g+IIjaPxRjQ6vTn+IAJ25bZ5ILllS+/cqzhEN3f99eWWKvkfHIs2qxw+TTKkZQ=@vger.kernel.org X-Gm-Message-State: AOJu0YzliWpvYajhqSBgwCWnPf5Ke+Ak4qXQtTLtmQERNi3viyqw8cyP H1GitH9qYqHo/blybykIMVFgbK0JVBwB6g28vlGQB/qBoT0Ww+DM1600 X-Gm-Gg: ATEYQzyx/PVLWM4eO866BsYXrhs7PeYsGBeMlKxnjf+LCDcyynbduIo0vv4+oQOheeO hn6jE1IXCkLUpyIpYKPMZhrCMzBpFtsjYzTKCdfxT9M3fVy9gUP120eJAr3neDyez+APiqkunUF Gqs27sC5QGnWGRo3fjG0X3k+LEwfKtl1HZxJWRMveXOrl0jaab3lCxhwqXpZ31gwAQfe50BjfeW xJ+gwD0BkpWZpAGpFWNvML4jJZIRfgn6Ed+zomn07hCHaQHrTM0xrFlEZQYF+A4NHATAR5cFy+f k/oY5M+S09ElT1gITPvWV9wyE+jvU/xeUIDW5iXQSEDsTLfvDw1FPg4ZBI8N3aUvOzF3e6kUDjf fKO/mgWWPiCO6dYoAf+vJVjFt8fcExDbbAJAs0neYUfjcmwQEuKptjAb8M0yHUIDTBiBqpqJkFw UW7QpSGNDzCAwPgDOR9CC60/dkuvcJtyXwoRMNuKnLc68RsRbHQtfieLxcvA== X-Received: by 2002:a17:90b:4a50:b0:359:8c89:96d3 with SMTP id 98e67ed59e1d1-359be297579mr10350265a91.15.1773054065108; Mon, 09 Mar 2026 04:01:05 -0700 (PDT) Received: from phuc-desktop.. ([183.91.15.56]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-359bff279f4sm13268296a91.0.2026.03.09.04.01.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2026 04:01:04 -0700 (PDT) From: phucduc.bui@gmail.com To: Dmitry Torokhov , Rob Herring Cc: Krzysztof Kozlowski , Conor Dooley , Ingo Molnar , Thomas Gleixner , Marek Vasut , Michael Welling , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, phucduc.bui@gmail.com Subject: [PATCH 0/2] Input: tsc200x: Improve wakeup source handling Date: Mon, 9 Mar 2026 18:00:42 +0700 Message-ID: <20260309110045.108209-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 The tsc200x driver already uses device_init_wakeup() to read the "wakeup-source" property from the Device Tree. However, this property is currently not documented in the DT binding schema. In addition, the I2C core already handles wakeup initialization and IRQ wake management automatically when the "wakeup-source" property is present. Therefore, the manual wakeup IRQ handling currently done in the driver is redundant for I2C-based devices (TSC2004). This series makes the following changes: 1. Document the "wakeup-source" property in the DT bindings. 2. Delegate wakeup IRQ management to the I2C core when running on BUS_I2C, while keeping manual management for BUS_SPI (TSC2005) to ensure correct behavior across both interfaces. Note: These changes are based on code inspection and the documented behavior of the I2C core. They have not been tested on physical hardware yet. bui duc phuc (2): dt-bindings: input: touchscreen: ti,tsc2005: Add wakeup-source Input: Touchscreen: tsc200x - delegate wakeup IRQ management to I2C core .../bindings/input/touchscreen/ti,tsc2005.yaml | 7 +++++++ drivers/input/touchscreen/tsc200x-core.c | 18 +++++++++++++----- 2 files changed, 20 insertions(+), 5 deletions(-) -- 2.43.0