From patchwork Thu Apr 18 12:48:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhaoxiong Lv X-Patchwork-Id: 13634686 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CC2C4C4345F for ; Thu, 18 Apr 2024 12:48:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1ACAA10ED26; Thu, 18 Apr 2024 12:48:33 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b="ZNEELSp6"; dkim-atps=neutral Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by gabe.freedesktop.org (Postfix) with ESMTPS id B9404113134 for ; Thu, 18 Apr 2024 12:48:31 +0000 (UTC) Received: by mail-pj1-f46.google.com with SMTP id 98e67ed59e1d1-2a7e19c440dso667252a91.3 for ; Thu, 18 Apr 2024 05:48:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1713444511; x=1714049311; darn=lists.freedesktop.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=uGDsLEb5BghVT9qGOK/loQQdaX4v11rqejOU2LWrdN0=; b=ZNEELSp6dJZSOV0mBRcvgWnPWICQ1Clf3q0ZAK3ZRiY/s1Fb77u2rRtqd7mBBAP82P 1MX9Wc+JNpI+HLRuD3j8S9hGpKRWllL1h5NFAB5JASUSVseO85k5+q+L36+Q+lZB8vG/ G0JXMBo4oWD1jRTEsAAmwIS0XqVr6+IpH0Jy3IbSrn7SJHrAeXinINehwNrdiHmG9UXQ pZXI+KsMDOEPyHhqPk+efVV9QSW5AoYE/Ck6tkleXkV+2zbEVxJZ2pUAdqoXjzvwRTel 3ZVzeoNKk8532oj+5LV61HexFyVZdzHK/IhIrswbPXhh1ehWfSGpNX4rc9xBJFVMzxCE YkLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713444511; x=1714049311; h=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=uGDsLEb5BghVT9qGOK/loQQdaX4v11rqejOU2LWrdN0=; b=mxOK43UVKqh572bnEEtSDnNU6Z6Xx2emFFRZreIK61b/B7WkA3N0eI2RIbh7KoxQVK HPL1zNfkrvOUxiKPPWKIIBc5xMYIVsnXv5xvtC5qet0EP4Nb/vtltbpRphua0cnxlJc8 XcTP9eOY8No7/Y/4p/EAm6iJPa5ukQIcQPhAy/Pop5kbRk6OUALBQMzwlHNPb3iVRNND gPaKfj9GqPwiuWbBqADHoJDKW/XijboxiuY2jAwQZ6mWKvow0A86UUfeFFnuT7o3u3oW ttgH+dDT4mmgspeAjwBbZ2tf5HwhHt7OID5VWMSu/Ji0sTIdZQWvN0lkAswLvJzGcjfR MdYA== X-Gm-Message-State: AOJu0Yy0hoIUnLWMH9LXrH/pjP+Eu9ihpa6kcD6fLPYrFrlQLgcFJPrQ gJ2gIOqXlAa90H/PLQfbStxjdYbRQbWdkqfzro89ZKS6jf3jxA0s3Bkph6XM5UE= X-Google-Smtp-Source: AGHT+IFp+L1hQ3/71MRE5nC1up3U+FLG4bqHqA86kwgOkj44rzc6HfpwUAixZbMftqOKs33+zrh95Q== X-Received: by 2002:a17:90a:88d:b0:2aa:c2ba:3758 with SMTP id v13-20020a17090a088d00b002aac2ba3758mr2382354pjc.42.1713444511114; Thu, 18 Apr 2024 05:48:31 -0700 (PDT) Received: from lvzhaoxiong-KLVC-WXX9.huaqin.com ([116.66.212.162]) by smtp.gmail.com with ESMTPSA id ju24-20020a170903429800b001e3d8c237a2sm1423509plb.260.2024.04.18.05.48.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 05:48:30 -0700 (PDT) From: lvzhaoxiong To: dmitry.torokhov@gmail.com, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jikos@kernel.org, benjamin.tissoires@redhat.co, dianders@google.com, hsinyi@google.com Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, lvzhaoxiong Subject: [PATCH v1 1/2] dt-bindings: input: i2c-hid: Introduce Ilitek ili2900 Date: Thu, 18 Apr 2024 20:48:14 +0800 Message-Id: <20240418124815.31897-2-lvzhaoxiong@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240418124815.31897-1-lvzhaoxiong@huaqin.corp-partner.google.com> References: <20240418124815.31897-1-lvzhaoxiong@huaqin.corp-partner.google.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The ili2900 touch screen chip same as ilitek ili9882t controller has a reset gpio. Signed-off-by: lvzhaoxiong --- Documentation/devicetree/bindings/input/ilitek,ili9882t.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/input/ilitek,ili9882t.yaml b/Documentation/devicetree/bindings/input/ilitek,ili9882t.yaml index c5d9e0e919f9..5063ea2c8375 100644 --- a/Documentation/devicetree/bindings/input/ilitek,ili9882t.yaml +++ b/Documentation/devicetree/bindings/input/ilitek,ili9882t.yaml @@ -19,6 +19,7 @@ allOf: properties: compatible: const: ilitek,ili9882t + const: ilitek,ili2900 reg: const: 0x41 From patchwork Thu Apr 18 12:48:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhaoxiong Lv X-Patchwork-Id: 13634687 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7681BC4345F for ; Thu, 18 Apr 2024 12:48:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7BEBE113C4C; Thu, 18 Apr 2024 12:48:38 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b="TaGcTdE8"; dkim-atps=neutral Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1B269113C48 for ; Thu, 18 Apr 2024 12:48:37 +0000 (UTC) Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-1e2b1cd446fso6686695ad.3 for ; Thu, 18 Apr 2024 05:48:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1713444516; x=1714049316; darn=lists.freedesktop.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=0M78v9nKtcu9aDQjEM1qTGU4tk87ySL7DtZXrv0/mjY=; b=TaGcTdE89tD7MyUKK9JtVGHe9ffJYEbt3Dd+tG/fSvY83nxkS+ea37pMcP29CA9m1s iFs6dRHAOUd3J6WCRbxwyRPx9lWQYpA9xNJVbIcHIWwMgWhKDc6bDmqVtexaVOfMlgch aDMW2SGl4ziESckfGxll/nDv0UGb4SP7ocdtJIaHfbs0QSHUFPGv/ZgINIJL27aDMeqd VZj+3Bek8WBWQeyaXxvBtfsc1yQ7VRbmBPTH8FZSPrthm54UHT8RXTSt325r6QCo8ZU+ 79SpUpKKsdGa1FJ2I/nUErBPpT4Yag959mRWUo6RCsvEK/XEA4BKcWcB9Pn2luGkbwP7 5C5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713444516; x=1714049316; h=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=0M78v9nKtcu9aDQjEM1qTGU4tk87ySL7DtZXrv0/mjY=; b=O4zu4nG+FP37+CDTcQf1wG6+iHUECewesp3Tz1f8p/nEPZ4V03q5/MDlArLBdN8f+W HSi/CP0x+S11g0r1rSM1ZJ9BM8nlnrbXtiLWxHMhmA1hse/Ph9ZkGPxatIeNDGjjxhii I7uGqS2cs58rM5pClfSW1e01ig+xOWqUei+spjRFunKv/RbuZaetDAJdllqC3FOmxgfv aW70SNibNQrTAKJuNBfm4EGuJwkGmO1ZAKdFFi1TgeieIs4Z17Vak2nMijB+DyXafi4a 6SLuyvS8JyXa5x2QUmQS9lcKPhbNo/X+s73/dxBkDPAJWXdLN9j126EMW6ocjElSJKN+ YTJA== X-Gm-Message-State: AOJu0YwPOH67f1uT/G2eQaU421fAQfuf7L55zlhWEbi6LdKFkOYdFjyn RJUSKzNq/ghzNkBPOeui4s84L65uxCZSlDGCUWKJDVH24j1MsH/TdEijma4+G3o= X-Google-Smtp-Source: AGHT+IGNj2qyqpmKhYF5SNexUkkbj2Eqj5W+/wzjibv+mQrOYEFftw0xcyN8tor6A7xrYppfL8hXHg== X-Received: by 2002:a17:902:9a0b:b0:1e2:ac38:2674 with SMTP id v11-20020a1709029a0b00b001e2ac382674mr2553527plp.46.1713444516478; Thu, 18 Apr 2024 05:48:36 -0700 (PDT) Received: from lvzhaoxiong-KLVC-WXX9.huaqin.com ([116.66.212.162]) by smtp.gmail.com with ESMTPSA id ju24-20020a170903429800b001e3d8c237a2sm1423509plb.260.2024.04.18.05.48.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 05:48:36 -0700 (PDT) From: lvzhaoxiong To: dmitry.torokhov@gmail.com, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jikos@kernel.org, benjamin.tissoires@redhat.co, dianders@google.com, hsinyi@google.com Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, lvzhaoxiong Subject: [PATCH v1 2/2] HID: i2c-hid: elan: Add ili2900 timing Date: Thu, 18 Apr 2024 20:48:15 +0800 Message-Id: <20240418124815.31897-3-lvzhaoxiong@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240418124815.31897-1-lvzhaoxiong@huaqin.corp-partner.google.com> References: <20240418124815.31897-1-lvzhaoxiong@huaqin.corp-partner.google.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" ILI2900 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 100ms, so the post_gpio_reset_on_delay_ms is set to 100. Signed-off-by: lvzhaoxiong --- 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/i2c-hid-of-elan.c index 5b91fb106cfc..3073620b2dec 100644 --- a/drivers/hid/i2c-hid/i2c-hid-of-elan.c +++ b/drivers/hid/i2c-hid/i2c-hid-of-elan.c @@ -137,10 +137,18 @@ static const struct elan_i2c_hid_chip_data ilitek_ili2901_chip_data = { .main_supply_name = "vcc33", }; +static const struct elan_i2c_hid_chip_data ilitek_ili2900_chip_data = { + .post_power_delay_ms = 10, + .post_gpio_reset_on_delay_ms = 100, + .hid_descriptor_address = 0x0001, + .main_supply_name = NULL, +}; + static const struct of_device_id elan_i2c_hid_of_match[] = { { .compatible = "elan,ekth6915", .data = &elan_ekth6915_chip_data }, { .compatible = "ilitek,ili9882t", .data = &ilitek_ili9882t_chip_data }, { .compatible = "ilitek,ili2901", .data = &ilitek_ili2901_chip_data }, + { .compatible = "ilitek,ili2900", .data = &ilitek_ili2900_chip_data }, { } }; MODULE_DEVICE_TABLE(of, elan_i2c_hid_of_match);