Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4805531imw; Tue, 19 Jul 2022 13:40:20 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ucA0RjUHK20TnaR/31SUIFDkkaGq9EbiYyLR5xzXFyEKvZLGaxxXIbCeooaFL9ePNj4Cw4 X-Received: by 2002:a17:90b:1bc8:b0:1f0:5854:f761 with SMTP id oa8-20020a17090b1bc800b001f05854f761mr1353617pjb.116.1658263220339; Tue, 19 Jul 2022 13:40:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658263220; cv=none; d=google.com; s=arc-20160816; b=OBAwQNiXQ08JK2qetpIZgtZZ8heRgeGMftF26bcxPdqZ19h0HyBLq+SZzkCJi6SpAm 4ojSBgYWOSbvBWCFUud3bhY5XyJmTU1iRfjKTacW6MkUjCVq1icQzFnP7S3e0PdimtvE SO0TM+ABBLvYYSWHh2JYOSsmTqkJ/4TaRCPteVQ+hMzgS2W5np30gN8qq/cJ18VcI/KS KYiYr963a0slOpn/07QjrnY550JngY5NiYeEdb+tNj/ylbpmvwMsXlGQp12xqW6tmneo gPT+4/hYQE8lOx6t1taAFK+yH0oqrThduRcScGimBnSbhF2x1Hgsd5pURPFeRviCYdOr kyvw== 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=sKeDW3FdW3urkiVzyiCw4hFHYLCNl/N9gFirF1Pqts0=; b=0Mqdn17QHm7/WGKV6W0fGDSRtRTAM5bL6+6z9TEvmwN2CPzgXhunJI3ubPti1kk5F5 1Rdy67QVn1k2EDOp7gdQdaxGg8Z6XK5S6Iyeiz3PWZ8pWfXBgyZGmtUo3h0cacoSTJxu uA+QtgLshtSN++OwJVYIXoc3Fj28f+gJI9UaB9Kryqq6EsecYcOQ4Z0Uw1uPiFW1Sc0D kVCJQ70j6R7rnuMAKohfBnTShTgzGpEkaOhLqY2zn2AjhJPmMaG5HBQEgxFy4zVX9NME ZL1kyftrQ1r+Ax910qRaB3hPSPPpSJ/TEMJNOEZvXU+PLtOPeq9Em2jU3Gslh7BK5HZJ hP8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=N0XMnIEy; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k9-20020a170902c40900b0016af36d83d7si25097627plk.357.2022.07.19.13.40.02; Tue, 19 Jul 2022 13:40:20 -0700 (PDT) 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=@collabora.com header.s=mail header.b=N0XMnIEy; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239974AbiGSUjO (ORCPT + 99 others); Tue, 19 Jul 2022 16:39:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239906AbiGSUjE (ORCPT ); Tue, 19 Jul 2022 16:39:04 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEFF052FC9 for ; Tue, 19 Jul 2022 13:39:03 -0700 (PDT) Received: from notapiano.myfiosgateway.com (pool-98-113-53-228.nycmny.fios.verizon.net [98.113.53.228]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id 81AFA6601A3D; Tue, 19 Jul 2022 21:39:01 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1658263142; bh=yOsyoTXecbnpR+05MoxtIppKOEPuY7CytKHIOjJLXrI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N0XMnIEyAk8gNYUxn57slek8jQfjqHtzk47gpqD22xdCI8YeTXc7n8wXnjoxAjQ6p gWgyIbLsWH+KwEkxm9CCAQTlParvg+kT7STLFl9Zzt4pc3NhMJRxr8JScpRRYJHAZ+ /S99eoMABwvqYp8ZWec+LT7OycnOLUUZ+LIZksv/ro6Uepqyyf3aeUx6LBU0sj5SGb d+dmvmMDr826ZZ7P15NZvKPmiE+h3q3wQsPCo34NSGWqfLFD1dwTiHJm+T5SBoZ0uH 8MuL60jA/9NmRYDkEVLt6ZAlluZM373OaEv+m57jt2jyrjAjLfgNY7P3mZpdFZaKV3 yXQzwOyaH7VkA== From: =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= To: Douglas Anderson Cc: AngeloGioacchino Del Regno , kernel@collabora.com, =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= , Daniel Vetter , David Airlie , Sam Ravnborg , Thierry Reding , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] drm/panel-edp: Add panel entry for R140NWF5 RH Date: Tue, 19 Jul 2022 16:38:54 -0400 Message-Id: <20220719203857.1488831-2-nfraprado@collabora.com> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220719203857.1488831-1-nfraprado@collabora.com> References: <20220719203857.1488831-1-nfraprado@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Add panel identification entry for the IVO R140NWF5 RH (product ID: 0x057d) panel. Signed-off-by: NĂ­colas F. R. A. Prado --- The comments on the driver indicate that the T3 timing should be set on hpd_absent, while hpd_reliable would have a shorter time just while the HPD line stabilizes on low after power is supplied. But can we really assume that the HPD line will be reliable at all before the DDIC is done booting up, at which point the HPD line is brought up? IOW, shouldn't we always delay T3 (by setting hpd_reliable = T3), since only then we're really sure that the DDIC is done setting up and the HPD line is reliable? I've set the T3 delay to hpd_absent in this series, following what's instructed in the comments, but I'd like to discuss whether we shouldn't be setting T3 on hpd_reliable instead, for all panels, to be on the safer side. drivers/gpu/drm/panel/panel-edp.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c index 3626469c4cc2..675d793d925e 100644 --- a/drivers/gpu/drm/panel/panel-edp.c +++ b/drivers/gpu/drm/panel/panel-edp.c @@ -1854,6 +1854,12 @@ static const struct panel_delay delay_100_500_e200 = { .enable = 200, }; +static const struct panel_delay delay_200_500_e200 = { + .hpd_absent = 200, + .unprepare = 500, + .enable = 200, +}; + #define EDP_PANEL_ENTRY(vend_chr_0, vend_chr_1, vend_chr_2, product_id, _delay, _name) \ { \ .name = _name, \ @@ -1882,6 +1888,8 @@ static const struct edp_panel_entry edp_panels[] = { EDP_PANEL_ENTRY('C', 'M', 'N', 0x114c, &innolux_n116bca_ea1.delay, "N116BCA-EA1"), + EDP_PANEL_ENTRY('I', 'V', 'O', 0x057d, &delay_200_500_e200, "R140NWF5 RH"), + EDP_PANEL_ENTRY('K', 'D', 'B', 0x0624, &kingdisplay_kd116n21_30nv_a010.delay, "116N21-30NV-A010"), EDP_PANEL_ENTRY('K', 'D', 'B', 0x1120, &delay_200_500_e80_d50, "116N29-30NK-C007"), -- 2.37.0