From patchwork Wed Dec 7 10:42:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 9464253 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5409B60512 for ; Wed, 7 Dec 2016 10:43:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5DE2327DA4 for ; Wed, 7 Dec 2016 10:43:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 526AB284F2; Wed, 7 Dec 2016 10:43:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EA17827DA4 for ; Wed, 7 Dec 2016 10:43:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9BB886E541; Wed, 7 Dec 2016 10:43:05 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x229.google.com (mail-wm0-x229.google.com [IPv6:2a00:1450:400c:c09::229]) by gabe.freedesktop.org (Postfix) with ESMTPS id 027F66E53F for ; Wed, 7 Dec 2016 10:43:03 +0000 (UTC) Received: by mail-wm0-x229.google.com with SMTP id a197so161007505wmd.0 for ; Wed, 07 Dec 2016 02:43:03 -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=VnxbnXhcP8yMKFPHtencREaXMxb2hc0iaPaiWmk6igA=; b=AWtf6cQhL/hFdJ3WlS3zw7bG+OHiOprH2gh82vGAvqaJ4TCwCXrvc87i8vQvTVjMq9 T1RuoiQYJoFOqyHwPhyxs7etS7hHBd0cRFWJFeFaSpoJp4XS09Z65fT4Q++XYtERr46h Y4IzQVMwCm3VYbkqCjOcvrIkGXYeBEZ9qwjKVS3V3A8+kILZw7LTC/mqORmAkbQWs2bE iBuh5smNsqVunLXp1sagZQgtNKCos9FDKlmPvsB5c6yJwP+/ayBFolOstuYxMMbB8fVk WuCz6StbuAhovuE4RAsr3HtynvapWb6HhZRyfFzxT0ZbpLMcYjRvb01B7IkqQGZ7UFvI 317g== 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=VnxbnXhcP8yMKFPHtencREaXMxb2hc0iaPaiWmk6igA=; b=D2kj383fZB7a44AzhF4QhZkNLlanriEgMX7yzdNuQIn3vMpwIhQ8+aE3tsVIL7pCRI VgYdFUnxc2fW7Tcw1gbHqTwl9MNWsIM1Hxz5/QB0LYXcAPYiMABViJuhITNWXr6zDiZv O7xyVDV+LlKTVzr9wC6Fsd64hVnX10ocgrqE3B48fn78XkhADwsscAEa/g0hvCGHmqMT ul9qU7X8qQDEJs5taAfGngjb9tBHWVuoudRAnVttrKoaZLlPKVRjLqDu5a5769Ag5e2m iypdZR+HgE6HkhfrxdJLjR55to2/l1NfJUQKSndjWMTlabv/qD+W09ZFa8q7Dt2PvGdp IHoA== X-Gm-Message-State: AKaTC01PuP45hHsRPG02PVXAjgRBfflF45+hplyDqLsvbWEhQdMdo708P+vVraFX0yxHwJKB X-Received: by 10.28.194.135 with SMTP id s129mr2069895wmf.55.1481107382332; Wed, 07 Dec 2016 02:43:02 -0800 (PST) Received: from bgdev-debian.lan (jua06-1-82-242-157-225.fbx.proxad.net. [82.242.157.225]) by smtp.gmail.com with ESMTPSA id w7sm8888886wmd.24.2016.12.07.02.42.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Dec 2016 02:43:01 -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 v5 3/4] ARM: dts: da850-lcdk: add the vga-bridge node Date: Wed, 7 Dec 2016 11:42:44 +0100 Message-Id: <1481107365-24839-4-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1481107365-24839-1-git-send-email-bgolaszewski@baylibre.com> References: <1481107365-24839-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" X-Virus-Scanned: ClamAV using ClamSMTP 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..39602eb 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@0 { + reg = <0>; + remote-endpoint = <&lcdc_out_vga>; + }; + }; + + port@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + vga_bridge_out: endpoint@0 { + 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@0 { + reg = <0>; + remote-endpoint = <&vga_bridge_in>; + }; + }; + }; +};