Message ID | 20221208111910.1.I39c387f1e3176fcf340039ec12d54047de9f8526@changeid |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp379356wrr; Thu, 8 Dec 2022 11:23:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf4kNUxnB9KTOPwD32WJEucepap6sdQZZ7cfV4YQ+TP57+/m+LDf7jzBYRRDeEtM6Gc7pEZD X-Received: by 2002:a17:90a:5103:b0:219:b374:6a7d with SMTP id t3-20020a17090a510300b00219b3746a7dmr23589714pjh.22.1670527379981; Thu, 08 Dec 2022 11:22:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670527379; cv=none; d=google.com; s=arc-20160816; b=ZENSkA9Oxk72LU3rhKetio1TND/ephPor0nkED97ktD+4Sl9wzRpuGh4KakGLVPSw7 7MHpyuw1rVZ/1NEZFePihN5ezrwvLJzYfWCfVy6NUpnfOYNc0a72VApBK7My8HN1+3E2 51ssaVT1MTWghvh8Hbi59ZmPoXRyzMXdFwGZ/ZJP28BBq52g0o5+VT5Qsjecl6IjP4dA 3KACt25MSzLA+yEIYzsLNkqtBIbw5NJVgwJYF+MHRAQMgCu4JE1WJPQ2DIgXq8fgfok/ X2zrk30cyXT2Ukdrz5ONaLZdxaro/NYf42pif4HTjprpS5sU6Sk6C2s7WvYH1DmG9ymh xUqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mU15PmQ7y4jCLhzpRiDgBwZPVlqL2rxQ5MC828vQiLw=; b=olPdxXiTAVHO67QycS0UBOAfBPAntYjCG7hBMnfW3uZJ9MayhTFnUsYhHXGnmz6IXg pT9KZatTSg4PuMSc3FNwF1ryA5evQf0wwkUWubvnGNdbivk6pLhuq8X/+6wdScYyF9sL 1BLaxl9qXFQDn6I2swmef633Im0o/NoqspgeAU5KT7aK8I2zppyevp175cCqD4+iPt3g JOnY0jZ9wEe9jDVr6JhrDhXDY5IwWzgEpxaO9CXTN952Ztuk8Qa1S1mjwQUF0/vonVQD SO7gxaqlhwvn0ClWXSCDjs7l+H75jn7ELiecav+zgo5mVyjuq/4w1J/p49Cs3P7WA25l KFkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=UtZBnVwu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r10-20020a63d90a000000b004787004c8dasi22531516pgg.123.2022.12.08.11.22.46; Thu, 08 Dec 2022 11:22:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=UtZBnVwu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229762AbiLHTUj (ORCPT <rfc822;foxyelen666@gmail.com> + 99 others); Thu, 8 Dec 2022 14:20:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229658AbiLHTUd (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 8 Dec 2022 14:20:33 -0500 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68C7F25F4 for <linux-kernel@vger.kernel.org>; Thu, 8 Dec 2022 11:20:32 -0800 (PST) Received: by mail-pj1-x102f.google.com with SMTP id u5so2482862pjy.5 for <linux-kernel@vger.kernel.org>; Thu, 08 Dec 2022 11:20:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; 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=mU15PmQ7y4jCLhzpRiDgBwZPVlqL2rxQ5MC828vQiLw=; b=UtZBnVwuE1PrB9zKCulUevgNmkD3pmq5tiL+Ard+l0p/FsDDyKgRZOr6mI5GO/cwi0 G75JjAG+E2Zf5gO0nim5H8WlklfKjtuSB7iRUKUIXLz6Soe4y5w1JK98KRj2z3F/rGRi cdz6Gvr6WqpUlCm8Clr2G2YPnYKsm5asVhARM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=mU15PmQ7y4jCLhzpRiDgBwZPVlqL2rxQ5MC828vQiLw=; b=yDe/g8KdgfYzJAWd2q2ZfAmcy4Fsg/bi2ygoauYtc2npJylunwstGQ1QZmtC2APjC5 PrTIQHan+d+xKUle+ZfKMYOUHlOdVh6KWmdn4UgjQRN/X1Kz9BB+Z1rDKZIoii/uQiui 0g/eRJ9wzhS1LwGz4nyeKKSVnUzQ5sbNREoq/oL2O6QAVz/HB0eVTgD4AZoA6VcfK91g XfyZQKAbDTVa2CUcNL2SSkpaAYfYuyRz3UqMmqEsLWXDAGLb0nOZ1puCqB88IJWEJM7T RLDCiifq4Jk0aiIra+5KsKIFR4YYHavUJMn40EQvn8ceJWHg3U/dhmC+2k+rI0DjGi1A NtOw== X-Gm-Message-State: ANoB5pnKq0rvoH0z44czS45ET12LhA9oOXVnf8vVXTL6gj7LJSXFq1gN uTT4lvCOkpt5Xj6/L3grgE6Ucg== X-Received: by 2002:a17:902:6b05:b0:185:441f:7087 with SMTP id o5-20020a1709026b0500b00185441f7087mr2916552plk.12.1670527231917; Thu, 08 Dec 2022 11:20:31 -0800 (PST) Received: from tictac2.mtv.corp.google.com ([2620:15c:9d:2:3aa1:2c62:9ac:4468]) by smtp.gmail.com with ESMTPSA id u5-20020a170902e5c500b00186a2274382sm17112019plf.76.2022.12.08.11.20.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 11:20:31 -0800 (PST) From: Douglas Anderson <dianders@chromium.org> To: Bjorn Andersson <andersson@kernel.org>, Dmitry Torokhov <dmitry.torokhov@gmail.com> Cc: mka@chromium.org, swboyd@chromium.org, linux-arm-msm@vger.kernel.org, linux-input@vger.kernel.org, Yunlong Jia <ecs.beijing2022@gmail.com>, Konrad Dybcio <konrad.dybcio@linaro.org>, Douglas Anderson <dianders@chromium.org>, Andy Gross <agross@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Rob Herring <robh+dt@kernel.org>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/5] arm64: dts: qcom: sc7180: Bump up trogdor ts_reset_l drive strength Date: Thu, 8 Dec 2022 11:20:02 -0800 Message-Id: <20221208111910.1.I39c387f1e3176fcf340039ec12d54047de9f8526@changeid> X-Mailer: git-send-email 2.39.0.rc1.256.g54fd8350bd-goog In-Reply-To: <20221208192006.1070898-1-dianders@chromium.org> References: <20221208192006.1070898-1-dianders@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751674918049244954?= X-GMAIL-MSGID: =?utf-8?q?1751674918049244954?= |
Series |
arm64: dts: qcom: sc7180: Make pazquel360's touchscreen work
|
|
Commit Message
Doug Anderson
Dec. 8, 2022, 7:20 p.m. UTC
On at least one board (pazquel360) the reset line for the touchscreen
was scoped and found to take almost 2 ms to fall when we drove it
low. This wasn't great because the Linux driver for the touchscreen
(the elants_i2c driver) thinks it can do a 500 us reset pulse. If we
bump the drive strength to 8 mA then the reset line went down in ~421
us.
NOTE: we could apply this fix just for pazquel360, but:
* Probably other trogdor devices have similar timings and it's just
that nobody has noticed it before.
* There are other trogdor boards using the same elan driver that tries
to do 500 us reset pulses.
* Bumping the drive strength to 8mA across the board won't hurt. This
isn't a high speed signal or anything.
Signed-off-by: Douglas Anderson <dianders@chromium.org>
---
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
Comments
On Thu, Dec 08, 2022 at 11:20:02AM -0800, Douglas Anderson wrote: > On at least one board (pazquel360) the reset line for the touchscreen > was scoped and found to take almost 2 ms to fall when we drove it > low. This wasn't great because the Linux driver for the touchscreen > (the elants_i2c driver) thinks it can do a 500 us reset pulse. If we > bump the drive strength to 8 mA then the reset line went down in ~421 > us. > > NOTE: we could apply this fix just for pazquel360, but: > * Probably other trogdor devices have similar timings and it's just > that nobody has noticed it before. > * There are other trogdor boards using the same elan driver that tries > to do 500 us reset pulses. > * Bumping the drive strength to 8mA across the board won't hurt. This > isn't a high speed signal or anything. > > Signed-off-by: Douglas Anderson <dianders@chromium.org> Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi index f1defb94d670..ff1c7aa6a722 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi @@ -1376,7 +1376,15 @@ ts_reset_l: ts-reset-l-state { pins = "gpio8"; function = "gpio"; bias-disable; - drive-strength = <2>; + + /* + * The reset GPIO to the touchscreen takes almost 2ms to drop + * at the default drive strength. When we bump it up to 8mA it + * falls in under 500us. We want this to be fast since the Elan + * datasheet (and any drivers written based on it) talk about using + * a 500 us reset pulse. + */ + drive-strength = <8>; }; sdc1_on: sdc1-on-state {