Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp63434rwi; Sun, 9 Oct 2022 18:33:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4e/QCU1JzPlOeab0ycl0kVWyiq3VI0V9/fyUxV8jZ9hWacRvpObxxGV9+HT6L8LOcU3aUF X-Received: by 2002:a17:90b:1c82:b0:1ee:eb41:b141 with SMTP id oo2-20020a17090b1c8200b001eeeb41b141mr18314591pjb.143.1665365604674; Sun, 09 Oct 2022 18:33:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665365604; cv=none; d=google.com; s=arc-20160816; b=cp+W2KVThFO2O8Ou9RmHk+NxIsy0KOYDGqTCORuf9Zztr17uBI/DQAyiI82byTYmAG 4A7SIPGMyvfCaUIDTLJCiwFG87ognN+8qzTm79tXxWkK4YfO5r7bKcc+N/TucACtHukF PoTzuSzSx0ZrOZ7qWjZR51IOWFQytYT6Lmc3RMrSdXJHsufUIb86Z/Ukt93KH6TnBuOE xUluSY7suQBQo7cZR6te3/tkXlzRJPSDNP8H71HA9MaB2tFlxCY/N9Ik5Ne55dnXNKHr nzc1Df8WbWZSI7JQpW5ofwsS7NfiYrqrvmD8NjatUeAkbQzH5BQEhN1IaFa3n/evkGT5 Idjw== 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=xZvZdfzIIOgy2IMlWorEamHN7BDZoYXDJ/TEXieA5YU=; b=KR4NgIwfDcSYNtYonBWXVaJ3djsAGTbi4KCFDwVuUXViDQlDiopgdh5VuocmugrqNF K+b8kEpN6Po1qGqAih9dc8w5ftiu4w4h7LvBjEj3VBbd1kdUPgRn76eWxzG+0vWSG5/F DWKHxCYlUEu7NOL7Pa0FQ7Jn1jqh/NNP9HWiuSnS4Tkvz51GKkdxflw+RTdkNEyyKpV8 pyn5/gUrsGLExRDF9UfPzYHpeP8u5NSX5AoBywGaukvLIE7JRx2mne9ieM6azWOiQ8wF BPJSiO5SYz/XkTfjxJtaTll28TwHVP2fD6g5+4wQAT1uocvtRSZPSsgsMfgKzwFv4qsc r/OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DkvfLrE2; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s4-20020a056a00194400b00557e99763d3si10836185pfk.93.2022.10.09.18.33.13; Sun, 09 Oct 2022 18:33:24 -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=@kernel.org header.s=k20201202 header.b=DkvfLrE2; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233348AbiJJA3U (ORCPT + 99 others); Sun, 9 Oct 2022 20:29:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232955AbiJJAX4 (ORCPT ); Sun, 9 Oct 2022 20:23:56 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A01803054B; Sun, 9 Oct 2022 16:57:58 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3C6FB60DD3; Sun, 9 Oct 2022 23:57:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9438FC433B5; Sun, 9 Oct 2022 23:57:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665359877; bh=oLQNDm95SWVtvPjxRy2VakTKeT3riPaK0HtW3lY2t8k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DkvfLrE22ivyZZ5hSIs6hHlX+qlV96o77u8kQp1xwkd54kOOzYvaGwtphUyA3ht6q KAodpqYvt37k4BI4SZ1YEMsQs/LRhaANz7KJfVO+nLaIj1HATMfAL9fzr9N8jmeo5Q w+R/7Extx4PXvPXsTiU/BKFD5c5sO/b0hHqbjgjY+xyUztgSBcXhntnYZfM6+000ks fp717gCT9OW76ElMwVFZ6NEoiGDbnOLhjU0xNVglpoWQ1BddU81PRUfUGoI7OJ3EA7 6ZXSBpwFXadhQHs7Mk1qsRLQaSLxhN4YYyOtMeNb1R8t5rcwNyl4CdagfWwZZNzIUZ CDy1cIehk8zDA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Mateusz Kwiatkowski , =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= , Maxime Ripard , Sasha Levin , emma@anholt.net, mripard@kernel.org, airlied@gmail.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 4.19 05/10] drm/vc4: vec: Fix timings for VEC modes Date: Sun, 9 Oct 2022 19:57:40 -0400 Message-Id: <20221009235746.1232129-5-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221009235746.1232129-1-sashal@kernel.org> References: <20221009235746.1232129-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Mateusz Kwiatkowski [ Upstream commit 30d7565be96b3946c18a1ce3fd538f7946839092 ] This commit fixes vertical timings of the VEC (composite output) modes to accurately represent the 525-line ("NTSC") and 625-line ("PAL") ITU-R standards. Previous timings were actually defined as 502 and 601 lines, resulting in non-standard 62.69 Hz and 52 Hz signals being generated, respectively. Signed-off-by: Mateusz Kwiatkowski Acked-by: Noralf Trønnes Signed-off-by: Maxime Ripard Link: https://patchwork.freedesktop.org/patch/msgid/20220728-rpi-analog-tv-properties-v2-28-459522d653a7@cerno.tech Signed-off-by: Sasha Levin --- drivers/gpu/drm/vc4/vc4_vec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_vec.c b/drivers/gpu/drm/vc4/vc4_vec.c index 8e7facb6514e..ae0354ceb2a3 100644 --- a/drivers/gpu/drm/vc4/vc4_vec.c +++ b/drivers/gpu/drm/vc4/vc4_vec.c @@ -291,7 +291,7 @@ static void vc4_vec_ntsc_j_mode_set(struct vc4_vec *vec) static const struct drm_display_mode ntsc_mode = { DRM_MODE("720x480", DRM_MODE_TYPE_DRIVER, 13500, 720, 720 + 14, 720 + 14 + 64, 720 + 14 + 64 + 60, 0, - 480, 480 + 3, 480 + 3 + 3, 480 + 3 + 3 + 16, 0, + 480, 480 + 7, 480 + 7 + 6, 525, 0, DRM_MODE_FLAG_INTERLACE) }; @@ -313,7 +313,7 @@ static void vc4_vec_pal_m_mode_set(struct vc4_vec *vec) static const struct drm_display_mode pal_mode = { DRM_MODE("720x576", DRM_MODE_TYPE_DRIVER, 13500, 720, 720 + 20, 720 + 20 + 64, 720 + 20 + 64 + 60, 0, - 576, 576 + 2, 576 + 2 + 3, 576 + 2 + 3 + 20, 0, + 576, 576 + 4, 576 + 4 + 6, 625, 0, DRM_MODE_FLAG_INTERLACE) }; -- 2.35.1