From patchwork Wed Feb 3 07:12:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1623 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E2EA83F0D2 for ; Wed, 3 Feb 2021 08:13:18 +0100 (CET) Received: by mail-pf1-f199.google.com with SMTP id 137sf15421495pfw.4 for ; Tue, 02 Feb 2021 23:13:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1612336397; cv=pass; d=google.com; s=arc-20160816; b=eZtfbInnEfLN+wVCZriJE/DtRsW0xK9dqekwgK4nw3nYPfY+aJe4aageQM8mQE/mj+ v4A+9MFHh8L7SzuXKIDLi9+VRmluNo0tRgzy2qsT0pwF3kfpfPKFl15dd/f6svE4Uiuq v9wOt0EKyyB/n21MLgHCTWidOtLByvGm11nM8lgUTTu2OphogcXYF+wg3ooDjRT5A8or 4sCRLxPC9zWoc6fpBrFpn4g1kgfYgAClZVmMCB+e3xVPztObcD1R/eVWreKBhH8ecMlK zzT4SIOOWIjb98qYyb01t5MYvjA3iFjPXoaGA2AquE/Y/EITGrlUyOSMAQCiPvFQ0vGW aSGQ== 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=C65HmXMnM9RpyWr/GU9WYZEDirWrqFOu5aaYgVlUrO0=; b=G9MyU7bxYOg1C+Hpn/SxawlLM0gJvD1My+Z5c2Q3B0A8jx5d+v2bWiCPb0yDGY3v9N HeZfOwBwTvCW1eymsbMUSfFtUdkdbGBHz8o8NG9sQhICff95e3G5tDvbP2OrAZHFNTP5 GjBbLDO/ecj7a5/ynGm0EOjcLQXNUN0KCFuj3NzSC0JHbnOAtLNWa3C1rRhhedvSd8Bv NsCtT0eOxCg/TSMiWUfaCKD8g0Eb/k7WL/VrPbaOX7GH/NW8PbzTCCjZyItTxFxaY1Es vWBgq6aVLRIHcP9X1aA4hOUf6KqB5gglVGo7vt1xrmbsKoLY3epoHx9M/NA41qWXIFTn NeDg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=cV0gh2AO; 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=C65HmXMnM9RpyWr/GU9WYZEDirWrqFOu5aaYgVlUrO0=; b=Z96H4y517vxRJvKdsCdPDYWXDCWpEjUKfM97Jze/j+fqEU7GyDZPuG4FmeTcdyqMIS 2efiq68JDH9dfKreG8efQ/ZLt8IlnERBN5JC1+R7EKaOMFmYg1mwKJGlH8EzfMRYT9LS nEIR5+Ofcbh5y+5/PG/QrZLila1VZ2/rfR+vc= 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=C65HmXMnM9RpyWr/GU9WYZEDirWrqFOu5aaYgVlUrO0=; b=stNriUBVNkcZ+5f029AKH7A7Z80qqE0mPOO08vUSQJBrwzCnwOEQpmDqsb1dNm/lW6 qzp2i2PpZTfLddiKT4SqUjc4Pi8mnlvNquSyGauDgZiBnBKSVIR21wJNDkhWy9sWvRi2 cNN8iDe8LU2EuKRPA9b4apk21nzE94ppBBEJA+xyZh7MFzOXI5KR76l0pDODIEkTo+1i 7C+VFyCwwk6yorF+ORkRwD3ra9wMAPoIB7TRBZHepoF8VtnfyoCxWS1zGirFFKUeNcMu S8cN8N+oQhgeJzXdTHwHYUrHNhk4h0AeI41NI81XbI9Ew7CUbU3sfTb4XmC+We/Uo+p5 0WWA== X-Gm-Message-State: AOAM532Voh0/GfCWQ07evcgN84WEyGq+XGJVZhZLLZDVfEO3g9JxAGnx hu96N+LdXEs77ZidNdE5VfcKIyMV X-Google-Smtp-Source: ABdhPJz06YmiVTxPXzS6pAB6MMyfpCg8rCBP4dipYs6tA6DW3Wmq1YZJsGG1wEtEA3ux1j2EwvoMGA== X-Received: by 2002:a17:902:a517:b029:de:79a7:48d9 with SMTP id s23-20020a170902a517b02900de79a748d9mr2017418plq.45.1612336396730; Tue, 02 Feb 2021 23:13:16 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:9386:: with SMTP id t6ls559186pfe.1.gmail; Tue, 02 Feb 2021 23:13:16 -0800 (PST) X-Received: by 2002:a63:ef14:: with SMTP id u20mr2214052pgh.93.1612336396030; Tue, 02 Feb 2021 23:13:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612336396; cv=none; d=google.com; s=arc-20160816; b=Ye5tj3rQnx9LTdeSGKkzr4XDJF+M4cMuk3eQFydN3Fv530pMaz75ga/2XzCOsDF5gB WaWwV6ipP1ScTwtMq/lWqcG3vCn6RwtimpcaYY8H3vNG96RoiatYvaByB5w53E2cw4C0 /KNlTa+w4M2huKDDMmooHxYnnp0HC0QDFRxX8phmVUI6L6HbKnyMEnQJqoXYOABFFhFv IfCA0rm6J7kVz7iAoIZ4ccoq/A0qSe5xWbfroQZ7FI8J8I/zVo4KYPMUKqxAGjchx3vM PJ5WD1RjSZ3VslPcKhZf1OjI8l1FQm57DdBOmtSXIpq8t9f4CbWkI5AEZErvpKUf2Ar1 oGMg== 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=pPNBJfle3Xurh2yorg+OKGACnBT1+DmSPrBjPjKSHHs=; b=TuhC/4EtkVBndbv+DSSt7c0huOKE/4R99Yt6OQE5uz6wquJGmDfnlMamDB7HW4UVAW yS3jMcZ0MQDNuOOxwQQbySPWkRtsg9u+mGcCmURStXg+zmfsptyCvCCldOif4SCd5oPQ ws/o22N70M8cBnSpM+M5PbAVxerT4uWHjmmSFBSyVFsFAKeZOvhx0ZthGR92TqJIIPq6 Z7QRxaHCdveZZH4VxIVjVR54zKZ9fi0lBR4JQ4wlNOARCkw1fzrOl6flvzxzK9V85ZqL GS6tZacb6jqa7jSlFyD2gvwryWkpwDQGjDLlIwyUNFS9yjYX9phiudScJhOc7D7c0ore yZLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=cV0gh2AO; 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 w74sor627682pfc.26.2021.02.02.23.13.15 for (Google Transport Security); Tue, 02 Feb 2021 23:13:15 -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:a62:bd05:0:b029:1ab:6d2:5edf with SMTP id a5-20020a62bd050000b02901ab06d25edfmr1920622pff.32.1612336394754; Tue, 02 Feb 2021 23:13:14 -0800 (PST) Received: from ub-XPS-13-9350.domain.name ([45.249.78.214]) by smtp.gmail.com with ESMTPSA id c19sm1105823pfc.122.2021.02.02.23.13.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Feb 2021 23:13:14 -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 v2 1/2] dt-bindings: display: bridge: Add documentation for SN65DSI84 Date: Wed, 3 Feb 2021 12:42:55 +0530 Message-Id: <20210203071256.42050-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=cV0gh2AO; 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 --- Changes for v2: - none .../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>; + }; + }; + }; + }; + };