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: 84568 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp1560610qgi; Tue, 29 Nov 2016 03:57:29 -0800 (PST) X-Received: by 10.99.178.6 with SMTP id x6mr48938824pge.63.1480420649324; Tue, 29 Nov 2016 03:57:29 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 191si59496070pgb.332.2016.11.29.03.57.29; Tue, 29 Nov 2016 03:57:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933491AbcK2L50 (ORCPT + 25 others); Tue, 29 Nov 2016 06:57:26 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:34857 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755137AbcK2L5K (ORCPT ); Tue, 29 Nov 2016 06:57:10 -0500 Received: by mail-wm0-f41.google.com with SMTP id a197so234763505wmd.0 for ; Tue, 29 Nov 2016 03:57:09 -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=h3keceq2tWOcQS6PKCHK1wzW84AjGhKs/xy9EzQ7ilGJM5sq/rr9oXdiWwxvSsphdi 4HyPl9taJexGDbmPBCwERDz8ee0+HXAV2mLIKzKamZSfSzoZ4XSoD20vw7q7jmDPBXbT wBLixOPDuiZ7iZtlA0s627BAMp9ef57kxkk7Jaw4d68edXdFJeCr3+kbc+jH3ddUkvP7 eAc22P1JzdP609YwZoCTmBewP5LNf6IHBTSMPLfnJB7gRK3LcLpd1nG1/+6XJJxvtq3R OCAoqoWWqigweqP+9eX3Iw/9h3nYHjHe62cYMheqxcLjrz3lLGn3ad+lteTXx9WYml1O 4+jA== X-Gm-Message-State: AKaTC03zQZLSooy/iBGYrSSnYznUPupm1l4cNQvzT3atNqpkr1gvCLo3CLwxTB3yrjQxHTW7 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 Cc: LKML , arm-soc , linux-drm , linux-devicetree , Jyri Sarha , Tomi Valkeinen , David Airlie , Laurent Pinchart , Bartosz Golaszewski 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.9.3 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 {