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: 12832490 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DCCA6C433F5 for ; Fri, 29 Apr 2022 17:21:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 01F7410ED35; Fri, 29 Apr 2022 17:21:14 +0000 (UTC) Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) by gabe.freedesktop.org (Postfix) with ESMTPS id 62DA310ED35 for ; Fri, 29 Apr 2022 17:21:12 +0000 (UTC) Received: by mail-ot1-x32a.google.com with SMTP id r14-20020a9d750e000000b00605446d683eso5540249otk.10 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=6gMkx+7ZQyluD8m4nV9iv36LPHb2WdiVGUsh//H6a681y+dYmaoP4FMpEUs4mTjY0K 3zkNROjHv8PxWwW7Is9m+rD18vVMNXsx+0qdSsGTjCwhpfv+WX34sLv9hkP18/LfCrog jRy4BxvVHY8ZexxF1DzujebRAoexjfS4wNDWt9lXpWJiuO/hwp5ohKSzR26fJYiCFckT baG4Cuq+z5EjdBaYhAV2wganJdcOQ+l6dhxZr221FNRoiH55Ff/x6WZj4qjy7T2BYxw3 rg1FOsxf6fsbu7dSiogj0EoW9k9cj+i2T/SseTvnmguCeCQ4LYuQMo4okTj7kszajCaO WPKA== X-Gm-Message-State: AOAM530CkJt3/1yJVGDJsihZlIakyGXbA4XGLyyT/uhut1+pEkKacjRR 3ICH6vL1w86yQssnVQ66bHA= 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 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 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: marex@denx.de, devicetree@vger.kernel.org, Fabio Estevam , dri-devel@lists.freedesktop.org, robh+dt@kernel.org, hs@denx.de Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Fabio Estevam Add Startek KD070WVFPA043-C069A 7" TFT LCD panel compatible string. Signed-off-by: Fabio Estevam Acked-by: Sam Ravnborg Reviewed-by: Marek Vasut --- 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: 12832491 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C3DDAC433FE for ; Fri, 29 Apr 2022 17:21:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3CED610ED64; Fri, 29 Apr 2022 17:21:20 +0000 (UTC) Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3B77A10ED64 for ; Fri, 29 Apr 2022 17:21:16 +0000 (UTC) Received: by mail-oi1-x234.google.com with SMTP id r1so9001238oie.4 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=X0E2wkmEOK89UoB73UayL7RGo57kcbkdYJmsYeaDtL8t0mpaQBErk12xz6Hqcazt7K NC8MY7qjZUS87Gtvm+Y6sBehe3KXM+Iw+dctgexhHdzo26MM5e6EzfThKED1fy1wSNoK zd6JZ6dy32Fh/Altj9E4mZVWcEsRq7L24bF8NN+v4Mz1NivE7HQApe4++2Hsz9Cy2H1B Hch0WLzZzdVTMURbpjaxoSZDnUQs5QDVkzRSg7zzmv9c1lIqrwFfZRvTYuN5rMBfSWGM ccyse9xK1JnZeA2kPxySV26aAZ2GAq/XVtyG7ld7IEBmHNz4cYYZ12jum9Nk6if71sh+ 6EHA== X-Gm-Message-State: AOAM5318GQGlFbcgBha/mMrBsrXBf22MfCAayn12T5kDFiBOQWH/+9uq 9BKiUAro3/tdqLy2kRcM8Dk= 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 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 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: marex@denx.de, devicetree@vger.kernel.org, Fabio Estevam , dri-devel@lists.freedesktop.org, robh+dt@kernel.org, hs@denx.de Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 Reviewed-by: Marek Vasut --- 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,