From patchwork Mon Dec 12 13:05:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 87688 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp1627177qgi; Mon, 12 Dec 2016 05:06:13 -0800 (PST) X-Received: by 10.84.209.136 with SMTP id y8mr188402751plh.114.1481547973774; Mon, 12 Dec 2016 05:06:13 -0800 (PST) Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id d78si43258374pfk.190.2016.12.12.05.06.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Dec 2016 05:06:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 473256E333; Mon, 12 Dec 2016 13:05:59 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wj0-x22f.google.com (mail-wj0-x22f.google.com [IPv6:2a00:1450:400c:c01::22f]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8EEBF6E2CD for ; Mon, 12 Dec 2016 13:05:55 +0000 (UTC) Received: by mail-wj0-x22f.google.com with SMTP id v7so71270314wjy.2 for ; Mon, 12 Dec 2016 05:05:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=CT5DNGWm098ZDhiuPxKVYCEBxD9QpjRGHATMEDqxANY=; b=iB8l6YN4oobWbp8E6eToj5Qb4jVZGnp+DC+1P9YSHSC90/bX7sIa1LGPI97fYo9wXU rUZ+CE4/j/rGxA4dqfPJAnuL4Hkh4GWtEJCueQlXup2JwioeWleZYtBsi8pYbaQLLqL8 ijYaqWshIrX6IXjAzF67scvz7G8ZpnU7LJpDIQ1QpoOlZdOUjUseh3WL1OAJdz+6xIia IG9VZUdS4F98GBJgcQtu7GA1Gskh2wKtGWaY/3yKXLNN5OE9gME8GqHPZcPldyb4Er3S ToO05Yw1tzZoiPEs3SOoj7CstBpuwr5ypLsKP6r7qdMq1VGXW42l3fn4IZ5AlS1LhIBk 1+ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=CT5DNGWm098ZDhiuPxKVYCEBxD9QpjRGHATMEDqxANY=; b=Jc6o1Z3GA1dhvyn4tSWnKMdJt20XMOLzLKz2ig0DPNh+WLsP2FswSsW59p4hDlndGs Xdr94jaxvpgnGK/M6BVDHXC20t3Pe69OUkFCAjQsbhjLg8FwIj8EPn9sZCm4lJDV93/V 1Qi8fMpnCeVdDR4BiBd6C37+XLf2O0LDXbGld3rzR1kvsUYMQT5ClgQoKms8sxlUr9Lb oeW8sx+5UvIZC/jUNFZE3v9DwtRvt0U6idZS4S2vraABLHF37sb/+c/RcT3T7i3TT/Yy Lt7tS4l8Lf648rI10rMqyL4CV18visLZjmOOiBAw8KV0OIiD58mu5O0/0zwFLkbqyR+5 6BIA== X-Gm-Message-State: AKaTC027gUIy3As/pRo5rhlm/jpESYiZIMhI9oiHlfbvDMElqnd/eUCLbSEWg0BbkDO0yi/U X-Received: by 10.194.0.167 with SMTP id 7mr76046324wjf.80.1481547953863; Mon, 12 Dec 2016 05:05:53 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id a13sm35512620wma.18.2016.12.12.05.05.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Dec 2016 05:05:53 -0800 (PST) From: Bartosz Golaszewski To: Jyri Sarha , Tomi Valkeinen , David Airlie , Kevin Hilman , Michael Turquette , Sekhar Nori , Rob Herring , Frank Rowand , Mark Rutland , Laurent Pinchart , Peter Ujfalusi , Russell King Subject: [PATCH v6 4/5] ARM: dts: da850-lcdk: add the vga-bridge node Date: Mon, 12 Dec 2016 14:05:41 +0100 Message-Id: <1481547942-24775-5-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1481547942-24775-1-git-send-email-bgolaszewski@baylibre.com> References: <1481547942-24775-1-git-send-email-bgolaszewski@baylibre.com> Cc: linux-devicetree , linux-drm , LKML , arm-soc , Bartosz Golaszewski X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add the vga-bridge node to the board DT together with corresponding ports and vga connector. This allows to retrieve the edid info from the display automatically. Signed-off-by: Bartosz Golaszewski Reviewed-by: Laurent Pinchart --- arch/arm/boot/dts/da850-lcdk.dts | 67 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/arch/arm/boot/dts/da850-lcdk.dts b/arch/arm/boot/dts/da850-lcdk.dts index afcb482..e003111 100644 --- a/arch/arm/boot/dts/da850-lcdk.dts +++ b/arch/arm/boot/dts/da850-lcdk.dts @@ -51,6 +51,51 @@ system-clock-frequency = <24576000>; }; }; + + vga-bridge { + compatible = "ti,ths8135"; + #address-cells = <1>; + #size-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + vga_bridge_in: endpoint { + reg = <0>; + remote-endpoint = <&lcdc_out_vga>; + }; + }; + + port@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + vga_bridge_out: endpoint { + reg = <0>; + remote-endpoint = <&vga_con_in>; + }; + }; + }; + }; + + vga { + compatible = "vga-connector"; + + ddc-i2c-bus = <&i2c0>; + + port { + vga_con_in: endpoint { + remote-endpoint = <&vga_bridge_out>; + }; + }; + }; }; &pmx_core { @@ -236,3 +281,25 @@ &memctrl { status = "okay"; }; + +&lcdc { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_pins>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + lcdc_out: port@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + lcdc_out_vga: endpoint { + reg = <0>; + remote-endpoint = <&vga_bridge_in>; + }; + }; + }; +};