From patchwork Fri May 24 10:43:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 433 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 8A82E3F066 for ; Fri, 24 May 2019 12:43:45 +0200 (CEST) Received: by mail-pg1-f197.google.com with SMTP id t16sf6025579pgv.13 for ; Fri, 24 May 2019 03:43:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1558694624; cv=pass; d=google.com; s=arc-20160816; b=yCJ/9f3YiPzDu+G13QCe8mEpFul5yR0ltlJvaBiDgj5lTJ86lT9o05cgtRprfaQkUW lAxtWNemamO3JVetPU8vPqFA7j4ngtc/mRbK9ObHK5k4LXRlw5I4qKgoLOixEfr0P7O5 0V3QlrzgqKT2WWL6qjILgY7A28cYk2oQOOBufEvjfzUx+jt9LXBHJ93BWMg5t2DjfubJ IMcV2Spxdok4e+YieFN9eZXQUeKuckwA/FYvfayxn+/csytMfyo1JSyWDbyJdGXTp/AH vrCER3xDsZOGwmsZy0fv8kHjI333BFTp9oYOQyPHeHFA4p/nU6YOTxhuCsmpnybs55k8 LtXQ== 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:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=kqtYAXf1BHFK+vNeNZJxRQv8LqzVFTFiXhH6UPoDumo=; b=mSnokG1CljPSp6uZKmWM+ubyG7E/w4PKVNfxt1M/nkU8oYlm4usGXjKtifNE3JvQUU VL2czxp6xaA7C7EQMoN5spmCeieQ+qZwsmjcGhmK8zMwx5cLJtb5L2jh1E/0VfM0kxnH ADkSYxHKV2Unv3Pbu3bFPVkpmuFB6OjbOe7xXe6lwmCt/wlyx7VR/A62xLewZLmpqtfM RjBU+WTKL4ktcf1FlbIRWTkrjKcrxZ0v0SG/C2uSgPi1/QTHKEGHXxbvooda3P5MJobC Ax/b7f1o0nzlyFOE/1UcOKIKfu9EUzkv27/yLm1f+1nkC8O96EfcFwKFdtDNfSauUH3v fZzA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=MMbn8v2Z; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 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:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=kqtYAXf1BHFK+vNeNZJxRQv8LqzVFTFiXhH6UPoDumo=; b=mtEO5XDmHWScZ5uyttV9h2Isj8pob3hDP1z+EABb0WvnzRLHSgQ2m5rU6Stl4n5q+k eZKOncMVxNkJFgmZMGwJzFDV82au6mWeMm9LUlE7GYnEI2m9OmKowZPwwzBcWCGmk5Gb TAXGB3s46gYpf9PfbaHkTb+Cpbw0BPek+ms5A= 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:in-reply-to :references: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=kqtYAXf1BHFK+vNeNZJxRQv8LqzVFTFiXhH6UPoDumo=; b=rnAPhJ9A+sRNRpEPQonkRc43AxbEKZyVqXixufEz1BaFa8RI60lrr7kw0gvHTUWdsT IRYyT4E0ciSQx91HLWVSvau3vT5EFwZ6UbGp+HLTEtI+Sdjtw3YJXhQWZShKI0mvXz9r j93XoLiSh9QwGPfciFLnBzCZtjs5ihrBjW5onVsJO2BhPsYJzrkX4rEXQbkiQyPYegLS hWYwu8zeEhqIYQmfW7/wSOIGc+ky0YCEQ0CDwivCjOt2p3edNxql6P9p8DsSmrDUVwrO 7Zl2xwrN7xai3u5E692AtIzFYL9TVh7cT01Bz+ncppD7MvnFsQr1AI2NAgsYRUFxYdmg NIbQ== X-Gm-Message-State: APjAAAUfrcQopLbmGgdsLFrwCNGRODtLUBs+Y+SpMD61VAMBp7TjmVKs wMOKbDCxOmT051u8TBgKXtGAbbjw X-Google-Smtp-Source: APXvYqzNMsbCALBpf7nS5gkrKszYYTtRFqLs+/4Nc6tFsNpcC+MnYrghcr3KpNajxoyBqCPQx8s04Q== X-Received: by 2002:a65:5785:: with SMTP id b5mr68616457pgr.252.1558694624332; Fri, 24 May 2019 03:43:44 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:1b4d:: with SMTP id q71ls788235pjq.3.canary-gmail; Fri, 24 May 2019 03:43:44 -0700 (PDT) X-Received: by 2002:a17:902:868c:: with SMTP id g12mr88931371plo.323.1558694623997; Fri, 24 May 2019 03:43:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558694623; cv=none; d=google.com; s=arc-20160816; b=FYnaymN58+wEGEXS7Frtuj8wIFtV49lBn96HFJTFn+aD3xtu+VI4JDSiqdUj874tuS KI9Jz/P7OufLMrSg7n9LQ5epXpSOcgpvCgqXvliL0SO4KfBq9+MhAYoUAC5BIXTPRGj8 8Cdoa0iVkZfR1MTJVfBhkyfeRj3Hp6FWMFIpW2yYbnlUpwZBiamtqpe85Bh4Z/dbQtib EBlavgf6CO8z78q8EakNxKXCkSZx+4SLOb44f/hujcznSvD0XrR33dZ6n53tEk9/jEcJ rkf47ESdJ31BHM/4pab0U5ArP0stKDNHtrxX1dAR9m5XHdrsUgEpQx2Npl4gLDCfp7h7 ce9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=qNTSCPsOEC2W2+GNT7l2VKFB0+zY6ZYUs+njP7ZZryY=; b=XIgaLkb9W4+4rjrjDi3CvblIEzI5Gcqn977AqO8R3oOUezspDHQbN04R7u18FRHJMu sq3xOvxKukGmeXDpqrfS1pdyMaFIm/eYnkwPXeT5Lie682L0ITJvBO7y7oPACd3DJ423 DiHkLRSYBNaBjcfjxrBx6l4YqbfaKnK+4/nimG1pDq0f05g9ydBf6P04j6UDHp1g2UiA gnEQv6lXnxEIHgHigykLl6rQ3Q7JiEBM6ZsJaEZYQh/uS9DHOg2lDfMUcJndxztatRVT PilRbOc/exLAdAJQA2+eGFWr9BKfm9hJcgKLo2ZL6Z2OVageaOzAxBviSPQRI/smICa9 wFeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=MMbn8v2Z; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id d20sor2458316pfr.1.2019.05.24.03.43.43 for (Google Transport Security); Fri, 24 May 2019 03:43:43 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a62:5653:: with SMTP id k80mr110389226pfb.144.1558694623629; Fri, 24 May 2019 03:43:43 -0700 (PDT) Received: from localhost.localdomain ([183.82.227.60]) by smtp.gmail.com with ESMTPSA id h11sm2303416pfn.170.2019.05.24.03.43.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 May 2019 03:43:43 -0700 (PDT) From: Jagan Teki To: Andrzej Hajda , Laurent Pinchart , Chen-Yu Tsai , Maxime Ripard , David Airlie , Daniel Vetter , Rob Herring , Mark Rutland Cc: Michael Trimarchi , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v2 4/6] dt-bindings: display: bridge: Add ICN6211 MIPI-DSI to RGB converter bridge Date: Fri, 24 May 2019 16:13:15 +0530 Message-Id: <20190524104317.20287-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190524104317.20287-1-jagan@amarulasolutions.com> References: <20190524104317.20287-1-jagan@amarulasolutions.com> 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=MMbn8v2Z; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 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: , ICN6211 is MIPI-DSI/RGB converter bridge from chipone. It has a flexible configuration of MIPI DSI signal input and produce RGB565, RGB666, RGB888 output format. Add dt-bingings for it. Signed-off-by: Jagan Teki --- .../display/bridge/chipone,icn6211.txt | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/chipone,icn6211.txt diff --git a/Documentation/devicetree/bindings/display/bridge/chipone,icn6211.txt b/Documentation/devicetree/bindings/display/bridge/chipone,icn6211.txt new file mode 100644 index 000000000000..53a9848ef8b6 --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/chipone,icn6211.txt @@ -0,0 +1,78 @@ +Chipone ICN6211 MIPI-DSI to RGB Converter Bridge + +ICN6211 is MIPI-DSI/RGB converter bridge from chipone. +It has a flexible configuration of MIPI DSI signal input +and produce RGB565, RGB666, RGB888 output format. + +Required properties for RGB: +- compatible: must be "chipone,icn6211" +- reg: the virtual channel number of a DSI peripheral +- reset-gpios: a GPIO phandle for the reset pin + +The device node can contain following 'port' child nodes, +according to the OF graph bindings defined in [1]: + 0: DSI Input, not required, if the bridge is DSI controlled + 1: RGB Output, mandatory + +[1]: Documentation/devicetree/bindings/media/video-interfaces.txt + +Example: + + panel { + compatible = "bananapi,s070wv20-ct16", "simple-panel"; + enable-gpios = <&pio 1 7 GPIO_ACTIVE_HIGH>; /* LCD-PWR-EN: PB7 */ + backlight = <&backlight>; + + port { + panel_out_bridge: endpoint { + remote-endpoint = <&bridge_out_panel>; + }; + }; + }; + +&dsi { + vcc-dsi-supply = <®_dcdc1>; /* VCC-DSI */ + status = "okay"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + dsi_out: port@0 { + reg = <0>; + + dsi_out_bridge: endpoint { + remote-endpoint = <&bridge_out_dsi>; + }; + }; + }; + + bridge@0 { + compatible = "chipone,icn6211"; + reg = <0>; + reset-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* LCD-RST: PL5 */ + #address-cells = <1>; + #size-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + bridge_in: port@0 { + reg = <0>; + + bridge_out_dsi: endpoint { + remote-endpoint = <&dsi_out_bridge>; + }; + }; + + bridge_out: port@1 { + reg = <1>; + + bridge_out_panel: endpoint { + remote-endpoint = <&panel_out_bridge>; + }; + }; + }; + }; +};