Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10681251rwl; Mon, 2 Jan 2023 06:36:21 -0800 (PST) X-Google-Smtp-Source: AMrXdXvxQsTVI2RSTbRWn0EV0/oW63RpeYWJiW1U/U9QrZ/hRQsitIoGZBBLeYw5G29i/7cTqzMu X-Received: by 2002:a17:907:80cb:b0:7c0:deb1:bb8a with SMTP id io11-20020a17090780cb00b007c0deb1bb8amr41540359ejc.28.1672670181166; Mon, 02 Jan 2023 06:36:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672670181; cv=none; d=google.com; s=arc-20160816; b=usIHUz0blVAYLQBNd6xlgolGedUaycjHb6E9L7eyGQUOanJ2m2llxiAw2ISihFjGbg 24ZLhoKL8tDkj/VFJlPwD26Lm3Yh6fWl1kKgEoK4UA2SOOFVp9a8FQX4vpAGV1iYlHVD bTFfbnPL0MZH6MHiLdgcErktj1R/miS2VwWHWEMc6WVBtXiOrQIXY6+tx4fwAxVOC8iF WRlgfystbKRbUnHhV9nCTwnOlm+8H8LGsoCfiCmgQ/YNZwdbAoNB98MJuXT1ZX5QGkWO dh6vGvuyGkLIuWmS9Zb6TE/2x1d8jAZlLZiiZlxUfl2qA1LOpRPCfXJiSqqChjmXXwpO LVSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=tCriltrcTbc5YIVSa0BHW32yRPYzJxluA5nPgL3tKiE=; b=MwKFuVwkyGO8PKd7DtWJDCPE+9bcb2/IpXxSy/KYf5A80N8AbH4Hb7VXk6eoUax/ou GKAhUJuGhZsh038aO7+bmXTmgj5mYViHt0zajcPU6KaKomm1WOGCLXV0ZM7B+LFbAkVW zoB0HrkEURYgzX/VwmzrwD791vQ7ckbQ18QftHo3vAzpMpQWoaNAmJ3xnpxN++89gULg J3UyZymxa/RaKarBS1F/rMeZ8o6jzNOvqpXWsP84qj+W5h6LfEY5UZA2RAHccsonwYCw Gu/qPMWY1NLPnDenkq33HnG6d03dvdBvkfp5zGMFvkzQBOIqGdxIH/qx7murg7oPYj4O BaGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gkS5naWW; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg32-20020a170907972000b007c1286ad884si27999927ejc.677.2023.01.02.06.36.06; Mon, 02 Jan 2023 06:36:21 -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=@redhat.com header.s=mimecast20190719 header.b=gkS5naWW; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232909AbjABNfG (ORCPT + 61 others); Mon, 2 Jan 2023 08:35:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232896AbjABNfE (ORCPT ); Mon, 2 Jan 2023 08:35:04 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55D6A5F55 for ; Mon, 2 Jan 2023 05:34:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1672666455; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tCriltrcTbc5YIVSa0BHW32yRPYzJxluA5nPgL3tKiE=; b=gkS5naWWrvo8M6QvXJxznRBAlmb45wqpa0X3Muu8oC3meO5PjzOiALYQKIchL3Jz05bmdb 8D/nI59g0MmxOEbyqydpZYX68y85ZwT+A7zawYzV8Qgn2W5d8jcBsGuRykpjtiP+l7WC6D gcqxVUvjCgWSgDR01qIgx7HWbk3QMxs= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-400-qWTLLXthMdeFqg6jRc0K5Q-1; Mon, 02 Jan 2023 08:34:14 -0500 X-MC-Unique: qWTLLXthMdeFqg6jRc0K5Q-1 Received: by mail-wm1-f72.google.com with SMTP id i7-20020a05600c354700b003d62131fe46so18487996wmq.5 for ; Mon, 02 Jan 2023 05:34:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tCriltrcTbc5YIVSa0BHW32yRPYzJxluA5nPgL3tKiE=; b=0wysZXXyVEtxH6xDx9tynNqm54WcBd3DG/Gk5GGcmcMUADlBvYb6ssNQsbxGLM/NV6 iitUW220C7/IycVV/mZinjWOSnBimzr1gf/CEEvC1q7hGB3Xa7AFrKI/30KO4AnQw44M QaRPPdyAdQ0GPFn27CDxooJLoyeO1U8r2bQt26kUpY7e67jhvHtAk9hbjVAiPxa4WeCf jSJEV+8CReybQhOhVWWUmXW5EEEFF++gsby+bKt6DgWACXBVRcemxqKB1oeLakaOfdwS R71847yHY5Boz5xQMqaKdjtWYCkKqt0okC+3V90vD3bpm+OKhcbTBP6/ICqS4QsCbzVw a//A== X-Gm-Message-State: AFqh2kr7q/PKzcD//RtKncJ2LvxUL9HhxWdXCSrBuiK1YrRCe2aulEbQ s95awbKr81WfThZ+n4mSTxUQlncWJhVG8McBdwHr9+fpVaCHCRgFFbdLXl31qre6uJKBvhEFppk pxDvpaKXQU0dXrX99Uza/tirf X-Received: by 2002:a05:600c:3b93:b0:3d3:43ae:4d10 with SMTP id n19-20020a05600c3b9300b003d343ae4d10mr31041977wms.11.1672666453428; Mon, 02 Jan 2023 05:34:13 -0800 (PST) X-Received: by 2002:a05:600c:3b93:b0:3d3:43ae:4d10 with SMTP id n19-20020a05600c3b9300b003d343ae4d10mr31041948wms.11.1672666453156; Mon, 02 Jan 2023 05:34:13 -0800 (PST) Received: from [192.168.1.130] (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id n1-20020a05600c4f8100b003d96b8e9bcasm41802230wmq.32.2023.01.02.05.34.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 Jan 2023 05:34:12 -0800 (PST) Message-ID: <6319a8b4-1152-40d8-29f1-015a8c5247f4@redhat.com> Date: Mon, 2 Jan 2023 14:34:11 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH v4 4/4] arm64: dts: rk3399-pinephone-pro: Add internal display support Content-Language: en-US To: =?UTF-8?Q?Ond=c5=99ej_Jirman?= , linux-kernel@vger.kernel.org, =?UTF-8?Q?Kamil_Trzci=c5=84ski?= , Martijn Braam , Sam Ravnborg , Robert Mader , Tom Fitzhenry , Peter Robinson , Onuralp Sezer , dri-devel@lists.freedesktop.org, Maya Matuszczyk , Neal Gompa , linux-arm-kernel@lists.infradead.org, Krzysztof Kozlowski , Jagan Teki , Caleb Connolly , Heiko Stuebner , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org References: <20221230113155.3430142-1-javierm@redhat.com> <20221230113155.3430142-5-javierm@redhat.com> <20221230153745.tfs6n4zy4xfwugbw@core> <20230102105746.5abnjzwf365c6hy2@core> From: Javier Martinez Canillas In-Reply-To: <20230102105746.5abnjzwf365c6hy2@core> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 Hello Ondřej, On 1/2/23 11:57, Ondřej Jirman wrote: [...] >> >> You tell me, it is your patch :) I just cherry-picked this from your tree: > > I have other patches to goodix driver that do power off the touch sensor chip > during sleep, so that it doesn't consume excessinve amounts of power when > the phone is suspended. Mainline doesn't. You have to adapt this to mainline, > because you're not upstreaming the required Goodix patches, for regulator-off-in-suspend > to not break things. > >> https://github.com/megous/linux/commit/11f8da60d6a5 >> >> But if that is not correct, then I can drop the regulator-off-in-suspend. >> Ah, I see. Missed that. Then I guess that's better to drop the regulator-off-in-suspend until the goodix driver patches are upstreamed. >> [...] >> >>>> + >>>> + touchscreen@14 { >>>> + compatible = "goodix,gt917s"; >>> >>> This is not the correct compatible. Pinephone Pro uses Goodix GT1158: >>> >>> Goodix-TS 3-0014: ID 1158, version: 0100 >>> Goodix-TS 3-0014: Direct firmware load for goodix_1158_cfg.bin failed with error -2 >>> >>> >> >> Same thing. I wasn't aware of this since your patch was using this compatible >> string. If "goodix,gt1158" is the correct compatible string, then I agree we >> should have that instead even when the firmware is missing. Because the DT is >> supposed to describe the hardware. The FW issue can be tackled as a follow-up. >> >> [...] > > Yes, compatible string is sort of irrelevant, because the driver does runtime > auto-detection based on chip ID. I didn't bother with superficial issues in the > original code from Martijn/Kamil. Now that you're mainlining the code, this > should be sorted out, though. > > There's no FW issue, I was just using the log to show you the actual chip ID the > driver detects. > Gotcha. > (You should probably put my SoB after Kamil/Martijn, since I took the > maintenance/development of the driver after they wrote the base support > initially in secret. I'm not the original author of the code.) > I wasn't aware of that. I just kept the author field as it's in your tree. [...] >> https://github.com/megous/linux/commit/f19ce7bb7d72 > > Yes, and test the driver more thoroughly: > > - look at clk_summary to verify clock rate the kernel thinks it's using > - test refresh rate, somehow, to again verify the actual clock rate (kernel can > lie in debugfs) > - test power cycling the panel (eg. via system suspend/resume or other means) > Agreed that the more testing the better. -- Best regards, Javier Martinez Canillas Core Platforms Red Hat