From patchwork Fri Mar 10 04:32:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 9614601 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 0FA9660414 for ; Fri, 10 Mar 2017 04:33:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 02E2C285A9 for ; Fri, 10 Mar 2017 04:33:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EBF08286EF; Fri, 10 Mar 2017 04:33:58 +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=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 86E83285A9 for ; Fri, 10 Mar 2017 04:33:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BEC016ECEA; Fri, 10 Mar 2017 04:33:57 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qk0-x230.google.com (mail-qk0-x230.google.com [IPv6:2607:f8b0:400d:c09::230]) by gabe.freedesktop.org (Postfix) with ESMTPS id 549E46ECEA for ; Fri, 10 Mar 2017 04:33:56 +0000 (UTC) Received: by mail-qk0-x230.google.com with SMTP id p64so152217798qke.1 for ; Thu, 09 Mar 2017 20:33:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lKkbL+e4C0GbrSaUIK3SyWW1nMExi7+rIElaANRtQUA=; b=kxrplFZEzS5JqasIQ9VVa0Zm7ON7RdTKfpU36/yoYfGGrR1SZdZzWgu8fifwXl4eGe FkPypAT4EN9NdVIqhzEVewIHovOh0h7jQ1mqvoiv0DNrP4ctDw4KF+u0pTq/oGksNQrS pH6lCdO+8XHGZcroIXjBe/tTq7XnQ01c1O9vQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lKkbL+e4C0GbrSaUIK3SyWW1nMExi7+rIElaANRtQUA=; b=mHCH0zjkZedqd81F0i7THTqt8dFWItAMxXkfnQVcwfp009DY07Y4XjPZJxoZgJFt5i 5xQ6yvGa5sKL5MZtU3TPL9sH7t3dM6ELbZughBumviEB6g38jAf/SaBwpvHgfn3WT23a OsPuL1OVTncmIr0uHcMRnO86grzakH9D6ecux9j8/slk/QdKPA2mR+wY01umIHfc9eIo mepPQFyUHU84GPiNX995uYalF4sVjaGVT7r4rSrD0JJzFLSlYAa6KhhVaAHQQDEFWp4L 3aeIXjttLKZZq67EPeVup74X3pPKBUx8900Oq+Bva/In7HeJvKy4pouecOktnjXLwErR pp9g== X-Gm-Message-State: AFeK/H2sYl10qYgxk4RSLBopGS3PBMH0vYLD+B2t5tPdUHGcabHI3pXZT2sN0cTAv7Ypubpr X-Received: by 10.55.56.131 with SMTP id f125mr18142746qka.203.1489120435366; Thu, 09 Mar 2017 20:33:55 -0800 (PST) Received: from boxwood.roam.corp.google.com (cpe-75-189-128-87.nc.res.rr.com. [75.189.128.87]) by smtp.gmail.com with ESMTPSA id n19sm5697731qtn.35.2017.03.09.20.33.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Mar 2017 20:33:54 -0800 (PST) From: Sean Paul To: linux-rockchip@lists.infradead.org, dri-devel@lists.freedesktop.org Subject: [PATCH 01/41] drm/panel: simple: Change mode for Sharp lq123p1jx31 Date: Thu, 9 Mar 2017 23:32:16 -0500 Message-Id: <20170310043305.17216-2-seanpaul@chromium.org> X-Mailer: git-send-email 2.12.0.246.ga2ecc84866-goog In-Reply-To: <20170310043305.17216-1-seanpaul@chromium.org> References: <20170310043305.17216-1-seanpaul@chromium.org> MIME-Version: 1.0 Cc: Chris Zhong , =?UTF-8?q?St=C3=A9phane=20Marchesin?= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Change the mode for Sharp lq123p1jx31 panel to something more rockchip-friendly such that we can use the fixed PLLs to generate the pixel clock Cc: Chris Zhong Cc: Stéphane Marchesin Signed-off-by: Sean Paul --- drivers/gpu/drm/panel/panel-simple.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 89eb0422821c..787b4d143220 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1598,17 +1598,18 @@ static const struct panel_desc sharp_lq101k1ly04 = { }; static const struct drm_display_mode sharp_lq123p1jx31_mode = { - .clock = 252750, + .clock = 266667, .hdisplay = 2400, .hsync_start = 2400 + 48, .hsync_end = 2400 + 48 + 32, - .htotal = 2400 + 48 + 32 + 80, + .htotal = 2400 + 48 + 32 + 139, .vdisplay = 1600, .vsync_start = 1600 + 3, .vsync_end = 1600 + 3 + 10, - .vtotal = 1600 + 3 + 10 + 33, + .vtotal = 1600 + 3 + 10 + 84, .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, + .type = DRM_MODE_TYPE_PREFERRED | DRM_MODE_TYPE_DRIVER, }; static const struct panel_desc sharp_lq123p1jx31 = {