Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1133073pxb; Tue, 8 Feb 2022 09:59:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJz1MeS3+cg9Mfqo+WMShKmwfjhbTrGYRSzB76XfmFrY69HvV82ZkvtsXyuQyf09qhU8IFfU X-Received: by 2002:a05:6402:5203:: with SMTP id s3mr5633420edd.389.1644343169337; Tue, 08 Feb 2022 09:59:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644343169; cv=none; d=google.com; s=arc-20160816; b=WA7RVOBcDiC9ZhHrRviFEa3DVifFEL3TtVvB8JTYyunPSmqHTALyGpBMzsmWOMNOFx WAfOnlXgemH7cmYzxs9K0o45OIwKItSGn//9SHVWCWXIqjHN1N9a5LK0Z91RIZWs35Lq Q+juptRsfHkKA4h5tjxpJ716Lr/W3LpZdT12sHpE53+3XLsHjTSOgk4jWUKdrMS6a8xo boZuLCP0OmGfHtaE5V7t4ByD8HLPZc6+K4mNtr0pXP+LTDFJxbMatk0uPJj0CAk68Goz +q7nUmu48VDv9ZyE+/YZIdNJPoBExzm3r+Q6l/DB00xj7Sk0y/DlHOBMTgAXg0TLPVAo uG/A== 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; bh=xYLxIcXQlNBWOfdCWgpu4sL95wkNNzTgGUCeH7XLJG8=; b=nX+SKozKVSddUAHN8m72S1rg0xw2yHzezECnPWVvOgB/LQZcoI7dntTx181Xbu2PB5 42qNpkntEqTz2RU1vcslZ+I9/dDd+FZOg5Ej8w9ic2FvVvbA4ByPba4eXBhPaDTUxClx 6VjoJP05FA0j0OE4RBV69k9ct4TlF/fn+OpxJP7zKQttrDahcHkjhxSww/YevSajjYsw lwk4+1tboWzc21Zcf116Rp1K4URzWiNjXUqh4iwyHyVUuBhDEgNiiT5ZvEOXSOnkcij2 44BOPwmeH6H6hFB92YMX0zRerZfGBe9ucT/hYYErVYrXGC9XTkGMiDcbM9RWxUcgXKgh 8W9g== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hu9si10096148ejc.515.2022.02.08.09.59.04; Tue, 08 Feb 2022 09:59:29 -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; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242580AbiBGVtE (ORCPT + 99 others); Mon, 7 Feb 2022 16:49:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240952AbiBGVtC (ORCPT ); Mon, 7 Feb 2022 16:49:02 -0500 Received: from mail-oi1-f175.google.com (mail-oi1-f175.google.com [209.85.167.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20BF4C061355; Mon, 7 Feb 2022 13:49:01 -0800 (PST) Received: by mail-oi1-f175.google.com with SMTP id x193so18676833oix.0; Mon, 07 Feb 2022 13:49:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=xYLxIcXQlNBWOfdCWgpu4sL95wkNNzTgGUCeH7XLJG8=; b=P2J1eO4ezzUZZX+OKBWzpkGGY4hIzTO39r3r2HZeJW+tburkuWspweQmXDZfBVLt8w 2z1jSBKri90aqmOwt/89em1xSn+fW6sAB9zfTtbrdizqe7oF3mKGLZ5EYATQOL9BYs6y R4zYNBbLokgA0O+MP+pFWNhs7ICANTst5KgCrWade0a8jAY5N43x44U36AGCOCbpXC9V zZut6Dve3eEUG5ssvCHHduuLSuqCNNhztzDCCMYtuo87RMChAYaGggGx/Jn7CYRCkPyw HqxryBQ0tOPtAdG7lCbTfpxr6WY9YiF5ek/+0kfmooaQyq/ABVYrjulOjnctsyu1BRHZ ZtWA== X-Gm-Message-State: AOAM5300vTtzC0ecR+XC18ol/XZI6Az/3eK/wr6gF1bEEzhk9beMAoY2 PL6OYpYM2Ta3J/1+b8NLZOjHvA8r4w== X-Received: by 2002:a54:4009:: with SMTP id x9mr436340oie.117.1644270540395; Mon, 07 Feb 2022 13:49:00 -0800 (PST) Received: from robh.at.kernel.org (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.gmail.com with ESMTPSA id 23sm2371721oac.20.2022.02.07.13.48.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Feb 2022 13:48:59 -0800 (PST) Received: (nullmailer pid 983196 invoked by uid 1000); Mon, 07 Feb 2022 21:48:58 -0000 Date: Mon, 7 Feb 2022 15:48:58 -0600 From: Rob Herring To: Luca Ceresoli Cc: linux-media@vger.kernel.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Rutland , Wolfram Sang , Sakari Ailus , Hans Verkuil , Laurent Pinchart , Kieran Bingham , Jacopo Mondi , Vladimir Zapolskiy , Peter Rosin , Mauro Carvalho Chehab , Tomi Valkeinen , matti.vaittinen@fi.rohmeurope.com Subject: Re: [RFCv3 3/6] media: dt-bindings: add DS90UB953-Q1 video serializer Message-ID: References: <20220206115939.3091265-1-luca@lucaceresoli.net> <20220206115939.3091265-4-luca@lucaceresoli.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220206115939.3091265-4-luca@lucaceresoli.net> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Sun, Feb 06, 2022 at 12:59:36PM +0100, Luca Ceresoli wrote: > Describe the Texas Instruments DS90UB953-Q1, a MIPI CSI-2 video serializer > with I2C Address Translator and remote GPIOs. > > Signed-off-by: Luca Ceresoli > > --- > > Changes RFCv2 -> RFCv3: > > - rewrite in yaml > > Changes RFCv1 -> RFCv2: none, this patch is new in RFCv2 > --- > .../bindings/media/i2c/ti,ds90ub953-q1.yaml | 96 +++++++++++++++++++ > MAINTAINERS | 7 ++ > include/dt-bindings/media/ds90ub953.h | 16 ++++ > 3 files changed, 119 insertions(+) > create mode 100644 Documentation/devicetree/bindings/media/i2c/ti,ds90ub953-q1.yaml > create mode 100644 include/dt-bindings/media/ds90ub953.h > > diff --git a/Documentation/devicetree/bindings/media/i2c/ti,ds90ub953-q1.yaml b/Documentation/devicetree/bindings/media/i2c/ti,ds90ub953-q1.yaml > new file mode 100644 > index 000000000000..2a836a3e65e9 > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/i2c/ti,ds90ub953-q1.yaml > @@ -0,0 +1,96 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +# Copyright (C) 2019 Renesas Electronics Corp. > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/media/i2c/ti,ds90ub953-q1.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Texas Instruments DS90UB953-Q1 video serializer > + > +maintainers: > + - Luca Ceresoli > + > +description: | > + The TI DS90UB953-Q1 is a MIPI CSI-2 video serializer that forwards a MIPI > + CSI-2 input video stream over an FPD Link 3 connection to a remote > + deserializer. It also allows access to I2C and GPIO from the deserializer. > + > + The DT definitions can be found in include/dt-bindings/media/ds90ub953.h > + > + When used as a the remote counterpart of a deserializer (e.g. the > + DS90UB954-Q1), the serializer is described in the > + "deserializer/remote-chips/remote-chip@[01]" node. > + > +properties: > + compatible: > + const: ti,ds90ub953-q1 > + > + reg: > + description: | > + Index of the remote (serializer) RX port that this serializer is > + connected to. > + maxItems: 1 > + > + clocks: > + description: FPD-Link line rate (provided by the deserializer) > + maxItems: 1 > + > + gpio-controller: true > + > + '#gpio-cells': > + const: 2 > + > + '#clock-cells': > + const: 0 > + > + ti,gpio-functions: > + description: | > + A list of 4 values defining how the 4 GPIO pins are connected in > + hardware; possible values are: > + - DS90_GPIO_FUNC_UNUSED (0): the GPIO is not unused > + - DS90_GPIO_FUNC_INPUT (1): the GPIO is an input to the ds90ub953, > + the remote chip (deserializer) can read its value > + - DS90_GPIO_FUNC_OUTPUT_REMOTE (2): the GPIO is an output from the > + ds90ub953, the remote chip (deserializer) can set its value > + For unspecified values the GPIO is assumed to be unused. > + $ref: /schemas/types.yaml#/definitions/uint32-array > + maxItems: 4 > + > +patternProperties: > + '^ti,ds90ub953-q1-(clk|d[0-3])-inv-pol-quirk$': > + description: | > + The MIPI CSI-2 input clock lane or any of the data lanes has inverted > + polarity in hardware What's the type? > + > +required: > + - compatible > + - reg > + - clocks > + - gpio-controller > + - '#gpio-cells' > + - '#clock-cells' > + > +additionalProperties: false > + > +examples: > + - | > + #include > + remote-chips { > + #address-cells = <1>; > + #size-cells = <0>; > + > + remote-chip@0 { > + reg = <0>; > + compatible = "ti,ds90ub953-q1"; > + clocks = <&deser>; > + ti,gpio-functions = > + + DS90_GPIO_FUNC_OUTPUT_REMOTE > + DS90_GPIO_FUNC_UNUSED > + DS90_GPIO_FUNC_UNUSED>; > + > + gpio-controller; > + #gpio-cells = <2>; > + #clock-cells = <0>; > + }; > + }; > diff --git a/MAINTAINERS b/MAINTAINERS > index 7383aec87e4a..4429ce035496 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -19090,6 +19090,13 @@ F: include/linux/dma/k3-udma-glue.h > F: include/linux/dma/ti-cppi5.h > F: include/linux/dma/k3-psil.h > > +TEXAS INSTRUMENTS DS90UB953 VIDEO SERIALIZER DRIVER > +M: Luca Ceresoli > +L: linux-media@vger.kernel.org > +S: Maintained > +F: Documentation/devicetree/bindings/media/i2c/ti,ds90ub953-q1.yaml > +F: include/dt-bindings/media/ds90ub953.h > + > TEXAS INSTRUMENTS' SYSTEM CONTROL INTERFACE (TISCI) PROTOCOL DRIVER > M: Nishanth Menon > M: Tero Kristo > diff --git a/include/dt-bindings/media/ds90ub953.h b/include/dt-bindings/media/ds90ub953.h > new file mode 100644 > index 000000000000..5359432968e9 > --- /dev/null > +++ b/include/dt-bindings/media/ds90ub953.h > @@ -0,0 +1,16 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ Dual license please. > +/** > + * Definitions for the Texas Instruments DS90UB953-Q1 video serializer > + * > + * Copyright (c) 2019 Luca Ceresoli > + */ > + > +#ifndef _DS90UB953_H > +#define _DS90UB953_H > + > +#define DS90_GPIO_FUNC_UNUSED 0 > +#define DS90_GPIO_FUNC_INPUT 1 > +#define DS90_GPIO_FUNC_OUTPUT_REMOTE 2 > +#define DS90_GPIO_N_FUNCS 3 > + > +#endif /* _DS90UB953_H */ > -- > 2.25.1 > >