From patchwork Wed Jul 25 15:46:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 10544203 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7E74B9093 for ; Wed, 25 Jul 2018 15:47:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6FD232A50F for ; Wed, 25 Jul 2018 15:47:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 640D52A510; Wed, 25 Jul 2018 15:47:06 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 106002A50F for ; Wed, 25 Jul 2018 15:47:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728579AbeGYQ7T (ORCPT ); Wed, 25 Jul 2018 12:59:19 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:50598 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728557AbeGYQ7T (ORCPT ); Wed, 25 Jul 2018 12:59:19 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20180725154704euoutp025ddc1cd691f1f866806829e42d81218d~EpzYyu0g60353903539euoutp02j; Wed, 25 Jul 2018 15:47:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180725154704euoutp025ddc1cd691f1f866806829e42d81218d~EpzYyu0g60353903539euoutp02j DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1532533624; bh=qQsNGsZ+fFPnLQCxSYLDKqTW4Ge1KEA++/Y3uEub8T4=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=NK4XwZvVA6mEUZ14sqvRRh/GWPCjtL9rhJ/YOOW/Ssm4lS0/ReVBIJcGTOutsTY7U WBLF2+ZAYMLVT97PzcBxkCCMbhcU1n66DKj0CdLXRUIHUcRUdVKtG7JAxbZGyERWHp sGs+7Q7PkGqRZRLxrBxKDVyqeamqitaTeQ+pZo4M= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180725154703eucas1p14945018c0e3a5557f755144af2a04644~EpzYMnLrB1246612466eucas1p14; Wed, 25 Jul 2018 15:47:03 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 5C.40.05751.77B985B5; Wed, 25 Jul 2018 16:47:03 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180725154703eucas1p1e07c626c26a574ab19a8c0d73eacc1c3~EpzXeQmYl0824908249eucas1p1D; Wed, 25 Jul 2018 15:47:03 +0000 (GMT) X-AuditID: cbfec7f4-c47ff70000001677-af-5b589b77a91a Received: from eusync4.samsung.com ( [203.254.199.214]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 0E.B1.04183.67B985B5; Wed, 25 Jul 2018 16:47:02 +0100 (BST) Received: from AMDC2768.DIGITAL.local ([106.120.43.17]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PCF00M07IIAVC60@eusync4.samsung.com>; Wed, 25 Jul 2018 16:47:02 +0100 (BST) From: Andrzej Hajda To: dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org, Inki Dae Cc: Andrzej Hajda , Bartlomiej Zolnierkiewicz , Marek Szyprowski , Maciej Purski , Rob Herring , Thierry Reding , Krzysztof Kozlowski , Archit Taneja , Laurent Pinchart Subject: [PATCH v5 8/9] drm/panel: simple: fix BOE/HV070WSA-100 timings Date: Wed, 25 Jul 2018 17:46:43 +0200 Message-id: <20180725154644.25412-9-a.hajda@samsung.com> X-Mailer: git-send-email 2.18.0 In-reply-to: <20180725154644.25412-1-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrNIsWRmVeSWpSXmKPExsWy7djP87rlsyOiDWael7W4te4cq0VTx1tW i40z1rNaXPn6ns1i0v0JLBbnz29gt+icuITdYsb5fUwWC17eYrFYe+Quu0Xr3iPsFj93zWNx 4PG43NfL5LFz1l12j9kdM1k9Nq3qZPO4332cyaNvyypGj8+b5ALYo7hsUlJzMstSi/TtErgy Tv+bzVbQyllxaP1+pgbGiexdjJwcEgImEvPeTGYDsYUEVjBK3G606GLkArI/M0psv7+fDaZo 2vU2VojEMkaJVVMfMkM4/xklvvcvZQapYhPQlPi7+SZYh4hApsSGgwvZQYqYBXqYJVYtXwqW EBZwl+hY8J8RxGYRUJU4tX4SE4jNK2AhsebEARaIdfISD4+3g9VwClhKXNl/iA1kkITADjaJ 721ngO7gAHJcJKb8M4WoF5Z4dXwL1D8yEpcnd0PNqZdomnmFGaK3g1HixOLlUP9YSxw+fpEV xGYW4JOYtG06M8RMXomONiEI00Nix/cqiCd7GCWen/rCPIFRcgEjwypG8dTS4tz01GKjvNRy veLE3OLSvHS95PzcTYzAKD797/iXHYy7/iQdYhTgYFTi4f1oFx4txJpYVlyZe4hRgoNZSYTX 5TBQiDclsbIqtSg/vqg0J7X4EKM0B4uSOK+0T0S0kEB6YklqdmpqQWoRTJaJg1OqgVHkR90P 4/uaMbvzy1rUMxb6rby2ePKskjumbf/uT9z4y7jOhvdvXNhHiay3afzcc2uV+QI1wpfVpOQs XDy/ZoHlZl4rSx2OqpCY8nUb/zC2b7xlVLKnf/3NrF2Mm5Ur152p+pBieKA4d92BZb4pXn7P FmwQWs4Y06fPd4uxeGZt9TrdNYq/eJRYijMSDbWYi4oTAZl6bZXeAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrFLMWRmVeSWpSXmKPExsVy+t/xa7plsyOiDS43WlrcWneO1aKp4y2r xcYZ61ktrnx9z2Yx6f4EFovz5zewW3ROXMJuMeP8PiaLBS9vsVisPXKX3aJ17xF2i5+75rE4 8Hhc7utl8tg56y67x+yOmawem1Z1snnc7z7O5NG3ZRWjx+dNcgHsUVw2Kak5mWWpRfp2CVwZ p//NZito5aw4tH4/UwPjRPYuRk4OCQETiWnX21i7GLk4hASWMErc33+GCcJpZJJYunkXK0gV m4CmxN/NN9lAbBGBTIlLa1uZQWxmgT5miRUH1UBsYQF3iY4F/xlBbBYBVYlT6ycxgdi8AhYS a04cYIHYJi/x8Hg7WA2ngKXElf2HwGYKAdUc2LiObQIjzwJGhlWMIqmlxbnpucVGesWJucWl eel6yfm5mxiBIbjt2M8tOxi73gUfYhTgYFTi4b0wMyJaiDWxrLgy9xCjBAezkgivy+HwaCHe lMTKqtSi/Pii0pzU4kOM0hwsSuK85w0qo4QE0hNLUrNTUwtSi2CyTBycUg2MG0Tt/LW081Pm ya4JPxt3f/8Wy80h9rNlO7boiq2TW3R/9UKR6IRol5h5V6oWZzq/D7x6eOMa9/vpguy3v37v 5ngQ3aTym8lCMfV3dt2iOruY1ve/30wwXOot/3fD11KJKRYddlyHtzb1zDF4xv6yqH5qefey hEs17w9nxm/7GhJYsaS12PyrEktxRqKhFnNRcSIAHCuDSD0CAAA= X-CMS-MailID: 20180725154703eucas1p1e07c626c26a574ab19a8c0d73eacc1c3 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180725154703eucas1p1e07c626c26a574ab19a8c0d73eacc1c3 References: <20180725154644.25412-1-a.hajda@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Panel timings were taken from vendor code and are not fully correct - refresh rate is about 50Hz instead of 60Hz. The patch fixes it. Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/panel/panel-simple.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index d5da58d5c9b1..a2226a3d2887 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -746,15 +746,15 @@ static const struct panel_desc avic_tm070ddh03 = { }; static const struct drm_display_mode boe_hv070wsa_mode = { - .clock = 40800, + .clock = 42105, .hdisplay = 1024, - .hsync_start = 1024 + 90, - .hsync_end = 1024 + 90 + 90, - .htotal = 1024 + 90 + 90 + 90, + .hsync_start = 1024 + 30, + .hsync_end = 1024 + 30 + 30, + .htotal = 1024 + 30 + 30 + 30, .vdisplay = 600, - .vsync_start = 600 + 3, - .vsync_end = 600 + 3 + 4, - .vtotal = 600 + 3 + 4 + 3, + .vsync_start = 600 + 10, + .vsync_end = 600 + 10 + 10, + .vtotal = 600 + 10 + 10 + 10, .vrefresh = 60, };