Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp55235rwi; Sun, 9 Oct 2022 18:22:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM62c95TckQyQuwp9JTiC97bNw+fFabkZwgBPCU/Q/YsnPHqMOvPlFX1YujsNoxH0IInmHpv X-Received: by 2002:a17:90b:388c:b0:20a:9c33:dd2b with SMTP id mu12-20020a17090b388c00b0020a9c33dd2bmr28038850pjb.225.1665364937914; Sun, 09 Oct 2022 18:22:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665364937; cv=none; d=google.com; s=arc-20160816; b=nZRmTiGcZ80x6JvCjkJSOup+I5J0X+geqDpmQ9deI3GFVLjvDg5Gt3ksNaMVNhYlD5 vh0bqWnBdBu5ZJiZneLdi3hkYmsTcQd1zgpgJxvPTRalJXVx8opg06m3bbQ6xF+JHSua uRYDosmfJwjasdWPSbWpqo5EbaXvzmPDsksrczKZqN9MehueV+p59UccmN/9pgPTAPUL JkXmnQsAFaCKknpK7wAWVLw7qsJdhiidN25XxmY1pHe0rdb1Lb3tyr7Qmx4XEZF+jpzF QVuYofyfpfw6w05KSgbLDKPTDc5Y/frzPy6SzetZirMxMLwJgjecPgcyn9m412lDtB39 6iDA== 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=voZazJD3phgnsOh+VATDoWHikDK6pgAOv1nrwGzDiNY=; b=vtwTGJai6HzlPcoijPHoIsLnT7uNw8Q90yH+KXlZxxQlQee7HhnF+/uHK7Qpj5xLuR dSE7GdJ6vGeDrOXHQXIphqmYPh6pKVNFtXyEp/NiYBpmmqsLKKoQRUKhLesjwT1C84+k QnH45yXXrywXSgNHz3o3MHsrMl7EutZQcj1AM4y6Wh9QGfG+ARRVPBWuqvPj8toxtC71 fPU9/SIVvEWSTXP49puY/KDG3ab5S+fpHr7HoKHgnKj2R0FWxG4D+1uEMZE+4c9/fjjc 1T4TbIoTsPCXawr4f6FsBu9lPjNc6aq/KpmMG2aMSOm/D32TdZrKWOMJKvFOYAzOUcTZ qU1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nsr+90za; 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 a15-20020a631a4f000000b004347b49d045si11224482pgm.631.2022.10.09.18.22.06; Sun, 09 Oct 2022 18:22:17 -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=nsr+90za; 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 S232114AbiJJA2T (ORCPT + 99 others); Sun, 9 Oct 2022 20:28:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232891AbiJJAXv (ORCPT ); Sun, 9 Oct 2022 20:23:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08ADD24BFB; Sun, 9 Oct 2022 16:57:30 -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 9995060CF5; Sun, 9 Oct 2022 23:57:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3582C43470; Sun, 9 Oct 2022 23:57:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665359849; bh=Ta5mvod/xTVjJfuaXj2rb0yeljAOvEtb7iU+NeRk/2c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nsr+90zaerof4Lhdox2D6jy/gDx3Cxr00JeCgujRGkXUG4k9cMMgTavpnsjYqoMcy nhYG8wDiqK6XhXqLmLvVXq8ZQBg4oy/W9J+ov9bhMGO9JAlTYHlF18F/qeN57iAEbI Pgxr4mm+Ih4Ct4Q1+uURogGOrphxD8b5jHVgiMKgpBgeBZj/Sic76KSDcORwY4AgRx C6YM/E6I9fTvZogG1VY5rJqWg5TP7t0H9FxqXANhInCeXYrLa0tg4Nbi2i4qWTX5Sg OJuwyWt9b6cC5daHWg58jJF6KIfg1piM8z8n7YQnn54E8PKSmuy+xALsq4MJUEpuzW hRK1oUjSJjqeQ== 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 5.4 07/14] drm/vc4: vec: Fix timings for VEC modes Date: Sun, 9 Oct 2022 19:57:03 -0400 Message-Id: <20221009235710.1231937-7-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221009235710.1231937-1-sashal@kernel.org> References: <20221009235710.1231937-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 7402bc768664..0c764fd8399a 100644 --- a/drivers/gpu/drm/vc4/vc4_vec.c +++ b/drivers/gpu/drm/vc4/vc4_vec.c @@ -256,7 +256,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) }; @@ -278,7 +278,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