From patchwork Tue Dec 26 02:37:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhengqiao Xia X-Patchwork-Id: 13504757 Received: from mail-oi1-f176.google.com (mail-oi1-f176.google.com [209.85.167.176]) (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 72609ED0 for ; Tue, 26 Dec 2023 02:37:54 +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="VLNui+6n" Received: by mail-oi1-f176.google.com with SMTP id 5614622812f47-3bbaa1aaba3so884027b6e.1 for ; Mon, 25 Dec 2023 18:37:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1703558273; x=1704163073; 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=4Ux3WNF8rboeDgyQ70WkkgI9lGJuAsq0KqVfHnjsHSk=; b=VLNui+6noJ6fYc57aAekWolBv+YnvAbX0iMwcTFyu4zX0bYTm9L5/1GLOTeG0U/fyc uVxWymc2tBZRJgb6repaCOqh+Q5xV69dRgIR8aZrJ/dpIv5j+tJm5plmqHLmAcX/Ih8g jENLK1d/SIQihzxyviYWZqgazMm7d2PCUjIFI94DCvwFDjnmIl8ImlsDXDTOjIl8x4aX iLDgtPdPh9SwZz43TI2nXoJafcZC0ags3H5Et/FVjXgkI7toAVCdP+TigAP6fuk1qoyl XSpcFyEvaKFkfeS/Op6/UaP1R1eQGv3rM64+K8sIDA1cv0iSHgGXaknAyew9qQFeoNkP Fjug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703558273; x=1704163073; 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=4Ux3WNF8rboeDgyQ70WkkgI9lGJuAsq0KqVfHnjsHSk=; b=CMeF0WIbj1hTarv42Fp////uj4OU4fWihJmFNzFXMu3mABFW0/eYzcBXoSqr+Yip28 q2VUbw4eWikvFesC29hypfiIzC+A4ynff7p8ddp/izDWtRmt/hF4o4dsVaM0d1Oy6ljn JNx2qKB+IAmuAgYoiJSA67YtKLa4FyIe39/QFEX10NgH6qDw24L8/Vh1UwRqMEr8tP9I aq2t4mUQxK4/6En1Arg2RcUrBUwbeYqJsdAJt2tLokulFWjOqLYxbTMM2+ldAfm9kZCv zVZFx3GqU7z9ICba2LmutdeXZ775ilMXyXO5Cu+7vee7V7qUMyAD0EzAJu6VoI3LyadT 3Fiw== X-Gm-Message-State: AOJu0YyePEAybxkqsJTh+yuuPfX3EgENnBr2xFIWfwoutSwEdqg/EfV8 P/h7O8Zb0QKhlgmEQtQPYXY0zA8243Kxwi/qfENjfFIweVw= X-Google-Smtp-Source: AGHT+IFv+Pjk/sd+z4ccnoGxDv6jaeKr0Y3mkmO+WVI4p/oMvBhMqZ/7PGpkacBDK0X+JJq4pelYnw== X-Received: by 2002:a05:6808:384c:b0:3bb:a533:7fb8 with SMTP id ej12-20020a056808384c00b003bba5337fb8mr4876344oib.60.1703558273387; Mon, 25 Dec 2023 18:37:53 -0800 (PST) Received: from ubuntu.huaqin.com ([116.66.212.162]) by smtp.gmail.com with ESMTPSA id b11-20020a17090a8c8b00b0028c2de909e4sm5083190pjo.50.2023.12.25.18.37.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 18:37:53 -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, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jikos@kernel.org, benjamin.tissoires@redhat.com, dianders@chromium.org, xiazhengqiao Subject: [v2 1/2] dt-bindings: HID: i2c-hid: elan: Introduce bindings for Ilitek ili2901 Date: Tue, 26 Dec 2023 10:37:36 +0800 Message-Id: <20231226023737.25618-2-xiazhengqiao@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231226023737.25618-1-xiazhengqiao@huaqin.corp-partner.google.com> References: <20231226023737.25618-1-xiazhengqiao@huaqin.corp-partner.google.com> Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 Signed-off-by: Zhengqiao Xia --- Documentation/devicetree/bindings/input/elan,ekth6915.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/input/elan,ekth6915.yaml b/Documentation/devicetree/bindings/input/elan,ekth6915.yaml index 3e2d216c6432..dc4ac41f2441 100644 --- a/Documentation/devicetree/bindings/input/elan,ekth6915.yaml +++ b/Documentation/devicetree/bindings/input/elan,ekth6915.yaml @@ -18,8 +18,9 @@ allOf: properties: compatible: - items: - - const: elan,ekth6915 + enum: + - elan,ekth6915 + - ilitek,ili2901 reg: const: 0x10 From patchwork Tue Dec 26 02:37:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhengqiao Xia X-Patchwork-Id: 13504758 X-Patchwork-Delegate: jikos@jikos.cz Received: from mail-oi1-f181.google.com (mail-oi1-f181.google.com [209.85.167.181]) (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 CA93E1860 for ; Tue, 26 Dec 2023 02:37:56 +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="vvGU7WOM" Received: by mail-oi1-f181.google.com with SMTP id 5614622812f47-3bb82a52002so3753132b6e.2 for ; Mon, 25 Dec 2023 18:37:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1703558276; x=1704163076; 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=vvGU7WOMNazfcy7UVP9yR3JZLXZmmriIAaz8wvoVDm1QM/RdZFgMKlgTEIGElAWn1k XrIXhwHAiuW2QPmSZRhVxdfc8dLI79luRI6t3jOXZbh0zLyrofz/XQ624tkpr8t/AlzW 8fB9s6cTPJ60TokO2BrIOyJBJa5d7N+TQAxoO9JPSH4j6wUz8A8dlSK3tkWdh9fEBA9D BcpRWuq9/Od6TawMwK0M5seWKD6oXPicDzUTtUbZvTbNPfBl1BddEe23dyREfUmHQs2M vDxZaWDBDEQtFZAoo9z6ab//SFOU2WT+/GWl/n1rAQCWMSWvyMYt/zm+RsCzD0W4wnE3 O8Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703558276; x=1704163076; 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=q36xFSOKoDEwVp7ZrTQXK9BhSj8/kgijEFgVlcc1bGdLrTdHiGDjME4kDHhPT2SXFx 6qSmUbrPKRXRpmFN+BfiSk20MQsPNeyNOI6RK1QjrN0oJ/H5iW7rVJb8cVLmeySgGOTr amCZSBezGO29e2VnFkGbFyqFRv1yWTtwfai0e+UHxl9qBWt0qs6/B5PgvheMhcB4VMdP 8V23uFQutQ0IGFkvw2jefL5KoCDfRsHE6689zbHXDUrN5/s+1SqkFaEdkYLwrSs0aC5S TOvcXzbN5z8SfWht78140FEBZ7amuXPrMq2OZl3FpUDwaUuTL0K4+z3Z+R+MCBgNRfvC AmjQ== X-Gm-Message-State: AOJu0YxSEbPHAuStZn+tG+eKqqWLzoU+H4FfwjW3zEyC6q2XieUYa+Tk tZzERBjGJji/TncrIKB5xW1AkhE9OOeBV6Xo989NvBtSagk= X-Google-Smtp-Source: AGHT+IGm2pxlhyYkOod9Tx6M+PMbYfnwMyTrGfF0FZg26RcstOF4WMJmZ1P2dwPM1ijwFyU5sTj8dw== X-Received: by 2002:a05:6808:d4b:b0:3b8:b063:adf5 with SMTP id w11-20020a0568080d4b00b003b8b063adf5mr9148436oik.82.1703558275695; Mon, 25 Dec 2023 18:37:55 -0800 (PST) Received: from ubuntu.huaqin.com ([116.66.212.162]) by smtp.gmail.com with ESMTPSA id b11-20020a17090a8c8b00b0028c2de909e4sm5083190pjo.50.2023.12.25.18.37.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 18:37:55 -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, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jikos@kernel.org, benjamin.tissoires@redhat.com, dianders@chromium.org, xiazhengqiao Subject: [v2 2/2] HID: i2c-hid: elan: Add ili2901 timing Date: Tue, 26 Dec 2023 10:37:37 +0800 Message-Id: <20231226023737.25618-3-xiazhengqiao@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231226023737.25618-1-xiazhengqiao@huaqin.corp-partner.google.com> References: <20231226023737.25618-1-xiazhengqiao@huaqin.corp-partner.google.com> Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 --- 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 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_ili9882t_chip_data = { .main_supply_name = NULL, }; +static const struct elan_i2c_hid_chip_data ilitek_ili2901_chip_data = { + .post_power_delay_ms = 10, + .post_gpio_reset_on_delay_ms = 100, + .hid_descriptor_address = 0x0001, + .main_supply_name = "vcc33", +}; + 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 }, { } }; MODULE_DEVICE_TABLE(of, elan_i2c_hid_of_match);