From patchwork Mon Jun 1 08:33:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 199693 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C973FC433E0 for ; Mon, 1 Jun 2020 08:33:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A25182074B for ; Mon, 1 Jun 2020 08:33:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Eaxr1G/x" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727098AbgFAIdV (ORCPT ); Mon, 1 Jun 2020 04:33:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725886AbgFAIdU (ORCPT ); Mon, 1 Jun 2020 04:33:20 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DCAFC05BD43 for ; Mon, 1 Jun 2020 01:33:17 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id 9so5617465ljc.8 for ; Mon, 01 Jun 2020 01:33:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8Yer3urQYiOMXfRZ9l+aQabnMndlBrbK8V5JUt5mhHI=; b=Eaxr1G/xdxbYkLuYx88rNIWZHLBEBrWPJTpzxgrV+T71VRLI9TeBmPh8q03bEk5Cr5 WKhDUS3LqGw9nK22aPl6TUaeYYl0t54CK/+zFGnQ/SXwP/rAZttgjmuPEtyBEuI64k2H /qMNZzUyeF4I46o9LWfd2SieboteA4/dIipxTqpkoKuy9fiGxxBgTr6H46CVkCsedhst sGrG2BaoTdHIuQtsNzhuS1Km7+ykqmJJequuecJpN1r5LJnpNn/pT19WXKqInVLkMmoP naMYcItKiz5kEQFTWfzk3jkjfgY0I5Yhyf3i0E3UcGNGOtFXfI8pN0uNU9gv8wJ2tywR RWjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=8Yer3urQYiOMXfRZ9l+aQabnMndlBrbK8V5JUt5mhHI=; b=fKYKh0o8QgwUio5zQkvkECyAW5QxT2NNjntjRlF9nIeV84BiQfYHw3zOvxiHH1ofZe 7BUzBPe128eGPoEQMa5nPsUw9n3JLTpXZyIwSteD74IB4AG4T9rDnyozqPPkpJV8Zvrx FQTXvuoHuOZnoU669ETSAzDyUXoyUyDJOrzeDNw6vrap1zZEbJmq3CWDRmhogqP+Tsje U7Sv+9E3bza8P072XJX1fLRmOmru+J3+/ottEeP9OME9Se5B2gTaz4HJiecKNXbwLzhL 9rxpLmZfhd/5t8w7Gx2QVHcSgUVdcoVQjT9ibNdKHm+618UxNEDmLNB6ZznWTldHwqIx wPBg== X-Gm-Message-State: AOAM5321Uy3jHGgAdMTKem8Kbf8UkTdWmv7tk/LaP+f2BIdeZyAAVSMa Cz/EHeKOTDLKa9N11i1h76E= X-Google-Smtp-Source: ABdhPJyM06YDjm3IwmPKPeeF0RPISmSSuI3RSxjZq9mwb2e1/wrOilfm6lIy/U+oPxjpnBiQsd54yA== X-Received: by 2002:a2e:95c5:: with SMTP id y5mr10278128ljh.229.1591000395626; Mon, 01 Jun 2020 01:33:15 -0700 (PDT) Received: from saturn.lan ([2a00:fd00:805f:db00:281d:a604:434c:a58d]) by smtp.gmail.com with ESMTPSA id f14sm3871433ljp.118.2020.06.01.01.33.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jun 2020 01:33:15 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Cc: Sam Ravnborg , =?utf-8?q?S=C3=B8ren_Andersen?= , Thierry Reding , =?utf-8?q?Ville_Syr?= =?utf-8?b?asOkbMOk?= , Douglas Anderson , Bjorn Andersson , Sebastian Reichel Subject: [PATCH v1 1/6] dt-bindings: panel: add Seiko 70WVW2T 7" panel Date: Mon, 1 Jun 2020 10:33:04 +0200 Message-Id: <20200601083309.712606-2-sam@ravnborg.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200601083309.712606-1-sam@ravnborg.org> References: <20200601083309.712606-1-sam@ravnborg.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add compatible for Seiko Instruments 7" TFT LCD. This panel is a dumb panel that matches the panel-simple binding. Signed-off-by: Sam Ravnborg Cc: Søren Andersen Cc: Thierry Reding Cc: Sam Ravnborg --- .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml index d6cca1479633..60cc093fbd75 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml +++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml @@ -239,6 +239,8 @@ properties: - sharp,ls020b1dd01d # Shelly SCA07010-BFN-LNN 7.0" WVGA TFT LCD panel - shelly,sca07010-bfn-lnn + # Seiko Instruments Inc. 7.0" WVGA (800x480) TFT with Touch-Panel + - sii,70wvw2t # Starry KR070PE2T 7" WVGA TFT LCD panel - starry,kr070pe2t # Starry 12.2" (1920x1200 pixels) TFT LCD panel From patchwork Mon Jun 1 08:33:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 199691 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 87227C433E5 for ; Mon, 1 Jun 2020 08:33:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 662BE207D0 for ; Mon, 1 Jun 2020 08:33:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DmLMBRLP" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727989AbgFAIdW (ORCPT ); Mon, 1 Jun 2020 04:33:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727957AbgFAIdV (ORCPT ); Mon, 1 Jun 2020 04:33:21 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 309F7C08C5C0 for ; Mon, 1 Jun 2020 01:33:18 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id z13so7066699ljn.7 for ; Mon, 01 Jun 2020 01:33:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/kLQcKKjC8Y9Z0GEOnV9EPdgB2M7ivV6RG54qq29vMQ=; b=DmLMBRLPEz91iPHytYStoDFHmdTez2DBjv6owsNsvgAVHR8MicRpy6m0/h4vxVThvM BZf9sy3R4fs31LFZuWX2ffmkXuaX0auYuWXbpCBdg8gJHoUKIPEE5ADgHd0mgmGXq61l OMjD2O9Hu4jv1nXyB2ldiIyzNUNZpqGAEihFlBaiH7/P6zE/QSoeLqzs4F7XJzJXyOPw /Udh0rbVRyOjo6ZAy//BJ9Fyopjv0Mng/wtHsmnf8pkoRp+I3MlhSEyEN2+PAWr1I/E/ ktVMCEDE4q+hnmE5zwVmJRJBdRgLx047X03Gt5Dl74tbB//CsDVr9nXPHCOjO2Pa0CC/ n1RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=/kLQcKKjC8Y9Z0GEOnV9EPdgB2M7ivV6RG54qq29vMQ=; b=oe2g82j7VERljERFaBv8o7hsYhQjZCt0tnoJvQ6s45f7qjbWnOg87CvFzAYGevfDmG D5Tg/EYxZANK/Iw167ErXociAttHCB+xUDvqWxckxZStBU0kkZKFepXdJHxJbuA5xzgw qBq4H/PF1VbqvJ16TC+0e0UpysvJbcLAPeiIEvA0w85V/TekoVNZH4lVvGZQ535sLsKs cVboDzPuWKduFMuPRhnaH9U742Z/PJNVP6hfrPmKS/cg8aYHsHTPsR9SxOd2qSikiEk2 +xAIjL9qJHQwWFcNCm+i012+Bp7IJj77AaisglcqDBquhW2VFIIJD7HFzeiFNEtqKRM6 +Lyw== X-Gm-Message-State: AOAM530guQgPwnk77bWyP6XHBTc1ASENKLMWHPBRdi820d5NaH0lpYAV DyYhmlFTr0opZPwpsqpEhMA= X-Google-Smtp-Source: ABdhPJyJi+HROJJQQrz0+okTxyGvznRAyt8fJgTSPYmXkqYKGtpWoRY8SrNpBruLwP4jEgvZmkMq6w== X-Received: by 2002:a2e:7d17:: with SMTP id y23mr10003521ljc.105.1591000396671; Mon, 01 Jun 2020 01:33:16 -0700 (PDT) Received: from saturn.lan ([2a00:fd00:805f:db00:281d:a604:434c:a58d]) by smtp.gmail.com with ESMTPSA id f14sm3871433ljp.118.2020.06.01.01.33.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jun 2020 01:33:16 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Cc: Sam Ravnborg , =?utf-8?q?S=C3=B8ren_Andersen?= , Thierry Reding , =?utf-8?q?Ville_Syr?= =?utf-8?b?asOkbMOk?= , Douglas Anderson , Bjorn Andersson , Sebastian Reichel Subject: [PATCH v1 2/6] drm: panel-simple: add Seiko 70WVW2T 7" simple panel Date: Mon, 1 Jun 2020 10:33:05 +0200 Message-Id: <20200601083309.712606-3-sam@ravnborg.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200601083309.712606-1-sam@ravnborg.org> References: <20200601083309.712606-1-sam@ravnborg.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The Seiko 70WVW2T is a discontinued product, but may be used somewhere. Tested on a proprietary product. Signed-off-by: Sam Ravnborg Cc: Søren Andersen Cc: Thierry Reding Cc: Sam Ravnborg --- drivers/gpu/drm/panel/panel-simple.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index b067f66cea0e..8624bb80108c 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -3194,6 +3194,31 @@ static const struct panel_desc shelly_sca07010_bfn_lnn = { .bus_format = MEDIA_BUS_FMT_RGB666_1X18, }; +static const struct drm_display_mode sii_70wvw2t_mode = { + .clock = 33000, + .hdisplay = 800, + .hsync_start = 800 + 256, + .hsync_end = 800 + 256 + 0, + .htotal = 800 + 256 + 0 + 0, + .vdisplay = 480, + .vsync_start = 480 + 0, + .vsync_end = 480 + 0 + 0, + .vtotal = 480 + 0 + 0 + 45, + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, +}; + +static const struct panel_desc sii_70wvw2t = { + .modes = &sii_70wvw2t_mode, + .num_modes = 1, + .size = { + .width = 152, + .height = 91, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, + .bus_flags = DRM_BUS_FLAG_PIXDATA_POSEDGE, + .connector_type = DRM_MODE_CONNECTOR_DPI, +}; + static const struct drm_display_mode starry_kr070pe2t_mode = { .clock = 33000, .hdisplay = 800, @@ -3877,6 +3902,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "shelly,sca07010-bfn-lnn", .data = &shelly_sca07010_bfn_lnn, + }, { + .compatible = "sii,70wvw2t", + .data = &sii_70wvw2t, }, { .compatible = "starry,kr070pe2t", .data = &starry_kr070pe2t, From patchwork Mon Jun 1 08:33:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 199692 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CEEB3C433E3 for ; Mon, 1 Jun 2020 08:33:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AE8552074B for ; Mon, 1 Jun 2020 08:33:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cWvgi00R" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726076AbgFAIdW (ORCPT ); Mon, 1 Jun 2020 04:33:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726265AbgFAIdU (ORCPT ); Mon, 1 Jun 2020 04:33:20 -0400 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FE3CC08C5CA for ; Mon, 1 Jun 2020 01:33:20 -0700 (PDT) Received: by mail-lf1-x141.google.com with SMTP id w15so3415162lfe.11 for ; Mon, 01 Jun 2020 01:33:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TwIdJUbQRxeqgtfvfIoF0Z04UMl01JB2vKoyScmExkg=; b=cWvgi00RcFiHrv8DMigp7mhttjy/GxX1b+1+aUakQwMf0Gj0QkzZHpTXM6xL7Ya/NO p1Lk8Jn+tayq731Hx/VVy48CozlRtRpPToJHNmmxY6yD5QxaNR62nrubajaORG7a9bK/ TtpCQUJhiAFbmC97Pc/q1yVyCf4FOioozKy8hoCrLURJ2/qz2OfWtufoZ0tEPNGEQI0p ayV6wHLzNY3QLtBHC4b5vxlpX9IvEwu/a9fMDsgCAuJ3vI58HJ2AQo5iPwddcOW88QRh ln9Na41BlaQJegNLkKXLJwK0gN4CoC0eWPP1fBptj4w1tmuBDN3102mDyos7OMtZm//r Elfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=TwIdJUbQRxeqgtfvfIoF0Z04UMl01JB2vKoyScmExkg=; b=YkjKong9GuZPmhq7a1eL1qOXIPvdpoi1a04FGUC9o2h0eDPBaBw5FeHRa/6uwezXWO 7H7/zz5sKu2RUW/AncXKhns2OsJiJNfcSvwqIkIdxg4JZb9lu17s5Dk5dbtjChcOSeb1 XuitFSeWnqgu7oCk5jpw+s7EKT8q7v/zJnCxcdrXJQYYmRzWIhkAxKzKT4SQAK02GxVK oaE6bG3IYZeLbhbyIY557oNMACcEomqfZifpHAXYIbGekTCyDx24KJBeRMBOEs6gIBkU +3BYNY56ocS3fKCpMgL2gVo1vW4MbNRwWN/4VyR8SM1qutKi+mch0ZOfwkfdG+pWn7lT S4fg== X-Gm-Message-State: AOAM530r4Mjm5OqTb2C2DQ0kK7i5ZhXilryhkQAbbUWBRmng3pyFSPZg 0RH4FIEoLGQyUG6sEivrq0Q= X-Google-Smtp-Source: ABdhPJw1TnIeYLkuBYxj66EjSh8MTVLLPvYHyksj6de8G3CqLKAXHsCGGH66LzgSdD1ort9SjcODWQ== X-Received: by 2002:a05:6512:3214:: with SMTP id d20mr10856801lfe.203.1591000398752; Mon, 01 Jun 2020 01:33:18 -0700 (PDT) Received: from saturn.lan ([2a00:fd00:805f:db00:281d:a604:434c:a58d]) by smtp.gmail.com with ESMTPSA id f14sm3871433ljp.118.2020.06.01.01.33.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jun 2020 01:33:18 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Cc: Sam Ravnborg , =?utf-8?q?S=C3=B8ren_Andersen?= , Thierry Reding , =?utf-8?q?Ville_Syr?= =?utf-8?b?asOkbMOk?= , Douglas Anderson , Bjorn Andersson , Sebastian Reichel Subject: [PATCH v1 4/6] drm: panel-simple: add Hitachi 3.5" QVGA panel Date: Mon, 1 Jun 2020 10:33:07 +0200 Message-Id: <20200601083309.712606-5-sam@ravnborg.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200601083309.712606-1-sam@ravnborg.org> References: <20200601083309.712606-1-sam@ravnborg.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This panel is used on evaluation boards for Atmel at91sam9261 and at91sam6263. Signed-off-by: Sam Ravnborg Cc: Thierry Reding Cc: 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 8624bb80108c..25c96639631f 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1813,6 +1813,32 @@ static const struct panel_desc hannstar_hsd100pxn1 = { .connector_type = DRM_MODE_CONNECTOR_LVDS, }; +static const struct drm_display_mode hitachi_tx09d71vm1cca_mode = { + .clock = 4965000, + .hdisplay = 240, + .hsync_start = 240 + 0, + .hsync_end = 240 + 0 + 5, + .htotal = 240 + 0 + 5 + 1, + .vdisplay = 320, + .vsync_start = 320 + 0, + .vsync_end = 320 + 0 + 1, + .vtotal = 320 + 0 + 1 + 1, + .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC, +}; + +static const struct panel_desc hitachi_tx09d71vm1cca = { + .modes = &hitachi_tx09d71vm1cca_mode, + .num_modes = 1, + .bpc = 6, + .size = { + .width = 54, + .height = 72, + }, + .bus_format = MEDIA_BUS_FMT_RGB666_1X18, + .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_NEGEDGE, + .connector_type = DRM_MODE_CONNECTOR_DPI, +}; + static const struct drm_display_mode hitachi_tx23d38vm0caa_mode = { .clock = 33333, .hdisplay = 800, @@ -3737,6 +3763,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "hannstar,hsd100pxn1", .data = &hannstar_hsd100pxn1, + }, { + .compatible = "hit,tx09d71vm1cca", + .data = &hitachi_tx09d71vm1cca, }, { .compatible = "hit,tx23d38vm0caa", .data = &hitachi_tx23d38vm0caa From patchwork Mon Jun 1 08:33:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 199690 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E9BD5C433E0 for ; Mon, 1 Jun 2020 08:33:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C8CB52074B for ; Mon, 1 Jun 2020 08:33:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DuZo+MfX" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727957AbgFAIdX (ORCPT ); Mon, 1 Jun 2020 04:33:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727124AbgFAIdW (ORCPT ); Mon, 1 Jun 2020 04:33:22 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B52BC061A0E for ; Mon, 1 Jun 2020 01:33:22 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id b6so7106097ljj.1 for ; Mon, 01 Jun 2020 01:33:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+oFQSuYqfFPB7zIFX+5U9cF5ft8QrZdDEwK+mQD33PY=; b=DuZo+MfXyHC9GlzR/2yFM+WN4fjb/p/JJgHRkGSxIXF2//7KcZ0KxMGSCBpQSdmouq wt/sLOvdPpfjh/O7oqRNkABPei59VkkP819v0HYI4XfXZBF2ZaYOpSukqH+N/iu3Zkl4 HLzygHv2ySEJLU6DEYh7bqKbMnWr7Y9+JsOC/tJDuVvTJHZH26X97Aa7aXIyBSap/xa4 orXT5/AJZ+kIapVS5cZTLONUb7LOo49ykVsbOvsm2LvkVTfvxV1hG5y4bWUd2caO0v8s TYCucqG2cq1Pu/3xP1STUqNP8PkVv9oA35E+iN19WG6i1w+FOwRpqmGJVRR4Irm7xSn4 Bnig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=+oFQSuYqfFPB7zIFX+5U9cF5ft8QrZdDEwK+mQD33PY=; b=sdtx4l+8wMsWo3yEqVV9XW21J2vIzauG7fsODFQIYgLSzJYkX1DNodCIOEI0rMnrwO ZbvOkmVf2LSxkU+Wzw2KQrL5vUufEAUuAAfOIXRGdhvHIUoqSeITp0kYgCpAcYfl5Bh/ 13AQkG2wtZuCRJq22bRkCoSRyyKI2iu0+0VBVMlstTOlTRuOvcIlM6abbOXiObdBy2G3 86NRtvGMuJBVssIch03FxH7Rx2ENPDFWXmCDndKi1j6JXoeIWyFk/H1UoQVS1x79Akw2 IB29h0FuKSKW40UhVPqPj7dQJqb9hV+43xau1rAKAknRu3Z/+ojlNT3VEQeKIhqkL5o+ MsYA== X-Gm-Message-State: AOAM531EBvOdo89E+s5keiZHOdQIWle2HJSg8QwH1fl5xRUAljXvRY+p JYkAyD+BI11rcTbfxtTOz28= X-Google-Smtp-Source: ABdhPJySVAKpBlLW/smaV5zLyUIVQ4gmwmnleI9Ks/S59fIsYMXrMMpJcniENECe+9KE/vbPdiu6XQ== X-Received: by 2002:a2e:81d1:: with SMTP id s17mr10542649ljg.91.1591000400787; Mon, 01 Jun 2020 01:33:20 -0700 (PDT) Received: from saturn.lan ([2a00:fd00:805f:db00:281d:a604:434c:a58d]) by smtp.gmail.com with ESMTPSA id f14sm3871433ljp.118.2020.06.01.01.33.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jun 2020 01:33:20 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Cc: Sam Ravnborg , =?utf-8?q?S=C3=B8ren_Andersen?= , Thierry Reding , =?utf-8?q?Ville_Syr?= =?utf-8?b?asOkbMOk?= , Douglas Anderson , Bjorn Andersson , Sebastian Reichel Subject: [PATCH v1 6/6] drm: panel-simple: add LOGIC Technologies panels Date: Mon, 1 Jun 2020 10:33:09 +0200 Message-Id: <20200601083309.712606-7-sam@ravnborg.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200601083309.712606-1-sam@ravnborg.org> References: <20200601083309.712606-1-sam@ravnborg.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add support for the following panels from LOGIC Technologies, Inc: - LTTD800480070-L2RT - LTTD800480070-L6WH-RT The LTTD800480 L2RT is discontinued, but it may be used by existing products. Signed-off-by: Søren Andersen Signed-off-by: Sam Ravnborg Cc: Søren Andersen Cc: Thierry Reding Cc: Sam Ravnborg --- drivers/gpu/drm/panel/panel-simple.c | 70 ++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 25c96639631f..70d54164b1ae 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -2428,6 +2428,70 @@ static const struct panel_desc logictechno_lt170410_2whc = { .connector_type = DRM_MODE_CONNECTOR_LVDS, }; +static const struct drm_display_mode logictechno_lttd800480070_l2rt_mode = { + .clock = 33000, + .hdisplay = 800, + .hsync_start = 800 + 112, + .hsync_end = 800 + 112 + 3, + .htotal = 800 + 112 + 3 + 85, + .vdisplay = 480, + .vsync_start = 480 + 38, + .vsync_end = 480 + 38 + 3, + .vtotal = 480 + 38 + 3 + 29, + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, +}; + +static const struct panel_desc logictechno_lttd800480070_l2rt = { + .modes = &logictechno_lttd800480070_l2rt_mode, + .num_modes = 1, + .bpc = 8, + .size = { + .width = 154, + .height = 86, + }, + .delay = { + .prepare = 45, + .enable = 100, + .disable = 100, + .unprepare = 45 + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, + .bus_flags = DRM_BUS_FLAG_PIXDATA_POSEDGE, + .connector_type = DRM_MODE_CONNECTOR_DPI, +}; + +static const struct drm_display_mode logictechno_lttd800480070_l6wh_rt_mode = { + .clock = 33000, + .hdisplay = 800, + .hsync_start = 800 + 154, + .hsync_end = 800 + 154 + 3, + .htotal = 800 + 154 + 3 + 43, + .vdisplay = 480, + .vsync_start = 480 + 47, + .vsync_end = 480 + 47 + 3, + .vtotal = 480 + 47 + 3 + 20, + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, +}; + +static const struct panel_desc logictechno_lttd800480070_l6wh_rt = { + .modes = &logictechno_lttd800480070_l6wh_rt_mode, + .num_modes = 1, + .bpc = 8, + .size = { + .width = 154, + .height = 86, + }, + .delay = { + .prepare = 45, + .enable = 100, + .disable = 100, + .unprepare = 45 + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, + .bus_flags = DRM_BUS_FLAG_PIXDATA_POSEDGE, + .connector_type = DRM_MODE_CONNECTOR_DPI, +}; + static const struct drm_display_mode mitsubishi_aa070mc01_mode = { .clock = 30400, .hdisplay = 800, @@ -3841,6 +3905,12 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "logictechno,lt170410-2whc", .data = &logictechno_lt170410_2whc, + }, { + .compatible = "logictechno,lttd800480070-l2rt", + .data = &logictechno_lttd800480070_l2rt, + }, { + .compatible = "logictechno,lttd800480070-l6wh-rt", + .data = &logictechno_lttd800480070_l6wh_rt, }, { .compatible = "mitsubishi,aa070mc01-ca1", .data = &mitsubishi_aa070mc01,