From patchwork Wed Jan 20 11:21:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1621 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id AA91B3F082 for ; Wed, 20 Jan 2021 12:22:22 +0100 (CET) Received: by mail-pl1-f197.google.com with SMTP id c18sf6080989pls.8 for ; Wed, 20 Jan 2021 03:22:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1611141740; cv=pass; d=google.com; s=arc-20160816; b=akh4njamf/TkK0ia2GIs0juOQSkGgNI6IxiSZZ0TPD6Ch8UO04co1kgNikGUzS/+SI U6VcavUcPWzGUehlN4g7jwUo6FRY/N94+09i725dzmm1C5HfOkjTAHwxQRfeZuRfoMAt o1NQPWjwIiRBQUkRFcgwUBCkPBHmXNiuJtz7CGHgHp+4fHK2nL0c7F5Vh+rnZIrTieO/ HPyrBc7sibWFkKo/wMJdvWvyjgzxZuLBOxm5qtLZ/kdmW0/ggo8nrtZJ5S6pwjo+tKlB cJGIUDTLKZhksX1daEW/dPXtpDSrOx88WLg6XahhejBB/quzGfs79zu4GUK01kVEwIIe E2UQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=9p9fRRH3o4QHdPn9+yOOJ4u2KKikJsiuXCyoZ59I+ps=; b=f7zXgnFW7O+7km3AGbbA+1TwcWJHkew3PaWlMWtWTc+xhXcQwYGZKFXQdsrdXm6ktw ByDT8I2PjfsP7LHRs17tS1SKEZfRsWlFrfjkQz8x+yc8e0qz6RlMeSfftXwIkO5ISgZF Op1z/kxfHYWi0eXTUbrDXP7seMvQg0mhkiWmkzPHtX9hxN9HqYmFhWKqq0KO60fATXJE 4VsljSVbO2vDj2uSsc9acKpqXGKe5RdLc73/wXYg7srhKIAd7mc7NbX5JUNHQQN8lKee QLId7a2D/DnSGQ1+4K1h0h4BOqSfmoY9sR3vMowej4Vj1XLsMyIQIIDLqUzJJgAVFwqi PLbQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=f9QxSmeF; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=9p9fRRH3o4QHdPn9+yOOJ4u2KKikJsiuXCyoZ59I+ps=; b=NKQJx+ZIWlhc8Vt+lT/yZMPnAqQWUnACqT7UMR8y4bCfw0OAoI0PgV/eJjoyrj9CTN lw34U8f/gCzqRosXqw6NCpn7NB4tpuRjz9lG/nhclh7b7ieWnfP4/fuLmAkG/InhfnGt 45gP40r74PYXh5OExPjAWj3rTVJsgme7GBwc4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=9p9fRRH3o4QHdPn9+yOOJ4u2KKikJsiuXCyoZ59I+ps=; b=eK54+rh2nDN4PwkIANIIOB4VTdG+mQpfjjRr2vrcRkdIppDQ9bKqTjdVjeEXXFZ/Hz OneNV5Nv4/0W1UoJMUK6SE56ykxaX+iu5R1PkV2fApwNhwdbYweo7v62yiKm/FruVvci qxIhnjp/C0P+joHbUjqE8DEZTXucQCkFc4utib62hShfTCjLucAfn2+B/5jW61zSxOf7 BSVr74C7lAdcdD4O2hr3/4fqip7215e3KZkys2e3XciHy124TAF0ExSnemmm3eaVoqL2 j04qki4bWOoFNqTWdZLxkfIEY4PRa6DM+M5Dk2LM4PTos6Y2iqayl8PMXfDwfVOz95+a Ht1g== X-Gm-Message-State: AOAM532QuUnHqo/cn6ylfGOTLjdZks25oT2s06faUgQV8volC+kQ8CcT jF33gp3D3VUWcJEQkD2Tm1W55Shj X-Google-Smtp-Source: ABdhPJyNdGHwJa78+8SLcMnUJpbXrTZtqv5eH4TMZIvEGCq6R4ENa4hrNQ80KZ0LKoVfCxnx/EWucg== X-Received: by 2002:a17:90a:1e65:: with SMTP id w92mr5142621pjw.64.1611141740135; Wed, 20 Jan 2021 03:22:20 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a65:6a11:: with SMTP id m17ls275308pgu.6.gmail; Wed, 20 Jan 2021 03:22:19 -0800 (PST) X-Received: by 2002:a63:4923:: with SMTP id w35mr8671912pga.404.1611141739420; Wed, 20 Jan 2021 03:22:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611141739; cv=none; d=google.com; s=arc-20160816; b=grJSBRctUnd3N+w4Gmvu+bdHrRLxs2VpJt7nRuZ4kCxZK4Kr29qdZXAld1PLgf2vko ifjs6u8QuK87jcN7h8b4XH7lLhUkwmaUvgDgprTEsBfcyFRST7/8AJoySPBlaEatilg1 HFDsGuhUhHKlhkAKRFNqHyE9RROOP8fC09axNiW1oom6Qn6grWKXjvVRuS4U+au2Klem zTZBJ+d+IHeCt85o6DPjMKLkRkVeq7XGJ07tHtHZnpUnqrJUvCae2JDDjfjCczIoGs0k +wJdbEXu5H5HTE8lylezlY/4wuztLKPLfMUAgd2hvWU1bqCWPCnQ/r//cuGFyZKDeWnD l2xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=/G1XKKzyK0yZAshK+VzVtT1gmvcbma2qBK0WNAjoFJ0=; b=nHjWW3CUpH1Io0kvYZitgaAv/bSw4kDEBeX85+hLSc+UC2OMxEx1jQNzqVZfeKBbUy CPSt2FToeAogKp9EV71JyH8OF8G5i8mO10WAhf/mISPLJTMLA8RcQJiklk3gSmHdQSW5 NcRP8eDaF6q+RzcCQu/sZ33GQ/6p3VFOOhv6sxP+ZwG0TlgdFEPJiPPjo0ynVW8ife3A ZGrjF2UzY64b1QLxlnFzSsqmXirUtgeuS5OsPV4lR7G/4xynJ0Dw5i0zbjCZdEwtpMUr Fihtfv9W1tljiW5KDg943jnvSLMUteygy47ceUDHbH0E1Yw4qXrSiVQkAkjmpSo9xAK6 D10w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=f9QxSmeF; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id e23sor956399pge.78.2021.01.20.03.22.18 for (Google Transport Security); Wed, 20 Jan 2021 03:22:18 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a65:4083:: with SMTP id t3mr8967439pgp.150.1611141737943; Wed, 20 Jan 2021 03:22:17 -0800 (PST) Received: from ub-XPS-13-9350.domain.name ([103.105.103.154]) by smtp.gmail.com with ESMTPSA id gk2sm2248341pjb.6.2021.01.20.03.22.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jan 2021 03:22:17 -0800 (PST) From: Jagan Teki To: Rob Herring , Andrzej Hajda , Neil Armstrong , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Sam Ravnborg Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 1/2] dt-bindings: display: bridge: Add documentation for SN65DSI84 Date: Wed, 20 Jan 2021 16:51:57 +0530 Message-Id: <20210120112158.62109-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=f9QxSmeF; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , SN65DSI84 is a Single Channel DSI to Dual-link LVDS bridge from Texas Instruments. SN65DSI83, SN65DSI85 are variants of the same family of bridge controllers. Right now the bridge driver is supporting a single link, dual-link support requires to initiate I2C Channel B registers, so dt-bindings documented with single link LVDS. Signed-off-by: Jagan Teki --- .../bindings/display/bridge/ti,sn65dsi84.yaml | 127 ++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/ti,sn65dsi84.yaml diff --git a/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi84.yaml b/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi84.yaml new file mode 100644 index 000000000000..891382a76c1a --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi84.yaml @@ -0,0 +1,127 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/ti,sn65dsi84.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI SN65DSI84 MIPI DSI to LVDS bridge bindings + +maintainers: + - Jagan Teki + +description: | + The SN65DSI84 DSI to FlatLink bridge features a single channel MIPI D-PHY receiver + front-end configuration with 4 lanes per channel operating at 1 Gbps per lanes. + The bridge decodes MIPI DSI 18bpp RGB666 and 240bpp RG888 packets and converts + the formatted video data stream to a FlatLink compatible LVDS output operating + at pixel clocks operating from 25 MHx to 154 MHz, offering a Dual-Link LVDS, + Single-Link LVDS interface with four data lanes per link. + + https://www.ti.com/product/SN65DSI84 + +properties: + compatible: + const: ti,sn65dsi84 + + reg: + maxItems: 1 + description: i2c address of the bridge, 0x2c + + enable-gpios: + maxItems: 1 + description: GPIO specifier for bridge enable pin (active high). + + ports: + type: object + description: + A node containing input and output port nodes with endpoint definitions + as documented in + Documentation/devicetree/bindings/media/video-interfaces.txt + properties: + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + port@0: + type: object + description: | + DSI Input. The remote endpoint phandle should be a + reference to a valid mipi_dsi_host device node. + + port@1: + type: object + description: | + Video port for LVDS output (panel or connector). + + required: + - port@0 + - port@1 + +required: + - compatible + - reg + - enable-gpios + - ports + +additionalProperties: false + +examples: + - | + #include + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dsi_in: endpoint { + remote-endpoint = <<dc_ep0_out>; + }; + }; + + port@1 { + reg = <1>; + dsi_out: endpoint { + remote-endpoint = <&bridge_in>; + data-lanes = <0 1>; + }; + }; + }; + }; + + i2c6 { + #address-cells = <1>; + #size-cells = <0>; + + bridge@2c { + compatible = "ti,sn65dsi84"; + reg = <0x2c>; + enable-gpios = <&gpiof 15 GPIO_ACTIVE_HIGH>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + bridge_in: endpoint { + remote-endpoint = <&dsi_out>; + }; + }; + + port@1 { + reg = <1>; + bridge_out: endpoint { + remote-endpoint = <&panel_in_lvds>; + }; + }; + }; + }; + };