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: 9462579 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 BC27F60586 for ; Tue, 6 Dec 2016 13:16:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AF1D7283D4 for ; Tue, 6 Dec 2016 13:16:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A401B283E0; Tue, 6 Dec 2016 13:16: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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A77E2283D4 for ; Tue, 6 Dec 2016 13:16:11 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cEFZw-00037H-CX; Tue, 06 Dec 2016 13:14:40 +0000 Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cEFZa-0002vP-6A for linux-arm-kernel@lists.infradead.org; Tue, 06 Dec 2016 13:14:19 +0000 Received: by mail-wm0-x233.google.com with SMTP id a197so127937820wmd.0 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=dweUwKieCl6+HMbXaXMYjtw41aLFUHZPjDvIaPSi91PXNQKXUdJr7UwIiPSV6r3qht VhRzn8R0M5iReON/cBfqt7W3z5tBWoY758gLsFiAMu6vEFZXSLJergIpDsjzQSGYw6An vbQgoEetpIvPoIVe/ikXto51gKsspjpoEIqHV8U4a8TfVcnqyJDP8tzCCrdpZvTpL/eb /loFi8TqkkeCidC/Raz3os16cHzChL51/hPCKQjsP5qvHhyRd+DZz/M7zY/6sYnSAIrx gDxkcSvZ2HmsHjPQT1bQPZBwbMzCCmUHItEOAFxHB+p0TrVvIMqHioaX6cneUtMT8U5u fDuQ== X-Gm-Message-State: AKaTC03NGAv0HpX6VEY6ABIDBufZea92S0X4u2YNALNlhD8aQ6aG+Sp2uI3t2ui3SBUtngFm 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161206_051418_453310_D2B7A8CC X-CRM114-Status: GOOD ( 10.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-devicetree , David Airlie , LKML , linux-drm , Bartosz Golaszewski , Tomi Valkeinen , Jyri Sarha , arm-soc , Laurent Pinchart MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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>; + }; +};