Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1497795rwb; Thu, 8 Dec 2022 11:23:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf4dcSbzxHtEHH1GvEKG8eAqtRaWKsS6pjl6P/uyNYo/dxOJIUv6+yrIa31c1UmBkGVgmm24 X-Received: by 2002:a17:90a:df8f:b0:219:20ed:101e with SMTP id p15-20020a17090adf8f00b0021920ed101emr59970206pjv.215.1670527414173; Thu, 08 Dec 2022 11:23:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670527414; cv=none; d=google.com; s=arc-20160816; b=K6TMWQD7Q+GA0fy/b6a7C8Y05N65k0iVmx8m3gawU5KM+kJT9lkp2LW2fxaKzZIdfj u5/lIO/r/uXmp2vcn6Oj1028vZPkT15FCFVIsWUvbaO0l5TNBlX2XpUtMQt+88/Cb/+p iyG9261qJbB+/NTmBrYruypSXuGx7+1hRql7qRfVVnwdeKnyoGjk0iPdYhJEX8CqUfzG PKNAXIPqjQG88CFI8keacvNljnV6rAPwq4c4fSGeK9lZdmd65n0RXCzspOD4WTFAYpgT q1q09Ujazikm7rzD3TUPNYNUvw5BKkh+MXfJ1qE1wL2uHhg3FsizmO6CCuRYIqszcQlD i7wg== 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 Return-Path: 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.23.24; Thu, 08 Dec 2022 11:23:34 -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 + 74 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 ); 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 ; Thu, 8 Dec 2022 11:20:32 -0800 (PST) Received: by mail-pj1-x102f.google.com with SMTP id u5so2482862pjy.5 for ; 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 To: Bjorn Andersson , Dmitry Torokhov Cc: mka@chromium.org, swboyd@chromium.org, linux-arm-msm@vger.kernel.org, linux-input@vger.kernel.org, Yunlong Jia , Konrad Dybcio , Douglas Anderson , Andy Gross , Krzysztof Kozlowski , Rob Herring , 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 { -- 2.39.0.rc1.256.g54fd8350bd-goog