From patchwork Tue Mar 25 12:10:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 3887371 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1BBC5BF540 for ; Tue, 25 Mar 2014 12:11:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2C046202EC for ; Tue, 25 Mar 2014 12:11:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5C19E202FE for ; Tue, 25 Mar 2014 12:11:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753508AbaCYMLi (ORCPT ); Tue, 25 Mar 2014 08:11:38 -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 S1753495AbaCYMLg (ORCPT ); Tue, 25 Mar 2014 08:11:36 -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 <0N2Z005P6R7APK90@mailout1.w1.samsung.com>; Tue, 25 Mar 2014 12:11:34 +0000 (GMT) X-AuditID: cbfec7f4-b7f796d000005a13-8b-533172763142 Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id DE.21.23059.67271335; Tue, 25 Mar 2014 12:11:34 +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:33 +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 1/3] panel/ld9040: add DT bindings Date: Tue, 25 Mar 2014 13:10:34 +0100 Message-id: <1395749436-24697-2-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/xa7plRYbBBkvXMFrcWneO1WL+ESBx 5et7Nov+NwtZLQ782cFoce7VSkaLSfcnsFicbXrDbjHj/D4mi7VH7rJbLL1+kcliwvS1LBat e4+wW9z+zefA57Fm3hpGj8t9vUweK5d/YfPYtKqTzePOtT1sHve7jzN59Da/Y/Po27KK0ePz JrkAzigum5TUnMyy1CJ9uwSujIPvj7IXTBep+PX8MmsD41yBLkZODgkBE4mXT68xQ9hiEhfu rWfrYuTiEBJYyijx7fg3Zginj0liwpduFpAqNgFNib+bb7KB2CICyhJ/J65iBLGZBfaxSMw8 LgZiCwsYSazbshushkVAVWLnkg9MIDavgLPE1EX7oLYpSCz7shbI5uDgFHCRmH1OESQsBFTS eGMN6wRG3gWMDKsYRVNLkwuKk9JzDfWKE3OLS/PS9ZLzczcxQgL4yw7GxcesDjEKcDAq8fBG GBsEC7EmlhVX5h5ilOBgVhLhNQwzDBbiTUmsrEotyo8vKs1JLT7EyMTBKdXAqLhucs42t7sS 29O/P87XP2O4cMWKRStdjP3S25/r/Jxm354Z/uikWKtsme27Vjetiy97lZ1uiofsrVGzOPlj Uc7+3UobLr+uE1RWmBBx1St0gbXGWsmO+PL+Zdvu9by+myYtplAa1WUT07ik5/e1Ut5zLCkd i+2b7hiZBBrfvvHcR0T4YYmREktxRqKhFnNRcSIALUgaWj4CAAA= 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 The patch adds bindings for ld9040 panel. Bindings describe panel resources, boot delays, display timings and physical size. Signed-off-by: Andrzej Hajda --- .../devicetree/bindings/panel/samsung,ld9040.txt | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 Documentation/devicetree/bindings/panel/samsung,ld9040.txt diff --git a/Documentation/devicetree/bindings/panel/samsung,ld9040.txt b/Documentation/devicetree/bindings/panel/samsung,ld9040.txt new file mode 100644 index 0000000..07c36c3 --- /dev/null +++ b/Documentation/devicetree/bindings/panel/samsung,ld9040.txt @@ -0,0 +1,66 @@ +Samsung LD9040 AMOLED LCD parallel RGB panel with SPI control bus + +Required properties: + - compatible: "samsung,ld9040" + - reg: address of the panel on SPI bus + - vdd3-supply: core voltage supply + - vci-supply: voltage supply for analog circuits + - reset-gpios: a GPIO spec for the reset pin + - display-timings: timings for the connected panel according to [1] + +The panel must obey rules for SPI slave device specified in document [2]. + +Optional properties: + - power-on-delay: delay after turning regulators on [ms] + - reset-delay: delay after reset sequence [ms] + - panel-width-mm: physical panel width [mm] + - panel-height-mm: physical panel height [mm] + +The device node can contain one 'port' child node with one child +'endpoint' node, according to the bindings defined in [3]. This +node should describe panel's video bus. + +[1]: Documentation/devicetree/bindings/video/display-timing.txt +[2]: Documentation/devicetree/bindings/spi/spi-bus.txt +[3]: Documentation/devicetree/bindings/media/video-interfaces.txt + +Example: + + 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>; + }; + }; + };