From patchwork Fri Jun 10 16:50:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 9170109 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 EAA98604DB for ; Fri, 10 Jun 2016 16:50:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DB14028319 for ; Fri, 10 Jun 2016 16:50:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CFE6128342; Fri, 10 Jun 2016 16:50:53 +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]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9722228319 for ; Fri, 10 Jun 2016 16:50:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5CBB86EDC5; Fri, 10 Jun 2016 16:50:50 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-x22f.google.com (mail-pa0-x22f.google.com [IPv6:2607:f8b0:400e:c03::22f]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1FE446EDC4 for ; Fri, 10 Jun 2016 16:50:48 +0000 (UTC) Received: by mail-pa0-x22f.google.com with SMTP id hl6so25041298pac.2 for ; Fri, 10 Jun 2016 09:50:48 -0700 (PDT) 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; bh=ceLSTna8Wb85FMgBIu5H7+3jOePdWttve4rHeOZB2GQ=; b=ELPxUNUS4RXzloprF22mGUOJZ+TC+bSfuIx5G9T3t8BBuD7Q1P2xK4YHyobXgRnkcc q4UGAOXkT8Pa5qaJKFR8Liav61M+DC8bUNtKQHtt6En3fAxV33Z0Z9EZnC9qg7tZFH2f 4JBgPM5prIZI0jW/Rh5u0o8XqBn/rUlc8qo4I= 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=ceLSTna8Wb85FMgBIu5H7+3jOePdWttve4rHeOZB2GQ=; b=c2TeMZtHo8SaC28CUedl35XNB5UGQqxXdb6feOljF+r819t8cAh85BFOQ+lYJfA8OQ GcIJmKmgYduR152hBCCjIHFDhBj9odGzuZV2ovfSjmoU/EOXnFFXAVnDK9NT+F7mBIwr q4WMAflmLlr0MIzYHi7s14cKoJjSzINKMy+0n1i2TTtCk41LlYE5BMoDNYsqNGoXTIeM zq4gDhu2EogWaQhu8FQ3LeQeppxdA4+1MDkybBH3HHbt1QLJISIA7uwlmlY2CGnf5fjX 6OYZcVWyNtKJ+C6uFhgi7NUGJjwzBXkhpaUtL56/89PBbbErg0S9dnjX834iI+TZnyGR 8NXA== X-Gm-Message-State: ALyK8tIJIuMhBnFJXv7aiBOudnlhHDay+Ln0yY4d/rYQOPWMcgKTZtuxmu9/DhXBkoRQ4sms X-Received: by 10.66.180.49 with SMTP id dl17mr3337709pac.131.1465577447252; Fri, 10 Jun 2016 09:50:47 -0700 (PDT) Received: from tictac.mtv.corp.google.com ([172.22.65.76]) by smtp.gmail.com with ESMTPSA id an13sm18861676pac.42.2016.06.10.09.50.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 10 Jun 2016 09:50:46 -0700 (PDT) From: Douglas Anderson To: thierry.reding@gmail.com Subject: [PATCH 2/2] drm/panel: simple: Add support for Starry KR122EA0SRA 1920x1200 panel Date: Fri, 10 Jun 2016 09:50:31 -0700 Message-Id: <1465577431-20600-2-git-send-email-dianders@chromium.org> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 In-Reply-To: <1465577431-20600-1-git-send-email-dianders@chromium.org> References: <1465577431-20600-1-git-send-email-dianders@chromium.org> Cc: robh+dt@kernel.org, Douglas Anderson , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org 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: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP The Starry KR122EA0SRA is a 12.2", 1920x1200 TFT-LCD panel connected using eDP interfaces. EDID shows: Detailed mode: Clock 147.000 MHz, 263 mm x 164 mm 1920 1936 1952 1984 hborder 0 1200 1215 1217 1235 vborder 0 -hsync -vsync Manufacturer-specified data, tag 15 ASCII string: STARRY ASCII string: KR122EA0SRA Signed-off-by: Douglas Anderson --- drivers/gpu/drm/panel/panel-simple.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 3a7bdf1c842b..659a963f7bce 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1293,6 +1293,29 @@ static const struct panel_desc shelly_sca07010_bfn_lnn = { .bus_format = MEDIA_BUS_FMT_RGB666_1X18, }; +static const struct drm_display_mode starry_kr122ea0sra_mode = { + .clock = 147000, + .hdisplay = 1920, + .hsync_start = 1920 + 16, + .hsync_end = 1920 + 16 + 16, + .htotal = 1920 + 16 + 16 + 32, + .vdisplay = 1200, + .vsync_start = 1200 + 15, + .vsync_end = 1200 + 15 + 2, + .vtotal = 1200 + 15 + 2 + 18, + .vrefresh = 60, + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, +}; + +static const struct panel_desc starry_kr122ea0sra = { + .modes = &starry_kr122ea0sra_mode, + .num_modes = 1, + .size = { + .width = 263, + .height = 164, + }, +}; + static const struct drm_display_mode tpk_f07a_0102_mode = { .clock = 33260, .hdisplay = 800, @@ -1490,6 +1513,9 @@ static const struct of_device_id platform_of_match[] = { .compatible = "shelly,sca07010-bfn-lnn", .data = &shelly_sca07010_bfn_lnn, }, { + .compatible = "starry,kr122ea0sra", + .data = &starry_kr122ea0sra, + }, { .compatible = "tpk,f07a-0102", .data = &tpk_f07a_0102, }, {