From patchwork Sun Apr 18 21:09:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 12212293 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=-15.0 required=3.0 tests=BAYES_00,DATE_IN_PAST_06_12, 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 E08A0C433B4 for ; Mon, 19 Apr 2021 16:41: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 A8A276100B for ; Mon, 19 Apr 2021 16:41:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A8A276100B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=alistair23.me 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 8024D6E40C; Mon, 19 Apr 2021 16:41:46 +0000 (UTC) Received: from new3-smtp.messagingengine.com (new3-smtp.messagingengine.com [66.111.4.229]) by gabe.freedesktop.org (Postfix) with ESMTPS id 75CF16E1F3 for ; Mon, 19 Apr 2021 08:56:05 +0000 (UTC) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id 8EDDD58108C; Mon, 19 Apr 2021 04:48:13 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 19 Apr 2021 04:48:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alistair23.me; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm3; bh=cAEoK8AnB/XynqHMwPNrkyMBCv xGzvJfapPb7iiGB6o=; b=Nr5QiOlXYtVmZLLbxKM/+ZeQfSwN4Isc8ubF1Rg0vH HG0f6refNBdd9PyNVy89v2h1ON4oeLoiV97H34Y4s/xfihObMipddCgIkLEt8G1w t/qbDu0YikQR5yoZmprrvy/XCLCFk8oUUEar9Fm2XGwBEHtvZUvWXLVobq14dKfW zkr2sY94qfO/bhR+275Ce+SIh/982UuFvK/NgWcVNDhAjpxzAKw+GyTcUEVm4ZZ1 47e8WuAEIZbTH9JV3XqbQgfiD7kx8tVIrqa/wzkSAZDN3u44qXSFvGARZvWoFrW2 6BWBR0ZAsBujVBOKEFfeCqyrFXk2SDVE0xCy2YXsX2og== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=cAEoK8AnB/XynqHMw PNrkyMBCvxGzvJfapPb7iiGB6o=; b=ZmQKL3ofgKkRDsWo7yUyoO8r08oVWqhPc iOnaXk2gEJWcshrncEOp5qX7vL6FSjF9KI20dAzvTU/2IPS/5hSGVFOM/oFexDkD BDjlWS2G8dyeqKJ4lRi+fdRTmOAGCY2i+zg1eGO82dxw9xmyX1sxJ4JcsksJb8Fn sVan9ACdNTGVI3cLaC6vTBhoRgsEBSYesESS/NxbiSuudBBx1lm5Hvlmu3jqUDwZ AJJ+N1OFO1bGL91ewWvITu4kVDXGWT/Z3nmTz77L/QTMOR6RCwZyQ0UGydr1vV5y iMP8ymeWeHMenhTYRoa+T6rEmWnfGEgmbH7Us6F3oNDpi6CU9uVgA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvddtgedgtdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgrihhr segrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeejleeihfdvtefgtd ethfdtgefftdeiffefjeeiffefveeuleejheejvefhffeukeenucfkphepkeelrdeggedr uddtrdduvdefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homheprghlihhsthgrihhrsegrlhhishhtrghirhdvfedrmhgv X-ME-Proxy: Received: from ThinkpadX1Yoga3.localdomain (unknown [89.44.10.123]) by mail.messagingengine.com (Postfix) with ESMTPA id 57A57240057; Mon, 19 Apr 2021 04:48:06 -0400 (EDT) From: Alistair Francis To: robh+dt@kernel.org, thierry.reding@gmail.com, sam@ravnborg.org, krzk@kernel.org, shawnguo@kernel.org, daniel@0x0f.com, linux@rempel-privat.de, kuninori.morimoto.gx@renesas.com, Max.Merchel@tq-group.com, geert+renesas@glider.be, airlied@linux.ie, daniel@ffwll.ch Subject: [PATCH 1/2] dt-bindings: Add E Ink to vendor bindings Date: Mon, 19 Apr 2021 07:09:55 +1000 Message-Id: <20210418210956.3024-1-alistair@alistair23.me> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Mailman-Approved-At: Mon, 19 Apr 2021 16:41:45 +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, Alistair Francis , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add the E Ink Corporation to the vendor bindings. Signed-off-by: Alistair Francis Acked-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index 996f4de2fff5..6c9323dc9b78 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -329,6 +329,8 @@ patternProperties: description: eGalax_eMPIA Technology Inc "^einfochips,.*": description: Einfochips + "^eink,.*": + description: E Ink Corporation "^elan,.*": description: Elan Microelectronic Corp. "^element14,.*": From patchwork Sun Apr 18 21:09:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 12212291 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=-15.0 required=3.0 tests=BAYES_00,DATE_IN_PAST_06_12, 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 3C40DC433ED for ; Mon, 19 Apr 2021 16:41:47 +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 004726100B for ; Mon, 19 Apr 2021 16:41:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 004726100B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=alistair23.me 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 179E06E40A; Mon, 19 Apr 2021 16:41:46 +0000 (UTC) X-Greylist: delayed 468 seconds by postgrey-1.36 at gabe; Mon, 19 Apr 2021 08:56:05 UTC Received: from new3-smtp.messagingengine.com (new3-smtp.messagingengine.com [66.111.4.229]) by gabe.freedesktop.org (Postfix) with ESMTPS id 752C989E2A for ; Mon, 19 Apr 2021 08:56:05 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.nyi.internal (Postfix) with ESMTP id C36EA58108F; Mon, 19 Apr 2021 04:48:19 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 19 Apr 2021 04:48:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alistair23.me; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm3; bh=x1lvtnCvqnur4 ESKPxZ8yfTy9HL79mbmCtNhz9bHNYA=; b=o3EJD316+0eqA2bfZkcWY0tV1TQoM BNPb6B17cvgaYMEksh3OKNLPwUuerF7ox/txIcZn+zfY0Gd8Z6sOZ0n9YQpeH649 XsJWryZwAj6bK3apEbi9RZBQYYKYXEKKbSdbEDjPEd3PesH5OoN+eUDMozbKKoI+ lg3sJideu6uwaA0HMNsDDJwsin1wnCvmx8LMKXmA1jLkuhjZf7EJN7LYNsA6588f aDBEqqaNnscKjlgvjhrLNHqy1frMGR8kLO573qPV1RKFtSIBffgvNbR1qWqcLUv2 A2MMgW+j5a1pXCzkOteOQ9cw5VbGLKhZZGrV4yRcPqT5oYjfi4ZwQDDLA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=x1lvtnCvqnur4ESKPxZ8yfTy9HL79mbmCtNhz9bHNYA=; b=KkZBDDnh j2qLa76zp6k+e7Ih/+DtOOCX24YsK0X3q9Fc5Pa91KTclfi+O32LxR0zXFilu3a2 av+YFk6RJ3YxdaxsA7QCbYCxMgGmzrh/oCYejK5cIGaytp1z7oyMN5zjBXljMxF+ tV1U0lw4xcBQXD5XatvV0lq8W6j/qaDF8fii81iyLSnnsLPlbWuhQDIUOcw6lFHj 0Ok7Njp+WDXuX/I2rT/R72hG5ni6FbYX8Yx/qtG47G/6aYlddygmS29DYID35jGz 7lw5ZopLfEuB3ZB9lhiWG0aN2zm601phupBTekYuyEAOPLNqWms7JUE9LpPllA9g DcmO2gPezrHsuQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvddtgedgtdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgr ihhrsegrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeevjeelleejfe dvheeuieetfeejfefhhffffefffefhveetffeuudegudduhedtueenucffohhmrghinhep vghinhhkrdgtohhmnecukfhppeekledrgeegrddutddruddvfeenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhishhtrghirhesrghlihhs thgrihhrvdefrdhmvg X-ME-Proxy: Received: from ThinkpadX1Yoga3.localdomain (unknown [89.44.10.123]) by mail.messagingengine.com (Postfix) with ESMTPA id 1691324005D; Mon, 19 Apr 2021 04:48:11 -0400 (EDT) From: Alistair Francis To: robh+dt@kernel.org, thierry.reding@gmail.com, sam@ravnborg.org, krzk@kernel.org, shawnguo@kernel.org, daniel@0x0f.com, linux@rempel-privat.de, kuninori.morimoto.gx@renesas.com, Max.Merchel@tq-group.com, geert+renesas@glider.be, airlied@linux.ie, daniel@ffwll.ch Subject: [PATCH 2/2] drm/panel: Add support for E Ink VB3300-KCA Date: Mon, 19 Apr 2021 07:09:56 +1000 Message-Id: <20210418210956.3024-2-alistair@alistair23.me> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210418210956.3024-1-alistair@alistair23.me> References: <20210418210956.3024-1-alistair@alistair23.me> MIME-Version: 1.0 X-Mailman-Approved-At: Mon, 19 Apr 2021 16:41:45 +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, Alistair Francis , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add support for the 10.3" E Ink panel described at: https://www.eink.com/product.html?type=productdetail&id=7 Signed-off-by: Alistair Francis --- drivers/gpu/drm/panel/panel-simple.c | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 4e2dad314c79..f1f6fd2517f6 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1964,6 +1964,32 @@ static const struct panel_desc edt_etm0700g0bdh6 = { .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, }; +static const struct display_timing eink_vb3300_kca_timing = { + .pixelclock = { 40000000, 40000000, 40000000 }, + .hactive = { 334, 334, 334 }, + .hfront_porch = { 1, 1, 1 }, + .hback_porch = { 1, 1, 1 }, + .hsync_len = { 1, 1, 1 }, + .vactive = { 1405, 1405, 1405 }, + .vfront_porch = { 1, 1, 1 }, + .vback_porch = { 1, 1, 1 }, + .vsync_len = { 1, 1, 1 }, + .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW | + DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE, +}; + +static const struct panel_desc eink_vb3300_kca = { + .modes = &edt_etm0700g0dh6_mode, + .num_modes = 1, + .bpc = 6, + .size = { + .width = 157, + .height = 209, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, + .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, +}; + static const struct display_timing evervision_vgg804821_timing = { .pixelclock = { 27600000, 33300000, 50000000 }, .hactive = { 800, 800, 800 }, @@ -4232,6 +4258,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "edt,etm0700g0dh6", .data = &edt_etm0700g0dh6, + }, { + .compatible = "eink,vb3300-kca", + .data = &eink_vb3300_kca, }, { .compatible = "edt,etm0700g0bdh6", .data = &edt_etm0700g0bdh6,