From patchwork Tue Dec 13 10:09:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 9472005 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 F388560476 for ; Tue, 13 Dec 2016 10:12:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D3839284D8 for ; Tue, 13 Dec 2016 10:12:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C7843284D2; Tue, 13 Dec 2016 10:12:59 +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 54AA9284D2 for ; Tue, 13 Dec 2016 10:12:59 +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 1cGk32-0003mT-4O; Tue, 13 Dec 2016 10:11:00 +0000 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cGk21-00025T-Fi for linux-arm-kernel@lists.infradead.org; Tue, 13 Dec 2016 10:09:59 +0000 Received: by mail-wm0-x231.google.com with SMTP id t79so111846744wmt.0 for ; Tue, 13 Dec 2016 02:09:36 -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=RR7+LK6GJecVTq+5I2p3oldNYQlzA6X1y3QTv3VoDDE=; b=y8CmCPrWGXNgJVyGzm9KXl+plwrK3U85Nz0ojWl+BguUB17jWsCO8PTa7hNGpe5ycc kGQzHWSiviKiqUjUfR3MiF2rRh6QXrxl3rPPm4R4obcp61BZMa59M7F+B6mrYnqWzFl9 G8WkEKRFOZIgnPsotbuNl26q85VOFHmVd/Nhs94/ph1s2ewn2XzTjElT5zXs7HqcV7yd 0LujERc9V/S1o7oNKhEzfcKYY65CdGLmSkziLkdcBHXUKVld4QePF4NMcqfTV5y7ANDt d0/czab9w/qPVG0losfZYD+f0WP9iMwhCOnLCePNWQjLrT7iK8bWIXs8PhFJFNu3XPUD tKYw== 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=RR7+LK6GJecVTq+5I2p3oldNYQlzA6X1y3QTv3VoDDE=; b=BYp6zdGwnKAAC3qcjCgXcSiu+jJNXV/AYdnsgqS3NMGly4BPLCPNIR0Mju+aGEGt1J 86Bw3yvRsJhQ6wjm06d4MQz3dI3mpYjCyFhESB09jhYQibi6UKZQO0o8PqnCVHku+xcV cw/jx3EDKfMHz8orzmSzfO5DzN3c0U4pv8o0D8GaerK6nR7CEEc9tthg9z18lzZhb6JK Bkq18JJX6fXleFXxifJoo3jb23S7HD0NbrBI5kmqAg8CgRT739eR4sr2X8IPRbFQtoKS FOI47GRnFC66QO68tQtFBpjwtWy/jdiZKEa/yKoyC1hrq7eVf5XkD9fuAjo8F2jNc2md n/nw== X-Gm-Message-State: AKaTC02QZVTeDC0h6eFWOCJQvChlnjbCV7TSl/YHj2hXlZ5jbma7GDohBo0qlLquOaMZU8Rt X-Received: by 10.28.72.3 with SMTP id v3mr2099276wma.20.1481623775559; Tue, 13 Dec 2016 02:09:35 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id 138sm1808513wms.20.2016.12.13.02.09.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Dec 2016 02:09:34 -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 , Maxime Ripard Subject: [PATCH v7 4/5] ARM: dts: da850-lcdk: add the vga-bridge node Date: Tue, 13 Dec 2016 11:09:18 +0100 Message-Id: <1481623759-12786-5-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1481623759-12786-1-git-send-email-bgolaszewski@baylibre.com> References: <1481623759-12786-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161213_020957_752044_1270E297 X-CRM114-Status: GOOD ( 10.24 ) 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 , linux-drm , LKML , arm-soc , Bartosz Golaszewski 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 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 Reviewed-by: Tomi Valkeinen --- arch/arm/boot/dts/da850-lcdk.dts | 51 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/arch/arm/boot/dts/da850-lcdk.dts b/arch/arm/boot/dts/da850-lcdk.dts index afcb482..1ae2260 100644 --- a/arch/arm/boot/dts/da850-lcdk.dts +++ b/arch/arm/boot/dts/da850-lcdk.dts @@ -51,6 +51,45 @@ system-clock-frequency = <24576000>; }; }; + + vga-bridge { + compatible = "ti,ths8135"; + #address-cells = <1>; + #size-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + vga_bridge_in: endpoint { + remote-endpoint = <&lcdc_out_vga>; + }; + }; + + port@1 { + reg = <1>; + + vga_bridge_out: endpoint { + 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 +275,15 @@ &memctrl { status = "okay"; }; + +&lcdc { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_pins>; + + port { + lcdc_out_vga: endpoint { + remote-endpoint = <&vga_bridge_in>; + }; + }; +};