Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3059293pxb; Mon, 24 Jan 2022 01:14:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJxSZofGT/6Cb2XeECWoF9A+ZjS0hN9fOdzd1xjH60eJDQso/I61g5CY3K2DqFWheC1fMq/l X-Received: by 2002:a05:6a00:1d93:b0:4c7:f78c:3f41 with SMTP id z19-20020a056a001d9300b004c7f78c3f41mr7447043pfw.54.1643015670561; Mon, 24 Jan 2022 01:14:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643015670; cv=none; d=google.com; s=arc-20160816; b=C7soHcU28LC/YrdWcX99G1GsqeoxwaouFua91ObixYVn6H7m++nLKisVGUHY513KVk Z/p+9/Emmgcfk3fZnerDskvbSV2oB1McqaUU7TQxOhxxqTyT5WFu2vNd3PW4KfDVZLy+ ea8PPnskv1WVJrzOXIHYXQzwInFkAHIX0HX3YjERfoUAIXSSzEkf/fy6yyVZ6S2y9HE3 GmJEWjCHZzi0+iAerIsHj8yxTbOVz5Ff5GG5945dYTpql9H+TYyGTGnTKrbiYit/43uy RqCec0ilriXQrbc42K68Lw1DbWWT8q0DlceR663vmmT7S5JaZG4aVWQSoIvRbwLKS0yT 6vQg== 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=J2UMRvQ9bGDS8m5A2ZaIoatGYf156drXrvbt1E7Y0kM=; b=EvtlhZdfMOpxpYtC/FMHIV4gdY7JeELER8xuYY/ymrPSMu02fF7bO1sLk8knik1tKf 4+e4MkO7P+vBX4kkthRmJQUWcX/gmGkpCquaDQdtaC1I1sWM6xYQT2EWh879e699A03w 4eYAJfWG7OdTR/sPQfMBMn/HQOSiWROp8Bd0dYtnx+RZzIU059D6Hut4lQxFSMbVrJQE ngBbJQJ5bp3KYXuVHNNyHH91vUEUC7vpFha7wmV1BmCT/qw3kRGUVt318PdPiPozieyz 0XZnl8EDLKBTedi0/AGa+Bosijdh1AQi+L6L0qEYDV9DvUIXjPiVFJUOqrKk3GilXlkH Yd5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BaPYk3cz; 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 d22si12220535pfl.163.2022.01.24.01.14.18; Mon, 24 Jan 2022 01:14:30 -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=20210112 header.b=BaPYk3cz; 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 S237343AbiAWPTH (ORCPT + 99 others); Sun, 23 Jan 2022 10:19:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237332AbiAWPTG (ORCPT ); Sun, 23 Jan 2022 10:19:06 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E23AAC06173B for ; Sun, 23 Jan 2022 07:19:05 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id o1-20020a1c4d01000000b0034d95625e1fso18002398wmh.4 for ; Sun, 23 Jan 2022 07:19:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id; bh=J2UMRvQ9bGDS8m5A2ZaIoatGYf156drXrvbt1E7Y0kM=; b=BaPYk3cz5CSp2mXj1dJCLXNrD6ld9SN7PqmiTBuGMhO9jXDLpH0u69DELDSOt4g8tf O8Iw/+xk0uV3mc6OMzhxWiCh6GpBtCwZjML8p/y0ljPseJ+cGIaWo33pZiBaLgWXcf7U vUswCWNO4u1Dz9RGUwwMzwHpOs3Gwx7YyALZW6wv4YECZ8FzDiZO94QtdvlEYIiE7tfy /7hETXh33/UPSrsSt2Ndc2T2fe7iaqo9eo/vjc3UJFrSirKb+Z49xToVdaSx9uUBBpg3 jHWEJd1FgyQ/8no4eRj3p25be/0ZR3bWU7pKD5altXc0pfG4ZhJKEAXZu9+3ux+H4Ygg OPtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=J2UMRvQ9bGDS8m5A2ZaIoatGYf156drXrvbt1E7Y0kM=; b=7P2C7lgHiK4JKMT1/TaXV7OphSa02WScE+k1Tc1klZEKRLnNm2fPo5z4C8Ej1JZivx CQHFeUSywgZ0g/LdpKimSRXdfkjk3k/jpqztI5AtG3n7M3LFcphucwYcTF61sKRkon64 hYiH0KVc5VtiUtC8qGEBoODWUacGnyz6822VivdJuLjqElxbdfQxA5GXl/N+BfdtZ+ja Yz9avClYRZOr83KQ0Y0h87aNHhV+l53ZBp5NhCLe1jTruJCGQkIEUdD/dz8m+rSYgnu1 dEXnK7UEB+X2Xn1EaNb+PMmTTSPiB5CRzGe0FtxEIZ1PGMFGNwAIeYGWZDHgMZyhuthf Er3w== X-Gm-Message-State: AOAM533OXpau2jE+4Sd4wrWnpJ6LIGBQMYbHIkEeZro8LOGIvcU8CwSv 04FFlccUahhF7UpIfq0nU1s= X-Received: by 2002:a7b:c0d4:: with SMTP id s20mr8388585wmh.113.1642951144349; Sun, 23 Jan 2022 07:19:04 -0800 (PST) Received: from localhost (ipv6-54ac198c2dcfb6fe.ost.clients.hamburg.freifunk.net. [2a03:2267:4:0:54ac:198c:2dcf:b6fe]) by smtp.gmail.com with ESMTPSA id a24sm9917299wmm.31.2022.01.23.07.19.03 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 23 Jan 2022 07:19:03 -0800 (PST) From: Oliver Graute To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter Cc: Oliver Graute , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v5] drm/panel: simple: add SGD GKTW70SDAD1SD Date: Sun, 23 Jan 2022 16:18:31 +0100 Message-Id: <20220123151833.19293-1-oliver.graute@gmail.com> X-Mailer: git-send-email 2.17.1 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 Reviewed-by: Marco Felsch Reviewed-by: Fabio Estevam --- v5: - rebased v4: - added the datasheet labels - added Reviewed-by 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 | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index eb475a3a774b..0fd88c3f752c 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -3065,6 +3065,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, /* T0 + T2 + T3 + T4 */ + .enable = 50, /* T5 */ + .disable = 50, /* T5 */ + .unprepare = 10 + 10 + 20 + 20, /* T4 + T3 + T2 + T0 */ + }, +}; + static const struct drm_display_mode sharp_lq070y3dg3b_mode = { .clock = 33260, .hdisplay = 800, @@ -3857,6 +3887,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "satoz,sat050at40h12r2", .data = &satoz_sat050at40h12r2, + }, { + .compatible = "sgd,gktw70sdad1sd", + .data = &sgd_gktw70sdad1sd, }, { .compatible = "sharp,lq035q7db03", .data = &sharp_lq035q7db03, -- 2.17.1