Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4423539pxb; Sun, 14 Feb 2021 09:47:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJxpWeiyBEmJeGjvK3vuiGMiAkkG1LdnOzxwPizZXRNS6uykk24UrECBT7ydFZAT8M50FB1S X-Received: by 2002:aa7:c448:: with SMTP id n8mr4177091edr.177.1613324820878; Sun, 14 Feb 2021 09:47:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613324820; cv=none; d=google.com; s=arc-20160816; b=oWhp7utuKWAo/opgosa/kWeogP2HRetbrSn9FcX5LlBTuC2n1vsWazhdbpiuNH1lN1 Sc7NU0uq2LM6wjY/9R6qG/jL3LnYOWo24dFJFjDgQNu2QCCpYc+UVVfCz8Rxqu1D23qG Vf7O2vm6cXJryfhC2AtyR++f52SnUtR22Rf0NcWkcbdxuuptKDO372KrlmisZWdfvQY1 qfomNe1g91gUVuIdR/qWOQ/ZTUiXpscnA9uAvtLomaXkBvSK8xXl8/jpozBrk7pp2n6u H2W+h5kMyHc8JRLkOWzeMXmjNZ6roqNNppKWSv7SGnBvrTM64uaJ6BYFAKQfINNpfRbl RCsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Yf033zbvp9pxo0s9URPAho62aiEWTfxuw67OJFPXTEA=; b=EaLyPX16mIk1VRFaWeyxLjXcAbIv0BR5lXZjH6YG8uNfG67r23hz+jiJkzAyhuEe6K HPQyNwDCI/go7dPFGyuvzHK+K+hijlcilQ6sZL4NwJNVuK/Lq9i5ua8smznn10F5SBi1 cfCk+DsCvGQzUkFmnG2BAant0y/+G04oVnwhh3RQeIAUN3nBPprXHToIdsJb8EQFp9Ny DSfQSspPTMOyBt45tMpRu5iUTnTf1syn/ofx0Y91X30mS3+uCYG0QwaoXDLBwEbwRBnE ionDdqUlfjnvWeWKlnIsewnoevExuN5biq0hdD1s1/8X2p1R63xavgh9gyiv5mi140qi wOpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PuAAqVaJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y2si10644940eju.432.2021.02.14.09.46.36; Sun, 14 Feb 2021 09:47:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PuAAqVaJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229889AbhBNRp6 (ORCPT + 99 others); Sun, 14 Feb 2021 12:45:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229880AbhBNRp5 (ORCPT ); Sun, 14 Feb 2021 12:45:57 -0500 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62E6AC0613D6 for ; Sun, 14 Feb 2021 09:45:17 -0800 (PST) Received: by mail-pg1-x52b.google.com with SMTP id t26so2957608pgv.3 for ; Sun, 14 Feb 2021 09:45:17 -0800 (PST) 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 :content-transfer-encoding; bh=Yf033zbvp9pxo0s9URPAho62aiEWTfxuw67OJFPXTEA=; b=PuAAqVaJh5jAn0NamzSuv82QYpI0zmuAO3SMkuF9aOwqyL6Cih2DxG+g1Y2DJpTaEL tqyAJP5/Ak0qUzw8zJNTcq/D8WIfDsniRgNVX1WjQFzh6XQ7JQF+GoYg1AiaIpFY1Ynh hYRwF20v658pXJihgJqyN5cRf9Yk2nVAqf+nI= 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 :content-transfer-encoding; bh=Yf033zbvp9pxo0s9URPAho62aiEWTfxuw67OJFPXTEA=; b=QPUXzJI+YhgGKhHb5P3PLsfEjPQny00mvOpBue3Dnhhs/Ec/yNXgOnLoLheexCs4bf zIoLqRebsWMa+3/xBv3L6+oU79zsrO2T4tuPeqPgxzDD/JX6axSuZWI0qDvaQij9aQWv cEkSgI6RFoWYiRBQlu4Q5ZzvUoYB6RnfS6aIa6ZQxlIPyIr/jK5SLME/vZQZADM7FlXv kU5jqxg1jCTkMCQEe63ox4kDkuXXftPJDt+12mMr5thv+PZ79aemDFSIusQiObJwgcm6 DNwj+f296R3yMG2R9sdc5ys0jR8MqthTog3mQ4/bG8JGu8pM8i7H3Yx6poLgHv6glF7L xmeg== X-Gm-Message-State: AOAM530bwznCCIXfautz58qAITVQw2bZt22m01/RpgGgNa8dr2wVVx6A MrE4gWDuNfVJupQDmf5AwRruvw== X-Received: by 2002:a62:644f:0:b029:1d3:b559:fe7a with SMTP id y76-20020a62644f0000b02901d3b559fe7amr11803213pfb.21.1613324716287; Sun, 14 Feb 2021 09:45:16 -0800 (PST) Received: from ub-XPS-13-9350.domain.name ([45.249.78.214]) by smtp.gmail.com with ESMTPSA id r205sm4794137pfr.128.2021.02.14.09.45.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Feb 2021 09:45:15 -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 , Marek Vasut Subject: [PATCH v3 1/2] dt-bindings: display: bridge: Add bindings for SN65DSI83/84/85 Date: Sun, 14 Feb 2021 23:14:52 +0530 Message-Id: <20210214174453.104616-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SN65DSI83/84/85 devices are MIPI DSI to LVDS based bridge controller IC's from Texas Instruments. SN65DSI83 - Single Channel DSI to Single-link LVDS bridge SN65DSI84 - Single Channel DSI to Dual-link LVDS bridge SN65DSI85 - Dual Channel DSI to Dual-link LVDS bridge Right now the bridge driver is supporting Channel A with single link, so dt-bindings documented according to it. Cc: Marek Vasut Signed-off-by: Jagan Teki --- Changes for v3: - fixed Rob comments - updated commit message and file name to support all chip variants Changes for v2: - none .../bindings/display/bridge/ti,sn65dsi8x.yaml | 122 ++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/ti,sn65dsi8x.yaml diff --git a/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi8x.yaml b/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi8x.yaml new file mode 100644 index 000000000000..7f9f8cd6e786 --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi8x.yaml @@ -0,0 +1,122 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/ti,sn65dsi8x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI SN65DSI83/84/85 MIPI DSI to LVDS bridge bindings + +maintainers: + - Jagan Teki + +description: | + SN65DSI83/84/85 devices are MIPI DSI to LVDS based bridge controller + IC's from Texas Instruments. + + SN65DSI83 - Single Channel DSI to Single-link LVDS bridge + SN65DSI84 - Single Channel DSI to Dual-link LVDS bridge + SN65DSI85 - Dual Channel DSI to Dual-link LVDS bridge + + 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. + +properties: + compatible: + enum: + - ti,sn65dsi83 + - ti,sn65dsi84 + + reg: + const: 0x2c + + enable-gpios: + maxItems: 1 + description: GPIO specifier for bridge enable pin (active high). + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: | + DSI Input. The remote endpoint phandle should be a + reference to a valid mipi_dsi_host device node. + + port@1: + $ref: /schemas/graph.yaml#/properties/port + 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>; + }; + }; + }; + }; + }; -- 2.25.1