Received: by 2002:a05:7208:b08c:b0:82:bbfa:f723 with SMTP id c12csp398639rbb; Fri, 26 Apr 2024 07:26:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV9i/1TA2UEP6IawvgMhp3WByce2mp3Wn3chtceFZAI5pjeqAzPMc3N8PaRVw05B2d28VcthvTWrmUMABafUgdU+5XYVdYxuvZ5FFxXCQ== X-Google-Smtp-Source: AGHT+IE5ZYW76wAAHWG5YSMkaqjfcVa6RFgT5oxNNgKZAhh4f+bY/Jy741SXwR6UVakROjRmcm9m X-Received: by 2002:a17:906:1643:b0:a55:b2d8:c584 with SMTP id n3-20020a170906164300b00a55b2d8c584mr1994742ejd.66.1714141589492; Fri, 26 Apr 2024 07:26:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714141589; cv=pass; d=google.com; s=arc-20160816; b=UamX90H8pncLF9RJ63KyWl+k2pyd4Km6bWJqKQNDJGq6j28tEkff/kFYD5jpEGEI4l CgU2Ow1bYPHwKsX/tCx9GKhPPKq621Y5T3boz2Z+zRPkKXDR6PRxhfM9bDfOn5SxbkSa wtsLMLiO/0Z73bhBI3m3y6W1oSvZc4AtDBsXRuwLrYXNfC273IfaKKYD8CGb326/500n sI2Ij4QYi4PKEcBHD3QPAcNt9pFh7YNijfUyiPkM29OBpDTPNs3AtI+Gzin/pbUCOqgH Ip7Y1wV9k3UXEb+NnmuR5qVSzVLIglG6PyEAPN8NlnD+VICQEF+3g36lYcZiq24v/V3a mD5g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=JkS7UDaESvQ3rCnmbvmqxjT20PwoTFCdE0oP8zoPlew=; fh=NcJMVFNaR8bzRgLN6H4coLXdbR1fdwxxAYxDB/lPPz0=; b=rFZWMNSzZYQN9FUimft/2NCxk36bXGd9fYwe26FPomoBgbMTphvGVdY85eD0J6wM3r +BGhSOm+VLsfPyNSrQEdeqWNlx+Z4RMywHiYsSxel7PfvRIxsM5lDVXD1gMFnDRZCCIw ciLl+3t3xfDgQ+KlvNslmblB18P5hHOy+0uOaPnpjcFL9iKm9tmD5HabZplEqUaeKpwk JlL/6zbxjAjiXB3SDkDo47k7ddFVE+qM2zhkBlsM9BIKSRIEWrkS5WmfjS+JcP8iY2s+ 3GxyNEWXS4yNyebE9J1a+9AE0CUXlX/mM/y9YMqjuwdTr69qWzBCahmOT+L5bAsIQ5ae x/Eg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gpxsee.org); spf=pass (google.com: domain of linux-kernel+bounces-160150-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160150-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id mp25-20020a1709071b1900b00a58cdf214a4si906072ejc.448.2024.04.26.07.26.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 07:26:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160150-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gpxsee.org); spf=pass (google.com: domain of linux-kernel+bounces-160150-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160150-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4362C1F22C46 for ; Fri, 26 Apr 2024 14:26:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7E25F14A09F; Fri, 26 Apr 2024 14:25:38 +0000 (UTC) Received: from mx.gpxsee.org (mx.gpxsee.org [37.205.14.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C8767148851; Fri, 26 Apr 2024 14:25:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=37.205.14.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714141538; cv=none; b=A7ndpt9yu6tH7OCUtWhbIWUXf+LuBNlAlEd1/DhHnqWEmkQzTpIOcrkFAjcaZ4ln9eMsOgLiis7TvT5qcjX7RbQmm2lrAiPfUx80Q7qOug56Yhz7yWEfnkRx96S7qoMoXtyojsqjrUTmj85z+x4a8BhzdgMhK6WTScbXGQAVn4s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714141538; c=relaxed/simple; bh=XeY32zytxyK7zQRbZB3onsZxGjG8vSkf2m/k0DWkSq0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=FGgtx1hPmcnFn/8j3CHHtXdW2thDjKItAWWS6omXzmZXq021dJ1hBNIojhrOvsyNUfIDraBhT4vc/AbYVF6TsgG06amjISNfKTLcf9V/Bt8JlAGp2hCeEzwf+YGNJGZC61uvxE8rRB4DYWTVWkwU/jIvrJU6jVxXeTcXqXvAqFA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gpxsee.org; spf=pass smtp.mailfrom=gpxsee.org; arc=none smtp.client-ip=37.205.14.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gpxsee.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gpxsee.org Received: from mgb4.. (unknown [62.77.71.229]) by mx.gpxsee.org (Postfix) with ESMTPSA id 7FBCB4260E; Fri, 26 Apr 2024 16:16:26 +0200 (CEST) From: tumic@gpxsee.org To: Mauro Carvalho Chehab , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Martin=20T=C5=AFma?= Subject: [PATCH v5 4/4] media: admin-guide: mgb4: Outputs DV timings documentation update Date: Fri, 26 Apr 2024 16:16:19 +0200 Message-ID: <20240426141619.8866-5-tumic@gpxsee.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240426141619.8866-1-tumic@gpxsee.org> References: <20240426141619.8866-1-tumic@gpxsee.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Martin Tůma Properly document the function of the mgb4 output "frame_rate" sysfs parameter and update the default DV timings values according to the latest code changes. Signed-off-by: Martin Tůma --- Documentation/admin-guide/media/mgb4.rst | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/Documentation/admin-guide/media/mgb4.rst b/Documentation/admin-guide/media/mgb4.rst index e434d4a9eeb3..b9da127c074d 100644 --- a/Documentation/admin-guide/media/mgb4.rst +++ b/Documentation/admin-guide/media/mgb4.rst @@ -227,8 +227,13 @@ Common FPDL3/GMSL output parameters open.* **frame_rate** (RW): - Output video frame rate in frames per second. The default frame rate is - 60Hz. + Output video signal frame rate limit in frames per second. Due to + the limited output pixel clock steps, the card can not always generate + a frame rate perfectly matching the value required by the connected display. + Using this parameter one can limit the frame rate by "crippling" the signal + so that the lines are not equal (the porches of the last line differ) but + the signal appears like having the exact frame rate to the connected display. + The default frame rate limit is 60Hz. **hsync_polarity** (RW): HSYNC signal polarity. @@ -253,33 +258,33 @@ Common FPDL3/GMSL output parameters and there is a non-linear stepping between two consecutive allowed frequencies. The driver finds the nearest allowed frequency to the given value and sets it. When reading this property, you get the exact - frequency set by the driver. The default frequency is 70000kHz. + frequency set by the driver. The default frequency is 61150kHz. *Note: This parameter can not be changed while the output v4l2 device is open.* **hsync_width** (RW): - Width of the HSYNC signal in pixels. The default value is 16. + Width of the HSYNC signal in pixels. The default value is 40. **vsync_width** (RW): - Width of the VSYNC signal in video lines. The default value is 2. + Width of the VSYNC signal in video lines. The default value is 20. **hback_porch** (RW): Number of PCLK pulses between deassertion of the HSYNC signal and the first - valid pixel in the video line (marked by DE=1). The default value is 32. + valid pixel in the video line (marked by DE=1). The default value is 50. **hfront_porch** (RW): Number of PCLK pulses between the end of the last valid pixel in the video line (marked by DE=1) and assertion of the HSYNC signal. The default value - is 32. + is 50. **vback_porch** (RW): Number of video lines between deassertion of the VSYNC signal and the video - line with the first valid pixel (marked by DE=1). The default value is 2. + line with the first valid pixel (marked by DE=1). The default value is 31. **vfront_porch** (RW): Number of video lines between the end of the last valid pixel line (marked - by DE=1) and assertion of the VSYNC signal. The default value is 2. + by DE=1) and assertion of the VSYNC signal. The default value is 30. FPDL3 specific input parameters ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- 2.44.0