From nobody Sat Oct 4 03:18:48 2025 Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (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 A6F64299ABD for ; Thu, 21 Aug 2025 03:15:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755746129; cv=none; b=lNZDYizVjSSvHjPwe8It8sI/fjf3juCnznJf4Zchz/FmmPMZhqbEbWvZg+Wu3+4G+o1E3U3dpKVlh1ASioCNcxeUvFAQXfUQnAYMin/uERVFP5m8viOZYLUu3uMJrLAYbRzE5kVP+JGGL4lJscJ3cEUh1+nlbZUpb2QLpxBL5/w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755746129; c=relaxed/simple; bh=xK/uY5dPDT/WYt2ovB3Su03oSdypjzmDFfJL7Y6Aluo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ejyns+5M+JpOGOxOG4ByWA2nwNdxwtC9t1gXZEH5w3ep6p+1VO914541DOEFbla4tuVhZuSLYAHtNXeNp4Dk/AJ2gfi9Yglc9z0orDOacJOFXTQNHar1hCetmesPqCv3orSYEplDl/u/pOKCt8lFzHtAkYQLV5uGOAJK2IvzBmI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=huaqin.corp-partner.google.com; spf=pass smtp.mailfrom=huaqin.corp-partner.google.com; dkim=pass (2048-bit key) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b=amfP20CX; arc=none smtp.client-ip=209.85.214.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=huaqin.corp-partner.google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huaqin.corp-partner.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b="amfP20CX" Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-2449978aceaso3656825ad.2 for ; Wed, 20 Aug 2025 20:15:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1755746127; x=1756350927; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=CtqV3HNShNm2ULsU/XG89WUNwV7hWFWih/MmNNnjuJk=; b=amfP20CX9yzLrJsRK0B+oGG7RJOUgxJ4KbTwjq3i1U/V4Qh3CmHkE1E04hvCglp4lQ 0kqM4aA2PFDz10bt+HBm+nTtc9zYhrCf/QWCK3DLHdqtP6CU38MDRvGEjdrYNDC3Md1s 0cC282Y4lBPsuO5KaMvmfwGBWkw7vA8tJax7fYVpL1jK/RY03K5zfkDWBg4onXurSf7A GJ+Rpq7395O8fooXsYGf0S6Jp4VcamZDK33GZRbh51B8hSTWBxgUV8vJFO6Hm0O0udLn uSbwisP69hCNU8x1VQWfToV9qhHgfAwfbGwPQrHYxRs8GJh3Qg6EAnPtHISHLPaMzXfj OQLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755746127; x=1756350927; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CtqV3HNShNm2ULsU/XG89WUNwV7hWFWih/MmNNnjuJk=; b=lEOePgJOe0UqavpTqzyNk6E2ir+AMTiK8SA+ubiFF8Lw6aYgQqnadgoDG1i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Fyy4s4nCTQ== X-Received: by 2002:a17:903:124c:b0:224:10a2:cae7 with SMTP id d9443c01a7336-245fedcad87mr13708355ad.40.1755746126670; Wed, 20 Aug 2025 20:15:26 -0700 (PDT) Received: from dgp100339560-01.huaqin.com ([116.66.212.162]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-245ed51b3d3sm40285415ad.147.2025.08.20.20.15.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Aug 2025 20:15:26 -0700 (PDT) From: Langyan Ye To: dmitry.torokhov@gmail.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, jikos@kernel.org, bentiss@kernel.org Cc: dianders@chromium.org, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Langyan Ye , Conor Dooley Subject: [PATCH v2 1/2] dt-bindings: input: Add Parade TC3408 touchscreen controller Date: Thu, 21 Aug 2025 11:15:13 +0800 Message-Id: <20250821031514.49497-2-yelangyan@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250821031514.49497-1-yelangyan@huaqin.corp-partner.google.com> References: <20250821031514.49497-1-yelangyan@huaqin.corp-partner.google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The tc3408 touch screen chip same as Elan eKTH6915 controller has a reset gpio. The difference is that they have different post_power_delay_ms. Signed-off-by: Langyan Ye Reviewed-by: Conor Dooley --- .../bindings/input/parade,tc3408.yaml | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/parade,tc3408.y= aml diff --git a/Documentation/devicetree/bindings/input/parade,tc3408.yaml b/D= ocumentation/devicetree/bindings/input/parade,tc3408.yaml new file mode 100644 index 000000000000..30ffefb96c68 --- /dev/null +++ b/Documentation/devicetree/bindings/input/parade,tc3408.yaml @@ -0,0 +1,68 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/parade,tc3408.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Parade TC3408 touchscreen controller + +maintainers: + - Langyan Ye + +description: | + Parade TC3408 is a touchscreen controller supporting the I2C-HID protoco= l. + It requires a reset GPIO and two power supplies (3.3V and 1.8V). + +allOf: + - $ref: /schemas/input/touchscreen/touchscreen.yaml# + +properties: + compatible: + const: parade,tc3408 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + reset-gpios: + maxItems: 1 + + vcc33-supply: + description: The 3.3V supply to the touchscreen. + + vccio-supply: + description: The 1.8V supply to the touchscreen. + +required: + - compatible + - reg + - interrupts + - reset-gpios + - vcc33-supply + - vccio-supply + +unevaluatedProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + touchscreen: touchscreen@24 { + compatible =3D "parade,tc3408"; + reg =3D <0x24>; + + interrupt-parent =3D <&pio>; + interrupts =3D <15 IRQ_TYPE_LEVEL_LOW>; + + reset-gpios =3D <&pio 126 GPIO_ACTIVE_LOW>; + vcc33-supply =3D <&pp3300_tchscr_x>; + vccio-supply =3D <&pp1800_tchscr_report_disable>; + }; + }; --=20 2.34.1 From nobody Sat Oct 4 03:18:48 2025 Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (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 D7E1718C933 for ; Thu, 21 Aug 2025 03:15:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755746134; cv=none; b=u14k9U4ex36PFUcoFlLZLVs1+S8uMsI8RYG3qtCFvFR8TKHz5EPgKu49L6vS2GhmhTEeuWebwfG61W1FPC8JSHJjTvdvm3de8TbSbWzuBcT0/VAsWQONj3MnxA9rW+yabZZg6IpMD0c7bWW26S865Ky0g7E1sb9F3/hddjnbF9Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755746134; c=relaxed/simple; bh=Fh4EhH5K3IA+nkQNoY5kz1/6FPqqY0VdHyu1rqkGuNk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=NR1VV2ZlGBtRP8r9QGLb95gWLxlxgRGHh6qrmMGM0EuV6pe/wwEidRl6c+Pgw/TJQkPUy1PGr0dJnPqGqlnzTSSaKzgVBd4tt6iNnuTLIkygHjicvd0fC8wak/8h0MtTSwaCuUNLC6fQsBCnupgI8yGf17mL4emWBbno8+Ctw/g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=huaqin.corp-partner.google.com; spf=pass smtp.mailfrom=huaqin.corp-partner.google.com; dkim=pass (2048-bit key) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b=SMsryahD; arc=none smtp.client-ip=209.85.214.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=huaqin.corp-partner.google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huaqin.corp-partner.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b="SMsryahD" Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-245f19aab6aso3521525ad.0 for ; Wed, 20 Aug 2025 20:15:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1755746132; x=1756350932; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eSHyll5PrwKz3fPakcS2KGvBNYcZa1MqracAfKSOTyk=; b=SMsryahDxpFf9Q+yDNr8dS/SizGiggiFNIqp7dr4U4xCW6T51+mm/Rz/woBXATV9pp f/EVRW2Fa15t2nCjVjcWF8uWx+NxE8t3L/4pHO2RcdFmraXW2uHsDU6wUXLlxAIy0P86 QThZUOhZJojUMr1dIgtQg/NYuQN+R75Mb3JfxTG46TzEnEmc7GBQSM+/oq8SKNvwgedS b5Yr2kw+nZ3kbXUqbZsfC8ngyvcCQYIaLXiPibG8lrV+Tkrzs47fyalT57w1ZU/+LN5r MzagytTdYllxjJHuhDvXiRxIiBQzYBEZqQdo/FWkHz8dm2mHIxnuOb6zhWFKozLG045h HhGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755746132; x=1756350932; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eSHyll5PrwKz3fPakcS2KGvBNYcZa1MqracAfKSOTyk=; b=V252JPN1qUkkF36iUp0d+ag1PHIXBIgwMNyEV0tA0GKJ71BlnEPo4/zRN+80CuX0Ty mFrw7Yp0pYZo0VMFKhCtoQdP52PFAZtEwKKOvXX0HJkbnXc7+LYx3j/YJ/a+kQBgDk56 3PLFfQDLRbhox1GZuZH3aHW9htiajsVbprigW50wON8rKU5o/gJ4Yz1GIKm+2SCkYfXa 6nqBs9Jyd0Nt6cPbZVNPmZyJ1lHLzg7qgh1m/vwyp/RkAa4YbYLM0zE8HUMgUQWZXRQj Aa9DAIjD7k5Jr/h7YG/syfizgTPVNzUmUysgDQrJaYq+1A+1Q7Y6utvHPM4oNnAFEqMW uhxw== X-Forwarded-Encrypted: i=1; AJvYcCVnKXDMvXuePkm5ZsjQWNffy8iN9Sry7qwx4eL0ZD/Txzv7zZIAGj5ZoxEf0CDNj1s559Jj42a63tjMDio=@vger.kernel.org X-Gm-Message-State: AOJu0YyIzo4b9C49oEvFv9KsNRBo314WETAqI4/6ZywMBWXG+KwyA8FB Xm5FU8IyHjsaDji4SoBInMRMzVQ+SyiV38y8Fp7QGUqdi8+bX46GNTd6Dad6ogPeNbY= X-Gm-Gg: ASbGncudjLXWab64RrzrYWxZR8+CSHf8T2ZCuFlRvn34ARRLjUBAotyNtDrvdnnCA5w wpJ0hSSOJk06INWSDj90xN/9YqtdaQ8yjHlVATnn5jDCwod0H/WUh0HHoSVWIGF/p8YrJr3Yf7V DDYMTT/Imb02F8i15Pv0wJBklfAbb9BbJ6Kdsjyncj2nI/6KOabmkvlsr0nwBZ5E8Q/Yai6Szdw k9dhRXFvSsULZc9Xyc8a1gHGtiPyIDmlkMkstxGtClmEmaOSq9meweMPct8DV5e/ep9CaA6Qznl 3QQFvg5xvufC0FPR1DG/JLj7QdaSilEmi55PPoXYhOyBqOK6rxVyg/wYNtbPaZrvvGsnkzyTqp1 2OrsxeNLvhXFMr286MujEQRYvgGA= X-Google-Smtp-Source: AGHT+IEo8cDwJAbum46Jcb+xwtIAyNiOV7V2ejdlSk9LCqmPbAAdVFRIMJbz2dFzn8EFH7Sb3q3xwg== X-Received: by 2002:a17:903:2442:b0:23f:cd4d:a91a with SMTP id d9443c01a7336-245fedcc76fmr12413985ad.30.1755746130195; Wed, 20 Aug 2025 20:15:30 -0700 (PDT) Received: from dgp100339560-01.huaqin.com ([116.66.212.162]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-245ed51b3d3sm40285415ad.147.2025.08.20.20.15.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Aug 2025 20:15:29 -0700 (PDT) From: Langyan Ye To: dmitry.torokhov@gmail.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, jikos@kernel.org, bentiss@kernel.org Cc: dianders@chromium.org, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Langyan Ye Subject: [PATCH v2 2/2] HID: i2c-hid: elan: Add parade-tc3408 timing Date: Thu, 21 Aug 2025 11:15:14 +0800 Message-Id: <20250821031514.49497-3-yelangyan@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250821031514.49497-1-yelangyan@huaqin.corp-partner.google.com> References: <20250821031514.49497-1-yelangyan@huaqin.corp-partner.google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Parade-tc3408 requires reset to pull down time greater than 10ms, so the configuration post_power_delay_ms is 10, and the chipset initial time is required to be greater than 300ms, so the post_gpio_reset_on_delay_ms is set to 300. Signed-off-by: Langyan Ye Reviewed-by: Douglas Anderson --- drivers/hid/i2c-hid/i2c-hid-of-elan.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/hid/i2c-hid/i2c-hid-of-elan.c b/drivers/hid/i2c-hid/i2= c-hid-of-elan.c index 3fcff6daa0d3..875f5e214c7b 100644 --- a/drivers/hid/i2c-hid/i2c-hid-of-elan.c +++ b/drivers/hid/i2c-hid/i2c-hid-of-elan.c @@ -179,11 +179,19 @@ static const struct elan_i2c_hid_chip_data ilitek_ili= 2901_chip_data =3D { .main_supply_name =3D "vcc33", }; =20 +static const struct elan_i2c_hid_chip_data parade_tc3408_chip_data =3D { + .post_power_delay_ms =3D 10, + .post_gpio_reset_on_delay_ms =3D 300, + .hid_descriptor_address =3D 0x0001, + .main_supply_name =3D "vcc33", +}; + static const struct of_device_id elan_i2c_hid_of_match[] =3D { { .compatible =3D "elan,ekth6915", .data =3D &elan_ekth6915_chip_data }, { .compatible =3D "elan,ekth6a12nay", .data =3D &elan_ekth6a12nay_chip_da= ta }, { .compatible =3D "ilitek,ili9882t", .data =3D &ilitek_ili9882t_chip_data= }, { .compatible =3D "ilitek,ili2901", .data =3D &ilitek_ili2901_chip_data }, + { .compatible =3D "parade,tc3408", .data =3D ¶de_tc3408_chip_data }, { } }; MODULE_DEVICE_TABLE(of, elan_i2c_hid_of_match); --=20 2.34.1