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: 9471987 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 9292A60476 for ; Tue, 13 Dec 2016 10:09:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6B398284D8 for ; Tue, 13 Dec 2016 10:09:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 60382284F3; Tue, 13 Dec 2016 10:09:55 +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 1DE2D284D8 for ; Tue, 13 Dec 2016 10:09:55 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 276526E544; Tue, 13 Dec 2016 10:09:41 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com [IPv6:2a00:1450:400c:c09::22d]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4AD566E432 for ; Tue, 13 Dec 2016 10:09:37 +0000 (UTC) Received: by mail-wm0-x22d.google.com with SMTP id f82so112084650wmf.1 for ; Tue, 13 Dec 2016 02:09:37 -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=OmZP3qlcuAltMxnbv7V8rtauDv7yZps3tsarboyk2cnaWyfX38OsSUlFLUGoQ7HT7T JVONQ1Jos8M+qsJIF1grq6oiinFxLmIgpukceYlGh7MSOsjoyl6P1/kyHbBoMMmFUu5M AutHUrV0vm9tkeuRMWmosphJU3teIWAztGROfBxoUFLE+pSq0TMG9SDG5pI/5k7E1d1H xHn13DtvOUu0zmaY+QRBl/jFa12K57Pq7RgPH0Ds5BzLuSd6PNU62Si3mUVaZBcB5Vtf ADDoXA0ctKlTzOBXtXl/LDEp7O4si2Dd8ZYR6ZfLsyMetamAOSMDhlDHPg7do70N8LrX X8cw== X-Gm-Message-State: AKaTC02nm3iDLfQBI3FJyCyOlv1rGAwj6iSPyWtvg6R32EJH590SZaqckCNh2rwbnZtqQWLN 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> Cc: linux-devicetree , linux-drm , LKML , arm-soc , Bartosz Golaszewski 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 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>; + }; + }; +};