From patchwork Tue Mar 25 12:10:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 3887411 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4928C9F334 for ; Tue, 25 Mar 2014 12:11:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 77D12202B4 for ; Tue, 25 Mar 2014 12:11:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9C71D202AE for ; Tue, 25 Mar 2014 12:11:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753463AbaCYMLp (ORCPT ); Tue, 25 Mar 2014 08:11:45 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:53172 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753496AbaCYMLh (ORCPT ); Tue, 25 Mar 2014 08:11:37 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N2Z005P8R7BPK90@mailout1.w1.samsung.com>; Tue, 25 Mar 2014 12:11:35 +0000 (GMT) X-AuditID: cbfec7f4-b7f796d000005a13-93-53317277c144 Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 62.31.23059.77271335; Tue, 25 Mar 2014 12:11:35 +0000 (GMT) Received: from AMDC1061.digital.local ([106.116.147.88]) by eusync4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N2Z004ENR6YVE20@eusync4.samsung.com>; Tue, 25 Mar 2014 12:11:35 +0000 (GMT) From: Andrzej Hajda To: dri-devel@lists.freedesktop.org Cc: Andrzej Hajda , Marek Szyprowski , Kyungmin Park , Inki Dae , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Grant Likely , Thierry Reding , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND...), linux-samsung-soc@vger.kernel.org (moderated list:ARM/SAMSUNG ARM A...) Subject: [PATCH 3/3] ARM: dts: exynos4210-universal_c210: add proper panel node Date: Tue, 25 Mar 2014 13:10:36 +0100 Message-id: <1395749436-24697-4-git-send-email-a.hajda@samsung.com> X-Mailer: git-send-email 1.8.3.2 In-reply-to: <1395749436-24697-1-git-send-email-a.hajda@samsung.com> References: <1395749436-24697-1-git-send-email-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrNLMWRmVeSWpSXmKPExsVy+t/xa7rlRYbBBtdWCVjcWneO1WL+ESBx 5et7Nov+NwtZLQ782cFoce7VSkaLSfcnsFicbXrDbjHj/D4mi7VH7rJbLL1+kcliwvS1LBat e4+wW9z+zefA57Fm3hpGj8t9vUweK5d/YfPYtKqTzePOtT1sHve7jzN59Da/Y/Po27KK0ePz JrkAzigum5TUnMyy1CJ9uwSujD+HmtkLfotWLN7eydLAOF2gi5GTQ0LAROLs/gWsELaYxIV7 69m6GLk4hASWMkq0Tb3CCOH0MUm8mtnJDFLFJqAp8XfzTTYQW0RAWeLvxFWMIDazwD4WiZnH xUBsYQF/iScXV4LFWQRUJU6u2g62gVfAWaK9C2KOhICCxLIva4FsDg5OAReJ2ecUQcJCQCWN N9awTmDkXcDIsIpRNLU0uaA4KT3XUK84Mbe4NC9dLzk/dxMjJIC/7GBcfMzqEKMAB6MSD2+E sUGwEGtiWXFl7iFGCQ5mJRFewzDDYCHelMTKqtSi/Pii0pzU4kOMTBycUg2MAZxSzhxNxz4e F4pc+ebJA4aMw0vf7ajYYuhRa2u7oGFGKPefuSdVJIozC58fZPnu+PXc7m9zdx+69O9E//3Z +vm/rrvMZlqsqrZW4yW/e0hRyHQzrv6Fu5/PSrx1/jNv8KyCw+fs3G6f1Bb8VaU6X7F9xkeP HPdnsQVm122632yetkMvU+vPAyWW4oxEQy3mouJEAD2WYKk+AgAA Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch replaces panel bindings for panel initialized by boot loader with bindings to proper ld9040 panel. Signed-off-by: Andrzej Hajda --- arch/arm/boot/dts/exynos4210-universal_c210.dts | 71 +++++++++++++++++++------ 1 file changed, 54 insertions(+), 17 deletions(-) diff --git a/arch/arm/boot/dts/exynos4210-universal_c210.dts b/arch/arm/boot/dts/exynos4210-universal_c210.dts index 477208d..0a80a72 100644 --- a/arch/arm/boot/dts/exynos4210-universal_c210.dts +++ b/arch/arm/boot/dts/exynos4210-universal_c210.dts @@ -225,7 +225,6 @@ regulator-name = "VLCD+VMIPI_1.8V"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; - regulator-always-on; }; ldo8_reg: LDO8 { @@ -289,7 +288,6 @@ regulator-name = "VCC_3.0V_LCD"; regulator-min-microvolt = <3000000>; regulator-max-microvolt = <3000000>; - regulator-always-on; }; buck1_reg: BUCK1 { @@ -347,27 +345,66 @@ }; }; + spi-lcd { + compatible = "spi-gpio"; + #address-cells = <1>; + #size-cells = <0>; + + gpio-sck = <&gpy3 1 0>; + gpio-mosi = <&gpy3 3 0>; + num-chipselects = <1>; + cs-gpios = <&gpy4 3 0>; + + lcd@0 { + compatible = "samsung,ld9040"; + reg = <0>; + vdd3-supply = <&ldo7_reg>; + vci-supply = <&ldo17_reg>; + reset-gpios = <&gpy4 5 0>; + spi-max-frequency = <1200000>; + spi-cpol; + spi-cpha; + power-on-delay = <10>; + reset-delay = <10>; + panel-width-mm = <90>; + panel-height-mm = <154>; + display-timings { + timing { + clock-frequency = <23492370>; + hactive = <480>; + vactive = <800>; + hback-porch = <16>; + hfront-porch = <16>; + vback-porch = <2>; + vfront-porch = <28>; + hsync-len = <2>; + vsync-len = <1>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <0>; + pixelclk-active = <0>; + }; + }; + port { + lcd_ep: endpoint { + remote-endpoint = <&fimd_dpi_ep>; + }; + }; + }; + }; + fimd: fimd@11c00000 { pinctrl-0 = <&lcd_clk>, <&lcd_data24>; pinctrl-names = "default"; status = "okay"; samsung,invert-vden; samsung,invert-vclk; - display-timings { - timing { - clock-frequency = <23492370>; - hactive = <480>; - vactive = <800>; - hback-porch = <16>; - hfront-porch = <16>; - vback-porch = <2>; - vfront-porch = <28>; - hsync-len = <2>; - vsync-len = <1>; - hsync-active = <0>; - vsync-active = <0>; - de-active = <0>; - pixelclk-active = <0>; + #address-cells = <1>; + #size-cells = <0>; + port@3 { + reg = <3>; + fimd_dpi_ep: endpoint { + remote-endpoint = <&lcd_ep>; }; }; };