From patchwork Sun Feb 14 17:44:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1626 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id F09853F158 for ; Sun, 14 Feb 2021 18:45:19 +0100 (CET) Received: by mail-pg1-f200.google.com with SMTP id 33sf5138871pgv.0 for ; Sun, 14 Feb 2021 09:45:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1613324718; cv=pass; d=google.com; s=arc-20160816; b=At6NAqf4L0zm7Gz5bYOJ+ITccmstxttZpe9WKwwKgAEFGpw6+UCyEM/g0Odfz0QYwo IZQu1NW+Ft5kaK5nVeD1LDGUmCBjoprxTsf7RhJJdNRTQGIYlSvRn0zCpW9JAXvWXPlm 2kef35ibC0S3w3dXpGKDXobqBtxsGyPT4SN44OTglUABxIDycGerWalUYgoDczg858G8 4K33c7HgMLePbBnZF8z99/pQABuuSzuYoMSvDX3Z7cT3iIGkRuxKZD2jy//uEeVTxSHB nNscVKyETRBZKgeQIqyIzFATy9XrwD7Zd9hd5V6cq4U2DhiCvcaW0/XiqujJ2JzTypLh nUFQ== 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=b7DCGXCmVmhR0JbourvosnyifN5jEdIYgGuhqNZ+xXg=; b=N+uQxwQ2SLUMdk93wEjY9fsE4d5pTaFzDTFHA3x+CPabzyqG62nVC7McnAI3+nGhL+ j2bqWb1kk6XaOKvA+UD5aB3jsZJANyV2mX9ZG1F5XglFgOk9Wum9E4SdzGviwtOeCnd2 vJWE3I2MkXbu9+Zbrz11AKukf7rrW29MLYAi02ZbAdf5rF2x1m0TBLHW5UnPtLjQIB9S 3eiydSSmBdmJpYueR/hJKHShGSFJBbGBTcqHJFDS0XSFk/IM1KOQqkGlQpmwYxqmYaHa dJ19fxoS7zRMF5O+Yqb+cTasQ9k3PHogydte8wAVi/XxSWM/HnryLCZ3kaKnuZ1ir7I5 URAQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PuAAqVaJ; 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=b7DCGXCmVmhR0JbourvosnyifN5jEdIYgGuhqNZ+xXg=; b=DPCiP4gOCwntUNN8qjaKkl2IWWE0yUD/B1os/ziyq9xOxiH4YCV3E6i2qbiPC71lCd VkV05jWK5bA5Sxk60/4c7Y9ImDuI9pPFuUQhmRh5m7b9P2IvmGMaVmUdaAMOf3DVb0i/ IJnLC/y6Vt8wEczx7w4InvBvSNBoqxaS9wOb4= 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=b7DCGXCmVmhR0JbourvosnyifN5jEdIYgGuhqNZ+xXg=; b=IfGRTmV88LjKdq/roBHKo30s0Z+8GqINmhVuIXtH/0Bl8mbIebn9sLehhkJh55wFJp UCZ1gox0vJFkrObbHwi00oUvklaWqtNSb1m5AcBKKnnBjnwy7ccQ3r7Qk7Y+JI6WYhgy POJXLUJBfa0TwxA1+NmKCgRUTOdIZE01WXYjTQauy4q+AM/svMc+Cq4IMpDoYocE9/U+ a/z1G/gRcQIUnCmgBoX7FGL0hIiXEljZ5W9hM/oTwJBZMMVj9mXhF9Q9YUv82FtJG63n QKZiBnRWOqDT3eR0HpiyJ7PYou5N1cVsGa9Oa68i7atDEhPLqS/06iOiAgr/AtjZgsO7 FIJw== X-Gm-Message-State: AOAM533FHCSD/vSSZXnSTGQpO1IduS/RQjV2R9sIa+DmQfuM6KNY/FNW WeeNqTwtLRyFjPzuaidxqjuZp3oG X-Google-Smtp-Source: ABdhPJw1BMTUAIr0QfQp0MQk7EyrVlLpMtNrX8xH0W7MzAR3HLqA/8E/SDCccUWLCQUCNaPpuchGTw== X-Received: by 2002:aa7:8501:0:b029:1da:56dd:8440 with SMTP id v1-20020aa785010000b02901da56dd8440mr12025248pfn.15.1613324718237; Sun, 14 Feb 2021 09:45:18 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:ba17:: with SMTP id s23ls7149136pjr.3.canary-gmail; Sun, 14 Feb 2021 09:45:17 -0800 (PST) X-Received: by 2002:a17:902:ec83:b029:df:e942:93c0 with SMTP id x3-20020a170902ec83b02900dfe94293c0mr11758136plg.55.1613324717188; Sun, 14 Feb 2021 09:45:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613324717; cv=none; d=google.com; s=arc-20160816; b=j5eX6DGOdnORtrMS/4smfCuKvpVaBW0jebU7HWUtoVVLi6xjbqanBA52SZx/hDAocQ R8ygpTxvQGzHHBYJ0vn72KHjJ1b+NNj4bIS9w6gAVByTSacjo0S6IfRZV7xnHc8D3AhH BJNnQAn+VrhbsFgUuPFDsX8gSyhojs9fisCxYRPIssRNZdVHgVtF7qQHMHIAfTBvn0Ju OhZzMtvdRZPUQI+1L9A98XhlzSg8nMX4aN/QFEEH3ToGkjazX0fKHpi5gmMJOgwUEWr8 0a4AbhdfPtKEWuG5UnhA9ctX3TfvtEgd/WLuC5bKPIyr/bETVGx0IKjThxGi6j1CKgUD ukHg== 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=Yf033zbvp9pxo0s9URPAho62aiEWTfxuw67OJFPXTEA=; b=dk1l+WhwTLPqRdS58Ydax9R5gYwS8ViJxaDlHjeiq7OM5F4GKo4cIAS7oPXP4BHagA +v0YudUYZeZ33NXy3wxevVVKlWC0K1VBwuOFZ9HEZPCqRSDNuqxX0/PX5MX60RMPHrdy gZAa2r9HhOMv4Ald1atNn4HFJPdIMVTNOfBJFtjlEX/+asqHpYB/+DkKwWgxdq3sIr6L /Cm/j+I4mexIGSBAJ8AqTc0Vk77eQ1jWzAnuDCrfDJbyUaYf7DZAlx7mlSNia7fPeYrM +zBPIL0tbOvEBVIOz+PyVDFJ34NvsZJgX9Md/bT5HkUsl5MkJr3IaUrGB7UiOF75iNLP 96SQ== 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 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 16sor6400781pfi.49.2021.02.14.09.45.16 for (Google Transport Security); Sun, 14 Feb 2021 09:45:16 -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: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 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PuAAqVaJ; 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: , 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 Reviewed-by: Rob Herring --- 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>; + }; + }; + }; + }; + };