Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp461654rwr; Thu, 4 May 2023 23:10:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ79C06nQ1xFTGCwpr8ryF/u5YtUDleo66kS2b5VzZC9hE2jeT71xOoIWnZjfDexn2V7MBw1 X-Received: by 2002:a05:6a21:9011:b0:f2:bfe1:4867 with SMTP id tq17-20020a056a21901100b000f2bfe14867mr552248pzb.17.1683267007104; Thu, 04 May 2023 23:10:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683267007; cv=none; d=google.com; s=arc-20160816; b=vGQMtHP2sid10ACvTD1H2qKvy6bb/QWJj2z1eNfCqEGyoVO/qf4MoWWh/g+rIZdOvW 89QeHHYwPoriQ7asbKsWcyTRLCHVeBt9/+McCnhYQjmeVMQaU1rLd7d7jeDHHFBDsXlo 8TlUcCVJVSjQzkZA/l2oxhDWBZoHMRFzHMqC6l98vpB7C4ZciNt2BSP/yXDmUE1eOIi7 IGuuMXgtULinKbgnIKJbSdZ+lPsj7jhEjU4ZpEzIxP26+F+8x/6YZvb5wX2quWZUYoqu lpD+iBxeAeAbwH+X37i//rR0bbDqd1Bf7VFZfggjrzv3+MthOmvEO09HEFBngNDfr93i Kz/A== 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 :content-language:references:cc:to:from:subject:user-agent :mime-version:date:message-id; bh=HJd+EQAY4R7zN4ZhWmW6V2cCkW3eFpAF2xbR+6DVs80=; b=VzitmuSvsecf7As17IAJUGuYIdmIVF7VpQXdHEh51e7xBs/vVN6aeZ819XeMRQSA71 cijX7r3r7AUKdEHlozVgnRV53Tzuw2svkJV4flK1VaSdh19QhIFGggXR4UUYrDzkIKM4 Ifu2jzM3vKdjFcPRUauXAkgTrxwc9gguv/Efc3bUmCdkP1UZIC/Bn0NBt6lUuTIeb+5d VqXHab0Fa1LtBQTZOi/WWF4CuTdQp2gxlsz6Z5LGs4g4I6J4HmlUpqk27NtDO6NIQodQ odjXn+3cskvpdSUWjzHlEaIwD096uhsGD5L5r0uNPhrheF/jVQZdNSRNX55pmv6agvO4 LPxg== 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 a23-20020a637057000000b005245a7cb22esi1181955pgn.674.2023.05.04.23.09.52; Thu, 04 May 2023 23:10:07 -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 S230328AbjEEF54 convert rfc822-to-8bit (ORCPT + 99 others); Fri, 5 May 2023 01:57:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230055AbjEEF5x (ORCPT ); Fri, 5 May 2023 01:57:53 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A796E11DB9; Thu, 4 May 2023 22:57:50 -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 fd01.gateway.ufhost.com (Postfix) with ESMTP id EE8CA24DD6E; Fri, 5 May 2023 13:57:48 +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; Fri, 5 May 2023 13:57:48 +0800 Received: from [192.168.60.114] (180.164.60.184) by EXMBX073.cuchost.com (172.16.6.83) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 5 May 2023 13:57:47 +0800 Message-ID: <7bd29805-11e7-68ee-aa47-68bae2a2fb38@starfivetech.com> Date: Fri, 5 May 2023 13:57:46 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v4 0/8] Add StarFive Camera Subsystem driver From: Jack Zhu To: Mauro Carvalho Chehab , Maxime Ripard , Rob Herring , Krzysztof Kozlowski , Robert Foss , "Todor Tomov" , Philipp Zabel , "Laurent Pinchart" , Ezequiel Garcia , Hans Verkuil , Eugen Hristev CC: , , , References: <20230413035541.62129-1-jack.zhu@starfivetech.com> <14c06503-621f-2477-7b15-b17f1890ecfe@starfivetech.com> Content-Language: en-US In-Reply-To: <14c06503-621f-2477-7b15-b17f1890ecfe@starfivetech.com> Content-Type: text/plain; charset="UTF-8" X-Originating-IP: [180.164.60.184] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) To EXMBX073.cuchost.com (172.16.6.83) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 On 2023/4/24 19:19, Jack Zhu wrote: > > > On 2023/4/13 11:55, Jack Zhu wrote: >> Hi, >> >> This patch series adds support for the StarFive Camera Subsystem >> found on StarFive JH7110 SoC. >> >> The driver implements V4L2, Media controller and V4L2 subdev interfaces. >> Camera sensor using V4L2 subdev interface in the kernel is supported. >> >> The driver is tested on VisionFive V2 board with IMX219 camera sensor. >> GStreamer 1.18.5 with v4l2src plugin is supported. >> >> Changes since v3: >> Patch 1: >> - Modified port@0 and port@1 properties. >> - Extended the port@0 example with appropriate properties. >> - Added 'port@0' for 'required' >> Patch 2: >> - Modified spelling errors. >> Patch 3: >> - Merged patch 5 into the patch with an explanation for compatible in >> commit msg. >> Patch 6: >> - Asserted pixel_rst[i] reset in the loop after the err_disable_pixclk >> label. >> - Modified Code Style for getting sys_rst and p_rst. >> - Renamed clk_name to name and modified the relevant code. >> Patch 9: >> - Added static for stfcamss_get_mem_res function. >> - Added static for isp_close function. >> - Fixed implicit conversion warning for stf_vin_map_isp_pad function. >> - Dropped unused variables. >> >> v3: https://lore.kernel.org/all/20230331121826.96973-1-jack.zhu@starfivetech.com/ >> > > Hello everyone, > > From the current review status, the patches related to the CSI module > have 'reviewed-by' tags. I would like to know if it is okay to add > patches 1-5 from this series to a PR first. > > Thank you! > > Jack > Hello Mauro, Laurent, Maxime, Rob, Krzysztof, Robert, Todor and Philipp, Can you give me some suggestions and comments on the previous request to commit CSI related patches first? Thank you for your time. Jack >> Changes since v2: >> - Rebased on v6.3-rc1. >> Patch 1: >> - Modified spelling errors. >> - Added port@0. >> - Modified '$ref' of port. >> - Added 'ports' to 'required'. >> - Dropped 'stfcamss' label in example. >> - Added port@0 in example. >> - Added MAINTAINERS file. >> Patch 2: >> - Split this patch into three new patches. >> - Modified compatible property. >> - Replaced clock names with the existing names. >> - Modified 'bus-type' and 'clock-lanes' >> - Added port@2 - port@4 >> - Dropped 'csi2rx' label in example. >> Patch 3: >> - Updated rst and dot file as three pipelines were deleted. >> Patch 4: >> - Split this patch into three new patches. >> - Dropped .s_power() and .get_fmt(). >> - Dropped CSI-2 DT support. >> - Dropped v4l2_device_register_subdev_nodes(). >> - Used assigned-clock-rates in DT to set clk value. >> - Modified 'compatible' field. >> Patch 5: >> - Deleted three pipelines. >> - Modified 'stfcamss_clocks'/'stfcamss_resets' struct. >> - Dropped stfcamss_find_sensor() function. >> - Removed redundant code from stfcamss_of_parse_endpoint_node(). >> - Modified spelling errors. >> - Rewrote stfcamss_reg_media_subdev_node() function. >> - Modified stfcamss_subdev_notifier_bound(). >> - Modified stfcamss_probe() function. >> - Dropped stfcamss_suspend() and stfcamss_resume(). >> - Dropped dev_info() in stfcamss_remove() function. >> - Added 'stf_' prefix for enum subdev_type. >> - Moved all includes to the top in stf_camss.h file. >> - Dropped unused fields in stfcamss struct. >> - Replaced Custom logging macros with regular macros. >> - Rewrote register read and write functions. >> - Used lowercase for all hex constants. >> - Used macro to name registers. >> - Dropped unused ioctl and stf_isp_ioctl.h file. >> >> v2: https://lore.kernel.org/all/20230310120553.60586-1-jack.zhu@starfivetech.com/ >> >> Changes since v1: >> - Deleted starfive,jh7110-mipi-csi2.yaml. >> - Converted cdns,csi2rx.txt to cdns,csi2rx.yaml and added ‘resets’ >> properties. >> - Added ‘cdns,csi2rx.yaml’ in ‘CADENCE MIPI-CSI2 BRIDGES’ entry. >> - The following contents were modified in starfive,jh7110-camss.yaml: >> dropped quotes from ’id’ and ‘schema’; dropped ‘|’ for ‘description’; >> corrected the wrong or redundant words: ‘a ISP’, ‘PD ISP’; >> dropped ‘minItems’ for ‘reg’, ‘clocks’, ‘resets’ and ‘interrupts’; >> dropped the '_clk' and 'rst_' prefix about the 'clock-names' and >> 'reset-names'; >> changed ‘endpoint@1’ to ‘endpoint’; updated examples; >> - Updated Subject for some patches. >> - Merged patch 6, 7, 8, 9, 10, 11 into one patch. >> >> Jack Zhu (8): >> media: dt-bindings: cadence-csi2rx: Convert to DT schema >> media: dt-bindings: cadence-csi2rx: Add resets property >> media: cadence: Add operation on reset >> media: cadence: Add support for external dphy >> media: cadence: Add support for JH7110 SoC >> media: dt-bindings: Add bindings for JH7110 Camera Subsystem >> media: admin-guide: Add starfive_camss.rst for Starfive Camera >> Subsystem >> media: starfive: Add Starfive Camera Subsystem driver >> >> .../admin-guide/media/starfive_camss.rst | 57 + >> .../media/starfive_camss_graph.dot | 16 + >> .../admin-guide/media/v4l-drivers.rst | 1 + >> .../devicetree/bindings/media/cdns,csi2rx.txt | 100 -- >> .../bindings/media/cdns,csi2rx.yaml | 201 +++ >> .../bindings/media/starfive,jh7110-camss.yaml | 164 +++ >> MAINTAINERS | 10 + >> drivers/media/platform/Kconfig | 1 + >> drivers/media/platform/Makefile | 1 + >> drivers/media/platform/cadence/cdns-csi2rx.c | 107 +- >> drivers/media/platform/starfive/Kconfig | 18 + >> drivers/media/platform/starfive/Makefile | 14 + >> drivers/media/platform/starfive/stf_camss.c | 477 +++++++ >> drivers/media/platform/starfive/stf_camss.h | 150 +++ >> drivers/media/platform/starfive/stf_common.h | 18 + >> drivers/media/platform/starfive/stf_isp.c | 737 +++++++++++ >> drivers/media/platform/starfive/stf_isp.h | 999 +++++++++++++++ >> .../media/platform/starfive/stf_isp_hw_ops.c | 715 +++++++++++ >> drivers/media/platform/starfive/stf_video.c | 989 ++++++++++++++ >> drivers/media/platform/starfive/stf_video.h | 89 ++ >> drivers/media/platform/starfive/stf_vin.c | 1138 +++++++++++++++++ >> drivers/media/platform/starfive/stf_vin.h | 174 +++ >> .../media/platform/starfive/stf_vin_hw_ops.c | 211 +++ >> 23 files changed, 6272 insertions(+), 115 deletions(-) >> create mode 100644 Documentation/admin-guide/media/starfive_camss.rst >> create mode 100644 Documentation/admin-guide/media/starfive_camss_graph.dot >> delete mode 100644 Documentation/devicetree/bindings/media/cdns,csi2rx.txt >> create mode 100644 Documentation/devicetree/bindings/media/cdns,csi2rx.yaml >> create mode 100644 Documentation/devicetree/bindings/media/starfive,jh7110-camss.yaml >> create mode 100644 drivers/media/platform/starfive/Kconfig >> create mode 100644 drivers/media/platform/starfive/Makefile >> create mode 100644 drivers/media/platform/starfive/stf_camss.c >> create mode 100644 drivers/media/platform/starfive/stf_camss.h >> create mode 100644 drivers/media/platform/starfive/stf_common.h >> create mode 100644 drivers/media/platform/starfive/stf_isp.c >> create mode 100644 drivers/media/platform/starfive/stf_isp.h >> create mode 100644 drivers/media/platform/starfive/stf_isp_hw_ops.c >> create mode 100644 drivers/media/platform/starfive/stf_video.c >> create mode 100644 drivers/media/platform/starfive/stf_video.h >> create mode 100644 drivers/media/platform/starfive/stf_vin.c >> create mode 100644 drivers/media/platform/starfive/stf_vin.h >> create mode 100644 drivers/media/platform/starfive/stf_vin_hw_ops.c >>