Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp5041962rwb; Tue, 17 Jan 2023 08:29:26 -0800 (PST) X-Google-Smtp-Source: AMrXdXtug3uMrsghHheMrqlcx+MMEkRY4JoJm6TbLxkkUCbcMe8NL1DJLaDks1iUz5LjC6Cm2JCX X-Received: by 2002:a17:907:c30c:b0:86e:a013:c269 with SMTP id tl12-20020a170907c30c00b0086ea013c269mr3798290ejc.9.1673972966161; Tue, 17 Jan 2023 08:29:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673972966; cv=none; d=google.com; s=arc-20160816; b=tmRTV+LPE1LXee9+ppfBGdsbFxChGW5dKcPHnqqs36KeJTORmCyvT75Osgtx3isPBs mGzOJh5Q1Uogp/tVB+rfBc841ZzK669JJe8fnKmipnmAJ1M4BBtDpCDy7Be0Y0gP+X+t jF4Js/NvcEMDKGDFjH5lEiNxZpRRSpfnVaa4u6+5IwyQQ12esBWz37AEHRuwliivYzjA A7Gbv86PaUPMfObA8yBqc4zTfzM15sOxDuu1hkEvFIpbyZ9ULcznouxZ5rbogKR0Imq8 RRujZU4Uq2Q0Jr0SEWFWNNZl4W2MEsmY/43V5xvb76TwuvV43A3ywOXOVgF/8mZja1pR Gfog== 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=Z0e6JaqPzzar9li5xJMKOG2bKjxFn60E3exS9cj7sM8=; b=WMr08E0nqU7L36tU3vrU+TbHdqPAEHHJ3PfGan8fgoFK6rJVv95A2Lb01A9JB4crF7 MOSjc3h3fdSkSO18NdL514GQ+2fZP7x21mPhCKKE9aS9K3bL1lxyYESaAkMsd6gv761b JWzdHjzUL4Ybvwp8rFjuO/TMxSj6VnVlLDTIYI+ulAaDWe0KHly19ZFM3vnJMTMwFen9 a77G4XhoxzUaQl9nuBcXFTyM+gTUILqkzPVSWY5uDQehfzEOEcC6nluGaqKA3vCz5rWJ izQW6qREZjE/FFwSDS2i7plpuaF5tNmpaWKr5sJXom1aj6/02rTgWiB/oqtp9rAUvIoT h8uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=BVlO2NPS; 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 hv13-20020a17090760cd00b007ad8bd5b636si36126001ejc.377.2023.01.17.08.29.14; Tue, 17 Jan 2023 08:29:26 -0800 (PST) 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=BVlO2NPS; 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 S230432AbjAQP0x (ORCPT + 48 others); Tue, 17 Jan 2023 10:26:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229803AbjAQP0Z (ORCPT ); Tue, 17 Jan 2023 10:26:25 -0500 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 1054655BA; Tue, 17 Jan 2023 07:26:24 -0800 (PST) Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 9F3F610C; Tue, 17 Jan 2023 16:26:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1673969181; bh=tSDcjAh6bFmwIhxqPp/jq7QIdOqP7tA6ejjlekmgFZo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BVlO2NPSanLnnpZ9sV70KYrrQe9hv2XFk89MRzJJ55jCEXhtEy0oWi7C3t5UzIqsr pq9GIkxGnIyLgvxDX1ajQ777N9AA2NfaRG1WJVmsPC/oEXti4UF4QHn96Ae6cKXVTL QEnC9WZFMQMXpfkUfgATNOUrxNC/JDtxvoTpnsY8= Date: Tue, 17 Jan 2023 17:26:22 +0200 From: Laurent Pinchart To: Yuji Ishikawa Cc: Hans Verkuil , Mauro Carvalho Chehab , Nobuhiro Iwamatsu , Rob Herring , Krzysztof Kozlowski , "Rafael J . Wysocki" , Mark Brown , linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v5 1/6] dt-bindings: media: platform: visconti: Add Toshiba Visconti Video Input Interface bindings Message-ID: References: <20230111022433.25950-1-yuji2.ishikawa@toshiba.co.jp> <20230111022433.25950-2-yuji2.ishikawa@toshiba.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230111022433.25950-2-yuji2.ishikawa@toshiba.co.jp> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS 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 Yuji, Thank you for the patch. On Wed, Jan 11, 2023 at 11:24:28AM +0900, Yuji Ishikawa wrote: > Adds the Device Tree binding documentation that allows to describe > the Video Input Interface found in Toshiba Visconti SoCs. > > Signed-off-by: Yuji Ishikawa > Reviewed-by: Nobuhiro Iwamatsu > --- > Changelog v2: > - no change > > Changelog v3: > - no change > > Changelog v4: > - fix style problems at the v3 patch > - remove "index" member > - update example > > Changelog v5: > - no change > --- > .../bindings/media/toshiba,visconti-viif.yaml | 98 +++++++++++++++++++ > 1 file changed, 98 insertions(+) > create mode 100644 Documentation/devicetree/bindings/media/toshiba,visconti-viif.yaml > > diff --git a/Documentation/devicetree/bindings/media/toshiba,visconti-viif.yaml b/Documentation/devicetree/bindings/media/toshiba,visconti-viif.yaml > new file mode 100644 > index 00000000000..71442724d1a > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/toshiba,visconti-viif.yaml > @@ -0,0 +1,98 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/media/toshiba,visconti-viif.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Toshiba Visconti5 SoC Video Input Interface Device Tree Bindings > + > +maintainers: > + - Nobuhiro Iwamatsu > + > +description: > + Toshiba Visconti5 SoC Video Input Interface (VIIF) > + receives MIPI CSI2 video stream, > + processes the stream with embedded image signal processor (L1ISP, L2ISP), > + then stores pictures to main memory. > + > +properties: > + compatible: > + const: toshiba,visconti-viif > + > + reg: > + items: > + - description: registers for capture control > + - description: registers for CSI2 receiver control Nitpicking, s/registers/Registers/ in the two lines above as you capitalize the descriptions below. > + > + interrupts: > + items: > + - description: Sync Interrupt > + - description: Status (Error) Interrupt > + - description: CSI2 Receiver Interrupt > + - description: L1ISP Interrupt > + > + port: > + $ref: /schemas/graph.yaml#/$defs/port-base > + unevaluatedProperties: false > + description: Input port, single endpoint describing the CSI-2 transmitter. I would write description: CSI-2 input port, with a single endpoint connected to the CSI-2 transmitter. > + > + properties: > + endpoint: > + $ref: video-interfaces.yaml# > + unevaluatedProperties: false > + > + properties: > + data-lanes: > + description: VIIF supports 2 or 4 data lines s/lines/lanes/ > + $ref: /schemas/types.yaml#/definitions/uint32-array You can drop this line, it's already handled by video-interfaces.yaml. > + minItems: 1 > + maxItems: 4 If only 2 or 4 data lanes are supported, shouldn't minItems be 2 ? > + items: > + minimum: 1 > + maximum: 4 Can the CSI-2 receiver reorder the data lanes ? If not, I think you can write items: - const: 1 - const: 2 - const: 3 - const: 4 > + > + clock-lanes: > + description: VIIF supports 1 clock line s/line/lane/ > + const: 0 I would also add clock-noncontinuous: true link-frequencies: true to indicate that the above two properties are used by this device. Also, mark the properties that are required: required: - data-lanes - clock-lanes I'm wondering, though, if clock-lanes shouldn't be simply omitted. If the hardware doesn't support any other option than using lane 0 for the clock lane (as in, no lane remapping), then you can drop the clock-lanes property completely. > + > +required: > + - compatible > + - reg > + - interrupts > + - port > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + > + soc { > + #address-cells = <2>; > + #size-cells = <2>; > + > + viif@1c000000 { > + compatible = "toshiba,visconti-viif"; > + reg = <0 0x1c000000 0 0x6000>, > + <0 0x1c008000 0 0x400>; > + interrupts = , > + , > + , > + ; > + > + port { > + #address-cells = <1>; > + #size-cells = <0>; > + > + csi_in0: endpoint { > + remote-endpoint = <&imx219_out0>; > + bus-type = <4>; Does the hardware support any other bus type ? If not, you can drop the bus-type. If it does, bus-type should be added to the binding, with the value set to "const: 4". > + data-lanes = <1 2>; > + clock-lanes = <0>; > + clock-noncontinuous; > + link-frequencies = /bits/ 64 <456000000>; > + }; > + }; > + }; > + }; -- Regards, Laurent Pinchart