From patchwork Fri Nov 25 09:11:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 9446993 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 9F8426071C for ; Fri, 25 Nov 2016 09:12:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 816B927FA8 for ; Fri, 25 Nov 2016 09:12:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 762B527FBB; Fri, 25 Nov 2016 09:12:10 +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 D20E827FA8 for ; Fri, 25 Nov 2016 09:12:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EABF26EB98; Fri, 25 Nov 2016 09:12:04 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wj0-x22a.google.com (mail-wj0-x22a.google.com [IPv6:2a00:1450:400c:c01::22a]) by gabe.freedesktop.org (Postfix) with ESMTPS id 990216EB98 for ; Fri, 25 Nov 2016 09:12:03 +0000 (UTC) Received: by mail-wj0-x22a.google.com with SMTP id xy5so53247433wjc.0 for ; Fri, 25 Nov 2016 01:12:03 -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; bh=hb3OUlf2wkdvNJgKgapdOLDsBvFpz0bViMHKefwtKU8=; b=jpKmhRucV512RCKKxiIltESeL4KoyH9L03IgYVGh8eayZEyM0FSsHzOXzixEkThggv aLqPlYepf8hRLkj4KF/gkHtTix8lOzo4OnvEcgTtk4piHPfxe9F4/zdDqdrf622+hiCB gb9w4x9Lni9z1WExgAKXRN6zRVxqiaqskW18Wf/cmOHeBo0HuxuQHvRwBiuSgc2JtIBq 3VLCCjHZME5GzR2mKHNN4ZdDQAoocM4i2v8nGXzxV2sMbRbzguXPAAw8tJ+KzNLg9ESH 7F1XM65SrSd7zLeGX1gbxav10pbU/0S9+9X9G3LihY6JbN1Z8kgL0RFG3tOgP+fkuh6y igVw== 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; bh=hb3OUlf2wkdvNJgKgapdOLDsBvFpz0bViMHKefwtKU8=; b=R1jJ2RVROOxbHIEn02GWctVHLuwfufBv5iioNTdgEwa+Sw1UvA/clsUcDOFDVVvwSd VsfgC6Bz/73MH9R1m8niCnq505WNjNQy+EWvikoJcFov8dAXsIiBHcH0fyc9JEXOXsKi yMSoTX1nsPYc9l2yqOb5dhu0D4dsYqw7u/+IU8VwGZyUNgyABxS82RJ3PLSOV+EN+58p uY0QahoSf/4o0MythJODDkCak0T1zkABWp51X3t/zHgmkiaeqxYNBmymxzfRZJvR6L5K iDiTj3RGzJKG/IP11AN28oFhdyHGyWF6+ffBvFe2hrm775Lk5aJzoF786JXq8aS5bwmg ftRQ== X-Gm-Message-State: AKaTC03T0++Xlvh2WlpP219QGPajEusv7e0p00V7S2Ki6xGzOllG8DEY83/hH//yDLX4sHbO X-Received: by 10.194.8.226 with SMTP id u2mr6321933wja.91.1480065122110; Fri, 25 Nov 2016 01:12:02 -0800 (PST) Received: from bgdev-debian.lan (jua06-1-82-242-157-225.fbx.proxad.net. [82.242.157.225]) by smtp.gmail.com with ESMTPSA id d64sm12400272wmh.3.2016.11.25.01.12.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 Nov 2016 01:12:01 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Michael Turquette , Sekhar Nori , Rob Herring , Frank Rowand , Mark Rutland , Peter Ujfalusi , Russell King Subject: [PATCH] ARM: da850-lcdk: add the dumb-vga-dac node Date: Fri, 25 Nov 2016 10:11:53 +0100 Message-Id: <1480065113-2443-1-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 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 7b8ab21..c5d3a2b 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 { @@ -219,3 +266,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 36066fa..6ab8df1 100644 --- a/arch/arm/boot/dts/da850.dtsi +++ b/arch/arm/boot/dts/da850.dtsi @@ -442,6 +442,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 {