From patchwork Wed Mar 11 09:48:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinay Simha BN X-Patchwork-Id: 184436 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp250176ile; Thu, 12 Mar 2020 01:08:46 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvyxytRPJzOVQPMRV9lUfwLQ8EozAso+EAsyx4hs27o2iBWBrryfMNoZHw0OuEXKgaNTZMe X-Received: by 2002:a63:a062:: with SMTP id u34mr6771651pgn.286.1584000525779; Thu, 12 Mar 2020 01:08:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584000525; cv=none; d=google.com; s=arc-20160816; b=GxZefQFoE019luQyNgtV0DH3Cbin3Etr7UO4l/jSxL81j7XJ3xp96EtjX/sIe3gmCk vt1MczMKW6fG0EqsutR8QE9pOSR8+PKUkzOj00yWsgzdv9KiFKuX0Vt3c3o0o4fS/Srb /uwQ5kyQ1b+TPdrfx3YTznFAyprbkcgDbyys5SAUl9OeTkq23Oc/Qfc9bWDsxErQwWEs hbWT3UiFzxxdDp2xr1xws50+E4Hu4LUk3RpBRyhyQBz/l3tzPo7ZOkLTtLcVMH2TAtxy QqaI0HTkOW/L40vzGcQf4faE235GNwxs/kk+w1kUVtZ2cCCgnZcNLcJ41Jlr2hQrBSA3 dGUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:message-id:date:subject:to:from:dkim-signature :delivered-to; bh=NTp5sV+VxA7TSVGxAsqPU9LKuEkp+OoY06AsVX0wb50=; b=An7nVMEUZMeuphP+pxcg3IrTDOGj13USkLLWVQd1KU2PxpOmLCu/OoHRrWvJ3HoUUT eLCvoAi1nmNY9qICz9RvLSc0idZWs2ujTbFrfjbB3KWwFDvYusoDOOFTepQhV7SJwgiB zkY4KU7TS4FjIrS/fZkA+vAMWvsLUvz+b0DwG90/ZVuhu20SGTqHjBm+kLbKX0Nxq92E HZohHuTPL5PadPSuidzyBtU3XDheJE5g65VjZObbdTDjt20sV4j0p6I0WOesSUq7C/aA b+fzABUPvsLci06fIhzp4ogr/4LZ6b2mZEWwhWE+AV2FKBA1Mgbn4rE9q/AJ6PkIYDan G/RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=W40z0Rg+; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id w2si2245971pfg.332.2020.03.12.01.08.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Mar 2020 01:08:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=W40z0Rg+; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B4A006E095; Thu, 12 Mar 2020 08:08:15 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by gabe.freedesktop.org (Postfix) with ESMTPS id B0A6E6E964 for ; Wed, 11 Mar 2020 09:50:52 +0000 (UTC) Received: by mail-pl1-x642.google.com with SMTP id t14so836445plr.8 for ; Wed, 11 Mar 2020 02:50:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=gMxAacWfBtp0/RJtSrae2q7ULd3xlhV0qXYwkL9Z+8o=; b=W40z0Rg+x5Ajncf+ctlE6UF2o6FvQmCQtnhwJec++Syw6ttaYsDEeI0tcsYThpz0KS CJXTStgfNBTY8EQGZx/MkcciN84KKo8Mio7eFViFSdO4GB+YlMa6nMbnWcdftRfhg/qY INBdeh3H3COJqX+D52gQY0I7Gjf7ZQYc2Sa74yPtvUPGJAdSlhrOysjZ/QODSC5Sg/Ou nKz/Hi3nGO8TV6r5SZrOQK7Da7rU4s46W5P7D/mNZaycGghcoJqiMC0HklhzL+DXhfff uq6hT2E3+BQczL9FIK1t7esuB8n3bhPJTjZH0V+DAmv3oogB7jrWV8AjZ/JyMwagi8hk 2nvw== 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; bh=gMxAacWfBtp0/RJtSrae2q7ULd3xlhV0qXYwkL9Z+8o=; b=NxUNaPuYgmI9ZURAjlKZ/Vd7rKPLVkLJJ6bByt1j82vyZiWNq+l13KW8Et5Leo82/z 9T149oRck/lsjNCMwR0HmZ0TeBUP7+62kRSmlIb29RooWV644m8DCPpBWGXG4wK2rSPE 85ZAnYKxGv1ORvdz90rki/UI4BhHGRHztIuwGqyL6lTYFDE47TjZsJO0t2heKQnDIgEa tlrT/7W3g8xHSHIWZZkI/wx7uZEc2C8w32S+RfzHbxkWppTB0ndgEwMCHNWmm2HW1Y6a xWZDjdla07xgSS0dBWAwh2KBT2cEDBV0Ix/OargZhBXYSP4MXMfIMEvOnb0uoK6yPEih UzzA== X-Gm-Message-State: ANhLgQ1rBoMIfScsncoXGI2sgZyIrsx73ZEpiMopsf4xtyjx1zJ58XNQ CBfIjWaqF73ZZsM/QO13lm8= X-Received: by 2002:a17:902:7244:: with SMTP id c4mr2373121pll.88.1583920252132; Wed, 11 Mar 2020 02:50:52 -0700 (PDT) Received: from inforce-server-Z9PE-D8-WS.routereb3c90.com ([106.51.138.45]) by smtp.gmail.com with ESMTPSA id w25sm49919222pfi.106.2020.03.11.02.50.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Mar 2020 02:50:51 -0700 (PDT) From: Vinay Simha BN To: Andrzej Hajda , Laurent Pinchart Subject: [PATCH 1/2] dt-binding: Add DSI/LVDS tc358775 bridge bindings Date: Wed, 11 Mar 2020 15:18:24 +0530 Message-Id: <1583920112-2680-1-git-send-email-simhavcs@gmail.com> X-Mailer: git-send-email 2.7.4 X-Mailman-Approved-At: Thu, 12 Mar 2020 08:08:13 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , David Airlie , open list , "open list:DRM DRIVERS" , Rob Herring , Vinay Simha BN MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add yaml documentation for DSI/LVDS tc358775 bridge Signed-off-by: Vinay Simha BN --- v1: Initial version --- .../bindings/display/bridge/toshiba-tc358775.yaml | 174 +++++++++++++++++++++ 1 file changed, 174 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/toshiba-tc358775.yaml -- 2.7.4 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/Documentation/devicetree/bindings/display/bridge/toshiba-tc358775.yaml b/Documentation/devicetree/bindings/display/bridge/toshiba-tc358775.yaml new file mode 100644 index 0000000..e9a9544 --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/toshiba-tc358775.yaml @@ -0,0 +1,174 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/toshiba-tc358775.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + + +title: Toshiba TC358775 DSI to LVDS bridge bindings + +maintainers: + - Vinay Simha BN + +description: | + This binding supports DSI to LVDS bridge TC358775 + +properties: + compatible: + const: toshiba,tc358775 + + reg: + maxItems: 1 + description: i2c address of the bridge, 0x0f + + tc, dsi-lanes: 1 + maxItems: 1 + description: Number of DSI data lanes connected to the DSI host. It should + be one of 1, 2, 3 or 4. + + tc, dual-link: 1 + maxItems: 1 + description: To configure the LVDS transmitter either as single-link or dual-link. + + vdd-supply: + maxItems: 1 + description: 1.2V LVDS Power Supply + + vddio-supply: + maxItems: 1 + description: 1.8V IO Power Supply + + stby-gpios: + maxItems: 1 + description: Standby pin, Low active + + reset-gpios: + maxItems: 1 + description: Hardware reset, Low active + + ports: + type: object + + properties: + 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 + - dsi-lanes + - vdd-supply + - vddio-supply + - stby-gpios + - reset-gpios + - ports + +examples: + - | + i2c@78b8000 { + /* On High speed expansion */ + label = "HS-I2C2"; + status = "okay"; + + tc_bridge: bridge@f { + status = "okay"; + + compatible = "toshiba,tc358775"; + reg = <0x0f>; + + tc,dsi-lanes = <4>; + tc,dual-link = <0>; + + vdd-supply = <&pm8916_l2>; + vddio-supply = <&pm8916_l6>; + + stby-gpio = <&msmgpio 99 GPIO_ACTIVE_LOW>; + reset-gpio = <&msmgpio 72 GPIO_ACTIVE_LOW>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + d2l_in: endpoint { + remote-endpoint = <&dsi0_out>; + }; + }; + + port@1 { + reg = <1>; + d2l_out: endpoint { + remote-endpoint = <&panel_in>; + }; + }; + }; + }; + }; + + panel: auo,b101xtn01 { + status = "okay"; + compatible = "auo,b101xtn01", "panel-lvds"; + power-supply = <&pm8916_l14>; + + width-mm = <223>; + height-mm = <125>; + + data-mapping = "jeida-24"; + + panel-timing { + /* 1366x768 @60Hz */ + clock-frequency = <72000000>; + hactive = <1366>; + vactive = <768>; + hsync-len = <70>; + hfront-porch = <20>; + hback-porch = <0>; + vsync-len = <42>; + vfront-porch = <14>; + vback-porch = <0>; + }; + + port { + panel_in: endpoint { + remote-endpoint = <&d2l_out>; + }; + }; + }; + + mdss@1a00000 { + status = "okay"; + + mdp@1a01000 { + status = "okay"; + }; + + dsi@1a98000 { + status = "okay"; + .. + ports { + port@1 { + dsi0_out: endpoint { + remote-endpoint = <&d2l_in>; + data-lanes = <0 1 2 3>; + }; + }; + }; + }; + + dsi-phy@1a98300 { + status = "okay"; + .. + }; + };