From patchwork Thu Feb 18 22:54:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 12094773 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=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 76E17C433DB for ; Fri, 19 Feb 2021 07:55:09 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 03D2E64E86 for ; Fri, 19 Feb 2021 07:55:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 03D2E64E86 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 69B306EAB1; Fri, 19 Feb 2021 07:54:59 +0000 (UTC) Received: from smtpcmd0991.aruba.it (smtpcmd0991.aruba.it [62.149.156.91]) by gabe.freedesktop.org (Postfix) with ESMTP id 5A5726E88C for ; Thu, 18 Feb 2021 22:55:36 +0000 (UTC) Received: from ubuntu.localdomain ([146.241.168.111]) by Aruba Outgoing Smtp with ESMTPSA id CsCZl9zcdJFRNCsCtlTfUC; Thu, 18 Feb 2021 23:55:35 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1613688935; bh=q9L05eGn0HIDk98um6gpViXmrMbpn05ZRhCwVCEpaBQ=; h=From:To:Subject:Date:MIME-Version; b=h1KONaoCxBHlYTuXin/rVbpPZYfgzLJcKnAVh+M7s/TwtXbnbZ2J/GXw1klyqzVjP msmENJbxrLpdS3DgpVUoKInKqhSQisO0QOSsTQoxm9d7nm/DLRZz0OpGLa5qr+HZnW XvnGMRd2IHrztDApNiEaK5FmLAY6hf8v9+h/tzowFBFdn/R5W+OL1vA1Jk2umgt6Lq XYe6pJ4yYKDFWCsoY7PcGnXhL3YTEsJGRoD/FAJc3RF7b80ZZRlcGsBOqOQEwJRh17 gd9NI3PfKBjVKxxBaih6bpq5aR8h34U8EFXof2FMHavjUulMfV0FEIQkzAXMdwKUOP dtEG46f7jRy2g== From: Giulio Benetti To: Subject: [PATCH 6/9] drm/panel: simple: add Jenson JT60245-01 Date: Thu, 18 Feb 2021 23:54:54 +0100 Message-Id: <20210218225458.823773-7-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210218225458.823773-1-giulio.benetti@benettiengineering.com> References: <20210218225458.823773-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfJqai42glsm/W9k4RRLq+9Qc8Z0UDeUTqa9M6zQ8skSDd1D/PrMDE2nvZkwNpC9CqeJjNBJHkk9XM/PqbyqApSoup5sCKHnGVngtDu0r2YQ+htnKCf/8 8xnwtMDBLg632aG0h5V6bl570aFV4MLgRbqte9+dG6msbwB7umlPNBbzG28Nyw0BKwctrp3jDDvJOPp8OX2R4M3F+5uK45bAnuIFLXN5YuCYT4hedxPnAh5E aVjWQP2c51NgRv/5nvZfXAq2d5hjuqwtFdg2YMnwr/Vd/aI2ZqYuyGlDwbOWdPWTDqyvBg1ulN4uw5RU7NxqbaK6u7RBToeY6JuAO7VNqE9AgfolM9EgLry2 gAf8jt2fnEhcsI3gO7vGAyBtWQo3ZrjVJD2QoWs9djfhDgqBbeyzmi7khQt06Np6lbZ/E9QEQAy93Hi3BjvDsMtgP3WH63nMeFxlaM54ZzTgbhwqnWYrV7j5 MUpI+CNwk3xBGYVwXRDbuctRWGHBEsfQxD53EXElMnPRWSMjqOJ2iyK3bIEgx9Fv3ZrL5ndA5Q34AiME+saLFgGUft6OQyu8HXAC4sh5Q/X2QOBV0cdrqC80 uoQLuNdG4z8elWuGvRVT097O0XIkJ1RYQrvUCHJIkakjiudLhckdXe7Y9dvO3pbieJ2KYk6lCcwc8alVEgFpWdKVArroCE5IyQhbzfHQNJaT/uB9lb/8lho8 vSgrOgqQOPuvfNjl+tGRC5GlOR1WqSCUtRvI67rPzghCABTVKjsmTzv3/UhlQZoI6gAiE+g+RoVDnQjyuZt1wtwbv9YPeOSKbeaGWwWTpWvJJt2JLIciAg== X-Mailman-Approved-At: Fri, 19 Feb 2021 07:54:58 +0000 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: devicetree@vger.kernel.org, Kuninori Morimoto , Geert Uytterhoeven , Arnd Bergmann , David Airlie , Shawn Guo , dri-devel@lists.freedesktop.org, Daniel Palmer , linux-kernel@vger.kernel.org, Rob Herring , Lubomir Rintel , Thierry Reding , Krzysztof Kozlowski , allen , Max Merchel , Giulio Benetti , Sam Ravnborg , Giulio Benetti Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Giulio Benetti This patch adds support for Jenson JT60245-01 800x480 7" panel to DRM simple panel driver. Signed-off-by: Giulio Benetti Signed-off-by: Giulio Benetti --- drivers/gpu/drm/panel/panel-simple.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 41bbec72b2da..f268ad5f5345 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -2396,6 +2396,30 @@ static const struct panel_desc ivo_m133nwf4_r0 = { .connector_type = DRM_MODE_CONNECTOR_eDP, }; +static const struct drm_display_mode jenson_jt60245_01_mode = { + .clock = 35000, + .hdisplay = 800, + .hsync_start = 800 + 210, + .hsync_end = 800 + 210 + 20, + .htotal = 800 + 210 + 20 + 46, + .vdisplay = 480, + .vsync_start = 480 + 22, + .vsync_end = 480 + 22 + 10, + .vtotal = 480 + 22 + 10 + 23, + .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, +}; + +static const struct panel_desc jenson_jt60245_01 = { + .modes = &jenson_jt60245_01_mode, + .num_modes = 1, + .bpc = 8, + .size = { + .width = 154, + .height = 86, + }, + .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE, +}; + static const struct drm_display_mode kingdisplay_kd116n21_30nv_a010_mode = { .clock = 81000, .hdisplay = 1366, @@ -4162,6 +4186,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "ivo,m133nwf4-r0", .data = &ivo_m133nwf4_r0, + }, { + .compatible = "jenson,jt60245-01", + .data = &jenson_jt60245_01, }, { .compatible = "kingdisplay,kd116n21-30nv-a010", .data = &kingdisplay_kd116n21_30nv_a010,