Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1653886rwb; Wed, 26 Jul 2023 16:33:06 -0700 (PDT) X-Google-Smtp-Source: APBJJlH/dbubkx/o+dk33sLvLXgpzpGWVEAzNfKv5AZq8eH9dhYnIlhVQB9MXZrCtIlSKaUBBBl9 X-Received: by 2002:a17:902:a40f:b0:1b8:28f6:20e6 with SMTP id p15-20020a170902a40f00b001b828f620e6mr2781412plq.34.1690414386168; Wed, 26 Jul 2023 16:33:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690414386; cv=none; d=google.com; s=arc-20160816; b=b5AavNL1XiCjWyoQQg9Ms59kL5uxjYuGdHqOJ0eq3XX0JAbeJpJpJkOJiRWSxOVUry 85R2W5zTZ4xP28bxSxvMNHmpi2hTgTMd66LOG3b71U1jyI8EesWjP1kcGf3qhCVjUUZT 7FHsL6qa4hiPJxwrw6WT5I9xtF5mI1JdTbUyP5ZQMSyUq2sVopIecnlTCfHaUMZ1QvjT yVsfmcI4AqC4LaZhqCoGHGJe6Enie3rHfd0eThcnU2eCqhNA3Qjg+8OVvrsr6jRvMtzG VVkLtyMhYDVOpFUVD3qn+o4uz9Z7GwPkl7vac+Rqp3tcoxmp3bzHH97vp26MBCJfdS+w rh8g== 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:content-language:subject:user-agent:mime-version :date:message-id; bh=TVW2PgWFv1PMDWKSa4T78nTAQSA1WfTls3qazzqUgUk=; fh=8aRJmp2JykrbUv0hboL7a9uUbLnhUg6oUc71sznDeCY=; b=V+ewPMnAHRElBQPPzvnTWosqxHZsf3kgPJKt2p5LSJ/Q0NJMhGuovliWC+vwZanoqI 4GdYsF5R8PuAMMk7iR9En4a8elmbErEgaGaIu/6a72dkKOgJFpwTNDk3yIcPzw3esmWt T2COS5WXCT4gicTRTsNjAmTdRWZnxuEb+RwkvfXTi5EumEG/s+1fr7xCeG9nAibjSjqq wua09/W8k6d9vVY135vxZCVfo+UkM0BRAYND2099akolOG6AILmHQkMMVcBbmUtZZwWu kFIuHs2VxjzZeEne6p4VX6j+u9is5KP7pj5wgNoQNotC9P+YLpDFPddRAeP5gaichYiW 78zA== 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 kt5-20020a170903088500b001b80500f5b8si145853plb.323.2023.07.26.16.32.54; Wed, 26 Jul 2023 16:33:05 -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 S230258AbjGZW0a convert rfc822-to-8bit (ORCPT + 99 others); Wed, 26 Jul 2023 18:26:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230245AbjGZW02 (ORCPT ); Wed, 26 Jul 2023 18:26:28 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07154270F; Wed, 26 Jul 2023 15:26:25 -0700 (PDT) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 3472924E275; Thu, 27 Jul 2023 06:26:18 +0800 (CST) Received: from EXMBX073.cuchost.com (172.16.6.83) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 27 Jul 2023 06:26:18 +0800 Received: from [192.168.60.107] (180.164.60.184) by EXMBX073.cuchost.com (172.16.6.83) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 27 Jul 2023 06:26:17 +0800 Message-ID: Date: Thu, 27 Jul 2023 06:26:17 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v7 2/6] media: admin-guide: Add starfive_camss.rst for Starfive Camera Subsystem Content-Language: en-US To: Bryan O'Donoghue , Mauro Carvalho Chehab , Robert Foss , Todor Tomov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Laurent Pinchart , Hans Verkuil , Eugen Hristev , Ezequiel Garcia CC: , , , References: <20230619112838.19797-1-jack.zhu@starfivetech.com> <20230619112838.19797-3-jack.zhu@starfivetech.com> From: Jack Zhu In-Reply-To: Content-Type: text/plain; charset="UTF-8" X-Originating-IP: [180.164.60.184] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX073.cuchost.com (172.16.6.83) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,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 Hi Bryan, Thank you for your comments. On 2023/7/26 19:26, Bryan O'Donoghue wrote: > On 19/06/2023 12:28, Jack Zhu wrote: >> Add starfive_camss.rst file that documents the Starfive Camera >> Subsystem driver which is used for handing image sensor data. >> >> Signed-off-by: Jack Zhu >> --- >>   .../admin-guide/media/starfive_camss.rst      | 57 +++++++++++++++++++ >>   .../media/starfive_camss_graph.dot            | 16 ++++++ >>   .../admin-guide/media/v4l-drivers.rst         |  1 + >>   MAINTAINERS                                   |  1 + >>   4 files changed, 75 insertions(+) >>   create mode 100644 Documentation/admin-guide/media/starfive_camss.rst >>   create mode 100644 Documentation/admin-guide/media/starfive_camss_graph.dot >> >> diff --git a/Documentation/admin-guide/media/starfive_camss.rst b/Documentation/admin-guide/media/starfive_camss.rst >> new file mode 100644 >> index 000000000000..a6378849384f >> --- /dev/null >> +++ b/Documentation/admin-guide/media/starfive_camss.rst >> @@ -0,0 +1,57 @@ >> +.. SPDX-License-Identifier: GPL-2.0 >> + >> +.. include:: >> + >> +================================ >> +Starfive Camera Subsystem driver >> +================================ >> + >> +Introduction >> +------------ >> + >> +This file documents the driver for the Starfive Camera Subsystem found on >> +Starfive JH7110 SoC. The driver is located under drivers/media/platform/ >> +starfive. >> + >> +The driver implements V4L2, Media controller and v4l2_subdev interfaces. >> +Camera sensor using V4L2 subdev interface in the kernel is supported. >> + >> +The driver has been successfully used on the Gstreamer 1.18.5 with >> +v4l2src plugin. >> + >> + >> +Starfive Camera Subsystem hardware >> +---------------------------------- >> + >> +The Starfive Camera Subsystem hardware consists of: >> + >> +- MIPI DPHY Receiver: receives mipi data from a MIPI camera sensor. > > Feels like a terribe nit-pick but you have "mipi" and "MIPI" here. I'd be consistent with one - recommend MIPI throughout your documentation. > Okay, I will keep a consistent description. >> +- MIPI CSIRx Controller: is responsible for handling and decoding CSI2 protocol >> +  based camera sensor data stream. >> +- ISP: handles the image data streams from the MIPI CSIRx Controller. > > Maybe you've done this elsewhere but, it would be worthwhile describing what the ISP does. Debayering ? 3As ? Just raw dumps ? > Ok, I will add more descriptions in the next version. >> +- VIN(Video In): a top-level module, is responsible for controlling power >> +  and clocks to other modules, dumps the input data to memory or transfers the >> +  input data to ISP. >> + >> + >> +Topology >> +-------- >> + >> +The media controller pipeline graph is as follows: >> + >> +.. _starfive_camss_graph: >> + >> +.. kernel-figure:: starfive_camss_graph.dot >> +    :alt:   starfive_camss_graph.dot >> +    :align: center >> + >> +The driver has 2 video devices: >> + >> +- stf_vin0_wr_video0: capture device for images directly from the VIN module. > > OK so you can get the raw images. > >> +- stf_vin0_isp0_video1: capture device for images without scaling. >> + >> +The driver has 3 subdevices: >> + >> +- stf_isp0: is responsible for all the isp operations. >> +- stf_vin0_wr: used to dump RAW images to memory. >> +- stf_vin0_isp0: used to capture images for the stf_vin0_isp0_video1 device. > > But what is being output here ? RGB, jpeg, YUV ? > It would be worth adding a few bits of text to describe that so you don't have to dive into code to understand it. > Ok, I will add more descriptions. > --- > bod -- Regards, Jack Zhu