Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3159316rwe; Mon, 29 Aug 2022 06:53:24 -0700 (PDT) X-Google-Smtp-Source: AA6agR4/hy7vvuvLr1RUK2O32R59VLNjBeYsqzUgWys+43voVTaxhVv8hyhDInTBCp34sK06N22j X-Received: by 2002:a17:902:d4ca:b0:16f:8311:54b0 with SMTP id o10-20020a170902d4ca00b0016f831154b0mr16815288plg.108.1661781203832; Mon, 29 Aug 2022 06:53:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661781203; cv=none; d=google.com; s=arc-20160816; b=etUsg/pMsj/jle4uWJU8yCiC+xnpoW5egYfSAxPbTz830cT3Rf6m7QOg8kfd20AVIm IEi4LjuESHNGcBjhG9FoTfwyrm0avK6+b/cTl7adk75tBcrZAeQkbScPX6MJ+6DvhQle xux0v4phfs4Raea777+1ft7p042kJFdEHTmbrG/bZ9SD7BcJ3vPiO7ovDNLOiVVNNeCO 1JEhXhMUqBU76inMsktDBC3aEZjly4nxuSh5nLoZlLWWTwmm38aaKGXlBEvLAS3JLoxy SFWPSrq17TdA9ePi12qMbq40D1hIYenuDSdIvqEJkhQn8WFeEvwdU2ylIwShHCS0AWgY RLSw== 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 :feedback-id:dkim-signature:dkim-signature; bh=20eH8m8Xvl9FZJWw0WkzB+p4KU7I79tJhWItQe47inA=; b=V6OB7rHlpQPATCtZbPRJYaw3O7HiirAbfrDvFzWNROfp8VJ0muUdT7fXbVXWQmt44w 0ebvJi9Tqpx3DYb0EePEN3TYUABl+Eica6T0ym5ywxwOR+mWLVp44iRDGQZuwZKCWbJ0 tw5CmXhPcJXPs5hrukpR8JdcqUG5kaHuVrOB3jfc/4mGUg8zpNUTLvye8Qqnq5Yqign+ DdJlktrzVYAsap6z/gXmmH0oN0GKkKNMZtihtyQSkenzs93scrRw3CvJzOM+98uh9aYG DRYDFAWHv2cIKDy7styzh0bbgiTH2KKC3A5zHD86B5vQRZYB4npsjHePW183rIcepJdX HgWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=kuxqj0ih; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="LqMQBH/6"; 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=cerno.tech Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g16-20020a056a0023d000b0052ee2647e0esi9947113pfc.146.2022.08.29.06.53.11; Mon, 29 Aug 2022 06:53:23 -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=@cerno.tech header.s=fm3 header.b=kuxqj0ih; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="LqMQBH/6"; 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=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229985AbiH2N1e (ORCPT + 99 others); Mon, 29 Aug 2022 09:27:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229620AbiH2N1F (ORCPT ); Mon, 29 Aug 2022 09:27:05 -0400 Received: from wnew2-smtp.messagingengine.com (wnew2-smtp.messagingengine.com [64.147.123.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D44A574BB7 for ; Mon, 29 Aug 2022 06:25:48 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.west.internal (Postfix) with ESMTP id 602492B0607B; Mon, 29 Aug 2022 09:15:21 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 29 Aug 2022 09:15:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1661778920; x= 1661786120; bh=20eH8m8Xvl9FZJWw0WkzB+p4KU7I79tJhWItQe47inA=; b=k uxqj0ih+aOHhSP5Qm4mEZ5kfSow3hCD8Cs/dIsXVPHzOsgig7eGPxjog2FhvJbIk wHYYg6e4IIAMfrPos+4EDR3S/iXdcI9EfGN7EPb6dzCGn3QXksGTi1oDPgB0HqV8 tL+thL6C6yrkiA7WmenAZ/ZIvxudRvdcSVtoyho++rr5PKB85ABIwC2OYhb/u+mf tX+BhjZe10WgfKnZCUCf2MWfuG9Wl+7TRsvxJBZa3R0aZmyvcDwQYiOnSfe+FqJW k0GcfVir9gFg/ytgx+3R/Uc96ChQUgcRSdCEEw+AG0/fqlihOhMAzJGvCeEsOr+a XPd2JOwy9S0bcuO58djXQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1661778920; x= 1661786120; bh=20eH8m8Xvl9FZJWw0WkzB+p4KU7I79tJhWItQe47inA=; b=L qMQBH/6NfHLUBDZl4Y4xpC1Y5S4l3DStw0gU4ojS/iWXfPa1tfCdeQr/d5jaHlTW BIdMskj/lMe5Om8gDO9oOX6E8kG3ucp544bRhF//STt0Y34qEDgPkU77MSKI2JOa Mj8dn4MvXEa0Hb96Y6NIf4GFd5uJFw7Mzedy+PdQeVrQKXwd44D5Wy/VURR9Y1Q+ mMdlfEpz7Bul0qcHi+0YX4ShsB9M6n5EKr90dL/b5htxQgJ69iH9IKya0yz0PNfx zdTtRhLvANn1ZZJVuPqdWHPNTvbL408Qw+RiUx5vTlOoro1AEidK3+q6APQCq45r ytk26sfRTVurHg9ljAggw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdekuddgieegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhggtgfogfesthhqredtredtjeenucfhrhhomhepofgr gihimhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtf frrghtthgvrhhnpeefiedvfefggffgffehveejieffuddtgffhjefggeetieduvdeileet lefgveegtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 29 Aug 2022 09:15:18 -0400 (EDT) From: Maxime Ripard To: Maxime Ripard , Ben Skeggs , David Airlie , Chen-Yu Tsai , Thomas Zimmermann , Jani Nikula , Lyude Paul , Philipp Zabel , Maarten Lankhorst , Rodrigo Vivi , Tvrtko Ursulin , Jernej Skrabec , Samuel Holland , Karol Herbst , =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= , Emma Anholt , Daniel Vetter , Joonas Lahtinen Cc: Maxime Ripard , Hans de Goede , linux-arm-kernel@lists.infradead.org, Phil Elwell , intel-gfx@lists.freedesktop.org, Dave Stevenson , dri-devel@lists.freedesktop.org, Dom Cobley , linux-kernel@vger.kernel.org, nouveau@lists.freedesktop.org, linux-sunxi@lists.linux.dev, Mateusz Kwiatkowski , Geert Uytterhoeven Subject: [PATCH v2 30/41] drm/vc4: vec: Fix definition of PAL-M mode Date: Mon, 29 Aug 2022 15:11:44 +0200 Message-Id: <20220728-rpi-analog-tv-properties-v2-30-459522d653a7@cerno.tech> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220728-rpi-analog-tv-properties-v2-0-459522d653a7@cerno.tech> References: <20220728-rpi-analog-tv-properties-v2-0-459522d653a7@cerno.tech> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Mailer: b4 0.10.0-dev-65ba7 X-Developer-Signature: v=1; a=openpgp-sha256; l=1296; i=maxime@cerno.tech; h=from:subject:message-id; bh=tPg6Z+QHYzTZRNoX2QE1L9br4U069DFxWgKf5hS1TGY=; b=owGbwMvMwCX2+D1vfrpE4FHG02pJDMk8uxT+77r4asW9+0GuAtr263ZO8uXXLH4hEPO6r75P7OyT vVEPO0pZGMS4GGTFFFlihM2XxJ2a9bqTjW8ezBxWJpAhDFycAjCR+e4M/wyO82mumsTl7F17UOHbl9 9CvrYss4W6q3yCzrIE/T3bVMHI8MkgcH2syNyr/v4zrs1YnirDKHpjafUmHmb54Ae6h5i5uAA= X-Developer-Key: i=maxime@cerno.tech; a=openpgp; fpr=BE5675C37E818C8B5764241C254BCFC56BF6CE8D Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 =0D =0D PAL-M is a Brazilian analog TV standard that uses a PAL-style chroma=0D subcarrier at 3.575611[888111] MHz on top of 525-line (480i60) timings.=0D This commit makes the driver actually use the proper VEC preset for this=0D mode instead of just changing PAL subcarrier frequency.=0D =0D Signed-off-by: Mateusz Kwiatkowski =0D Signed-off-by: Maxime Ripard =0D =0D diff --git a/drivers/gpu/drm/vc4/vc4_vec.c b/drivers/gpu/drm/vc4/vc4_vec.c= =0D index 63e4e617e321..fa85dd260742 100644=0D --- a/drivers/gpu/drm/vc4/vc4_vec.c=0D +++ b/drivers/gpu/drm/vc4/vc4_vec.c=0D @@ -69,6 +69,7 @@=0D #define VEC_CONFIG0_STD_MASK GENMASK(1, 0)=0D #define VEC_CONFIG0_NTSC_STD 0=0D #define VEC_CONFIG0_PAL_BDGHI_STD 1=0D +#define VEC_CONFIG0_PAL_M_STD 2=0D #define VEC_CONFIG0_PAL_N_STD 3=0D =0D #define VEC_SCHPH 0x108=0D @@ -241,10 +242,9 @@ static const struct vc4_vec_tv_mode vc4_vec_tv_modes[]= =3D {=0D .config1 =3D VEC_CONFIG1_C_CVBS_CVBS,=0D },=0D [VC4_VEC_TV_MODE_PAL_M] =3D {=0D - .mode =3D &drm_mode_576i,=0D - .config0 =3D VEC_CONFIG0_PAL_BDGHI_STD,=0D - .config1 =3D VEC_CONFIG1_C_CVBS_CVBS | VEC_CONFIG1_CUSTOM_FREQ,=0D - .custom_freq =3D 0x223b61d1,=0D + .mode =3D &drm_mode_480i,=0D + .config0 =3D VEC_CONFIG0_PAL_M_STD,=0D + .config1 =3D VEC_CONFIG1_C_CVBS_CVBS,=0D },=0D };=0D =0D =0D -- =0D b4 0.10.0-dev-65ba7=0D