From patchwork Fri Dec 9 17:12:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 31884 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp895656wrr; Fri, 9 Dec 2022 09:16:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf4RmQV6UK9ZrZncsgq+V1qTS3yTDbaTDhbFkzfT32pSc6gQEcaWKa/i9Ez0AuD742wIGQLW X-Received: by 2002:a17:906:3c15:b0:7c1:4d21:abb7 with SMTP id h21-20020a1709063c1500b007c14d21abb7mr4968ejg.54.1670606207075; Fri, 09 Dec 2022 09:16:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670606207; cv=none; d=google.com; s=arc-20160816; b=1A4eWU/8aM82V9epAoLj7OFXvn7QKsKudIP/dVa1boCORTMjMRxr4vpZnEQVHQw+2b 74uT6/iAHzo5SjsXo6+nExCto69cC/C4BhLl4ucNZ0K/fWQq+sUx05JepUBj47CfJlmS JnzhFE4xrdlgWlLeNiu1IQRGlN1HxmPmiqyF5f1bF5dQpZy00SlWHsONk+BwwWvV+DpC 73je/q6mHL/5GTvgu3Cv31fKq0Hwgt7AmTSBLddGgIsUknejKwD3QxrhDbY5BOCZ/lqA OK/6r45IUsQeTLXy0kuXCxegCThy8OK2c2RNhOq8Gx+p6RkodwI3Thsctuuv5D0L3Zj2 aNNQ== 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=M88P4SMh5VCPJCyuLc/w2B8fWJUsM71IvdRT7VAjmHQ=; b=jcFzKz+AKp+qKBVmhS8yp4mO8BUFaBCrngOCT4GmotI6xDC3QMLjDdK1AF9UlVoUep crUZLoQpV7x/ZHPj2zVjTjN4XbWXYrwEq8FBZtUS4y8FZU7KNOkcGlLdxXwa7Acf8fkY FhfDo3Jc2aPHTNJ38htCMB4IWt3BI/BFRXoXvVuOqaS9HCuYtAPw8uTlwr+sFrOegWDu rnuqL83Q/havm6um1vVDR25gaaP+ayjrEsKgB2aYAxKJF55eX6KRw8ZdqJcbG1PFojiB x+IzudwfUZ5+5kgBpMnhkcrBMpmsi5ewURX1pUj/9YV0SS85bML9OM7AaoVPh0ZHeydC RkNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fGd3e82N; 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 qw28-20020a1709066a1c00b007ae84881ebasi260868ejc.505.2022.12.09.09.16.23; Fri, 09 Dec 2022 09:16:47 -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=fGd3e82N; 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 S230019AbiLIRN2 (ORCPT + 99 others); Fri, 9 Dec 2022 12:13:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229760AbiLIRNV (ORCPT ); Fri, 9 Dec 2022 12:13:21 -0500 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D2E9419B5 for ; Fri, 9 Dec 2022 09:13:14 -0800 (PST) Received: by mail-pl1-x629.google.com with SMTP id a9so5528994pld.7 for ; Fri, 09 Dec 2022 09:13:14 -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=M88P4SMh5VCPJCyuLc/w2B8fWJUsM71IvdRT7VAjmHQ=; b=fGd3e82N31A7l0GFrD4RELU4+SmeP8YESrYNFW7YbDq/1R5jPqb8HNf+yew8ZNCRFM C7/4ccIgu7oVj7ehikAIRQtjKtveYz2hYbWdeapMVOiPP2ZlFmwVaQBpTsw0kUPnRo+M A6RKaIjdiuS+DXbkVcxHNSKfFI/mfyREzSE9s= 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=M88P4SMh5VCPJCyuLc/w2B8fWJUsM71IvdRT7VAjmHQ=; b=50Fe9Kh5Zk6YwCZSn3SbmTL9jU+38HWKkMJ9M8KoNiuZXWB+ZNgcNHysHj92e4Ra7k 0HJeu9LoNjm0oPuCj+QOqX1P3f6ADtich1YSl9UvFv8deDtFB3R4wNIerVhhpPpUfaMV AfwGfrDYYVPJvb+LZrfX1jMkqAbUByyUVqHW7xJTBGBk/ubHux0EMt+LEcT8WigrFZrA Ft4j9ykofBuQLeTemShyf3sFh0LyhEVQ2bThEhzPlnEkhc/joQIb7+2NJt0fM1Bs1Td4 SitE7h6oO4clQLhdwb5fb0fj3jVH4YP1nH14+ldHIqgiiT5y7wh9UztlEvk49q5u94zW lz3w== X-Gm-Message-State: ANoB5pmGG5eK2s1A/nsV534XbLhscNp50MBOAaFy4D5lEBFVdc1c+WR8 A+q0crcOP0KlK/+yetzcBQHXfg== X-Received: by 2002:a17:902:aa08:b0:189:fb78:a7d4 with SMTP id be8-20020a170902aa0800b00189fb78a7d4mr6267571plb.21.1670605994046; Fri, 09 Dec 2022 09:13:14 -0800 (PST) Received: from tictac2.mtv.corp.google.com ([2620:15c:9d:2:9a82:7898:7bf4:b4f]) by smtp.gmail.com with ESMTPSA id j16-20020a170902da9000b00189c62eac37sm1597503plx.32.2022.12.09.09.13.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Dec 2022 09:13:13 -0800 (PST) From: Douglas Anderson To: Bjorn Andersson Cc: swboyd@chromium.org, Dmitry Torokhov , mka@chromium.org, Yunlong Jia , linux-arm-msm@vger.kernel.org, Konrad Dybcio , linux-input@vger.kernel.org, Douglas Anderson , Andy Gross , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/4] arm64: dts: qcom: sc7180: Bump up trogdor ts_reset_l drive strength Date: Fri, 9 Dec 2022 09:12:37 -0800 Message-Id: <20221209091234.v3.1.I39c387f1e3176fcf340039ec12d54047de9f8526@changeid> X-Mailer: git-send-email 2.39.0.rc1.256.g54fd8350bd-goog In-Reply-To: <20221209171240.1614904-1-dianders@chromium.org> References: <20221209171240.1614904-1-dianders@chromium.org> MIME-Version: 1.0 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=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751757574322165980?= X-GMAIL-MSGID: =?utf-8?q?1751757574322165980?= 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 Reviewed-by: Matthias Kaehlcke Reviewed-by: Konrad Dybcio --- (no changes since v1) 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 { From patchwork Fri Dec 9 17:12:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 31885 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp895796wrr; Fri, 9 Dec 2022 09:17:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf4nIYV4rokHv6YTnva+RQx2rDA7OOZ55UOwvNmBERe7m/oe8BNaIKi0j7LZ3xrqMHx55xt2 X-Received: by 2002:a17:906:bcf3:b0:7c1:22a6:818c with SMTP id op19-20020a170906bcf300b007c122a6818cmr4298155ejb.46.1670606222784; Fri, 09 Dec 2022 09:17:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670606222; cv=none; d=google.com; s=arc-20160816; b=Jr/RpoQ2QEscHgN5tiKILr+D46ROoIV1MY77uez4FPN8URVvqrQQQ0ReopFaobiWi3 /u8hSLtWFavyzjfIfgY9L/o+zyBaQQhD5P+h83gZQruC+VtrnmHW7yiSAPCq5+3vgRqI XGUBmg0GGBsQFhgcP+yJdozHUo84+jIB8fXTtL5zVyltHJSheNtZuaS7T56sycorjaox P+FtQO7Q26FtBf9gZlQxhUlS6CsmkKBnkI5OcJ3XTVAp2NO+0tQf7owJViuQZCOX9NYw mAOZdGyCGe3YEJz6Q5yWTCbUGMfHtA88vjLJNZYDl9ecXBud+sYa91I+nd3Knkyr3uAl MvFA== 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=30dMEap98zmC9FjobmK4HAr7EsnBPy2I728S8irHPHo=; b=DnzBGe1n32FZRdX+D6P93fkrYR8JeOX3A3cLdkwsQU+xHKDc5QTuKxZPgpim+AF67e H41SvAoDxAFGRyVOpK18ZoMGdDB32jGEXRg7VmHtcDLBkTdIuoOQNKTjoklrmFegblpE eB7rfwcz6fZnG6zJjyL3T9UjZrAAQ4YBtYacEsL6h18JxCom4yknng3WtE8wlRdLsz1s rS6As2LgPC69h1HcKoW8g2lkpedcltlTayau77zDpiATjiydq9l3umFcdXdytfjgYkfd AxRlWxvzsv/ERr2VJ6iu8J8IcwktXlexZihs7+UJ0oLuB6vzj2c+g8rRTBgPVMWYjjyF jKAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=SqpXkBzU; 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 hs7-20020a1709073e8700b007a7a3b40920si224572ejc.995.2022.12.09.09.16.39; Fri, 09 Dec 2022 09:17:02 -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=SqpXkBzU; 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 S230097AbiLIRNd (ORCPT + 99 others); Fri, 9 Dec 2022 12:13:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229868AbiLIRNW (ORCPT ); Fri, 9 Dec 2022 12:13:22 -0500 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CCEB42998 for ; Fri, 9 Dec 2022 09:13:16 -0800 (PST) Received: by mail-pl1-x62a.google.com with SMTP id jn7so5513980plb.13 for ; Fri, 09 Dec 2022 09:13:16 -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=30dMEap98zmC9FjobmK4HAr7EsnBPy2I728S8irHPHo=; b=SqpXkBzUzzGdcOEoAZiSACFm/WChD89j4Uxx9+5wm9SE08kj3TH0SDV2/fXJRh5+qK aV4iJdKWBV8EzVE91QPEG6iCBSwF7jeXbR9Z+mCho7sHhrPP7WGsD4B30zu3aSq682pa vt5znMBOCJDHjSVvhlRMW1B44dTeLKeDF6RmA= 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=30dMEap98zmC9FjobmK4HAr7EsnBPy2I728S8irHPHo=; b=UPGLwhtaegP+jiq81fwSMvGq7NGY1Gq09iprUqEiKE4+kZxS2fGbtmfQjKhd5ofc9b wQ0iYgsFIbeV/q5iSoKWbUyZASDRSJ2pQi7td8vXwUHY8SQfGbXC4DYhiSfFpZrH4e8a cjwkGsQjfhdml2PQt7QRJwUQ1Phs7YsRiie557pmRVhOirx+xqICvVjfra417fM58TeL YL1/+7Fp+OWfYWorNmChPbbxE3bU7R6gIK7ItJnls2X2s8NfJVc4nretYNvvqlRWDyg5 /P0i+WC5OPMDi2ZYmsBvlrYvoaYZupnMDL3QIkGldwdlL+XnrJPfeGSFKLnz2wze9we0 47Vw== X-Gm-Message-State: ANoB5pn1ewBJbtRQkkgzue1E04qi0evcAswgRUgXegXB4sKm1L3fx1si yjQF7XaTz4x4Dav/2J2kvYZ+uw== X-Received: by 2002:a17:902:9881:b0:185:441e:4d0e with SMTP id s1-20020a170902988100b00185441e4d0emr6484880plp.62.1670605996123; Fri, 09 Dec 2022 09:13:16 -0800 (PST) Received: from tictac2.mtv.corp.google.com ([2620:15c:9d:2:9a82:7898:7bf4:b4f]) by smtp.gmail.com with ESMTPSA id j16-20020a170902da9000b00189c62eac37sm1597503plx.32.2022.12.09.09.13.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Dec 2022 09:13:15 -0800 (PST) From: Douglas Anderson To: Bjorn Andersson Cc: swboyd@chromium.org, Dmitry Torokhov , mka@chromium.org, Yunlong Jia , linux-arm-msm@vger.kernel.org, Konrad Dybcio , linux-input@vger.kernel.org, Douglas Anderson , Andy Gross , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/4] arm64: dts: qcom: sc7180: Add trogdor eDP/touchscreen regulator off-on-time Date: Fri, 9 Dec 2022 09:12:38 -0800 Message-Id: <20221209091234.v3.2.I65ac577411b017eff50e7a4fda254e5583ccdc48@changeid> X-Mailer: git-send-email 2.39.0.rc1.256.g54fd8350bd-goog In-Reply-To: <20221209171240.1614904-1-dianders@chromium.org> References: <20221209171240.1614904-1-dianders@chromium.org> MIME-Version: 1.0 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=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751757590409420605?= X-GMAIL-MSGID: =?utf-8?q?1751757590409420605?= In general, the timing diagrams for components specify a minimum time for power cycling the component. When we remove power from a device we need to let the device fully discharge and get to a quiescent state before applying power again. If we power a device on too soon then it might not have fully powered off and might be in a weird in-between / invalid state. eDP panels typically have a time that's at least 500 ms here. You can see that in Linux's panel-edp driver nearly every device specifies a "unprepare" time of at least 500 ms. This is a common minimum and the 500 ms is even in the example in the eDP spec. In Linux, the "panel-edp" driver enforces this delay for its own control of the regulator, but the "panel-edp" driver can't do anything about other control of the regulator (for instance, by the touchpanel driver). Let's add 500 ms as a board constraint for the regulator that's used for eDP/touchpanel on trogdor boards. If a given trogdor board stuffs only panels that can use a shorter time or stuff some panels that need a larger time then they can manually adjust this timing. We'll only do this minimum delay for trogdor devices with eDP (ones that use either bridge chip), not for devices with MIPI panels. MIPI panels could have similar constraints but the 500 ms isn't necessarily as standard and there are no known cases where this delay is needed. For most trogdor boards, this doesn't actually seem to affect anything when testing against shipping Linux. However, with pazqel360 it seems that this does make a difference. It seems that the touchscreen on this board _also_ needs some time for the regulator to discharge. That time is much less than 500 ms, so we'll just put the eDP panel 500 ms in there since the board constraint should be the "max" of the components. Signed-off-by: Douglas Anderson Reviewed-by: Matthias Kaehlcke --- (no changes since v2) Changes in v2: - Fix typo in commit message (Matthias) .../boot/dts/qcom/sc7180-trogdor-parade-ps8640.dtsi | 12 ++++++++++++ .../boot/dts/qcom/sc7180-trogdor-ti-sn65dsi86.dtsi | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-parade-ps8640.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor-parade-ps8640.dtsi index ebd6765e2afa..e27a769f8cd4 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-parade-ps8640.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-parade-ps8640.dtsi @@ -26,6 +26,18 @@ pp3300_brij_ps8640: pp3300-brij-ps8640-regulator { }; }; +/* + * ADDITIONS TO FIXED REGULATORS DEFINED IN PARENT DEVICE TREE FILES + * + * Sort order matches the order in the parent files (parents before children). + */ + +&pp3300_dx_edp { + off-on-delay-us = <500000>; +}; + +/* ADDITIONS TO NODES DEFINED IN PARENT DEVICE TREE FILES */ + &dsi0_out { remote-endpoint = <&ps8640_in>; }; diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-ti-sn65dsi86.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor-ti-sn65dsi86.dtsi index 65333709e529..3188788306d0 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-ti-sn65dsi86.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-ti-sn65dsi86.dtsi @@ -7,6 +7,18 @@ #include +/* + * ADDITIONS TO FIXED REGULATORS DEFINED IN PARENT DEVICE TREE FILES + * + * Sort order matches the order in the parent files (parents before children). + */ + +&pp3300_dx_edp { + off-on-delay-us = <500000>; +}; + +/* ADDITIONS TO NODES DEFINED IN PARENT DEVICE TREE FILES */ + &dsi0_out { remote-endpoint = <&sn65dsi86_in>; }; From patchwork Fri Dec 9 17:12:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 31886 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp895815wrr; Fri, 9 Dec 2022 09:17:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf46xYCr+Ni4YNI7QE3c6fCC/SXmcXL+Q/415Aj1WGDDNfEHoaBJEqiibNpKY2qey8mYpYNh X-Received: by 2002:a17:906:3651:b0:7c0:c220:a33d with SMTP id r17-20020a170906365100b007c0c220a33dmr9471933ejb.9.1670606224900; Fri, 09 Dec 2022 09:17:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670606224; cv=none; d=google.com; s=arc-20160816; b=hPteqy6KQeNjvQh6eFW+PK97bV5en1msWMA/dm1oD0uLUcMXEDIveDnYGqvR+XEkR9 kbSf4Ex9GIb2S3bVz0GpuMa8/UbtDxHL6Yz8h7TOJFDSMfAAuTaQAfzMmsAkXN9Bm/Bq W0/hUiELvezpJ68PXlboPQMhbkYw17q/WZZxjNOJTCBgEqEJYQcU4vIjFMXN/loIIdzb qYTUy+SLacsusRGoaVAyAguZaAsVUdrgIgnuKziWf9ScG6u4OP+NI/fdBF4Idsumh3B0 xJXcYiyVvUnL5Dn74h19CFp8t2Io8dHzZpZ0extswGLVxMYhbIPGiVd6zlDsbIvHYvnH 4MUA== 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=O0omoS8MV63r00CQ4nuB53paFZYXNiG9HsPf+U2WQ9E=; b=RAvOI5j0WGRLKCFXgZ3mzwGTDI2Q0noOXQCmDx2kv2qW9Q2CQQUT8yxdU28eoBhEkJ aGt3Hem8LoiP03tIWT6j0evgUNRdQQTwUfOXTkjwCy5/EQicimlhfvGx1/jjyQSFoQst wrjSNg8HMws6dLWsOno+bcxWAaewFEwy99zYQCXYmQ6GAVEKW0wA2tbi8U3wRwSGSE4j vCxYC1g2jIxAKRT7DLSNt/9A+9B9XNPlbEPW4lVvSi6kUqizawWzId5KbnwDRFYVftnc zckIAY9CiuxZSZmfYPWGOvICVEbTe4/tm/w6pLOYxWkTHvK3PpgUU89xGCUReJxpxBKp xhjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="Wa3jW/P9"; 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 cw10-20020a170906478a00b007c0d6091781si242864ejc.639.2022.12.09.09.16.42; Fri, 09 Dec 2022 09:17:04 -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="Wa3jW/P9"; 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 S229972AbiLIRNj (ORCPT + 99 others); Fri, 9 Dec 2022 12:13:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229929AbiLIRNX (ORCPT ); Fri, 9 Dec 2022 12:13:23 -0500 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AC1943AF3 for ; Fri, 9 Dec 2022 09:13:18 -0800 (PST) Received: by mail-pl1-x629.google.com with SMTP id d7so5526825pll.9 for ; Fri, 09 Dec 2022 09:13:18 -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=O0omoS8MV63r00CQ4nuB53paFZYXNiG9HsPf+U2WQ9E=; b=Wa3jW/P9medwAOfYN+2bRU1Hjp4n13rmgrVGmNkpXpDZ5AJ/m/CDI1UUbBHuFWxEeV BNNwxa4pcUfpOKFrrP6JMOlXHoy5lL0aMJ+Uk8pEeJsVlrk4F2e8aFElg4RT+Q0V/fIP HQaJVOXN93/MKQfO+r//lld8GalJy+iueSUeM= 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=O0omoS8MV63r00CQ4nuB53paFZYXNiG9HsPf+U2WQ9E=; b=JZbxQh2XzjEqXxOQF+ef2fODM2M1Mc2bxyWVeOiVA4p5BlXolaoQ/UGZjMYNrMR47z ++HDNbkVD8PME4EFN6hd3SkVgx/47Mb6LuoZft9Yx5ZL3gt8jIfW0OBzZwLFPlvXcKcN Ea8Z+ZsVBuVjdKJci8NBneU1HODJmgucm0/kU5rbIc3yuyXHZETDpwY2r2wc/ShtZ/vw D/7b82cFa5KFQqSAFfEOaklio4G9ttJk5SZZ1uMEqaHgwVoXRtcbl0cw4D3x1uF/HTMU sFERfZofPqsdpW6WoZXN9OuFwR0CU3jiZJX3A7g524Y//G5DDybBLByGve9pdW1N2SAM kfKQ== X-Gm-Message-State: ANoB5pkFH1d7sgbxsLhcKEVHg16ObdlldXcCJp3O7lBU00QAyQqt+VfL FF6FfkVOR2wpqnoh0iB3Gl/3lAy+CQXjG7SLZfU= X-Received: by 2002:a17:902:aa91:b0:189:b8a2:27ed with SMTP id d17-20020a170902aa9100b00189b8a227edmr6005390plr.57.1670605998225; Fri, 09 Dec 2022 09:13:18 -0800 (PST) Received: from tictac2.mtv.corp.google.com ([2620:15c:9d:2:9a82:7898:7bf4:b4f]) by smtp.gmail.com with ESMTPSA id j16-20020a170902da9000b00189c62eac37sm1597503plx.32.2022.12.09.09.13.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Dec 2022 09:13:17 -0800 (PST) From: Douglas Anderson To: Bjorn Andersson Cc: swboyd@chromium.org, Dmitry Torokhov , mka@chromium.org, Yunlong Jia , linux-arm-msm@vger.kernel.org, Konrad Dybcio , linux-input@vger.kernel.org, Douglas Anderson , Andy Gross , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 3/4] arm64: dts: qcom: sc7180: Start the trogdor eDP/touchscreen regulator on Date: Fri, 9 Dec 2022 09:12:39 -0800 Message-Id: <20221209091234.v3.3.I7050a61ba3a48e44b86053f265265b5e3c0cee31@changeid> X-Mailer: git-send-email 2.39.0.rc1.256.g54fd8350bd-goog In-Reply-To: <20221209171240.1614904-1-dianders@chromium.org> References: <20221209171240.1614904-1-dianders@chromium.org> MIME-Version: 1.0 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=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751757592468939190?= X-GMAIL-MSGID: =?utf-8?q?1751757592468939190?= Now that we've added the `off-on-delay-us` for the touchpanel regulator, we can see that we're actually hitting that delay at bootup. I saw about 200 ms of delay. Let's avoid that delay by starting the regulator on. We'll only do this for eDP devices for the time being. NOTE: we _won't_ do this for homestar. Homestar's panel really likes to be power cycled. It's why the Linux driver for this panel has a pm_runtime_put_sync_suspend() when the panel is being unprepared but the normal panel-edp driver doesn't. It's also why this hardware has a separate power rail for eDP vs. touchscreen, unlike all the other trogdor boards. We won't start homestar's regulator on. While this could mean a slight delay on homestar, it is probably a _correct_ delay. The bootloader might have left the regulator on (it does so in dev and recovery modes), so if we turned the regulator off at probe time and we actually hit the delay then we were probably violating T12 in the panel spec. Signed-off-by: Douglas Anderson Reviewed-by: Matthias Kaehlcke --- (no changes since v1) .../boot/dts/qcom/sc7180-trogdor-homestar.dtsi | 18 ++++++++++++++++++ .../dts/qcom/sc7180-trogdor-parade-ps8640.dtsi | 8 ++++++++ .../dts/qcom/sc7180-trogdor-ti-sn65dsi86.dtsi | 8 ++++++++ 3 files changed, 34 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-homestar.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor-homestar.dtsi index d3cf64c16dcd..b3ba23a88a0b 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-homestar.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-homestar.dtsi @@ -85,6 +85,24 @@ map1 { }; }; +/* + * ADDITIONS TO FIXED REGULATORS DEFINED IN PARENT DEVICE TREE FILES + * + * Sort order matches the order in the parent files (parents before children). + */ + +&pp3300_dx_edp { + /* + * The atna33xc20 really likes to be power cycled to keep it from + * getting in a bad state. This is the reason that the touchscreen + * rail and eDP rails are separate from each other on homestar (but + * not other trogdor devices) Make sure it starts "off" at bootup. + */ + /delete-property/ regulator-boot-on; +}; + +/* ADDITIONS TO NODES DEFINED IN PARENT DEVICE TREE FILES */ + ap_ts_pen_1v8: &i2c4 { status = "okay"; clock-frequency = <400000>; diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-parade-ps8640.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor-parade-ps8640.dtsi index e27a769f8cd4..5aa7949b5328 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-parade-ps8640.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-parade-ps8640.dtsi @@ -34,6 +34,14 @@ pp3300_brij_ps8640: pp3300-brij-ps8640-regulator { &pp3300_dx_edp { off-on-delay-us = <500000>; + + /* + * It's nicer to start with this regulator enabled. The + * bootloader may have left it on and it's nice not to cause an + * extra power cycle of the touchscreen and eDP panel at bootup. + * This should help speed bootup because we have off-on-delay-us. + */ + regulator-boot-on; }; /* ADDITIONS TO NODES DEFINED IN PARENT DEVICE TREE FILES */ diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-ti-sn65dsi86.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor-ti-sn65dsi86.dtsi index 3188788306d0..e52b8776755d 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-ti-sn65dsi86.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-ti-sn65dsi86.dtsi @@ -15,6 +15,14 @@ &pp3300_dx_edp { off-on-delay-us = <500000>; + + /* + * It's nicer to start with this regulator enabled. The + * bootloader may have left it on and it's nice not to cause an + * extra power cycle of the touchscreen and eDP panel at bootup. + * This should help speed bootup because we have off-on-delay-us. + */ + regulator-boot-on; }; /* ADDITIONS TO NODES DEFINED IN PARENT DEVICE TREE FILES */ From patchwork Fri Dec 9 17:12:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 31888 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp896151wrr; Fri, 9 Dec 2022 09:17:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf55Hrbdivpq3f04FferSYYTwZk8qXrRTWdJfBd7sYG5eQ0epvIkHJO9dBfbD8bj2OXhyuzs X-Received: by 2002:aa7:de04:0:b0:46a:8a79:377d with SMTP id h4-20020aa7de04000000b0046a8a79377dmr6143811edv.34.1670606276394; Fri, 09 Dec 2022 09:17:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670606276; cv=none; d=google.com; s=arc-20160816; b=pkRwpcK43GQ1vI0jfmb3scZFaQNV4wGCKy+3rh2pz3pAeqJZ2ZmDY+4m2OOvtTM05p +Vs3WXTqdThEHRy7mSinONbPJmKyOtSAV6t1wuhoultjF8GS6TJJ495u3H2qRqqWZvx6 9v4SlIYGY3lmvTOYgeo1V0TgI4N6P1o9YaY22RvMGhO3mcoVKDSS2xtGLkS2rML7/S9j CSnNv4kIQw+55h9SwDztIE2efw+aUPMnVTqRS8V1tFFfzKg62OfLVSyCKXrU6YiF/bac hSsLqh9JwGhNSOqOgDnIY9jrJmgmZy00f7YP19KRP/q8c7I3q6fTkxfmhtMfLtrpZz1E 9B0A== 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=PXmK3nCiI+cY6qMJ9PawYnDke2Ff9u+237akMobAAqY=; b=VpA/hGXpa+Updpnr/nWyVJhwIW0U6ulPs9jFGlp8dlhtTqAxgf4u0/dUksBhJl3c1z HpyGqwqSx2NQcq2oJcrzo2zimFrsBBYEiz28RMAbmyFQIgDl/IbRR3rHFlUtR3pkW37t W/ca8tWQOqDRLVc1CNP9ep0fLzxyNjsarkgt48MxkxU5SwRtOvGiiE8GmcdWzst9M3cU ChplHCztauGlu3Q4YznwcoxLvbNNyhYk9jzn4MG7gLLKQG8x/uc5KTa2g0mewCZs7pJ3 c9sijESsix+mtKJVFh5AQYErYJplerhUZ1fwlNq2Dp9byG9l88PjAn+kCCpwJvpWQR4f GKkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IqgadLnj; 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 b9-20020a056402084900b0046b1827eda2si2331527edz.74.2022.12.09.09.17.33; Fri, 09 Dec 2022 09:17:56 -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=IqgadLnj; 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 S230121AbiLIRNp (ORCPT + 99 others); Fri, 9 Dec 2022 12:13:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229816AbiLIRNY (ORCPT ); Fri, 9 Dec 2022 12:13:24 -0500 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A49A450BA for ; Fri, 9 Dec 2022 09:13:20 -0800 (PST) Received: by mail-pj1-x1032.google.com with SMTP id u5so5423591pjy.5 for ; Fri, 09 Dec 2022 09:13:20 -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=PXmK3nCiI+cY6qMJ9PawYnDke2Ff9u+237akMobAAqY=; b=IqgadLnjVNwyCp2QMMG0Nu8AsLBPgJgJ3n8Je131hOobY9YARQ0RMklSCn/mpKZ/DP Ro2PNmTYWvF/xo/40eE+NsHshil39bw/D+I2JWiRk3M1SRUzPSiTLu6MpVQlMSzjfcYl fZUOMiob21JBgRv01lTZvlInVn+OKcqRRPHgE= 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=PXmK3nCiI+cY6qMJ9PawYnDke2Ff9u+237akMobAAqY=; b=mCRKUXw023ksoFjKuj43X1mz8HlRTZG6wWv7/q+6DHumKfRM8we93EsPiaROTb1SWS UrcvJ2atlohY/0zrN1g7r9D0aLWsw79MR8ARcgr7drjQsWY2OWgoLpmlnaL/uf5JAuyK 32CxMlQztODbnjVTbrydZsKZUTT3ebG8QV/YMLhT9yEGtj+5ZsymK/O3KPoPve47uVqY 4FeoC1Us8iGeSeEAgBsO+BzSB02aW5PrjFC5rO5PSCM3bOcA8oi8cDoLnyrU2D4zXM7z En/us4b7u7hvnrZ2UnBLXYsus6DBevwI4tu81+kGKbepAkoGP8mApb8tyqGCGyN+4UcC Tsjg== X-Gm-Message-State: ANoB5pnDP+mPRYkxCGykpIojGJ0I8nMpnw0tRhhl1a7rAc0+2LGbkCTE NfRtLLw1I3qsJrzkQUPxrZOlGg== X-Received: by 2002:a17:903:4283:b0:189:7100:c50e with SMTP id ju3-20020a170903428300b001897100c50emr7136974plb.48.1670605999890; Fri, 09 Dec 2022 09:13:19 -0800 (PST) Received: from tictac2.mtv.corp.google.com ([2620:15c:9d:2:9a82:7898:7bf4:b4f]) by smtp.gmail.com with ESMTPSA id j16-20020a170902da9000b00189c62eac37sm1597503plx.32.2022.12.09.09.13.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Dec 2022 09:13:19 -0800 (PST) From: Douglas Anderson To: Bjorn Andersson Cc: swboyd@chromium.org, Dmitry Torokhov , mka@chromium.org, Yunlong Jia , linux-arm-msm@vger.kernel.org, Konrad Dybcio , linux-input@vger.kernel.org, Douglas Anderson , Andy Gross , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 4/4] arm64: dts: qcom: sc7180: Add pazquel360 touschreen Date: Fri, 9 Dec 2022 09:12:40 -0800 Message-Id: <20221209091234.v3.4.Id132522bda31fd97684cb076a44a0907cd28097d@changeid> X-Mailer: git-send-email 2.39.0.rc1.256.g54fd8350bd-goog In-Reply-To: <20221209171240.1614904-1-dianders@chromium.org> References: <20221209171240.1614904-1-dianders@chromium.org> MIME-Version: 1.0 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=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751757646825765627?= X-GMAIL-MSGID: =?utf-8?q?1751757646825765627?= The touchscreen was supposed to have been added when pazquel360 first was added upstream but was missed. Add it now. Signed-off-by: Douglas Anderson Reviewed-by: Matthias Kaehlcke --- Changes in v3: - Removed hid-descr-addr .../dts/qcom/sc7180-trogdor-pazquel360.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-pazquel360.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor-pazquel360.dtsi index 5702325d0c7b..ff9dd6857f8b 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-pazquel360.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-pazquel360.dtsi @@ -14,6 +14,25 @@ &alc5682 { realtek,dmic-clk-rate-hz = <2048000>; }; +ap_ts_pen_1v8: &i2c4 { + status = "okay"; + clock-frequency = <400000>; + + ap_ts: touchscreen@10 { + compatible = "elan,ekth3915", "elan,ekth3500"; + reg = <0x10>; + pinctrl-names = "default"; + pinctrl-0 = <&ts_int_l>, <&ts_reset_l>; + + interrupt-parent = <&tlmm>; + interrupts = <9 IRQ_TYPE_LEVEL_LOW>; + + vcc33-supply = <&pp3300_ts>; + vccio-supply = <&pp1800_l10a>; + reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>; + }; +}; + &keyboard_controller { function-row-physmap = < MATRIX_KEY(0x00, 0x02, 0) /* T1 */