From patchwork Tue Jul 23 20:37:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Ceresoli X-Patchwork-Id: 11055297 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4090F1399 for ; Tue, 23 Jul 2019 20:37:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 31D22286F1 for ; Tue, 23 Jul 2019 20:37:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2575E28722; Tue, 23 Jul 2019 20:37:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI,RCVD_IN_SORBS_WEB autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B56BC286F1 for ; Tue, 23 Jul 2019 20:37:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389165AbfGWUhw (ORCPT ); Tue, 23 Jul 2019 16:37:52 -0400 Received: from hostingweb31-40.netsons.net ([89.40.174.40]:33164 "EHLO hostingweb31-40.netsons.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389119AbfGWUhv (ORCPT ); Tue, 23 Jul 2019 16:37:51 -0400 Received: from [88.149.224.16] (port=34022 helo=melee.fritz.box) by hostingweb31.netsons.net with esmtpa (Exim 4.92) (envelope-from ) id 1hq1Xg-007idA-E9; Tue, 23 Jul 2019 22:37:48 +0200 From: Luca Ceresoli To: linux-media@vger.kernel.org, linux-i2c@vger.kernel.org Cc: Luca Ceresoli , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Wolfram Sang , Sakari Ailus , Hans Verkuil , Laurent Pinchart , Kieran Bingham , Jacopo Mondi , Vladimir Zapolskiy , Peter Rosin Subject: [RFC,v2 4/6] media: dt-bindings: add DS90UB953-Q1 video serializer Date: Tue, 23 Jul 2019 22:37:21 +0200 Message-Id: <20190723203723.11730-5-luca@lucaceresoli.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190723203723.11730-1-luca@lucaceresoli.net> References: <20190723203723.11730-1-luca@lucaceresoli.net> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hostingweb31.netsons.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lucaceresoli.net X-Get-Message-Sender-Via: hostingweb31.netsons.net: authenticated_id: luca+lucaceresoli.net/only user confirmed/virtual account not confirmed X-Authenticated-Sender: hostingweb31.netsons.net: luca@lucaceresoli.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Describe the Texas Instruments DS90UB953-Q1, a video serializer with remote access to I2C and GPIOs. Signed-off-by: Luca Ceresoli --- Changes RFCv1 -> RFCv2: none, this patch is new in RFCv2 --- .../bindings/media/i2c/ti,ds90ub953-q1.txt | 42 +++++++++++++++++++ include/dt-bindings/media/ds90ub953.h | 16 +++++++ 2 files changed, 58 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/ti,ds90ub953-q1.txt create mode 100644 include/dt-bindings/media/ds90ub953.h diff --git a/Documentation/devicetree/bindings/media/i2c/ti,ds90ub953-q1.txt b/Documentation/devicetree/bindings/media/i2c/ti,ds90ub953-q1.txt new file mode 100644 index 000000000000..ba24f887b607 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/ti,ds90ub953-q1.txt @@ -0,0 +1,42 @@ +Texas Instruments DS90UB953-Q1 video serializer +=============================================== + +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/ports/port@/endpoint/remote-chip" node. + +Required properties: + + - compatible: must be "ti,ds90ub953-q1" + +Optional properties: + + - gpio-functions: 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 connected + - DS90_GPIO_FUNC_INPUT (1): the GPIO is an input to the ds90ub953 + - DS90_GPIO_FUNC_OUTPUT_REMOTE (2): the GPIO is an output from the + ds90ub953, to be driven from the remote chip (deserializer) + + - ti,ds90ub953-q1-clk-inv-pol-quirk: the MIPI CSI-2 input clock lane has + inverted polarity + + +Device node example +------------------- + +&ds90ub954_fpd3_in0 { + remote-chip { + compatible = "ti,ds90ub953-q1"; + gpio-functions = ; + }; +}; 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 */ +/** + * 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 */