From patchwork Thu Feb 18 22:56:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 12094787 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 D4091C433DB for ; Fri, 19 Feb 2021 07:55:23 +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 75FC864E86 for ; Fri, 19 Feb 2021 07:55:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 75FC864E86 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 1A90D6EABB; Fri, 19 Feb 2021 07:55:15 +0000 (UTC) Received: from smtpcmd0991.aruba.it (smtpcmd0991.aruba.it [62.149.156.91]) by gabe.freedesktop.org (Postfix) with ESMTP id 0861C6E88C for ; Thu, 18 Feb 2021 22:56:40 +0000 (UTC) Received: from ubuntu.localdomain ([146.241.168.111]) by Aruba Outgoing Smtp with ESMTPSA id CsDwlA0uUJFRNCsDwlTfoM; Thu, 18 Feb 2021 23:56:40 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1613689000; bh=gcK70S0FFOxqIXWnyxiiEzZN/4jx2jpClpkDS0APdYA=; h=From:To:Subject:Date:MIME-Version; b=MQrmAQZMdhfpcrS4HvFBZ4oH+gF1MQzRu0hiOQgUXToaiEvITUkg+g+DiTHfErKit SPzTOgFNoDALGnZtayc5caB7wUa0SaSNpWx7c1nnEnxdyRwU6+IxiqWez7rTKfyQtZ wXkn9rEVHqhkSik6qx/hg9BcDWQ033Vf2Skh4LGnRbRrPyfbMcECjDBfo0PheZE5T6 peNAsqoDfToHz6lNrmilSXzyNLhW2Ke0v8zRQDZb2SeJPuOJPoQ7KV5RkLj8WML+95 2p7+9O7bQSFfn9trRWAZGW7Z4Iw69ZjN0gcWU5CApbvITCnYKOQ5KFlGUl2k6Rn0oG 7yc7qSmGifYNg== From: Giulio Benetti To: Subject: [PATCH 8/9] drm/panel: simple: add Jenson JT60249-01 Date: Thu, 18 Feb 2021 23:56:38 +0100 Message-Id: <20210218225639.824094-1-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CMAE-Envelope: MS4wfDWlyH04O5dwYkBN/neJuyQv4kKg65oGrhs0Tg++fWrZwlTRHyBe8wwWzAbHupDrJLlbV7GCL/SD+0m0p+aH18+mSa2+w3YJlvpr2kcluQfnQntsSdFt Ute8+HVgrhspdsSBvMBVF9tERklfkfjGZ0ee2yAY7825BlAw2WunWU21fw/SbEYoQTk7yu4MdAgjyMoR76yvHocLyFYw7NXfW8B9Za8MiQok/0PO7fqM6WBU t3qpWbjnlTORPX8/lREvP71Udedw9YslgtFkO5e1bk7n96TqzJsuNrrTHdASjQSZv4wneuAmCDFL4PExMQnEBJGMEX6WfaqQLRHs36iJKX5S1Gtq1v4Mf5hY qPvdOzOvxURvGDtO8kPfJBPTlHuKTxnXV1YN1F0rP2fLAremvJ3yWJ1RwLLoeHZ9dD0woMi8y5d2VmYV50LhZfcfzMtwd7dFmtvdoDt6yaPm3VoGPxLaFmcK +e+cC3QK5xHQqCtf 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: David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Thierry Reding , 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 JT60249-01 800x480 5" 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 f243087ce89b..995a581f8b2b 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -2444,6 +2444,30 @@ static const struct panel_desc jenson_jt60248_01 = { .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE, }; +static const struct drm_display_mode jenson_jt60249_01_mode = { + .clock = 25000, + .hdisplay = 800, + .hsync_start = 800 + 8, + .hsync_end = 800 + 8 + 4, + .htotal = 800 + 8 + 4 + 8, + .vdisplay = 480, + .vsync_start = 480 + 8, + .vsync_end = 480 + 8 + 4, + .vtotal = 480 + 8 + 4 + 8, + .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, +}; + +static const struct panel_desc jenson_jt60249_01 = { + .modes = &jenson_jt60249_01_mode, + .num_modes = 1, + .bpc = 8, + .size = { + .width = 108, + .height = 65, + }, + .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE, +}; + static const struct drm_display_mode kingdisplay_kd116n21_30nv_a010_mode = { .clock = 81000, .hdisplay = 1366, @@ -4216,6 +4240,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "jenson,jt60248-01", .data = &jenson_jt60248_01, + }, { + .compatible = "jenson,jt60249-01", + .data = &jenson_jt60249_01, }, { .compatible = "kingdisplay,kd116n21-30nv-a010", .data = &kingdisplay_kd116n21_30nv_a010,