From nobody Sat Dec 27 03:18:51 2025 Received: from mail-io1-f50.google.com (mail-io1-f50.google.com [209.85.166.50]) (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 557CBE540 for ; Mon, 25 Dec 2023 09:29:06 +0000 (UTC) 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="IAMdZK4v" Received: by mail-io1-f50.google.com with SMTP id ca18e2360f4ac-7b913830d8eso164545239f.1 for ; Mon, 25 Dec 2023 01:29:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1703496545; x=1704101345; darn=vger.kernel.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=rM3L8/KXyNSKVF6DKDu5/tgBl9vyRql4RKhzWcWNp34=; b=IAMdZK4v2DgkCh+nxJniIxfQp1U7Ed42ezYPtesOiw4cZtugjjeV7WBvQ26eggt5VT tyUm6IMIVLjZvHf4EvXwOgwhWokJ60EFXj4qSPwsBtoOAec7Yxs9xKUQPI6Baux65GEI 1m/ql9Ga1Clh8c7kHIiPzdHovG2gVg1psavo811zzyw3aQKhl0c2fW+w4ussQaqtewMw aGCqZnx9FOfZQbj6qJaoIqPzyaDMFvstykhIMHLoM/YREjNmIVWYchpBcjtpM1XJOx7J U4HoK/RCVFM59XwIkAy9Y+Kky2bU2VnXnU3hTaOxSJ+K0xN5JBHw6aY/pdFUEk4fpTfm Qlsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703496545; x=1704101345; 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=rM3L8/KXyNSKVF6DKDu5/tgBl9vyRql4RKhzWcWNp34=; b=iirEDQztrmjEmbDMmK4LyQH0Qwo3kySjBdx+FkQeiV4GCxZJREj9f2+VYXYLK25kl6 LWSaom4tR8oc6BsuinxyYS4j7kjmI6dM2iq4Wk7a4iT02ktoIdXXWR0pWRQUfg+TVRsy VWi/d9R0XeU16KA9XDdky92o3MHUqAyJL/kibQpCQiAkbsTWqAKESH5A+elNHYGk1cQU ekEL2K/n/FoVmmf/4+9p+Z3GZS3qN+BaLpyAgFSHfF+yeRbeMKvVAHGRQfCm+TngTgZU N8QA7f2eXwQ3yddvB38WnlHc8hCoJFOMCdCjL4ncjOP3b+dkbpqqBil876uQD5xyqzql AEtw== X-Gm-Message-State: AOJu0YwW6nYzK3Hqk/dEvcgkrIaa7QtUfwIyWpcNq02IAn3rtXXm0dNb Dg6zPb4BYFMlYoNSX8pH+4dY/o7bgKS6gQ== X-Google-Smtp-Source: AGHT+IHswuLbWFKWVyxQw9iVsv7e0nhmJv+NQhgMEIVwhya1dkcNSvL+xxHdq92XjCodwj5kFXFaNQ== X-Received: by 2002:a05:6602:b90:b0:7b7:8429:68e1 with SMTP id fm16-20020a0566020b9000b007b7842968e1mr6333981iob.20.1703496545279; Mon, 25 Dec 2023 01:29:05 -0800 (PST) Received: from ubuntu.huaqin.com ([116.66.212.162]) by smtp.gmail.com with ESMTPSA id l16-20020a656810000000b005cdfa6f5aeesm4393267pgt.94.2023.12.25.01.29.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 01:29:05 -0800 (PST) From: xiazhengqiao To: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: dmitry.torokhov@gmail.com, robh+dt@kernel.org, jikos@kernel.org, benjamin.tissoires@redhat.com, dianders@chromium.org, xiazhengqiao Subject: [v1 1/2] dt-bindings: HID: i2c-hid: elan: Introduce bindings for Ilitek ili2901 Date: Mon, 25 Dec 2023 17:28:42 +0800 Message-Id: <20231225092843.5993-2-xiazhengqiao@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231225092843.5993-1-xiazhengqiao@huaqin.corp-partner.google.com> References: <20231225092843.5993-1-xiazhengqiao@huaqin.corp-partner.google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Because ilitek, ili2901 needs to use reset to pull down the time for 10ms, so we need to control the reset, use this drive control. Signed-off-by: xiazhengqiao --- Documentation/devicetree/bindings/input/elan,ekth6915.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/input/elan,ekth6915.yaml b/D= ocumentation/devicetree/bindings/input/elan,ekth6915.yaml index 3e2d216c6432..b9e51432b9e8 100644 --- a/Documentation/devicetree/bindings/input/elan,ekth6915.yaml +++ b/Documentation/devicetree/bindings/input/elan,ekth6915.yaml @@ -20,6 +20,7 @@ properties: compatible: items: - const: elan,ekth6915 + - const: ilitek,ili2901 =20 reg: const: 0x10 --=20 2.17.1 From nobody Sat Dec 27 03:18:51 2025 Received: from mail-oa1-f50.google.com (mail-oa1-f50.google.com [209.85.160.50]) (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 5ACCA10A12 for ; Mon, 25 Dec 2023 09:29:08 +0000 (UTC) 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="hpIJdxwO" Received: by mail-oa1-f50.google.com with SMTP id 586e51a60fabf-203fed05a31so2608344fac.0 for ; Mon, 25 Dec 2023 01:29:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1703496547; x=1704101347; darn=vger.kernel.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=rJRavJQd/R4FAxoUrS2zZEwoVbqLgFXWyrD1r6G8+C0=; b=hpIJdxwO8jAX1oTKCiaEjTyCbo8jI2I+cYzleJGls8zkn7JPB/lHFJXTk8eXURhhza B7YROpD4S9rNmJlrWjN/l9eU64VCko9TTFQoAl5Nr7XSgAa9p6ArDr9rESL9lXt+U/fw L4qaIKLW+cWO8+liN509hmJPJ/siXDJZn9qBN2a+lVGBtnc80M/SIXeMmwVYs9SLcnzk LMdT8QNtv6BExxwtYB2y7ZNZ1UIHzl0q08WpypO86unuWZok9xB7NUoLyeLrq983gJQz YO1H5mzNGbNzPtXdHiajK92vTUWsKB1lRDBzf6sbr01eOTfMXa3fCXo+0Zhezn0I5WzS RbpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703496547; x=1704101347; 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=rJRavJQd/R4FAxoUrS2zZEwoVbqLgFXWyrD1r6G8+C0=; b=FdgeWVri2FY0gW4zFnvnhqiWzGtRHrOw/3/0Obmy43GQRf6UWxZnWnabqPTiIv3FAf /Zomv2lPzaIh4wuQnI7T549xc+lBD0ijRzS8K7Ino1ARgP3B1U5/33TWpOBFnwJoCo4M /NIaYi1jQlSfU0KbbJ5MtJODJnow+3VHxmv6DXHTm9DVNGbMOZTsX2BeoyuH+1je25lD 52bIsJFkx9W2s3tsm7U6GwgCUvNqGPByLgNxrJmDMoK3w7gs/u4Wrth/ZNRmjf3PV5XY ksz/PXPq4erhuFh1PbE7JpdkRy+2hjtzEVKeaCEW+6EoSsaxpnQLvpAQZTrvokTyf8Q+ 5OmQ== X-Gm-Message-State: AOJu0YzgM0HJDzU4wKIkRWGAxAIZYolaHPw0ac4RpEYt+W5gBwolv4C2 QjRUaqlblpfqO6fdVRH0lZ18vGYABIvU5+foVpIvNLyB+a4= X-Google-Smtp-Source: AGHT+IEb/yOcg6zMso4IfDNO4WFNOh2byPsTCGxp7TAn8FmpQ4jQXMnIGRYBy/bYlqzUwTOZxUMgmA== X-Received: by 2002:a05:6871:6111:b0:203:faf4:9a2d with SMTP id ra17-20020a056871611100b00203faf49a2dmr6204241oab.63.1703496547319; Mon, 25 Dec 2023 01:29:07 -0800 (PST) Received: from ubuntu.huaqin.com ([116.66.212.162]) by smtp.gmail.com with ESMTPSA id l16-20020a656810000000b005cdfa6f5aeesm4393267pgt.94.2023.12.25.01.29.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 01:29:07 -0800 (PST) From: xiazhengqiao To: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: dmitry.torokhov@gmail.com, robh+dt@kernel.org, jikos@kernel.org, benjamin.tissoires@redhat.com, dianders@chromium.org, xiazhengqiao Subject: [v1 2/2] HID: i2c-hid: elan: Add ili2901 timing Date: Mon, 25 Dec 2023 17:28:43 +0800 Message-Id: <20231225092843.5993-3-xiazhengqiao@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231225092843.5993-1-xiazhengqiao@huaqin.corp-partner.google.com> References: <20231225092843.5993-1-xiazhengqiao@huaqin.corp-partner.google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" ILI2901 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: xiazhengqiao Reviewed-by: Linus Walleij --- 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 31abab57ad44..5b91fb106cfc 100644 --- a/drivers/hid/i2c-hid/i2c-hid-of-elan.c +++ b/drivers/hid/i2c-hid/i2c-hid-of-elan.c @@ -130,9 +130,17 @@ static const struct elan_i2c_hid_chip_data ilitek_ili9= 882t_chip_data =3D { .main_supply_name =3D NULL, }; =20 +static const struct elan_i2c_hid_chip_data ilitek_ili2901_chip_data =3D { + .post_power_delay_ms =3D 10, + .post_gpio_reset_on_delay_ms =3D 100, + .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 "ilitek,ili9882t", .data =3D &ilitek_ili9882t_chip_data= }, + { .compatible =3D "ilitek,ili2901", .data =3D &ilitek_ili2901_chip_data }, { } }; MODULE_DEVICE_TABLE(of, elan_i2c_hid_of_match); --=20 2.17.1