From patchwork Mon Nov 28 12:15:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 84388 Delivered-To: patch@linaro.org Received: by 10.182.1.168 with SMTP id 8csp1610082obn; Mon, 28 Nov 2016 04:15:55 -0800 (PST) X-Received: by 10.98.202.72 with SMTP id n69mr21609297pfg.24.1480335354991; Mon, 28 Nov 2016 04:15:54 -0800 (PST) Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id j91si26357735pld.156.2016.11.28.04.15.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Nov 2016 04:15:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 10ECA6E2B5; Mon, 28 Nov 2016 12:15:53 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wj0-x22c.google.com (mail-wj0-x22c.google.com [IPv6:2a00:1450:400c:c01::22c]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8FC446E299 for ; Mon, 28 Nov 2016 12:15:33 +0000 (UTC) Received: by mail-wj0-x22c.google.com with SMTP id xy5so114050665wjc.0 for ; Mon, 28 Nov 2016 04:15:33 -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=yElgr4jcI+C6dw2DC+7UJZACDEB4IeZilkD3tTitsWk=; b=Ri+T4gTbjc/GAjTuHxMA2zDhfqQzA8Ng9ECY9sxtPWb1QD5lNt/SRi5mSx+C/R3V4p 215K0nzNs9/eurFf/NjF/uI4Ix8b0Swge4dBzoFn7zMobK3m1zwkSItFoP6iO8X91m/M 1+RM9wv7SIotaMIDFx3L8weCJI+fV+dRjmO0kdnj45wrJQ8vZUz25VBNCnbAi+kdzwr3 cRbG2bZilryNaF5XZhsUyx57q34IATTiUeW5pD4qoP8/wRjFt281n5aH0Ut+juiAZvMA PJptvMpkL1NRnsBK5Qv1DawrcBVT14/zWMA5qj+wIjkOOs+1XOOER79zoRPYJ+dDxwCU /sEg== 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=yElgr4jcI+C6dw2DC+7UJZACDEB4IeZilkD3tTitsWk=; b=cRcc3d71lrbKcFumg7+cdCtZ5z+Qe9gWG3s4wT3dEXqiG+cSrRTaJOpDl2VasA97xI hVckiquNVRmOYRYyh3L0o3KpyeND7wgXJjjVVjqhx9PkS9EiucURSjJt/9CTxcfANjyY uPNHIsMG7u4i01MkKC8UKxUzOwRH/FaMMV1FXWau9Ejllv3k9LL2wU7QGndNyjzVUNLe Ni61kvRqoaTtbcrzLdVa1VMv17RDrCgU0Nc5FLymd9onEyz+barJCs7eRISOamCZRw7V C7PzbhI35BikuySOu14e9q84gCZpcL8jzKwLc9PLxHZZfg9wrKHWudVvX6wsgDScq6m9 qxYg== X-Gm-Message-State: AKaTC03A3gIdPur1pTL6nAQ949DKdGPDBd4TLwOsZi2o/wZC0vzJ4EL2cP3/Gi6kRJP3lrUr X-Received: by 10.194.201.133 with SMTP id ka5mr20448875wjc.151.1480335331876; Mon, 28 Nov 2016 04:15:31 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id g184sm28752468wme.23.2016.11.28.04.15.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Nov 2016 04:15:31 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Michael Turquette , Sekhar Nori , Rob Herring , Frank Rowand , Mark Rutland , Peter Ujfalusi , Russell King Subject: [PATCH v2 1/2] ARM: dts: da850-lcdk: add the dumb-vga-dac node Date: Mon, 28 Nov 2016 13:15:27 +0100 Message-Id: <1480335328-4010-2-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1480335328-4010-1-git-send-email-bgolaszewski@baylibre.com> References: <1480335328-4010-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" 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 711b9ad..d864f11 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 { @@ -235,3 +282,14 @@ &memctrl { status = "okay"; }; + +&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 4070619..5f4ba2e 100644 --- a/arch/arm/boot/dts/da850.dtsi +++ b/arch/arm/boot/dts/da850.dtsi @@ -454,6 +454,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 {