From patchwork Tue Nov 29 11:57:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 9451825 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 4CF826071C for ; Tue, 29 Nov 2016 11:57:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E93E282E2 for ; Tue, 29 Nov 2016 11:57:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2FC1C2831C; Tue, 29 Nov 2016 11:57:23 +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 C7200282E2 for ; Tue, 29 Nov 2016 11:57:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3CD8E6E2B2; Tue, 29 Nov 2016 11:57:20 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x235.google.com (mail-wm0-x235.google.com [IPv6:2a00:1450:400c:c09::235]) by gabe.freedesktop.org (Postfix) with ESMTPS id 36F496E2B2 for ; Tue, 29 Nov 2016 11:57:10 +0000 (UTC) Received: by mail-wm0-x235.google.com with SMTP id u144so46914465wmu.1 for ; Tue, 29 Nov 2016 03:57:10 -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=DUxQ5cGrP06vDDwkyY3DBot7pSMvIAf/Zx4W+PxWWGl7ob/iGYlulcSGiov23gFKu+ NHJgLmXNnXP6XEoVQzMoAwMhDlJ17znw1RjU/LKTMrVztC0ai/e2gJvkXc++56fk0f+N yjMSVKd1viezjPiy6oGwzHXd8M8yA0fhROKSCiQYRM8BMqw+KsiPEXObKvWTC8MVATQ9 P7I5Ui865HRgC/oDCC+tmPm7RoydnxPoWDwkF5u5HGaqLU+Evt7Ab18aqToJXn5z/uYo 29ANWlpeAMah2nYRt4YJUTEMTHki0Bp2u+daWN/9te2G/7Z3ikGHb+ZeHxGwNecCX/j+ FwZQ== 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=TaYqdcvo4CPeBbvIep9V+kBIr+kp9qpZ2HXObGfL6/ix4BscMIC2TauflMUIrHj77c qXOuCFOC1/CKXR/Kp8451pNa/HM694A2HOHueMH++qo2bN2RHqzgkV7+p24wbixw711g llKCBpUG0g+EEgncJzOJuouKBVe9YpSWQbnqKR1Mu866NI6Td6LEyrcPhYiRr23toT7G 6sAq6CNLXXhDhEbdfzq+66IjLpponD7F6UmrkD3Prb0PBgxgYb/pajKYZkrRqlDh/dW1 dJUk10fZ2CmUCefdvZcusLfxqCwTL3djFpaF8opmsKaWWinfj9FN1cx4iGrRPZHoGNNV FfKg== X-Gm-Message-State: AKaTC03RJ/ARzb0Xn9wihOf6OdMXigJ+8oswdl/BSn94eBDv8vg+m0ibdkXVxzPBoF473jbo X-Received: by 10.28.57.197 with SMTP id g188mr22598950wma.26.1480420628551; Tue, 29 Nov 2016 03:57:08 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id ba10sm67351886wjb.32.2016.11.29.03.57.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 29 Nov 2016 03:57:08 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Michael Turquette , Sekhar Nori , Rob Herring , Frank Rowand , Mark Rutland , Peter Ujfalusi , Russell King Subject: [PATCH v3 1/2] ARM: dts: da850-lcdk: add the dumb-vga-dac node Date: Tue, 29 Nov 2016 12:57:03 +0100 Message-Id: <1480420624-23544-2-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1480420624-23544-1-git-send-email-bgolaszewski@baylibre.com> References: <1480420624-23544-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 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 {