From patchwork Tue Jul 16 08:28:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhaoxiong Lv X-Patchwork-Id: 13734166 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 CD945C3DA59 for ; Tue, 16 Jul 2024 08:29:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5B69910E5D0; Tue, 16 Jul 2024 08:29:10 +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="meym/4yg"; dkim-atps=neutral Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by gabe.freedesktop.org (Postfix) with ESMTPS id B9C3010E5D6 for ; Tue, 16 Jul 2024 08:29:09 +0000 (UTC) Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-70b31272a04so3935232b3a.1 for ; Tue, 16 Jul 2024 01:29:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1721118549; x=1721723349; 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=0cHEfw05PzIXTBho9roSLu3dox3EYU5nHarCYBHiFzg=; b=meym/4ygQ0Hwi4oqmaSzje51Ox5rFjcYk9J0BGrk01DhWzyJr/FzfNyPoyGPyz+XgX xpjSPKmNWbKphypH484q6ifEFKpzT0CaZKK2RLWWubIG8/Q2L6hTqyKIYjidhQiLdZYW ZCupftuDyuPi/eqIauDKhXJ8Fe3JfUrrbZbKX9T2U72hdzc4fwYT/w+tfHNED+XSClb3 HiZe+7LoxKuRxsnkfgF20UdnVlxRBhIeZT4iXSPZ9+oPIpKcTvbmLuyn+epsirBjuzvr W4ljoMjwdr6ngkPnvvFkjjG5d07G0gIBkU8XyCDXmUA/WoaO+uuaf/iHABPRJbblhgPX NJXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721118549; x=1721723349; 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=0cHEfw05PzIXTBho9roSLu3dox3EYU5nHarCYBHiFzg=; b=uSmhgqZUcwAZDJK+59F/lzWW04uhXLqYKbIP5YI+wVavfopZkVtMfaRNZXVF/Pf4yl hewlDM035Dg5AT7QilqGFGGL4foFiUSs/4JoxNUDO+A4bKp6flohm8Z8fot6RXzR55EH 1S1cHAZv5VwIpRZlOKdTX3ACt1VRQ2meFbwpk+UuHtJTwvB1G8zgBs+/fua9Lw8879cD Qb1tFywx2sTem7OR+2KMdJ2FlO4HQH00mftU3rgF0TW6VUw9+pdA5HNnjMu8no2ExGUc Enip6uReqTIMzm2hn3gAmsqapVhhxwIXN/jmRL4rrqItqyxFX3GEUqIAzTMUJ3pkcCOF OLrQ== X-Gm-Message-State: AOJu0YwSDb3irCiHeKUZVyA8TdsFXhGlxdWFXyJgiaaQRZBVA18oEYpP Be3WxX3plUH9E5b8vuBG0gOTx1n3fyZ5Fq0o0hRihlxORI13RSZuOP1cI98Qcjs= X-Google-Smtp-Source: AGHT+IE3qUg41F90doDcsAXrAz8l7EtcoFuvjXP3rjxDD5uv2FyCzJPVH1EglS0lBSr/iPxY4WEPfg== X-Received: by 2002:a05:6a20:8427:b0:1c0:ebca:963d with SMTP id adf61e73a8af0-1c3f1e73544mr1985199637.4.1721118549100; Tue, 16 Jul 2024 01:29:09 -0700 (PDT) Received: from lvzhaoxiong-KLVC-WXX9.huaqin.com ([116.66.212.162]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-70b7ec7e110sm5714347b3a.121.2024.07.16.01.29.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jul 2024 01:29:08 -0700 (PDT) From: Zhaoxiong Lv To: dmitry.torokhov@gmail.com, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jikos@kernel.org, bentiss@kernel.org, linus.walleij@linaro.org, dianders@chromium.org, hsinyi@google.com Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Zhaoxiong Lv Subject: [PATCH v3 1/2] dt-bindings: HID: i2c-hid: elan: Introduce Elan ekth6a12nay Date: Tue, 16 Jul 2024 16:28:50 +0800 Message-Id: <20240716082851.18173-2-lvzhaoxiong@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240716082851.18173-1-lvzhaoxiong@huaqin.corp-partner.google.com> References: <20240716082851.18173-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 Elan ekth6a12nay 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: Zhaoxiong Lv Acked-by: Rob Herring (Arm) --- Changes between V3 and V2: - 1. "ekth6915" isn't a fallback, modify it. v2: https://lore.kernel.org/all/20240715073159.25064-2-lvzhaoxiong@huaqin.corp-partner.google.com/ Changes between V2 and V1: - 1. Respin the series on top of v6.10. v1: https://lore.kernel.org/all/20240704085555.11204-2-lvzhaoxiong@huaqin.corp-partner.google.com/ --- Documentation/devicetree/bindings/input/elan,ekth6915.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/input/elan,ekth6915.yaml b/Documentation/devicetree/bindings/input/elan,ekth6915.yaml index a62916d07a08..f683048fd0c4 100644 --- a/Documentation/devicetree/bindings/input/elan,ekth6915.yaml +++ b/Documentation/devicetree/bindings/input/elan,ekth6915.yaml @@ -24,6 +24,7 @@ properties: - elan,ekth5015m - const: elan,ekth6915 - const: elan,ekth6915 + - const: elan,ekth6a12nay reg: const: 0x10 From patchwork Tue Jul 16 08:28:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhaoxiong Lv X-Patchwork-Id: 13734167 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 F26EBC3DA49 for ; Tue, 16 Jul 2024 08:29:15 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7BE2D10E5C9; Tue, 16 Jul 2024 08:29:15 +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="VeJ7eq5r"; dkim-atps=neutral Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4203410E5CF for ; Tue, 16 Jul 2024 08:29:14 +0000 (UTC) Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-70b09cb7776so3621901b3a.1 for ; Tue, 16 Jul 2024 01:29:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1721118554; x=1721723354; 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=F4VscS3YS8kYjDJ/yOGc674uy9N5r6MdDESLHfUey0s=; b=VeJ7eq5rIErYb3Fsnjp6FA5EFpTeVoKab+gLjgookGG88CWrn93/18GPW0DvJoAHng wkSQ9nOlGSD3SgWOD55Lig+tXzDAt0JDYKxvnhXknFd8Ol677SjwUWSHkjp3yifavnMo m6sEAayAQ2RlPikF3KnGsvnMLeXHZFFgvkhW9ohbdJG1jmsDQ78XWfUfpFJXG5KoMYnr 0JZl1zXu3ScN+SkH82edUjzmvKEnTiaWMrGTfvPNuLYicyXXNnlkJ7HDHpTHzo00DjR/ 4mpUoCxonGnW6njZQZUKAH/9WGXbMJI7tFK8Y/91C90RKHCjlBWUdBS9IBFbE/81cNy8 OoCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721118554; x=1721723354; 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=F4VscS3YS8kYjDJ/yOGc674uy9N5r6MdDESLHfUey0s=; b=e70it2zb/t8ZMXVGb/ek0Afr0EN5YrKufji5Yb2sYavHl18BhquKGbm39wx/19HueQ PNdn/XrcmSmriBzz3qGN3n24jqqW2Xm0sTJKb/GN0OIZRVwGRwe1Siby1+ce+EKmzZ1X aeFUMy1hPnTGM4sbROMifI4iSoni/iAvmW7HTwnBipMbzlkqOib2u8iliqEp7gus8LF7 MmfJal59CifxYrb1ogAc4CAdApDmgSgzJELEBgiNKohVJ88EEJKBgo78rTE0TapJBokB 2sr1krBCrcbEww/72O1fQYLCN7Pbn3X1NVD1Id3QVf20QOm2AQsxMMq5Fuf2aUNlXL4r JhZA== X-Gm-Message-State: AOJu0YyTpDNIK76sgZ/ktEuidPs0NamGy37ZI/gnWoEupVOeDecZdCNn EkYdCQK1KWrjjxf0/CBHPM4QLfkqyAl0fEawyql/jHX6lihvhnucoZ1yBa/NfVU= X-Google-Smtp-Source: AGHT+IFH6uGCvMKeaGDMTFjXeKuRtBVJAm84izd2QqVH5X35wOUvL96rbDdtUAUyInj3udsao+qpmA== X-Received: by 2002:a05:6a00:9a7:b0:705:a450:a993 with SMTP id d2e1a72fcca58-70c1fbda81fmr1838471b3a.17.1721118553689; Tue, 16 Jul 2024 01:29:13 -0700 (PDT) Received: from lvzhaoxiong-KLVC-WXX9.huaqin.com ([116.66.212.162]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-70b7ec7e110sm5714347b3a.121.2024.07.16.01.29.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jul 2024 01:29:13 -0700 (PDT) From: Zhaoxiong Lv To: dmitry.torokhov@gmail.com, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jikos@kernel.org, bentiss@kernel.org, linus.walleij@linaro.org, dianders@chromium.org, hsinyi@google.com Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Zhaoxiong Lv Subject: [PATCH v3 2/2] HID: i2c-hid: elan: Add elan-ekth6a12nay timing Date: Tue, 16 Jul 2024 16:28:51 +0800 Message-Id: <20240716082851.18173-3-lvzhaoxiong@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240716082851.18173-1-lvzhaoxiong@huaqin.corp-partner.google.com> References: <20240716082851.18173-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" Elan-ekth6a12nay 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. Reviewed-by: Douglas Anderson Signed-off-by: Zhaoxiong Lv --- Changes between V3 and V2: - 2. No changes. v2: https://lore.kernel.org/all/20240715073159.25064-3-lvzhaoxiong@huaqin.corp-partner.google.com/ Changes between V2 and V1: - 1. No changes. v1: https://lore.kernel.org/all/20240704085555.11204-3-lvzhaoxiong@huaqin.corp-partner.google.com/ --- 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 091e37933225..3fcff6daa0d3 100644 --- a/drivers/hid/i2c-hid/i2c-hid-of-elan.c +++ b/drivers/hid/i2c-hid/i2c-hid-of-elan.c @@ -152,6 +152,13 @@ static const struct elan_i2c_hid_chip_data elan_ekth6915_chip_data = { .main_supply_name = "vcc33", }; +static const struct elan_i2c_hid_chip_data elan_ekth6a12nay_chip_data = { + .post_power_delay_ms = 10, + .post_gpio_reset_on_delay_ms = 300, + .hid_descriptor_address = 0x0001, + .main_supply_name = "vcc33", +}; + static const struct elan_i2c_hid_chip_data ilitek_ili9882t_chip_data = { .post_power_delay_ms = 1, .post_gpio_reset_on_delay_ms = 200, @@ -174,6 +181,7 @@ static const struct elan_i2c_hid_chip_data ilitek_ili2901_chip_data = { static const struct of_device_id elan_i2c_hid_of_match[] = { { .compatible = "elan,ekth6915", .data = &elan_ekth6915_chip_data }, + { .compatible = "elan,ekth6a12nay", .data = &elan_ekth6a12nay_chip_data }, { .compatible = "ilitek,ili9882t", .data = &ilitek_ili9882t_chip_data }, { .compatible = "ilitek,ili2901", .data = &ilitek_ili2901_chip_data }, { }