From patchwork Fri Mar 5 23:44:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 12119575 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 A4F28C433E6 for ; Fri, 5 Mar 2021 23:51:50 +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 64B39650AD for ; Fri, 5 Mar 2021 23:51:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 64B39650AD 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 36E0F6EC9C; Fri, 5 Mar 2021 23:51:44 +0000 (UTC) Received: from smtpcmd15177.aruba.it (smtpcmd02102.aruba.it [62.149.158.102]) by gabe.freedesktop.org (Postfix) with ESMTP id 500F46EC9D for ; Fri, 5 Mar 2021 23:51:42 +0000 (UTC) Received: from ubuntu.localdomain ([146.241.168.111]) by Aruba Outgoing Smtp with ESMTPSA id IK7Ql1dnx4WhhIK7dloTKW; Sat, 06 Mar 2021 00:44:42 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1614987882; bh=G4k5vo1LJKULxTjDlFPcVz/IRIGSMhDWXp3Oy4gwmqo=; h=From:To:Subject:Date:MIME-Version; b=h7foF/1pDbZp3ZKQhUbeEQyMl8XYu0P7VbFgw/rzcSU6cVMjLWuEGJQ9YYY8ojVhv waYP7gkTHuhue7N30DRNPxbofc7Y1oTYEpxgmFfVMKZG45FZgGZ74zfGfAUKmTzfmj i+l2y7i74Bi6bJ61hPR1TWWNhvIM/B878HTGRa4HdycRttea32s6QPSdpYDA/zvdzn Z3gv818XfW/BfLYs9gCEIHIt1y+3kh6TKSjSrVHFGDt5yicbC6cGcJXXcwJqR37TH/ DKzHfu4sUi4J6d+E3Io8BGOug249M9JybnrfvOpK8REkIJ1xsfAAG8mTbGrIy7vvAO tYWQn1pZzIUNQ== From: Giulio Benetti To: Rob Herring Subject: [PATCH v2 7/9] drm/panel: simple: add Jenson JT60248-01 Date: Sat, 6 Mar 2021 00:44:24 +0100 Message-Id: <20210305234427.572114-8-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210305234427.572114-1-giulio.benetti@benettiengineering.com> References: <20210305225444.GA792026@robh.at.kernel.org> <20210305234427.572114-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfJOeLgA3G0+TqE2hyF43qMUr6vjetan/RyQDBs71mOxXkXgsNy3mP2zepJO3hA6tK78yYBr6+7ZOlXjYFGKnEIIR1ZxOyqWL6YiUAx2E8RIcYqEkAXo/ 3ifjORztsRPLxQESgo9Sem5ZortEkOlNEjKsaoJ/cVUPRot5fMPAG8FVf/TCOYJXOtxUxbYdQjt/iZhyqC/zkNMXLYriMEVs0Nsa26XSyyzIidDr6sh1Sbjd McFsifKbgPCDQd0fXaVHVtalltoebl3hnne9Q7IfVMjuUrzaOgUWDNHwLYxIx+zWuUoHuFBYOsLuj+YGevhZ5EdtPEOe6+8ITFKCPry2GnNWnhuzL/ljtM8f EJb8rEUexfaY2kXZaP7rh7nFB02PJw14mO1P/t7P57xiFSVax1MGmcM60nmbdE62PWI0Z/jop7qXPifu6Ek9H8sGNDuH1aI2rFDHzx9h90889B4Pv+Cgm8jQ 1injLPSP2Fdzx5OShbRgScrETUcLCudCJwK1GulUQMqpr2Nir7xn1SWQYKZRMx/fgVkyKdezp5eYNV/T9gYo8SQSOoSzy+KxZ3ay4ITTY4nOhBp6Erje5rKv GLmr4klENo9ZLNFDxvh5h+F/MonZBcYaCJ8whEmp7zO1hLoCNKD2L/h0TIaM5PJhO43ls/x80R2CJDw+mCb+v2h3WfPP8K7jqY3HH+eIqa73DOjY7M/t0XOm 9bkE9yS0kLMs6/mdyPN7NEl242p4coLUTRQRrGNA3mKI05rPDax37g== 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 , Daniel Palmer , linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Oleksij Rempel , Thierry Reding , dri-devel@lists.freedesktop.org, allen , Sam Ravnborg , Giulio Benetti Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Giulio Benetti This patch adds support for Jenson JT60248-01 480x272 4.3" panel to DRM simple panel driver. 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 f63fa75ae4ef..f96f820a890b 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -2556,6 +2556,30 @@ static const struct panel_desc jenson_jt60245_01 = { .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE, }; +static const struct drm_display_mode jenson_jt60248_01_mode = { + .clock = 9000, + .hdisplay = 480, + .hsync_start = 480 + 8, + .hsync_end = 480 + 8 + 4, + .htotal = 480 + 8 + 4 + 43, + .vdisplay = 272, + .vsync_start = 272 + 8, + .vsync_end = 272 + 8 + 4, + .vtotal = 272 + 8 + 4 + 12, + .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, +}; + +static const struct panel_desc jenson_jt60248_01 = { + .modes = &jenson_jt60248_01_mode, + .num_modes = 1, + .bpc = 8, + .size = { + .width = 95, + .height = 54, + }, + .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE, +}; + static const struct drm_display_mode kingdisplay_kd116n21_30nv_a010_mode = { .clock = 81000, .hdisplay = 1366, @@ -4328,6 +4352,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "jenson,jt60245-01", .data = &jenson_jt60245_01, + }, { + .compatible = "jenson,jt60248-01", + .data = &jenson_jt60248_01, }, { .compatible = "kingdisplay,kd116n21-30nv-a010", .data = &kingdisplay_kd116n21_30nv_a010,