From patchwork Fri Apr 29 17:20:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 568349 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5EB86C4167B for ; Fri, 29 Apr 2022 17:21:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236421AbiD2RYp (ORCPT ); Fri, 29 Apr 2022 13:24:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359695AbiD2RYb (ORCPT ); Fri, 29 Apr 2022 13:24:31 -0400 Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62E9F527E8 for ; Fri, 29 Apr 2022 10:21:12 -0700 (PDT) Received: by mail-ot1-x32d.google.com with SMTP id 88-20020a9d0ee1000000b005d0ae4e126fso5548506otj.5 for ; Fri, 29 Apr 2022 10:21:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=N6WuL0jO9VRXWMbI6XwfJX7wIxCjCzycdaIb9uJ7Krk=; b=gRS8ekBWuJZBUcwbOgmCs3C6olZpWqyMCZ+RtTo/2awe7k8o9a+LRpHK99LS2bZOYE CATmNl/DStmt6V+iHuJgxp0JAevl1VYyGbZuYI0f+597zwSCRW0J+a2CwTuBSNa3m762 mYJ4RnQ/jHf1dAUARHI5ocm1N5D/FE6MXP0cANsXhcfG9sPMkJ2EkXwB5c2QlqtylUxZ ig7zM/ruflHhNMJqCCBG3MV0bj1NljEDw0Avf0A0pmWQxH8Tf6Ad56jK6nUGgcFW+T8M aT8F/1GPQHXga5vGV4CHyEmaGW6U7l5yBtFJWE5adJO1HbtjoCWN7wHcfcCvWO11Lz40 XrNw== 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:mime-version :content-transfer-encoding; bh=N6WuL0jO9VRXWMbI6XwfJX7wIxCjCzycdaIb9uJ7Krk=; b=gYbQnjCLGD+LbD3k2YWXaT2ViN0dAu8mPCTXxFOcV5CDiHG4PpkFgpJgSEZUSyWjIX LIm3+mHYxbuo1Lhq9Ih5/NGA2YeSeysUsfFZ9nf/ZbISY6EjIYSz2PC4nIVCAY7iuRZi cMzhg0wSrxzAEX2JXCEob7N3H7dbJSHdIJoo8vd9BdSEqfokxPSxScmIN6XZcO5KvRda gLBstMKLk8K6tqNiUVE4JlUdSBBaXmGlpytx+Q4Xk7i/6DJyjDOswANofwyQuBq7Jmk/ 9D7PAwjrYjs2mCyDperWVSkkQYB/Jnpwgw8kLU70ri2JSzyI34IFwJ89jtRX8C+Rnmvc GCbQ== X-Gm-Message-State: AOAM531BtzhoKdQU0PbPAY21lIytW6qsvRw3lTBRK6kR0ZrCFHtldj4i lpHLxXsM1hqDiTpSSyzso9tMScrpKow= X-Google-Smtp-Source: ABdhPJzBepKukMC7YHbe1QL1xq3+7jHj3DoyVSlzMap4fweT9+Il8Ss53x5KM9h8z46JZOiWrUgQ6g== X-Received: by 2002:a05:6830:2807:b0:605:5bd2:c02e with SMTP id w7-20020a056830280700b006055bd2c02emr154779otu.272.1651252871665; Fri, 29 Apr 2022 10:21:11 -0700 (PDT) Received: from localhost.localdomain ([2804:14c:485:4b69:5013:a749:adb3:2bea]) by smtp.gmail.com with ESMTPSA id u3-20020a056870d58300b000e686d1389csm3509288oao.54.2022.04.29.10.21.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Apr 2022 10:21:11 -0700 (PDT) From: Fabio Estevam To: sam@ravnborg.org Cc: marex@denx.de, robh+dt@kernel.org, hs@denx.de, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, Fabio Estevam Subject: [PATCH v3 1/2] dt-bindings: display: simple: Add Startek KD070WVFPA043-C069A panel Date: Fri, 29 Apr 2022 14:20:55 -0300 Message-Id: <20220429172056.3499563-1-festevam@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Fabio Estevam Add Startek KD070WVFPA043-C069A 7" TFT LCD panel compatible string. Signed-off-by: Fabio Estevam Acked-by: Sam Ravnborg --- Changes since v2: - None .../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 1eb9dd4f8f58..e190eef66872 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml +++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml @@ -294,6 +294,8 @@ properties: - starry,kr070pe2t # Starry 12.2" (1920x1200 pixels) TFT LCD panel - starry,kr122ea0sra + # Startek KD070WVFPA043-C069A 7" TFT LCD panel + - startek,kd070wvfpa # Team Source Display Technology TST043015CMHX 4.3" WQVGA TFT LCD panel - team-source-display,tst043015cmhx # Tianma Micro-electronics TM070JDHG30 7.0" WXGA TFT LCD panel From patchwork Fri Apr 29 17:20:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 568348 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A5147C433F5 for ; Fri, 29 Apr 2022 17:21:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379586AbiD2RYv (ORCPT ); Fri, 29 Apr 2022 13:24:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235486AbiD2RYn (ORCPT ); Fri, 29 Apr 2022 13:24:43 -0400 Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1324F532F0 for ; Fri, 29 Apr 2022 10:21:16 -0700 (PDT) Received: by mail-oi1-x233.google.com with SMTP id a10so9162083oif.9 for ; Fri, 29 Apr 2022 10:21:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JujFyyZhvM4XOXVsYz78/GtAJG0bR0liSI3QGaDbkow=; b=HaGjDDZ99AMi0OWYgvKPimL2aWVGOgMgM/KXY5LrO5hP03zoADF928VEreD+A+R09A snh77iR0n8MSzKQytLiTiaOtMcDO2RcUkbdrf8niOYZEaiPCeI4Rm3FtPDxFsHcNRrxf Ymsa5GI56jSz1cmzlRfhnxpoSKPmxBA+2ZWd/VE6c5GD9ixQIPIXRuRKyRnPIOEHbbuk Yf2xqs9wxYPsmTp2301XetFvO5l4QDAupZnQfLQ1NqR2u7rZcZB9Nx/oEzI7T/E71ViC EDgODrVnNoc3Nt/ajhLxlMVuSuDojEtugpmH3rtMx1BPqrz1l+vigkHIqLtiPl+b3YLH 4tXQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=JujFyyZhvM4XOXVsYz78/GtAJG0bR0liSI3QGaDbkow=; b=hPF0TeXG38LbPCFoN2Z8P2LI5/5qVbBAs6B/NrnaBbT8nP3nQRWHSs3x7mGiqD9hf8 q838VbNVik5vgMQnJ8uytNeo2uuH/vI6cFsMZdhfBxBS7RdY413V7Ls2L2nNb/EzpLXP vwD/BGroTKVyuxDKxyHBZFMosz7xJkg7VxL0KBnD7dBqUFVn0/cftFezho2yhqa+OjJ8 I5KsSzoupa7fwR1ppO+kFnA6A3ths0djw8LLgevyXxdbThWDsuVhlawzZbcluT0ncKaK rRZreI3r3vKB9kZ3AYXGRcbQjR8290+dpUgs4zjSJHyxOsGHz1mvtKFuuubAfFy8hFUA yVFw== X-Gm-Message-State: AOAM530UfWoc7TRWfReQnoaFikeTZK7uh9Wwtf3XqCEh2UUZQn02rPwJ STsYg6xwbjrQuTVDn3wHdz4= X-Google-Smtp-Source: ABdhPJyE2LcK0HrcmxW1Eh6+2wv8OOKioUST747y5swXm3Ts0xmS4XVM7pTpNaanUq0jHqFEExdkWw== X-Received: by 2002:aca:3403:0:b0:322:82c5:2ef5 with SMTP id b3-20020aca3403000000b0032282c52ef5mr1934097oia.38.1651252875427; Fri, 29 Apr 2022 10:21:15 -0700 (PDT) Received: from localhost.localdomain ([2804:14c:485:4b69:5013:a749:adb3:2bea]) by smtp.gmail.com with ESMTPSA id u3-20020a056870d58300b000e686d1389csm3509288oao.54.2022.04.29.10.21.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Apr 2022 10:21:14 -0700 (PDT) From: Fabio Estevam To: sam@ravnborg.org Cc: marex@denx.de, robh+dt@kernel.org, hs@denx.de, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, Fabio Estevam Subject: [PATCH v3 2/2] drm/panel: simple: Add Startek KD070WVFPA043-C069A panel support Date: Fri, 29 Apr 2022 14:20:56 -0300 Message-Id: <20220429172056.3499563-2-festevam@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220429172056.3499563-1-festevam@gmail.com> References: <20220429172056.3499563-1-festevam@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Heiko Schocher Add Startek KD070WVFPA043-C069A 7" TFT LCD panel support. Signed-off-by: Heiko Schocher [fabio: passed .flags and .bus_flags] Signed-off-by: Fabio Estevam Acked-by: Sam Ravnborg --- Changes since v2: - Pass the full flags and bus_flags. drivers/gpu/drm/panel/panel-simple.c | 38 ++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 595396f57632..8c9fae298d9b 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -3310,6 +3310,41 @@ static const struct panel_desc starry_kr070pe2t = { .connector_type = DRM_MODE_CONNECTOR_DPI, }; +static const struct display_timing startek_kd070wvfpa_mode = { + .pixelclock = { 25200000, 27200000, 30500000 }, + .hactive = { 800, 800, 800 }, + .hfront_porch = { 19, 44, 115 }, + .hback_porch = { 5, 16, 101 }, + .hsync_len = { 1, 2, 100 }, + .vactive = { 480, 480, 480 }, + .vfront_porch = { 5, 43, 67 }, + .vback_porch = { 5, 5, 67 }, + .vsync_len = { 1, 2, 66 }, + .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW | + DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE | + DISPLAY_FLAGS_SYNC_POSEDGE, +}; + +static const struct panel_desc startek_kd070wvfpa = { + .timings = &startek_kd070wvfpa_mode, + .num_timings = 1, + .bpc = 8, + .size = { + .width = 152, + .height = 91, + }, + .delay = { + .prepare = 20, + .enable = 200, + .disable = 200, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, + .connector_type = DRM_MODE_CONNECTOR_DPI, + .bus_flags = DRM_BUS_FLAG_DE_HIGH | + DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE | + DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE, +}; + static const struct display_timing tsd_tst043015cmhx_timing = { .pixelclock = { 5000000, 9000000, 12000000 }, .hactive = { 480, 480, 480 }, @@ -4019,6 +4054,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "starry,kr070pe2t", .data = &starry_kr070pe2t, + }, { + .compatible = "startek,kd070wvfpa", + .data = &startek_kd070wvfpa, }, { .compatible = "team-source-display,tst043015cmhx", .data = &tsd_tst043015cmhx,