Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp697945pxb; Tue, 2 Feb 2021 15:58:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJxBRCNCbNyIw5cBzVuVeoFkQR4I6Z58Xf2QFZWE/455A3vT9y0ppOSdFjV2m6Txcnkb/2zE X-Received: by 2002:aa7:c682:: with SMTP id n2mr511919edq.27.1612310315342; Tue, 02 Feb 2021 15:58:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612310315; cv=none; d=google.com; s=arc-20160816; b=uJdOp6MEhMQhpjOo8HrZ9KlIpv2KI9ZMreMqOEfJr+VWtIm+OYGvjMmuhRgFPbUqV/ oXxDj6gc8Clvm4tFdL18mOfhwMfIY4umoIxkm8I5OXdeWwR1oDVPEYlaYF/8BRvujav1 DRrhK0MFvkV1zYz0G9iHjdk3opNrS5YxUh1TZNIeQUGrvRWAifXtxoKnZrLjLOcJSfJn PKeG9KmEG0VYJy+H5dR2RaL55cffO4S08/84eunQJ4+RUcjFKbpFLO5rU3vzf8h5mgpt XLAzEeCb2ci6XIzd04RGgIJfFdvvz4FU3js/Pl0V/fjGvpQrWxC0yDlj48WrrLwEorTB tosQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=mX9ypY+omwlKGZ2kXIDWnnuce1UHcRhtfE/HnoiDjQE=; b=zUnTNNJ8rAbKjrtQwZTVxb4W/GM0xdnPo9Hx03beX1aQCOY0r8TsQBLNh99LWyCzBx N+9L29y6PW2hw57Qjvt6C53bX+du+iNAGnQy18Q9CDQUMl3HUr3GtZOvdqyv9gUk+aoY 0yTn2qNGE4wI0Q9yDTg0/zwoQoL0cvtP7V9MEF4FfG9cXVN8C3py9tvIyKbIr/4IGJPI NBsQSqVgqikvzKh+l6MoiS0vM9V6UsQ51sGh/FMNz5KiSgxqBQ56NXohxz63vUX6ZqMY SZLJCms+qWwuJ04+qlza4PYGSmtZFtfEdOiBEDpKd9Er22mg06ZfmN/JcO8hLArsTNpB XiIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=u4vBN3nj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w4si220134ejz.337.2021.02.02.15.58.07; Tue, 02 Feb 2021 15:58:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=u4vBN3nj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237575AbhBBRih (ORCPT + 99 others); Tue, 2 Feb 2021 12:38:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237636AbhBBRga (ORCPT ); Tue, 2 Feb 2021 12:36:30 -0500 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7364C0613D6 for ; Tue, 2 Feb 2021 09:35:49 -0800 (PST) Received: by mail-ej1-x629.google.com with SMTP id bl23so31243336ejb.5 for ; Tue, 02 Feb 2021 09:35:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=mX9ypY+omwlKGZ2kXIDWnnuce1UHcRhtfE/HnoiDjQE=; b=u4vBN3nj0jYBDFgioAFwhhfQeq2M9O0v2vttHGfK/tH3lAYdkKXKqvOHhphpgFs2XW APmvMAHZAxj8iqB7++LPYQoNOQekVcdGN+yrTU31FwGwwf5JndF016URWoX7Gz5fB/sg CGsx/9BTg8agG5Np6EMW4lHrkHfk8o7UEmpO/xJQq0ACG8lF+MxG9c0Hez+ciAmX4WgB 9UcMo3/80r/yOCijrUk/Qo+II3PxgtUyeTgHjMhfT7TUx0rB8fmv4fpPuRB099VjZU79 hA7xntZTIO7kpFNU/+n8PfZj3zTnbcFao5JnHNAexv3A2Eu2dEQdqOb4hCgDOTjb51/z Uq6w== 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; bh=mX9ypY+omwlKGZ2kXIDWnnuce1UHcRhtfE/HnoiDjQE=; b=IZfybwrqb7PXC8Wc+1B6KZ83EjfSpr2Wnu3Katgb3G/gXGRfYHCM5I0PncImg4O5XL 6UdG7n2yidHfz8tbr6EZl2vo7tgVcD/LO+J1WpS3H506cfYns+GVprs7tLcHECz0xt2y XAOsnBGI/MRbWaO25GedPe+6BxMnI8CdoFonUBQFJ5Ko+Er9LW0Wucrxt7elpneeUUHS 1mIuEoFKbWcQIGo0Kb5Fcx/OeczQq9ABP66BLNtqSumA4R457VjAtXFLR2jwrs3/UjAl werjUOaNrm569MASmIwUHw+AcG9Oqnp4JfPP4pM9Gzrh68pb7GrY/tsNoTVX6WZadVIq d6xw== X-Gm-Message-State: AOAM532o32TCzUI0B7qoFKbe2A2KBTFNI9ssADN8l4wvO6zEd+A53W+f Zr2vGmWrT1eg3xwxsn71ok8= X-Received: by 2002:a17:906:5846:: with SMTP id h6mr23072480ejs.521.1612287348469; Tue, 02 Feb 2021 09:35:48 -0800 (PST) Received: from localhost (ipv6-95d4aa31e260cdb5.ost.clients.hamburg.freifunk.net. [2a03:2267:4:0:95d4:aa31:e260:cdb5]) by smtp.gmail.com with ESMTPSA id o4sm10375211edw.78.2021.02.02.09.35.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Feb 2021 09:35:47 -0800 (PST) From: Oliver Graute To: thierry.reding@gmail.com Cc: oliver.graute@gmail.com, Marco Felsch , Fabio Estevam , Sam Ravnborg , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v3] drm/panel: simple: add SGD GKTW70SDAD1SD Date: Tue, 2 Feb 2021 18:35:13 +0100 Message-Id: <1612287314-5384-1-git-send-email-oliver.graute@gmail.com> X-Mailer: git-send-email 2.7.4 X-Patchwork-Bot: notify Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for the Solomon Goldentek Display Model: GKTW70SDAD1SD to panel-simple. The panel spec from Variscite can be found at: https://www.variscite.com/wp-content/uploads/2017/12/VLCD-CAP-GLD-RGB.pdf Signed-off-by: Oliver Graute Cc: Marco Felsch Cc: Fabio Estevam --- v3: - added flags - added delay v2: - changed bpc to 6 - set max value of pixelclock - increased hfront_porch and hback_porch - dropped connector-type adding of bus_format = MEDIA_BUS_FMT_RGB666_1X18 results in wrong colors. omitting bus_format and using some default is better (Tux Pinguin is colored fine) 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 2be358f..c63f6a8 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -3336,6 +3336,36 @@ static const struct panel_desc satoz_sat050at40h12r2 = { .connector_type = DRM_MODE_CONNECTOR_LVDS, }; +static const struct display_timing sgd_gktw70sdad1sd_timing = { + .pixelclock = {30000000, 30000000, 40000000}, + .hactive = { 800, 800, 800}, + .hfront_porch = {40, 40, 40}, + .hback_porch = {40, 40, 40}, + .hsync_len = {48, 48, 48}, + .vactive = {480, 480, 480}, + .vfront_porch = {13, 13, 13}, + .vback_porch = {29, 29, 29}, + .vsync_len = {3, 3, 3}, + .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW | + DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_NEGEDGE, +}; + +static const struct panel_desc sgd_gktw70sdad1sd = { + .timings = &sgd_gktw70sdad1sd_timing, + .num_timings = 1, + .bpc = 6, + .size = { + .width = 153, + .height = 86, + }, + .delay = { + .prepare = 20 + 20 + 10 + 10, + .enable = 50, + .disable = 50, + .unprepare = 10 + 10 + 20 + 20, + }, +}; + static const struct drm_display_mode sharp_ld_d5116z01b_mode = { .clock = 168480, .hdisplay = 1920, @@ -4222,6 +4252,9 @@ static const struct of_device_id platform_of_match[] = { .compatible = "satoz,sat050at40h12r2", .data = &satoz_sat050at40h12r2, }, { + .compatible = "sgd,gktw70sdad1sd", + .data = &sgd_gktw70sdad1sd, + }, { .compatible = "sharp,ld-d5116z01b", .data = &sharp_ld_d5116z01b, }, { -- 2.7.4