Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4058766pxb; Mon, 1 Feb 2021 11:15:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJy1FBipC0WukwbIuP0Dz7qPPvAiAcVNlIRJaZAjGG9sb2tbtglfcTZRrOlGxQWrqEHtJLOH X-Received: by 2002:a17:906:6951:: with SMTP id c17mr6396227ejs.395.1612206909067; Mon, 01 Feb 2021 11:15:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612206909; cv=none; d=google.com; s=arc-20160816; b=a2Q8TcVK57m8jL0Mrj8MJslDg/xT6VpF2dkPTJnB8d54an74/y3XTNJqK2O0R7hsEJ rsIB5Ms1OhlVElUONhzEoUaENRG9jLnbP806q2VaBVuqJV4lDduzEMq74GVq5BEAMAxT j6puHGbRF8PhPTPoAlwfkTD7WFaQu+6ZnfAh6LFgZrPkYLi089rF+PHmdEe1jUe0GoSA EHwBxuYLB5o+wgXWGAVqX2Xqq5OzdRoYzQhWdSwAO98rKmDayGteAVhqSITfwPo6yiuR qiPPGFrPvxquHU4VWX8rA2tZJezCdZQbGezF/bPTJkT7a780takLx1s3KsRpc+HcQCEi pJ7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=kq3V0zk7/NxAJfrOZfZ2Vz2Yq/qtwdkfS7jsVoNMjUY=; b=wXr5jUBjjyBZsHxye3EhE8OGb3EoLve1DDJK0j5t/jw6M21dDsZfE10L5igvgBjKsq 557aIC4h7WyeX7Zoj6YWCB8QKclq77E5n01A7Q/6Lnjkfd9xnxCjpvqdlNsBcfAGZOKQ Ln9WAP2JMYP1hQBazr+Emwj9xkOeyL0t3bReLM3LH1CBopAQGEFycM6CdXjscvQVseV6 dvk8cLB76Cvl7gVaY8/3Tz6EJ1OhOSJ0w7y2FC252x4q38XPhCGGubCi92+xzgnP3Z5A 64ywUNrGhvPjWVvSOpFfkDK1chD4l2wrB9Om7Xvob42Rz9bmjlJPv+bCjGXszGOVmfCX 9viQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kzPzL5Hv; 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 m2si11055070eds.224.2021.02.01.11.14.40; Mon, 01 Feb 2021 11:15:09 -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=kzPzL5Hv; 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 S229831AbhBATKz (ORCPT + 99 others); Mon, 1 Feb 2021 14:10:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229599AbhBATKy (ORCPT ); Mon, 1 Feb 2021 14:10:54 -0500 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2F35C061756 for ; Mon, 1 Feb 2021 11:10:13 -0800 (PST) Received: by mail-ej1-x62f.google.com with SMTP id hs11so26126289ejc.1 for ; Mon, 01 Feb 2021 11:10:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=kq3V0zk7/NxAJfrOZfZ2Vz2Yq/qtwdkfS7jsVoNMjUY=; b=kzPzL5Hv2XEwxEoE2DGFHOqbXj08SBsj5rwtKZEuYuGtWhprWrNxdhroyVOAuCtve4 PrTSzFwXzkYMF3AULP03fAoDJHS+WKjMjJnpq1IONBbcypF1q1U0ojLIOGpkUcfGvY2V VUVWJOXexBQOKypBZkS6yN0tRG+X+stJr2cOW26osOK/ImpnekCzKsJ6QAiSPEyVUTnq hgRvIl6lzDTGH1ngF5OKwD50G+kfMITLvC5tuVPkjIwkOQbcD+TVB9iB3gSY4Fc62YPy bmmvGNxtKlUQSMAHDA3yNFHkStxmMjEKMyoIOck5A7FrVRRzbBH7ptasjhaXCA7bhUZN YLyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=kq3V0zk7/NxAJfrOZfZ2Vz2Yq/qtwdkfS7jsVoNMjUY=; b=Hfk50nKLWm7NKHCmtGmIWDLEfjF3CZ2MQaajsZuRwTMbMq23hxDcLQ/YJvETd3xdA4 syzJB8NcmREoNYp3KVa9W2Ds4dsmhym3q0Hl8NECLQ63gz04Sl4dTDZVo9mD3hnCMw+O e3wyyv98HR8qokL44vXNeZm1n0NkRj0i4yGknUI8KM7G4ZW6ZQwE8Cc91QovrqNU7DiC gGxhWpZ1zxT7lAv216zZNKNRPWdN6fwfrdEMbuSjA1TVI2vkuvJHuRPDpvEm0ofg7IK5 mAOt2Mqvnjn+sYDeAnNyRZpbOkuTVJs7sTPhJhgaqftpQxFTaescROKsiX1L5ZxcDoxh O2mw== X-Gm-Message-State: AOAM533MbSMAlHD/lr2gGNOMcCiJrQuJ6v6D71mmCkOEACyI/pgZBAoz dHNJGu8mrQZP32fXLTzLuo4= X-Received: by 2002:a17:906:1f8b:: with SMTP id t11mr19272726ejr.224.1612206612283; Mon, 01 Feb 2021 11:10:12 -0800 (PST) Received: from localhost (ipv6-4edfac2144800d4b.ost.clients.hamburg.freifunk.net. [2a03:2267:4:0:4edf:ac21:4480:d4b]) by smtp.gmail.com with ESMTPSA id w17sm8416280ejk.124.2021.02.01.11.10.11 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Feb 2021 11:10:11 -0800 (PST) Date: Mon, 1 Feb 2021 20:10:01 +0100 From: Oliver Graute To: Marco Felsch Cc: thierry.reding@gmail.com, Fabio Estevam , Sam Ravnborg , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] drm/panel: simple: add SGD GKTW70SDAD1SD Message-ID: <20210201191001.GA22816@portage> References: <1611947364-30688-1-git-send-email-oliver.graute@gmail.com> <20210201132736.dbqnyzn7dbu7dsmq@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210201132736.dbqnyzn7dbu7dsmq@pengutronix.de> User-Agent: Mutt/1.5.24 (2015-08-30) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/02/21, Marco Felsch wrote: > Hi Oliver, > > thanks for the patch :) > > On 21-01-29 20:09, Oliver Graute wrote: > > 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 > > --- > > > > 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 good (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..c129a8c 100644 > > --- a/drivers/gpu/drm/panel/panel-simple.c > > +++ b/drivers/gpu/drm/panel/panel-simple.c > > @@ -3336,6 +3336,28 @@ 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}, > > Please add also: > > .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW | > DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_NEGEDGE, ok will do > > > +}; > > + > > +static const struct panel_desc sgd_gktw70sdad1sd = { > > + .timings = &sgd_gktw70sdad1sd_timing, > > + .num_timings = 1, > > + .bpc = 6, > > + .size = { > > + .width = 153, > > + .height = 86, > > + }, > > and: > > .delay = { > .prepare = 20 + 20 + 10 + 10, /* T0 + T2 + T3 + T4 */ > .enable = 50, /* T5 */ > .disable = 50, /* T5 */ > .unprepare = 10 + 10 + 20 + 20, /* T4 + T3 + T2 + T0 */ > }; ok will do thx for your review. Best regards, Oliver