From patchwork Sat May 20 05:06:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: cong yang X-Patchwork-Id: 684813 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F259C77B7F for ; Sat, 20 May 2023 05:07:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229989AbjETFHk (ORCPT ); Sat, 20 May 2023 01:07:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbjETFHh (ORCPT ); Sat, 20 May 2023 01:07:37 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B652E3 for ; Fri, 19 May 2023 22:07:35 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id 98e67ed59e1d1-253e0edc278so487800a91.3 for ; Fri, 19 May 2023 22:07:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20221208.gappssmtp.com; s=20221208; t=1684559255; x=1687151255; 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=vLfhWFWhRnJrb9n2LabL3N4xYn3hRlJodRzxs9jLlNk=; b=4l1iWqVn+p4B/DtwSZWXKsnFQCuUF7jVLvfWAMgYvf3z6jl5I/1cfqATp6CHfzL56M T29X3OfFpeu46dXP0DTGQLlfxbNOWs9f3zsHzicQL3ENGyWbau7Ut2EobPij89dkeNU4 iLU1zf+6UINJlEppHuxpEE1PI5fEM/n8Xie8+4daA/Fg/+UTw/SvJfuE9cZZ4dROYwF4 VYybjQy+AXbYWnZjIwNkqfYyLA8P0D5YI+yqbTfueyC//ADlLSyVPtrKebuhYX9pgPfu 6LFndjfsvt65rHxY1pL6RP8YUMdU1yA9vp4DK/GzNWzkHFwHFs8IIuesqW+4VdjV+Rvy Xwwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684559255; x=1687151255; 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=vLfhWFWhRnJrb9n2LabL3N4xYn3hRlJodRzxs9jLlNk=; b=T3UtfwiRYgj3ymEeCnvC+rRw70VFsH4XyBIaKzEdI8gDEHkikOLzpA3Uejz/jNvOBf Usfsm8sb4nv4ggnfrpkXhkhKjbOHoWMevCtFwv/QGyE1xQ1jKfHVVMCIgqxqVeIev2N1 kCLzhlr5bgVP+tlpWgzatmbx0upeWg+TvhrPY+81897qILBkuth1kss33i2FLJbCNDIN MRKXoh8/SqZjlP3QXtBH+bBAq64GbRKySeyRrWvKamVbnZtT8NKS1kJQ6IgMRVPCA8Gx tYt/0E7eWkA0IExHhAO9x9NcRXqGuIFyRkxv8XpUH18Eiw2cRU91LI15yivPmdadf2O8 a5eg== X-Gm-Message-State: AC+VfDyV8eziUCO+fwZsoSQ+Idspd20ci6mB+YYoMW6k+fJUc6fqa6+T pfDC3L2m2CSBdzCcos73QTSNLQ== X-Google-Smtp-Source: ACHHUZ7bE+wcxNdvlZzLrWkKAg8OGy8DsN4IVNhlPJ0NapeY9zgFCUta+vjbokmi2DUOge4yvwP54w== X-Received: by 2002:a17:90b:4f4e:b0:24e:4231:ec6b with SMTP id pj14-20020a17090b4f4e00b0024e4231ec6bmr4061182pjb.21.1684559254931; Fri, 19 May 2023 22:07:34 -0700 (PDT) Received: from yc.huaqin.com ([101.78.151.214]) by smtp.gmail.com with ESMTPSA id jf9-20020a170903268900b0019e60c645b1sm476725plb.305.2023.05.19.22.07.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 22:07:34 -0700 (PDT) From: Cong Yang To: dianders@chromium.org Cc: benjamin.tissoires@redhat.com, devicetree@vger.kernel.org, dmitry.torokhov@gmail.com, hsinyi@google.com, jikos@kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, mka@chromium.org, yangcong5@huaqin.corp-partner.google.com Subject: [v2 1/2] HID: i2c-hid: elan: Add ili9882t timing Date: Sat, 20 May 2023 13:06:48 +0800 Message-Id: <20230520050649.2494497-2-yangcong5@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230520050649.2494497-1-yangcong5@huaqin.corp-partner.google.com> References: <20230520050649.2494497-1-yangcong5@huaqin.corp-partner.google.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org The ili9882t is a TDDI IC ((Touch with Display Driver)). It requires the panel reset gpio to be high before i2c commands. Use a longer delay in post_power_delay_ms to ensure the poweron sequence. Signed-off-by: Cong Yang --- drivers/hid/i2c-hid/i2c-hid-of-elan.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/hid/i2c-hid/i2c-hid-of-elan.c b/drivers/hid/i2c-hid/i2c-hid-of-elan.c index 76ddc8be1cbb..dd2435270e73 100644 --- a/drivers/hid/i2c-hid/i2c-hid-of-elan.c +++ b/drivers/hid/i2c-hid/i2c-hid-of-elan.c @@ -105,8 +105,15 @@ static const struct elan_i2c_hid_chip_data elan_ekth6915_chip_data = { .hid_descriptor_address = 0x0001, }; +static const struct elan_i2c_hid_chip_data ilitek_ili9882t_chip_data = { + .post_power_delay_ms = 200, + .post_gpio_reset_delay_ms = 180, + .hid_descriptor_address = 0x0001, +}; + 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 }, { } }; MODULE_DEVICE_TABLE(of, elan_i2c_hid_of_match); From patchwork Sat May 20 05:06:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: cong yang X-Patchwork-Id: 684415 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 25581C77B7A for ; Sat, 20 May 2023 05:07:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230175AbjETFHu (ORCPT ); Sat, 20 May 2023 01:07:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229627AbjETFHt (ORCPT ); Sat, 20 May 2023 01:07:49 -0400 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06FFCE42 for ; Fri, 19 May 2023 22:07:44 -0700 (PDT) Received: by mail-pg1-x52e.google.com with SMTP id 41be03b00d2f7-530638a60e1so3718859a12.2 for ; Fri, 19 May 2023 22:07:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20221208.gappssmtp.com; s=20221208; t=1684559263; x=1687151263; 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=Zr3+BQp3+2PjwyI+d5nRt/2xB87GampH66jS3gUBxOw=; b=tQq8QqCjFnJXUkndLkdBDdM88GCy5IZKOOlXkaOaIr8MBB9T1cEo0bNgo+YhRpvxId GKjfaaAnS7PS9YjGBCtDsgIfZDYvs8t2CujkKCKQADpGZutumj3mTZzdyXUD0sUq6ZPa I4PWQ8N71cgI97NLd/QVANZOuv53UJFEZuH8WYSbFWvBEyAgsltLNPEY1ErUm0CQ7Irz GGk6HANnSbbVhpLPFwuw1cAn/h2+YBgp41soSIulUdFzLysHKNdIuyjnm+9CKhiBzQXX BsqQWQzf19VmVWqgzI/A9t6P2+WR3SxZvdferiiLZ0cC8gcu4LP5wE+ujmEfAUKvLtGz pUkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684559263; x=1687151263; 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=Zr3+BQp3+2PjwyI+d5nRt/2xB87GampH66jS3gUBxOw=; b=F2tBCg9/MQKN0qJem1Ww05Ysk3cirI+lFM1mevhxkdaKeFLBuQlcKTjBn/d2zHEiTQ bxIMtVtI7LpSvTZQt3RBjcfN6oZahkznMH00sIbmeMGbsscBDKAMI9JTSni3zeLq+/db uFJ0Io4EvS18B+Bxlr7WhXJEQBvwqfRotS/8S53vWl/FSRfpS0HhhVS6diOBMyiEGL17 kB0SWl4pPZXEs1COdj+fc59pvhx9zfEer/DDrIcgZh0+oBlJi4pA0f4dk9Gh3lUjezbO 5yruB28NShkKdaxf6LhPq5TiXqrft7xB+20DrJmdQxs9fdaUdTZR9dqxGbf1wDtnaGSa TqIA== X-Gm-Message-State: AC+VfDzOMnZjsC+3j+YVYn2ORD+OWLMmBlQaBQf4yc4lmOBO1Lt+ocNt P1g02pShUVGxHmWZa8jd9QjJ3A== X-Google-Smtp-Source: ACHHUZ7l/uiLFw7b+1H9hfC4+7wi76DzEWM6L9/k2ZR6jjCTwESstBl79wynT9r2LhOfVl+959hYEg== X-Received: by 2002:a17:902:db03:b0:1ae:6135:a050 with SMTP id m3-20020a170902db0300b001ae6135a050mr6091997plx.19.1684559263554; Fri, 19 May 2023 22:07:43 -0700 (PDT) Received: from yc.huaqin.com ([101.78.151.214]) by smtp.gmail.com with ESMTPSA id jf9-20020a170903268900b0019e60c645b1sm476725plb.305.2023.05.19.22.07.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 22:07:43 -0700 (PDT) From: Cong Yang To: dianders@chromium.org Cc: benjamin.tissoires@redhat.com, devicetree@vger.kernel.org, dmitry.torokhov@gmail.com, hsinyi@google.com, jikos@kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, mka@chromium.org, yangcong5@huaqin.corp-partner.google.com Subject: [v2 2/2] dt-bindings: input: touchscreen: Add ilitek 9882T touchscreen chip Date: Sat, 20 May 2023 13:06:49 +0800 Message-Id: <20230520050649.2494497-3-yangcong5@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230520050649.2494497-1-yangcong5@huaqin.corp-partner.google.com> References: <20230520050649.2494497-1-yangcong5@huaqin.corp-partner.google.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Add an ilitek touch screen chip ili9882t. Signed-off-by: Cong Yang --- .../devicetree/bindings/input/elan,ekth6915.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/input/elan,ekth6915.yaml b/Documentation/devicetree/bindings/input/elan,ekth6915.yaml index 05e6f2df604c..29eb63b2360b 100644 --- a/Documentation/devicetree/bindings/input/elan,ekth6915.yaml +++ b/Documentation/devicetree/bindings/input/elan,ekth6915.yaml @@ -15,11 +15,16 @@ description: properties: compatible: - items: + oneOf: - const: elan,ekth6915 + - items: + - const: elan,ekth6915 + - const: ilitek,ili9882t reg: - const: 0x10 + enum: + - 0x10 + - 0x41 interrupts: maxItems: 1