From patchwork Thu Dec 8 19:20:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 632586 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F3CBC10F1B for ; Thu, 8 Dec 2022 19:20:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229470AbiLHTUe (ORCPT ); Thu, 8 Dec 2022 14:20:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229543AbiLHTUb (ORCPT ); Thu, 8 Dec 2022 14:20:31 -0500 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B46E79854F for ; Thu, 8 Dec 2022 11:20:30 -0800 (PST) Received: by mail-pl1-x634.google.com with SMTP id y17so2485280plp.3 for ; Thu, 08 Dec 2022 11:20:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ifQ3Jav6VsSh1zyTRvbz7pDkhV+r1K5wCw7Us/t45o0=; b=X5atqoLOC95H8hGG6aBCNBoodKm+iMf7Ug0EuydjqLq5lc+FvwdCwRWqKzn+D6ITYD sHDDLbefyapJJE5aWPeT2ZnrzctfSZmI4BdUvu7Tsm8IfbmyXCAitOp0ICvAWYCLohSr /WxClb5RXALcnX5LBwlGxTkiMGVRtouhYKSc8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ifQ3Jav6VsSh1zyTRvbz7pDkhV+r1K5wCw7Us/t45o0=; b=yla8yoflELSyj6LgNAdCgTHYPDwdezMoqSHzrORAAz9ANZcjB/hu2BmxGiGuXr4+Um R3D4giSN81tiPNojXSPr+e9nCSXYuQIkVKkM3tmTHy4kHjCq+pDUsjfbMW66IWLx+bjj JYcgE6EXXxkHuZVIcJ0UpKSxbw2b0D9Sjywdg2DA90PX428msNf9TgPrxzvSrb1v33V+ Oz3h8M8Hh2OdI+o87xYL20uwkdrm/6MBR1gRn7FTOgeC3znfcNdegpAOS1J88BgUcufX NrDt1ckZcgYDTd0rTYG1W6InJZlfwn+iHR3uCk6TRVy5EfYjwMOhxSf5s3ST36JRXLCb 2GKA== X-Gm-Message-State: ANoB5pmmcy7IzVdE1H4yjluJUtAcr9vthp57t5JDVkrUovwiLlXI4qOo PodL49N8bqEFOYgXdRfvNgVOZmwZ/KPb1cKN X-Google-Smtp-Source: AA0mqf70cATti+xb7wjPXJuFUg5RS0zjxNnJbgQkzNAyfUDBsVP2zR8uCcSgJ32j6So/RiOaMZCGuA== X-Received: by 2002:a17:902:c745:b0:189:9519:87b6 with SMTP id q5-20020a170902c74500b00189951987b6mr2423967plq.5.1670527230259; Thu, 08 Dec 2022 11:20:30 -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.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 11:20:29 -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 , Johnny Chuang , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/5] arm64: dts: qcom: sc7180: Make pazquel360's touchscreen work Date: Thu, 8 Dec 2022 11:20:01 -0800 Message-Id: <20221208192006.1070898-1-dianders@chromium.org> X-Mailer: git-send-email 2.39.0.rc1.256.g54fd8350bd-goog MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This series of patches adds / fixes problems with pazquel360's touchscreen. A few notes here: 1. Originally the touchscreen was supposed to be added as part of the first landing of the pazquel360 device tree. ...but the fact that Yunlong changed email addresses seems to have messed up Bjorn's scripts. What landed was v3 [1] instead of v5 [2]. The pazquel360 part of this series is that diff. 2. We delayed sending the fixup till now because soon after the series landed upstream we found that some laptops were having trouble initting the touchscreen in cases where the eDP/touchscreen regulator was left on by the bootloader. We've been struggling to make sense of all of this. As part of this investigation we landed a85fbd649844 ("Input: elants_i2c - properly handle the reset GPIO when power is off") but that wasn't enough. That fix, together with the fixes in this series, is enough though. 3. This series is mostly device tree changes with one more change to the Elan driver. They are fine to land in separate trees. It turns out that with _just_ the device tree changes things are actually working OK but the timing is tight, so getting a little extra breathing room from the Linux driver is nice. 4. Despite the fact that we did debugging here on pazquel360, many of the changes here are made in general for trogdor devices. I believe that this will make the timing more correct on those devices even if we weren't actually seeing problems. [1] https://lore.kernel.org/r/20220901024827.v3.2.Iea2d2918adfff2825b87d428b5732717425c196f@changeid [2] https://lore.kernel.org/r/20220923083657.v5.3.Iea2d2918adfff2825b87d428b5732717425c196f@changeid Douglas Anderson (5): arm64: dts: qcom: sc7180: Bump up trogdor ts_reset_l drive strength arm64: dts: qcom: sc7180: Add trogdor eDP/touchscreen regulator off-on-time arm64: dts: qcom: sc7180: Start the trogdor eDP/touchscreen regulator on arm64: dts: qcom: sc7180: Add pazquel360 touschreen Input: elants_i2c: Delay longer with reset asserted .../dts/qcom/sc7180-trogdor-homestar.dtsi | 18 ++++++++++++++++ .../qcom/sc7180-trogdor-parade-ps8640.dtsi | 20 ++++++++++++++++++ .../dts/qcom/sc7180-trogdor-pazquel360.dtsi | 21 +++++++++++++++++++ .../dts/qcom/sc7180-trogdor-ti-sn65dsi86.dtsi | 20 ++++++++++++++++++ arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 10 ++++++++- drivers/input/touchscreen/elants_i2c.c | 2 +- 6 files changed, 89 insertions(+), 2 deletions(-)