Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5405092rwd; Mon, 12 Jun 2023 04:51:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6H0CR7n6mVV2m2uix+6yfbrEV+/tnYMl1gppD//sxhu07NKhcfBQK/ndOeeh8+n9GJFWLw X-Received: by 2002:a17:902:dacb:b0:1b0:f727:bc41 with SMTP id q11-20020a170902dacb00b001b0f727bc41mr8378206plx.42.1686570662982; Mon, 12 Jun 2023 04:51:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686570662; cv=none; d=google.com; s=arc-20160816; b=tpLJFv+k3Pw4gq6h940kmuecfXXSg/DYUR9NvSXO2RgqsZ9gw1Zbk/NCheNBaxMxML 1/UVyhUaVKnk5GECgDwfnjZVqP6+jl/QxjiiCr+80eiqYY6U5Wgk8V7yq4nixIWxJ+6d lGLVq5K1bOCebj8uEoDBFq3NbW/5kFKDujl16+AVP0KH3hX9xAnseVhJ46F8SpdO9bFT da4MFFDRcsGn3RqAX6xo1j1RWgWSIBJu4psASqkH6y3leX+yvs30arz3o+M8wOXOyP93 PUYWtCR2M+iFJ+qFz8bCRToIBY39I3u8p5B5I6d8iyvtX4ELHwdJE5FCacN5BsXzpzRY w+0g== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=HA860b2eD+cbUk8DI8dFHlyvjAb/f8d56HFPeFfoLaQ=; b=VMNv1ITwtDjp/NQL1tiT/gY7wwX/m7eg6ADQZKtRQSl1sfcXX2BtfO7HNpxcnvuLi2 et+A96UUpohTRCg1ca88UnXP51H2kP4HvuIPBnQF9nvCDpWJgxEltDuzZMhhiGFVIkOl Fyc4ge885cb3Qw0/xF4hcntH1yWN3WjRAHSEgrjsJcDshrJ9ZI8k1p8nUF7LsWyY0Y/X iP4N4PiSVpB0+S9OWz9n5oS9f7/7As/U9S+VymZSG7mMQw0QIArNkKS0IYFIHJ0Mt2yj qKvr4EjId9kVPMJ8Do6rWUOJXe0plLb1izwyZ1xxzHDW6rdG51TROB2gIbLj5vQ4K5mv oimg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t8-20020a17090340c800b001b02162c86fsi6845639pld.422.2023.06.12.04.50.50; Mon, 12 Jun 2023 04:51:02 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230527AbjFLLlF (ORCPT + 99 others); Mon, 12 Jun 2023 07:41:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238504AbjFLLkE (ORCPT ); Mon, 12 Jun 2023 07:40:04 -0400 Received: from mx.gpxsee.org (mx.gpxsee.org [37.205.14.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D632630D2; Mon, 12 Jun 2023 04:34:25 -0700 (PDT) Received: from [192.168.4.25] (unknown [62.77.71.229]) by mx.gpxsee.org (Postfix) with ESMTPSA id 41F14BF23; Mon, 12 Jun 2023 13:34:23 +0200 (CEST) Message-ID: Date: Mon, 12 Jun 2023 13:34:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [RESEND PATCH v6 1/1] Added Digiteq Automotive MGB4 driver To: Hans Verkuil , Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?Q?Martin_T=c5=afma?= References: <20230524112126.2242-1-tumic@gpxsee.org> <20230524112126.2242-2-tumic@gpxsee.org> <3a7da3cd-8d03-a2c4-0534-a75565aefc13@xs4all.nl> <7072a8f3-5c9e-1170-e480-6fb57b95110f@gpxsee.org> <6b792de3-bb2c-d2b5-a652-eca6d20dad20@xs4all.nl> <089e728b-0596-d3e3-39a1-651a3ac73e33@xs4all.nl> Content-Language: en-US From: =?UTF-8?Q?Martin_T=c5=afma?= In-Reply-To: <089e728b-0596-d3e3-39a1-651a3ac73e33@xs4all.nl> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_NONE,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 On 12. 06. 23 10:51, Hans Verkuil wrote: > On 08/06/2023 17:30, Martin Tůma wrote: >> On 08. 06. 23 12:23, Hans Verkuil wrote: >> >>> Can you make a list of which sysfs properties correspond to existing V4L2 >>> format or timing fields and which are 'new'? >>> >> >> On the left all the current mgb4 sysfs properties (see the admin-guide doc from the patch for description), on the right v4l2 structures where they could be mapped (may not be true for all of them in >> the patch, I will check it and update the code in v7) >> >> >> --- PCIE CARD --- >> >> module_type        - >> module_version        - >> fw_type            - >> fw_version        - >> serial_number        - >> temperature        hwmon >> >> --- INPUTS --- >> >> input_id        - >> oldi_lane_width        - >> color_mapping        - >> link_status        v4l2_input.status (V4L2_IN_ST_NO_SYNC) >> stream_status        v4l2_input.status (V4L2_IN_ST_NO_SIGNAL) >> video_width        v4l2_bt_timings.width >> video_height        v4l2_bt_timings.height >> vsync_status        v4l2_bt_timings.polarities >> hsync_status        v4l2_bt_timings.polarities >> vsync_gap_length    - >> hsync_gap_length    - >> pclk_frequency        v4l2_bt_timings.pixelclock >> hsync_width        v4l2_bt_timings.hsync >> vsync_width        v4l2_bt_timings.vsync >> hback_porch        v4l2_bt_timings.hbackporch >> hfront_porch        v4l2_bt_timings.hfrontporch >> vback_porch        v4l2_bt_timings.vbackporch >> vfront_porch        v4l2_bt_timings.vfrontporch >> frequency_range        - >> alignment        v4l2_pix_format.bytesperline >> fpdl3_input_width    - >> gmsl_mode        - >> gmsl_stream_id        - >> gmsl_fec        - >> >> --- OUTPUTS --- >> >> output_id        - >> video_source        - >> display_width        v4l2_bt_timings.width >> display_height        v4l2_bt_timings.height >> frame_rate        v4l2_frmivalenum > > The frame rate is a property of the width/height+blanking and the > pixel clock frequency. IMHO it does not make sense to have this as > a writable property. Read-only is OK. > >> hsync_polarity        v4l2_bt_timings.polarities >> vsync_polarity        v4l2_bt_timings.polarities >> de_polarity        - >> pclk_frequency        v4l2_bt_timings.pixelclock >> hsync_width        v4l2_bt_timings.hsync >> vsync_width        v4l2_bt_timings.vsync >> vsync_width        v4l2_bt_timings.vsync >> hback_porch        v4l2_bt_timings.hbackporch >> hfront_porch        v4l2_bt_timings.hfrontporch >> vback_porch        v4l2_bt_timings.vbackporch >> vfront_porch        v4l2_bt_timings.vfrontporch >> alignment        v4l2_pix_format.bytesperline >> fpdl3_output_width    - >> >> >> M. > > The property I am most concerned with is alignment (both for input and output). > But it is not clear to me what the use-case is. > Hi, The use-case is to provide the alignment required by some video processing chips. We have a product based on NVIDIA Jetson TX2 that uses the mgb4 cards and the HW video encoding needs a specific alignment to work. M. > Regards, > > Hans