Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5658865rwb; Sun, 11 Dec 2022 10:00:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf5J9BLPZYpWz8u+BreB4ap031xrg3Aa5AZruXm7C3k8fMoPBgllilhDuBNp1RaqBpOZHFcR X-Received: by 2002:a05:6402:14d5:b0:46b:b19b:5e01 with SMTP id f21-20020a05640214d500b0046bb19b5e01mr12844800edx.38.1670781657583; Sun, 11 Dec 2022 10:00:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670781657; cv=none; d=google.com; s=arc-20160816; b=sAHytTyYo6FqhIJbJWqNj51nWVgivmIEt7DL8FDIFJQHmVStuuhp85K0QRUWRPAqMf SUg16z4b4nE/OG1baQML47aIHv7ZGS/dkEDqAU0R4J8eY8m/3kTBLeHaOjtJ1HIxMqJU RQTeeGAPC+PK/SdmirR/hwGBQLVwTRjXrN5Dq58OgwLLQ+j/26QxF4/40CxWmcfRqySx gszookAt7eHBLi4mgL4nibSuOLRZ2cyXVxWWIPu7lpali+6lCAN9yRDGNvtQoyMyAM18 BmZ6SZCcpH5OFDPm7dmu0O51KR0JDBjByy/MRGoMPkJc3ffWZaP7nH7vxx37sZxOkIPt EV9A== 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=7dhiGPoDmPvIXxWp8nHMom+6lyy468RvAD40rF327wo=; b=0YhT1Eg8WUjkW4HutwZwOATdlpvMwmTxfYUAbUAt9rN7dJB7O2WuU9VYHfvgsunPTk jj43aRqZ2rvf+lYwXvxlwjsVdVL4LlaJc1AbckgDAp9bGZvudc7VMsysNveuiKqG+G7B C0rrCkNsA71emO+hTdOHYgIoZt+AoJGBVYDVZCVuhr8CsyL0pPUpE0Tgs8tyxVaYsQEh 0zt1CNde55S1AUO/DlGZCsWWxD5BHy/E+nPh02flzbppKBpHd6u8yn1+kPXXx4q8DjLx uhXvoOeKz1mgFMS5KBRyo4yeSRehDYKaAVEkiLP0OZW+1/hcX38FXNkpwvkOgb7pwRTj IHsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=mmwNk9B5; 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 qw14-20020a170906fcae00b007ae199ea55asi3897408ejb.817.2022.12.11.10.00.31; Sun, 11 Dec 2022 10:00:57 -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=mmwNk9B5; 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 S230097AbiLKRec (ORCPT + 75 others); Sun, 11 Dec 2022 12:34:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229918AbiLKRe3 (ORCPT ); Sun, 11 Dec 2022 12:34:29 -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 BB927BF65; Sun, 11 Dec 2022 09:34:28 -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 93F936CF; Sun, 11 Dec 2022 18:34:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1670780066; bh=BLAg6LgH4DZ7+JKv2ntt47tqc6o1pXruQL+UuppAm+w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mmwNk9B5NACjJHW2Xa0CN8LP82vrNRJcnd4in/6M/4cqXluY8wV1kFlrgd7R2aIK+ GPtUBPre/i172Dx9z7UAxBYYt0z3RniyeWpKcDia1SEo9cEwQy/WamD2KFgrmhHf1Z qYo06rnbCfhpkq37Q0uu7xBX2GZPpsZMIXMEU1EU= Date: Sun, 11 Dec 2022 19:34:24 +0200 From: Laurent Pinchart To: Tomi Valkeinen Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Wolfram Sang , Luca Ceresoli , Andy Shevchenko , Matti Vaittinen , Mauro Carvalho Chehab , Peter Rosin , Liam Girdwood , Mark Brown , Sakari Ailus , Michael Tretter , Shawn Tu , Hans Verkuil , Mike Pagano , Krzysztof =?utf-8?Q?Ha=C5=82asa?= , Marek Vasut Subject: Re: [PATCH v5 4/8] dt-bindings: media: add bindings for TI DS90UB953 Message-ID: References: <20221208104006.316606-1-tomi.valkeinen@ideasonboard.com> <20221208104006.316606-5-tomi.valkeinen@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221208104006.316606-5-tomi.valkeinen@ideasonboard.com> 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 Tomi, Thank you for the patch. On Thu, Dec 08, 2022 at 12:40:02PM +0200, Tomi Valkeinen wrote: > Add DT bindings for TI DS90UB953 FPDLink-3 Serializer. > > Signed-off-by: Tomi Valkeinen > --- > .../bindings/media/i2c/ti,ds90ub953.yaml | 112 ++++++++++++++++++ > 1 file changed, 112 insertions(+) > create mode 100644 Documentation/devicetree/bindings/media/i2c/ti,ds90ub953.yaml > > diff --git a/Documentation/devicetree/bindings/media/i2c/ti,ds90ub953.yaml b/Documentation/devicetree/bindings/media/i2c/ti,ds90ub953.yaml > new file mode 100644 > index 000000000000..fd7d25d93e2c > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/i2c/ti,ds90ub953.yaml > @@ -0,0 +1,112 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/media/i2c/ti,ds90ub953.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Texas Instruments DS90UB953 FPD-Link 3 Serializer > + > +maintainers: > + - Tomi Valkeinen > + > +description: > + The TI DS90UB953 is an FPD-Link 3 video serializer for MIPI CSI-2. > + > +properties: > + compatible: > + enum: > + - ti,ds90ub953-q1 > + - ti,ds90ub971-q1 > + > + '#gpio-cells': > + const: 2 I would add a description here, to tell what the cells correspond to. In particular, the first cell selects the GPIO_* pin number, it would be nice to document that its value should be in the range [0, 3]. Same comment for patch 3/8 (DS90UB913 bindings). There you could also mention that GPO2 and the output clock are mutually exclusive. > + > + gpio-controller: true > + No need for clocks and clock-names for the reference input clock ? Or is this because you support sync mode only for now ? > + '#clock-cells': > + const: 0 > + > + ports: > + $ref: /schemas/graph.yaml#/properties/ports > + > + properties: > + port@0: > + $ref: /schemas/graph.yaml#/$defs/port-base > + unevaluatedProperties: false > + description: CSI-2 input port > + > + properties: > + endpoint: > + $ref: /schemas/media/video-interfaces.yaml# > + unevaluatedProperties: false Should the data-lanes property be required for the CSI-2 input ? > + > + port@1: > + $ref: /schemas/graph.yaml#/properties/port > + unevaluatedProperties: false > + description: FPD-Link 3 output port > + > + i2c: > + $ref: /schemas/i2c/i2c-controller.yaml# > + unevaluatedProperties: false > + > +required: > + - compatible > + - '#gpio-cells' > + - gpio-controller > + - '#clock-cells' > + - ports > + > +additionalProperties: false > + > +examples: > + - | > + #include > + > + serializer { > + compatible = "ti,ds90ub953-q1"; > + > + gpio-controller; > + #gpio-cells = <2>; > + > + #clock-cells = <0>; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + ub953_in: endpoint { > + clock-lanes = <0>; > + data-lanes = <1 2 3 4>; > + remote-endpoint = <&sensor_out>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + endpoint { > + remote-endpoint = <&deser_fpd_in>; > + }; > + }; > + }; > + > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + sensor@1a { > + compatible = "sony,imx274"; > + reg = <0x1a>; > + > + reset-gpios = <&serializer 0 GPIO_ACTIVE_LOW>; Maybe add clocks = <&serializer>; clock-names = "inck"; to showcase the clock connection ? > + > + port { > + sensor_out: endpoint { > + remote-endpoint = <&ub953_in>; > + }; > + }; > + }; > + }; > + }; > +... -- Regards, Laurent Pinchart