Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8906575rwb; Thu, 24 Nov 2022 05:51:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf6i54+wXE2JzyQv+eqqJHu2oay6Lc4tpBoE7AN0o9qNmpsBZlutrSlf5dzTohH2PdrggkXW X-Received: by 2002:aa7:93c2:0:b0:56d:8145:3faa with SMTP id y2-20020aa793c2000000b0056d81453faamr14052424pff.75.1669297865592; Thu, 24 Nov 2022 05:51:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669297865; cv=none; d=google.com; s=arc-20160816; b=dcxH+Q1al2OubeWgQvfnC9z2Pg9ATe3Us9xjWEg8lo2NakA4IwNzkvVmZrjpqHSdTq A39uz7grjJBG4b58TVZe3GgzyqNzbxYj53MiKqy2GbwE4MRVXvyDeADx72gPuyfaqcRj aSbKn/MngeXDwSVjQ4CmAd/eZplcgLBSeEFS90QaZspXWajGHex70Wb8XLTLfcvh6S7P bP7Hvc+TuU9eyyOewVWxC4iQ5fTnGBsgRIph2Yne2fhWPtIrRNchzjBl99mtb7tZrCfK xNaQW3kmh0Rhl8cQTsdr7gZHWzPgU1KH3t6hoHObnlGiXPRr5J0TSUe2hWO7QR8wY9pN Tk8w== 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:cc:to:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=YwGIb+ZMz0VBwzNNqfdvn12/MOc6eqkpW0OnNa0NbJc=; b=UrJZsGQAj4Ac0zT1QO0f/Q0RSmSIH4dTCDEkTxA+NsNQCEQxootEn4D5uCcYubffOm mpktFyFckLkbu4ghCEmu9VwSNZYmhFgqY2C4eC0iFTao9iQcYoNLMYqomvfSdX3erOWT kthAh9QF2oexOMUCCVNnyepjQL4XV64t+6VnhyBZUw4oyR++iZi0W8IdC/XJ9SePdneu nVEOQzgT8Baddc0SwiorztJjHtb6fZfVQUGirL+DLkmlLsloyL8TeJfBCyUE2UkXkFm8 t635uVi8MN3GNpgqlMbSTemeDhJvr4MRtX5XRQE0m6V51uyFsYEcxK8znABOOUM9suie 548A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@tronnes.org header.s=ds202112 header.b=GQfGkevN; 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=fail (p=NONE sp=NONE dis=NONE) header.from=tronnes.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 190-20020a6206c7000000b0052dd9f10a47si967124pfg.363.2022.11.24.05.50.54; Thu, 24 Nov 2022 05:51:05 -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=fail header.i=@tronnes.org header.s=ds202112 header.b=GQfGkevN; 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=fail (p=NONE sp=NONE dis=NONE) header.from=tronnes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230048AbiKXNjx (ORCPT + 86 others); Thu, 24 Nov 2022 08:39:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230040AbiKXNjw (ORCPT ); Thu, 24 Nov 2022 08:39:52 -0500 Received: from smtp.domeneshop.no (smtp.domeneshop.no [IPv6:2a01:5b40:0:3005::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A672F3906 for ; Thu, 24 Nov 2022 05:39:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tronnes.org ; s=ds202112; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=YwGIb+ZMz0VBwzNNqfdvn12/MOc6eqkpW0OnNa0NbJc=; b=GQfGkevNoEMy1ayya0G6zV5KXu Uu+8D5ZQljH4/FMGR10VoXwIhyFpgwYnL/T/BAhQltcKGKx8cD6dB4fB5+tPJ31epgmzcbQYe5yiR J3u0cP9bvbv3otXYzE50euxkNSizLlYX9F0swrsOtM6ikyETKuoeL++WWSG+k+nVr4fr5J5smXDFY pLRwrnnV4GkqriXpfOipwOTyFZ/1IuEFctpDiX8/9ZTS9bMCCWmI9natYNHxDr+U8u+Yw8V/tV95y G8acGM4PpbCVo08/WYMRXXsH3BiLz3SIDgDvaVY42f4grYOgMqdXwLwZVqDADujf8PXH12hsDYcAJ BE9EgNXw==; Received: from [2a01:799:95e:1700:6395:ccbd:d000:d42b] (port=54180) by smtp.domeneshop.no with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oyCSC-0006kb-Ph; Thu, 24 Nov 2022 14:39:48 +0100 Message-ID: Date: Thu, 24 Nov 2022 14:39:45 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH v10 06/19] drm/modes: Add a function to generate analog display modes To: Maxime Ripard , Samuel Holland , Jernej Skrabec , Maarten Lankhorst , Rodrigo Vivi , Joonas Lahtinen , Maxime Ripard , Ben Skeggs , Chen-Yu Tsai , David Airlie , Jani Nikula , Tvrtko Ursulin , Emma Anholt , Karol Herbst , Lyude Paul , Thomas Zimmermann , Daniel Vetter Cc: Dave Stevenson , Hans de Goede , nouveau@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Mateusz Kwiatkowski , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, Dom Cobley , Phil Elwell , Geert Uytterhoeven , =?UTF-8?Q?Noralf_Tr=c3=b8nnes?= References: <20220728-rpi-analog-tv-properties-v10-0-256dad125326@cerno.tech> <20220728-rpi-analog-tv-properties-v10-6-256dad125326@cerno.tech> From: =?UTF-8?Q?Noralf_Tr=c3=b8nnes?= In-Reply-To: <20220728-rpi-analog-tv-properties-v10-6-256dad125326@cerno.tech> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, 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 Den 17.11.2022 10.28, skrev Maxime Ripard: > Multiple drivers (meson, vc4, sun4i) define analog TV 525-lines and > 625-lines modes in their drivers. > > Since those modes are fairly standard, and that we'll need to use them > in more places in the future, it makes sense to move their definition > into the core framework. > > However, analog display usually have fairly loose timings requirements, > the only discrete parameters being the total number of lines and pixel > clock frequency. Thus, we created a function that will create a display > mode from the standard, the pixel frequency and the active area. > > Tested-by: Mateusz Kwiatkowski > Signed-off-by: Maxime Ripard > > --- I'm no domain expert so apart from the timing details which I can't comment on, it looks fine. I personally advocated for a much simpler solution for these NTSC and PAL modes, but AIUI this is part of a grander plan to support devices with other timings. Acked-by: Noralf Trønnes