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: 87014 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp245155qgi; Wed, 7 Dec 2016 02:43:10 -0800 (PST) X-Received: by 10.99.226.3 with SMTP id q3mr121127928pgh.37.1481107390328; Wed, 07 Dec 2016 02:43:10 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m29si23496164pgn.94.2016.12.07.02.43.10; Wed, 07 Dec 2016 02:43:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932258AbcLGKnI (ORCPT + 25 others); Wed, 7 Dec 2016 05:43:08 -0500 Received: from mail-wm0-f43.google.com ([74.125.82.43]:34830 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753177AbcLGKnD (ORCPT ); Wed, 7 Dec 2016 05:43:03 -0500 Received: by mail-wm0-f43.google.com with SMTP id a197so161007502wmd.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=No2pZMvIpba6pfzIgUNMjD3GkSHd+S1LYQsYuArhDYmo3nAAqgizxA1JPL/VGqnK9k /sGUXc+gTZ4JULk8vhyp4iX76SVn+fyWjATEUEYEWsaJyeBj0OOofnX1qAgDPxFDWSsG pzP1Bvxw0dyzeu7Cdlo9EgI1rbnmLo3c9Yv4cPvgKBwPkL2VvTCwPVCmAEMNYDsR5Kq/ DFHBrhdGZKcp55BE9ioJ889jFbp745vbsIZvLgj/32VY+dQ8E/umJMSufUifamwMbIZ/ ejgXzRIPSr6X7ObXwd08MB2ewbdXPPveGX9ro646Pr8dplA9J7uga8pWETDH8XYmd7yS vbzQ== X-Gm-Message-State: AKaTC00Eo6nIVqNhWF3UTaJKjr62LCmDyeuvpNTmyiKHfX2EAiByOOGxUiCl/zy3Hg2lKvUC 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 Cc: LKML , arm-soc , linux-drm , linux-devicetree , Bartosz Golaszewski 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- arch/arm/boot/dts/da850-lcdk.dts | 67 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) -- 2.9.3 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>; + }; + }; + }; +};