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: 9449459 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 57398600CB for ; Mon, 28 Nov 2016 12:18:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 47CCA20453 for ; Mon, 28 Nov 2016 12:18:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3CD0027BFF; Mon, 28 Nov 2016 12:18:03 +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=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D619720453 for ; Mon, 28 Nov 2016 12:18:02 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cBKrM-00065R-PN; Mon, 28 Nov 2016 12:16:36 +0000 Received: from mail-wj0-x231.google.com ([2a00:1450:400c:c01::231]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cBKqh-0005Pf-7n for linux-arm-kernel@lists.infradead.org; Mon, 28 Nov 2016 12:15:57 +0000 Received: by mail-wj0-x231.google.com with SMTP id xy5so114050662wjc.0 for ; Mon, 28 Nov 2016 04:15:34 -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=mZ1MiOhFvksWItJo2D9DRp745aEJ6Tg+1OtIt+Hu6Kx+k09QCpnUM6lJuGXJI5UM0y NMHBa1xrrspI+UgJY+gkOsaH76fWGx0WDiviwdkqqHHVRB9KrpIab+p6iEYHKXYjy53D /LpazBzqz/xqnASm/rJH9W2E1xmzP8PP4oyBY4dF674+wD+KmY4xLS4vpf++MG3Z6Qyk oM99O5H3+V0djgOX400DyB4BSkblB+T+ssE7PmEIMD8XUUwLEDV9h4jW2RfQrcnzyoRd meDTa8Gr+Nf8OLsJkDR9Xy/PP01LXz4yRH99mW5S+cdRTUFxeOLKrK4WDT+TxPRPNIVj KwMA== X-Gm-Message-State: AKaTC01S42oQt/ECq8jpaNr3I50Uvq3uerhONU57LUKXl6u6bRKLmxEAlxoEctnVYwniwxgS 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161128_041555_677263_BDC1ECC0 X-CRM114-Status: GOOD ( 10.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-devicetree , David Airlie , LKML , linux-drm , Bartosz Golaszewski , Tomi Valkeinen , Jyri Sarha , arm-soc , Laurent Pinchart MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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 {