From patchwork Mon Dec 12 13:05:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 9470731 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 5899860760 for ; Mon, 12 Dec 2016 13:08:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5766C28426 for ; Mon, 12 Dec 2016 13:08:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4AC9428494; Mon, 12 Dec 2016 13:08:43 +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 D027628426 for ; Mon, 12 Dec 2016 13:08:42 +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 1cGQKA-0001MH-3p; Mon, 12 Dec 2016 13:07:22 +0000 Received: from mail-wj0-x232.google.com ([2a00:1450:400c:c01::232]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cGQJ7-0000vy-07 for linux-arm-kernel@lists.infradead.org; Mon, 12 Dec 2016 13:06:18 +0000 Received: by mail-wj0-x232.google.com with SMTP id v7so71270320wjy.2 for ; Mon, 12 Dec 2016 05:05:55 -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=CT5DNGWm098ZDhiuPxKVYCEBxD9QpjRGHATMEDqxANY=; b=iB8l6YN4oobWbp8E6eToj5Qb4jVZGnp+DC+1P9YSHSC90/bX7sIa1LGPI97fYo9wXU rUZ+CE4/j/rGxA4dqfPJAnuL4Hkh4GWtEJCueQlXup2JwioeWleZYtBsi8pYbaQLLqL8 ijYaqWshIrX6IXjAzF67scvz7G8ZpnU7LJpDIQ1QpoOlZdOUjUseh3WL1OAJdz+6xIia IG9VZUdS4F98GBJgcQtu7GA1Gskh2wKtGWaY/3yKXLNN5OE9gME8GqHPZcPldyb4Er3S ToO05Yw1tzZoiPEs3SOoj7CstBpuwr5ypLsKP6r7qdMq1VGXW42l3fn4IZ5AlS1LhIBk 1+ZQ== 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=CT5DNGWm098ZDhiuPxKVYCEBxD9QpjRGHATMEDqxANY=; b=TUMRjUwUGUKs+fOGPN4BZhlCBBIlUBFe0Ll0snaBxtcvqI+4Vs3kXh9YWG2OT+yz8g delgVnWlQ+1UiMC/yMEonS4ob2J/T+EzEyqqD/2pmpUhDBeiHD1jkazB/hKDFeIcmvBr OIUvFMg/ZWon+R+gZAhQauNHQ3L1r63iolGNl2omlla4vHdUrO2Bn2HHfM4uGBBfr9NF xOfL2zN4P+UWREW3N0eKJFhuoDU8adizT+n1mL26lHKPnRxHBCjBujq/v4+E+/eDw0dm feoinoB4Q3ClRGauKkmR8hQIL1TB8LBIug/8atehy7/4lt6I2oSrHoXb+73BamtpmvLG 4stg== X-Gm-Message-State: AKaTC01/BOFIFnOAskVCEyAkg2995HDmUwSOn0mLuRhipKURk+zWqwmDYEyUCS+qqMD6X3UE X-Received: by 10.194.0.167 with SMTP id 7mr76046324wjf.80.1481547953863; Mon, 12 Dec 2016 05:05:53 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id a13sm35512620wma.18.2016.12.12.05.05.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Dec 2016 05:05:53 -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 Subject: [PATCH v6 4/5] ARM: dts: da850-lcdk: add the vga-bridge node Date: Mon, 12 Dec 2016 14:05:41 +0100 Message-Id: <1481547942-24775-5-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1481547942-24775-1-git-send-email-bgolaszewski@baylibre.com> References: <1481547942-24775-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161212_050617_280965_2BDB1DBF X-CRM114-Status: UNSURE ( 9.73 ) X-CRM114-Notice: Please train this message. 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 --- arch/arm/boot/dts/da850-lcdk.dts | 67 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/arch/arm/boot/dts/da850-lcdk.dts b/arch/arm/boot/dts/da850-lcdk.dts index afcb482..e003111 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 = "ti,ths8135"; + #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 { + reg = <0>; + remote-endpoint = <&lcdc_out_vga>; + }; + }; + + port@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + vga_bridge_out: endpoint { + 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,25 @@ &memctrl { status = "okay"; }; + +&lcdc { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_pins>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + lcdc_out: port@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + lcdc_out_vga: endpoint { + reg = <0>; + remote-endpoint = <&vga_bridge_in>; + }; + }; + }; +};