From patchwork Tue Dec 6 13:13:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 86822 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp2007671qgi; Tue, 6 Dec 2016 05:14:06 -0800 (PST) X-Received: by 10.84.217.143 with SMTP id p15mr134179350pli.77.1481030046928; Tue, 06 Dec 2016 05:14:06 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 138si19409784pgg.76.2016.12.06.05.14.06; Tue, 06 Dec 2016 05:14:06 -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 S1752954AbcLFNOC (ORCPT + 25 others); Tue, 6 Dec 2016 08:14:02 -0500 Received: from mail-wm0-f51.google.com ([74.125.82.51]:36945 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752835AbcLFNN5 (ORCPT ); Tue, 6 Dec 2016 08:13:57 -0500 Received: by mail-wm0-f51.google.com with SMTP id t79so125078679wmt.0 for ; Tue, 06 Dec 2016 05:13:56 -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=4UzMYSF40TXjbUIvEQV6RA+JOLcaiegsJjlE0JQaPfM=; b=sg9XgRKOgOnbBG8Crmjz1d2Jbr6BYFT1BmeXh3/hnKQ8xY8wjY+hJbStmamKYreZP9 J2aqnr1JrLpilOA99T5kOrOOf/CcSShIS2kx6+yvILRRgkZPn5SoKNgWy7GBnTbw1cjP kbTQQND3RolkR4g41lWCEC7/v5VtHVmShPNlLMJFphgNXI+lu43dA31TRcWlFKQX9Bu9 etF+XkAj3+Yhm6qWTLAvgf2nbYJOzDkN/Fe06qXPkVJPa0VNqkEHew4kTHhzJtnG8bTo YxZh28pHW21ixkNtHIfQixhQnl7aWDnQ8AM1OTDhBg2VB4CM5i8E0+SmUwbKN3qOSFvL 6VlQ== 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=4UzMYSF40TXjbUIvEQV6RA+JOLcaiegsJjlE0JQaPfM=; b=LhK4blK+JencMj+2F0xehbx42j+8vsVTYGvWIMk9h6PiPwwhr5S6DcPyTUT8Px6HiI jajvWQSRdLAvdS3sEZYNVlDwZurwIDM4QotoZWNTY8EotKOEkHXB/rf9ejvooZw6LqOL eVUX8inmaHgQpIqbXPr+obzEqzNhnwO4IdJ4Ndpu7x4WWRdRFl1FStuNQN9DGJAyl8vA WiteUt8WuiBISD2rPKOdqj8hBzZwg9HlHJuc/wrc722TRMGeTBtcXeoWISv7igGhSfnh f+Ad4NntRwsodvfokS40HQYZoO0F2YLYVxxbSa18iB8RmZ1RP462rcHXG+4B6of5IuIs ZpAg== X-Gm-Message-State: AKaTC02u0ZMEdvvare6tYk9evxv5u1g7G5widSxRu0XuBTxO0JGnDu9F7g6C85WBWBFQemW+ X-Received: by 10.28.125.3 with SMTP id y3mr2834574wmc.30.1481030035595; Tue, 06 Dec 2016 05:13:55 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id f3sm3980661wmf.10.2016.12.06.05.13.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Dec 2016 05:13:55 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Michael Turquette , Sekhar Nori , Rob Herring , Frank Rowand , Mark Rutland , Peter Ujfalusi , Russell King Cc: LKML , arm-soc , linux-drm , linux-devicetree , Jyri Sarha , Tomi Valkeinen , David Airlie , Laurent Pinchart , Bartosz Golaszewski Subject: [PATCH v4 1/2] ARM: dts: da850-lcdk: add the dumb-vga-dac node Date: Tue, 6 Dec 2016 14:13:45 +0100 Message-Id: <1481030026-7329-2-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1481030026-7329-1-git-send-email-bgolaszewski@baylibre.com> References: <1481030026-7329-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 dumb-vga-dac 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 | 69 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) -- 2.9.3 diff --git a/arch/arm/boot/dts/da850-lcdk.dts b/arch/arm/boot/dts/da850-lcdk.dts index afcb482..ca437c1 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 = "dumb-vga-dac"; + #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 = <&display_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,27 @@ &memctrl { status = "okay"; }; + +&display { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_pins>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + display_out: port@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + }; + }; +}; + +&display_out { + display_out_vga: endpoint@0 { + reg = <0>; + remote-endpoint = <&vga_bridge_in>; + }; +};