From patchwork Fri Nov 25 16:03:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 9447881 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 E769560778 for ; Fri, 25 Nov 2016 16:03:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D5B7C28068 for ; Fri, 25 Nov 2016 16:03:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CA059280CF; Fri, 25 Nov 2016 16:03: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 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 30BF42808F for ; Fri, 25 Nov 2016 16:03:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 65BF16E3B4; Fri, 25 Nov 2016 16:03:30 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wj0-x235.google.com (mail-wj0-x235.google.com [IPv6:2a00:1450:400c:c01::235]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7BC5B6E3AF for ; Fri, 25 Nov 2016 16:03:22 +0000 (UTC) Received: by mail-wj0-x235.google.com with SMTP id xy5so62518354wjc.0 for ; Fri, 25 Nov 2016 08:03:22 -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=cf6DmZP2IYREdJg4Ui1ybg7aY7gPmPAksIvkA/WI9eU=; b=CguPvd43vC5/1VnqxvCD6kLG3TaMKQBfuD6hnLsGW5SpY69sWXW3EStY5PvZpbMzY6 JtUR+eLSi0F9qDbkKCyraExrmQQtXDK3voZC42M8leOXsAUi30h9Xu0d7ajyb/B4d326 cn+1UecZgJ2vq8l4EBO5f3jFMXhpEAWTPsjICTzAOC9/2ZcVLuyhpez0mlAtTADz3xKX L2GurXpJIcx+/dDwYZ3L4VWQUYY0XgLH3Si85dr0eRsgIMM1KyuhZXjqHIqLe2e3SjQs DDMj+Kf1+eEj+SBe74FRsbKcP1JM8ZvgH19C3bUgPPEzhPYvADtmgRjNy7g59++muXP9 UDnw== 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=cf6DmZP2IYREdJg4Ui1ybg7aY7gPmPAksIvkA/WI9eU=; b=B+SVRdJmptRGfUVyI/tv66DoLlaW7vjz/gB9zBuDF7hzd0uBrH9/jwzMRPXNb3H/Hu U7tKNCQkL1BZuNM5svvp0ySI4PDTbD9/NEyi8ogJrLb0JOIlbYFVCXCGcjjR+de5Oghs s6lVYMsjfbPZWNVDeynlrT+Q+5gC9Bz6VmVZgPOLXTsagxqtH95cPdRTNHhvf2rsB0S2 puS3LL5RIciwjOQr+cK4JirgB0s8Frrn9HXFwpmsWlNKLe0HG6ZXVYaUFoOWKWlXsh/n /X6w8JDB3up8NPXPdXT7hiId/bEP7TNOsBO0jdjHtM7+oJfsa3in7z/Dh+l7rmg820mQ JDaA== X-Gm-Message-State: AKaTC03LLPupL5Js36QBTlwhLIpowvpzS52BhKh6Fki+s4WV31eJu5dAmP70cDTVDj02cXOA X-Received: by 10.194.69.230 with SMTP id h6mr9105668wju.63.1480089801019; Fri, 25 Nov 2016 08:03:21 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id 81sm14102434wmw.7.2016.11.25.08.03.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 Nov 2016 08:03:20 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Michael Turquette , Sekhar Nori , Rob Herring , Frank Rowand , Mark Rutland , Peter Ujfalusi , Russell King Subject: [PATCH 1/3] ARM: da850-lcdk: add the dumb-vga-dac node Date: Fri, 25 Nov 2016 17:03:13 +0100 Message-Id: <1480089795-29811-2-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1480089795-29811-1-git-send-email-bgolaszewski@baylibre.com> References: <1480089795-29811-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 | 58 ++++++++++++++++++++++++++++++++++++++++ arch/arm/boot/dts/da850.dtsi | 17 ++++++++++++ 2 files changed, 75 insertions(+) diff --git a/arch/arm/boot/dts/da850-lcdk.dts b/arch/arm/boot/dts/da850-lcdk.dts index 8411a91..6952c68 100644 --- a/arch/arm/boot/dts/da850-lcdk.dts +++ b/arch/arm/boot/dts/da850-lcdk.dts @@ -50,6 +50,53 @@ system-clock-frequency = <24576000>; }; }; + + vga_bridge { + compatible = "dumb-vga-dac"; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_pins>; + #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 { @@ -227,3 +274,14 @@ }; }; }; + +&display { + status = "okay"; +}; + +&display_out { + display_out_vga: endpoint@0 { + reg = <0>; + remote-endpoint = <&vga_bridge_in>; + }; +}; diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi index ff13e95..8e30d9b 100644 --- a/arch/arm/boot/dts/da850.dtsi +++ b/arch/arm/boot/dts/da850.dtsi @@ -453,6 +453,23 @@ reg = <0x213000 0x1000>; interrupts = <52>; status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + display_in: port@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + }; + + display_out: port@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + }; + }; }; }; aemif: aemif@68000000 {