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: 9462567 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 003A160586 for ; Tue, 6 Dec 2016 13:14:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E7F49283AC for ; Tue, 6 Dec 2016 13:14:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DCA18283BC; Tue, 6 Dec 2016 13:14:12 +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 A07A6283AC for ; Tue, 6 Dec 2016 13:14:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DA0376E37C; Tue, 6 Dec 2016 13:14:01 +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 85F236E371 for ; Tue, 6 Dec 2016 13:13:57 +0000 (UTC) Received: by mail-wm0-x229.google.com with SMTP id g23so128170452wme.1 for ; Tue, 06 Dec 2016 05:13:57 -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=D60fkWYfqJTuDCAxi7cYmp8hf1euhCX8VgWv6uviqC7OaGBmjjoZRdaV8uEovDGo65 rhS4E5jHTyVLUT4xGLuVqxqFSWxXnPPNIacE+w3WVV8PJIEQyMyFG/FrMcUkZiQjIo/b eL0kuOVXjbGo4WKAuD7zhdf6yX6y9wvB6yO2Dej+ysa26YHv2IdN0KoB8tc9bGHvnoxD m0Th3XXYmi8IpA+Ajvz/E04fJP1aULDiL7L9PT8WQ8OnR1Fqg/s0f9H1MAOnj3XkFhiz 3n9xZBZftkJ2tEV1VG6Kp6Us7dkk6RSrNadGq5fir2+RYoLtRKHp3aCJbNzHGIpwI6HX Pjzw== X-Gm-Message-State: AKaTC00vxst+muzA1ejmp1a2tlQCSHOggW0uFEWWqJoU/BoFwPFNIJrkRCb8NzPKgZs5lQPV 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 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> Cc: linux-devicetree , LKML , linux-drm , Bartosz Golaszewski , Tomi Valkeinen , Jyri Sarha , arm-soc , Laurent Pinchart 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 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(+) 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>; + }; +};