From patchwork Mon Jul 8 16:58:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeffrey Hugo X-Patchwork-Id: 11036377 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 A1C3C14E5 for ; Tue, 9 Jul 2019 07:02:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 91C4E28684 for ; Tue, 9 Jul 2019 07:02:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 863AA286A2; Tue, 9 Jul 2019 07:02:04 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 40E782868D for ; Tue, 9 Jul 2019 07:02:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4DF7D897EF; Tue, 9 Jul 2019 07:01:47 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6EF2689C6C for ; Mon, 8 Jul 2019 16:58:16 +0000 (UTC) Received: by mail-pl1-x643.google.com with SMTP id a93so8588224pla.7 for ; Mon, 08 Jul 2019 09:58:16 -0700 (PDT) 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; bh=T1w86HYowDLmCMH8t5cBhr+6c2jCirc20RP6wN4si70=; b=ks/shXsmdmVM7/f+2RBmYDHdVpN8LeAD5b3TTUal7ARmltLo50zKH0iQIZnjF33uCu jwO3qGJvbf/DJjTvzGwgrX6rr8RYp3YN9IJecUNyl3t2ZrBE4b8S6c/C1AjEPQg0GeVD DM6Wn2jcbivE5NSMIvtJg9CJoS2TqQM40ZRrd0SSVLzUP94nYlattTKZBUIMChGLte8B exY6HkgDRnVAo8I0XDnKhrABfutbuWc58VnrsLQKnK3aw64sm88LKnhrrkDRG4vKnUdq YnQyDT+aKDj71C55HiW+y8FR3r9an0IpgnBNSGDlcrvCfTNu6YmtS3wzInDaoGwN9GL7 AdfQ== X-Gm-Message-State: APjAAAVsENr0R4/xxjudruBcAY5zVTPW1XJlghaWMpNPQB77cgmAE8lU m2/cqd4a2sQRTIMOpM8mjYQ= X-Google-Smtp-Source: APXvYqyFG3Gc3x/EWlA+SYYdLs8gzBuzL0sMqRKNFy/azUlajXonAhGrBaf2rrvEJ6mwe/wrQGrUCg== X-Received: by 2002:a17:902:f089:: with SMTP id go9mr26326216plb.81.1562605096151; Mon, 08 Jul 2019 09:58:16 -0700 (PDT) Received: from aw-bldr-10.qualcomm.com (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id z13sm66698pjn.32.2019.07.08.09.58.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Jul 2019 09:58:15 -0700 (PDT) From: Jeffrey Hugo To: thierry.reding@gmail.com, sam@ravnborg.org, airlied@linux.ie, daniel@ffwll.ch Subject: [PATCH v2 2/2] drm/panel: simple: Add support for Sharp LD-D5116Z01B panel Date: Mon, 8 Jul 2019 09:58:11 -0700 Message-Id: <20190708165811.46370-1-jeffrey.l.hugo@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190708165647.46224-1-jeffrey.l.hugo@gmail.com> References: <20190708165647.46224-1-jeffrey.l.hugo@gmail.com> X-Mailman-Approved-At: Tue, 09 Jul 2019 07:01:45 +0000 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=T1w86HYowDLmCMH8t5cBhr+6c2jCirc20RP6wN4si70=; b=WRYTWK7F5Ug23w8882zblyMsDIYjkcH4ACBYvdFKP4HL+HoJF1SflMX5UPfAE18J9s HOCDZ+7FN/A8VyoDiR58OWig3Sbj4SSt6eO+ZgLGUnQlHF1VlI0ye9BaFZ9w3O9mNoDd V8D64/xzPpIE0ptFL9EASiMiMRdaXsOXqu3JeLfO6kTmqz128xjw4FWNo1nnm3UWV1Wr 6hm6o3QWjC+zTUMjI5GtOmVAFivpp6vN/fh8mcTxXOFDwzAzgHovj/Zr4Jhp1+RVNM/I 8vdtJYAdy18AzDQOw4OpGLMLqr4FMX78KI5jjJHg9k39D4D5HVsKIOxogpqEwR/B3v30 K27A== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, Jeffrey Hugo , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, bjorn.andersson@linaro.org, robh+dt@kernel.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP The Sharp LD-D5116Z01B is a 12.3" eDP panel with a 1920X1280 resolution. Signed-off-by: Jeffrey Hugo Reviewed-by: Sam Ravnborg --- drivers/gpu/drm/panel/panel-simple.c | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 5a93c4edf1e4..a8808b13c370 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -2354,6 +2354,32 @@ static const struct panel_desc samsung_ltn140at29_301 = { }, }; +static const struct drm_display_mode sharp_ld_d5116z01b_mode = { + .clock = 168480, + .hdisplay = 1920, + .hsync_start = 1920 + 48, + .hsync_end = 1920 + 48 + 32, + .htotal = 1920 + 48 + 32 + 80, + .vdisplay = 1280, + .vsync_start = 1280 + 3, + .vsync_end = 1280 + 3 + 10, + .vtotal = 1280 + 3 + 10 + 57, + .vrefresh = 60, + .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, +}; + +static const struct panel_desc sharp_ld_d5116z01b = { + .modes = &sharp_ld_d5116z01b_mode, + .num_modes = 1, + .bpc = 8, + .size = { + .width = 260, + .height = 120, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, + .bus_flags = DRM_BUS_FLAG_DATA_MSB_TO_LSB, +}; + static const struct drm_display_mode sharp_lq035q7db03_mode = { .clock = 5500, .hdisplay = 240, @@ -3002,6 +3028,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "samsung,ltn140at29-301", .data = &samsung_ltn140at29_301, + }, { + .compatible = "sharp,ld-d5116z01b", + .data = &sharp_ld_d5116z01b, }, { .compatible = "sharp,lq035q7db03", .data = &sharp_lq035q7db03,