Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5464608rwl; Mon, 3 Apr 2023 21:40:43 -0700 (PDT) X-Google-Smtp-Source: AKy350bWkA4Nt+vYskYojh5SSk0WuQzid1wjjWZytFBCfDm+vnixqg1IeJGMlJgqMf/QWEgDxVLf X-Received: by 2002:a17:902:f68a:b0:1a2:8940:6dae with SMTP id l10-20020a170902f68a00b001a289406daemr1543000plg.34.1680583243273; Mon, 03 Apr 2023 21:40:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680583243; cv=none; d=google.com; s=arc-20160816; b=y0bP+x6hRFl3ZzPX5RdxhUGZqyr+fypOwrbKR3HOVTneatT19XZ+EG8FLkVPYPF0io U6rluHHxjkHT9y7rSABHgERJe8aviYRVXfYPaBMh+kADFg9aKWDx+ZN328ybhlf6CaB4 Z+zX76LYNrak97qtltm3gOiGmDu03P8xLazj+soXCdSAKiuY7vqrP/kV25ni9q0SwssC S/VjcpOihw4Gjg8gShhvpR6zkGDBki9GHBx271ovtDTXDFGjxkdHDTPk7c+CFDcRiZS4 hmUcxHSfc3JQabl0X5FihCb8gUS69UzKBczJIwU/F+eWGEA8dutZWqfs9W8ap88kOxfI I+DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=eZ7T12CfwcF1A2M4X9PfHXeQBJtMHyN1rIvaRxQvrpI=; b=l437jOY5fYEjcs2IWiu3Q4mAPz9JvocH+tmvb5qFBJv0tJPUQQA6jgNIPbSwe7FToD uU8sOfrIBY6uMFK9PRZOTQoAmZd+HPpDEFK5Z+XAGNrPG6Wlyp8eBdLoeiA/HhJj69nB 40nIsqbzwuW7pwxxxifYWKl8H7urG2ONKJMPbRNu3kXI9czBZZEAvdh1debV953kaUmB RJQm2VkRiG7pw3VOYhJMxaV5xqUkVQhkHegqeWTWqxRA++pa7NaCEnR1rmwIFsgN5i5I xxwgoiGFG+unFV7y0RgWLo2Jr+BivyFAjCI16ld0yN9qR0+CPfC7j0K3p7+l99J/rTVq sbBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=tcx8s6N4; 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 c16-20020a170902d49000b0019e8456b5f2si9937845plg.619.2023.04.03.21.40.32; Mon, 03 Apr 2023 21:40:43 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=tcx8s6N4; 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 S233035AbjDDEj5 (ORCPT + 99 others); Tue, 4 Apr 2023 00:39:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232501AbjDDEjt (ORCPT ); Tue, 4 Apr 2023 00:39:49 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 229DBE71; Mon, 3 Apr 2023 21:39:46 -0700 (PDT) Received: from pendragon.ideasonboard.com (fp76f193f3.tkyc206.ap.nuro.jp [118.241.147.243]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id B4E0D7F8; Tue, 4 Apr 2023 06:39:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1680583182; bh=PsrShNDNjOAYpMSHDxCRciJOV3YdLGQAXZrSAboFNFI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tcx8s6N4qLBOmpLFtQLQmncmqCybgOiACaZgNAO3rrKQbsbN96kkPAk1ogvmzBn47 5I65kylgxm2v46KxJc1x1jJDlfVzhXld/kYECxYvR3GIMY2692v8uSH70s/6h2nGVU fcAUbHrktt2K8Syhk44RF5xLxZeKTxFdtaREwsJ0= Date: Tue, 4 Apr 2023 07:39:49 +0300 From: Laurent Pinchart To: Jack Zhu Cc: Mauro Carvalho Chehab , Maxime Ripard , Rob Herring , Krzysztof Kozlowski , Robert Foss , Todor Tomov , Philipp Zabel , Ezequiel Garcia , Hans Verkuil , Eugen Hristev , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, changhuang.liang@starfivetech.com Subject: Re: [PATCH v3 1/9] media: dt-bindings: Add bindings for JH7110 Camera Subsystem Message-ID: <20230404043949.GJ16648@pendragon.ideasonboard.com> References: <20230331121826.96973-1-jack.zhu@starfivetech.com> <20230331121826.96973-2-jack.zhu@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230331121826.96973-2-jack.zhu@starfivetech.com> X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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 Jack, Thank you for the patch. On Fri, Mar 31, 2023 at 08:18:18PM +0800, Jack Zhu wrote: > Add the bindings documentation for Starfive JH7110 Camera Subsystem > which is used for handing image sensor data. > > Signed-off-by: Jack Zhu > --- > .../bindings/media/starfive,jh7110-camss.yaml | 159 ++++++++++++++++++ > MAINTAINERS | 7 + > 2 files changed, 166 insertions(+) > create mode 100644 Documentation/devicetree/bindings/media/starfive,jh7110-camss.yaml > > diff --git a/Documentation/devicetree/bindings/media/starfive,jh7110-camss.yaml b/Documentation/devicetree/bindings/media/starfive,jh7110-camss.yaml > new file mode 100644 > index 000000000000..0235c70e7793 > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/starfive,jh7110-camss.yaml > @@ -0,0 +1,159 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > + > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/media/starfive,jh7110-camss.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Starfive SoC CAMSS ISP > + > +maintainers: > + - Jack Zhu > + - Changhuang Liang > + > +description: > + The Starfive CAMSS ISP is a Camera interface for Starfive JH7110 SoC. It > + consists of a VIN controller (Video In Controller, a top-level control until) > + and an ISP. > + > +properties: > + compatible: > + const: starfive,jh7110-camss > + > + reg: > + maxItems: 2 > + > + reg-names: > + items: > + - const: syscon > + - const: isp > + > + clocks: > + maxItems: 7 > + > + clock-names: > + items: > + - const: apb_func > + - const: wrapper_clk_c > + - const: dvp_inv > + - const: axiwr > + - const: mipi_rx0_pxl > + - const: ispcore_2x > + - const: isp_axi > + > + resets: > + maxItems: 6 > + > + reset-names: > + items: > + - const: wrapper_p > + - const: wrapper_c > + - const: axird > + - const: axiwr > + - const: isp_top_n > + - const: isp_top_axi > + > + power-domains: > + items: > + - description: JH7110 ISP Power Domain Switch Controller. > + > + interrupts: > + maxItems: 4 > + > + ports: > + $ref: /schemas/graph.yaml#/properties/ports > + > + properties: > + port@0: > + $ref: /schemas/graph.yaml#/properties/port > + unevaluatedProperties: false > + description: > + Input port for receiving DVP data. > + > + properties: > + endpoint: > + $ref: video-interfaces.yaml# > + unevaluatedProperties: false > + > + port@1: > + $ref: /schemas/graph.yaml#/properties/port > + unevaluatedProperties: false > + description: > + Input port for receiving CSI data. > + > + properties: > + endpoint: > + $ref: video-interfaces.yaml# > + unevaluatedProperties: false > + > + required: > + - port@1 Both ports should be required. It's fine to have unconnected ports (that is, without any endpoint child node), but the ports should always be present if they exist in the hardware. > + > +required: > + - compatible > + - reg > + - reg-names > + - clocks > + - clock-names > + - resets > + - reset-names > + - power-domains > + - interrupts > + - ports > + > +additionalProperties: false > + > +examples: > + - | > + isp@19840000 { > + compatible = "starfive,jh7110-camss"; > + reg = <0x19840000 0x10000>, > + <0x19870000 0x30000>; > + reg-names = "syscon", "isp"; > + clocks = <&ispcrg 0>, > + <&ispcrg 13>, > + <&ispcrg 2>, > + <&ispcrg 12>, > + <&ispcrg 1>, > + <&syscrg 51>, > + <&syscrg 52>; > + clock-names = "apb_func", > + "wrapper_clk_c", > + "dvp_inv", > + "axiwr", > + "mipi_rx0_pxl", > + "ispcore_2x", > + "isp_axi"; > + resets = <&ispcrg 0>, > + <&ispcrg 1>, > + <&ispcrg 10>, > + <&ispcrg 11>, > + <&syscrg 41>, > + <&syscrg 42>; > + reset-names = "wrapper_p", > + "wrapper_c", > + "axird", > + "axiwr", > + "isp_top_n", > + "isp_top_axi"; > + power-domains = <&pwrc 5>; > + interrupts = <92>, <87>, <88>, <90>; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + port@0 { > + reg = <0>; > + vin_from_sc2235: endpoint { > + remote-endpoint = <&sc2235_to_vin>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + vin_from_csi2rx: endpoint { > + remote-endpoint = <&csi2rx_to_vin>; > + }; > + }; > + }; > + }; > diff --git a/MAINTAINERS b/MAINTAINERS > index b6c811326355..f7165371c56d 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -19908,6 +19908,13 @@ M: Ion Badulescu > S: Odd Fixes > F: drivers/net/ethernet/adaptec/starfire* > > +STARFIVE CAMERA SUBSYSTEM DRIVER > +M: Jack Zhu > +M: Changhuang Liang > +L: linux-media@vger.kernel.org > +S: Maintained > +F: Documentation/devicetree/bindings/media/starfive,jh7110-camss.yaml > + > STARFIVE DEVICETREES > M: Emil Renner Berthing > S: Maintained -- Regards, Laurent Pinchart