From patchwork Tue Jun 15 10:33:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 12321087 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=-14.9 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_BLACK,USER_AGENT_GIT autolearn=unavailable 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 82531C48BDF for ; Tue, 15 Jun 2021 10:41:10 +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 3B7D46115B for ; Tue, 15 Jun 2021 10:41:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3B7D46115B 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 8DECE89FEA; Tue, 15 Jun 2021 10:41:09 +0000 (UTC) Received: from new1-smtp.messagingengine.com (new1-smtp.messagingengine.com [66.111.4.221]) by gabe.freedesktop.org (Postfix) with ESMTPS id DB8AC89FF7 for ; Tue, 15 Jun 2021 10:41:08 +0000 (UTC) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailnew.nyi.internal (Postfix) with ESMTP id 1BF6D58088F; Tue, 15 Jun 2021 06:33:38 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 15 Jun 2021 06:33:38 -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=fm1; bh=dsIU2A4IG63n01qLudL7p2K0zB sqcfkyQtEn9S3VJ2s=; b=nESK69ujFmOGBR7vmxhVNPthe+3ZJYdH5WhBzH6/BU Kp0K96yG8XxHvhdwVym5JK9tOet0ZLTRgZw9cCXZUYubbF72SS/RF1pxgSoJ38Ai +m+xeG3DzCzbpAXZqWcP8KzG4i0u4B4M2hq4RqvgmBsMXB6QyRCdZT9nU62EeA1l oDLhu6/Mbc3Ow56m1pwui68ZRwYwLjPHozPlojCD7gTPg1hPh80gtrC78wydCYfN 2+wu1KTx2Iwg0qIhl+x4vawR8aKwrmC+cYtJAIyEso6R/XlxgicVE+ZjLVvqTf/E 0QaM9wMVIR39oeBgIf09MIEwPIsPEMaNZJuQX9bYHIOg== 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=fm3; bh=dsIU2A4IG63n01qLu dL7p2K0zBsqcfkyQtEn9S3VJ2s=; b=nZrFMQp61fRCkIprl8WYqhwUqztX9/khN KsLFgEzKq0cRJa2IYvBjzXD2ffMnEmVTxDUhrTRxjC7giPgtXoDDPhJcFL/aRuxC CNkFNkhVxAuAMVKRt9cKWN9y/s8Is2bcsiP7ng/yqqwkPeCWhyHijzmddmtlbbd6 TBSeuIgActtF5Tze0CTP3g18fhjcxLv1beEstL0rSdO5s6AlkmTiu6cC8yd2koNp 84/U47Lk0cUiQ+XMwHKYq69pRSuZeeAzYp2dp9qK4kxCRE++rBD9FrELzIjVYesE NOSScvVMNC+MN6tWTBlR6dLjNp80M4hss7mOJP3MeLrnqr9TjVoKg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfedvjedgvdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpeetlhhishhtrghi rhcuhfhrrghntghishcuoegrlhhishhtrghirhesrghlihhsthgrihhrvdefrdhmvgeqne cuggftrfgrthhtvghrnhepjeeliefhvdetgfdttefhtdegffdtiefffeejiefffeevueel jeehjeevhfffueeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomheprghlihhsthgrihhrsegrlhhishhtrghirhdvfedrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 15 Jun 2021 06:33:29 -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 v2 1/2] dt-bindings: Add E Ink to vendor bindings Date: Tue, 15 Jun 2021 20:33:11 +1000 Message-Id: <20210615103312.872-1-alistair@alistair23.me> X-Mailer: git-send-email 2.20.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: devicetree@vger.kernel.org, Alistair Francis , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, alistair23@gmail.com 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 abd878ff23d5..a35cec512530 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -335,6 +335,8 @@ patternProperties: description: eGalax_eMPIA Technology Inc "^einfochips,.*": description: Einfochips + "^eink,.*": + description: E Ink Corporation "^elan,.*": description: Elan Microelectronic Corp. "^element14,.*": From patchwork Tue Jun 15 10:33:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 12321089 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=-14.9 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_BLACK,USER_AGENT_GIT autolearn=unavailable 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 B2B31C48BDF for ; Tue, 15 Jun 2021 10:41:14 +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 77AF9613DB for ; Tue, 15 Jun 2021 10:41:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 77AF9613DB 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 0A00789FF9; Tue, 15 Jun 2021 10:41:10 +0000 (UTC) X-Greylist: delayed 448 seconds by postgrey-1.36 at gabe; Tue, 15 Jun 2021 10:41:08 UTC Received: from new1-smtp.messagingengine.com (new1-smtp.messagingengine.com [66.111.4.221]) by gabe.freedesktop.org (Postfix) with ESMTPS id CA8F889FEA for ; Tue, 15 Jun 2021 10:41:08 +0000 (UTC) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id 56F61580891; Tue, 15 Jun 2021 06:33:46 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 15 Jun 2021 06:33:46 -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=fm1; bh=h+iaVVuHblnQK meS9Tco0cVzpqN/8yNC7UJv6QL74TA=; b=S7LxfNYYi+Dw/zHWdaJoG8IQiME25 h9Y4tZFYHU1BF1IoYhcG6D6GSggxQtf8K7Uur0lj/A7xS3EDbLGPQh3Uu7WL+a/p /+gZjPXb7LA2lPsTusVdvWu8kgPelDyiF2qKskP3efxodrKzei8eXOWSW+JynfTG ALYkE3lE5lGTmMLM2t+40VIdA5jw5RDAMAvU8WFkab5ExLT5vjGJeH2ZnY87Mb16 awx61pCpYCIyS7YHAsxT2qHaRK9EVzH/zBp2JmQIE+SgYtAl1vbpDWoMYUn1Nv8U iy7zXNXcfZul5hW5v4mnOVgI2CFg2UjW8wqGSpqDoISR3m8NHSzS/vs2Q== 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= fm3; bh=h+iaVVuHblnQKmeS9Tco0cVzpqN/8yNC7UJv6QL74TA=; b=Zi+X9MGH 96CYITySQuomtfE8s3YguaXd2buUD1JDA5DEg2+K1nV5tLT5dABbKpTEj15dCD/6 3w8hP+zqU3dscYe0tZzdkEOuq8/YVLBVeQp4BG2pHmNr/M6fibcdrQYyMxfIPwtI BqDXapWwqCJb1NkOXHvdnHH6GL7scYBBSYe7YcZZIJioRTQvI3Mfza++EWGZTYOP jpOvfCOSUPobSaerMZK34OsgbalYmIldtCX3ciaB/JSPw4WAdExx2FvoCl5LCvHZ jObGdkVePqtMetA1NLPOZDKVfqiMTDTSVqzgspKfu2Y+fAmXR5xj8OlG1bMLhi8d nEYQ0AmTUoBp2A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfedvjedgvdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomheptehlihhsthgrihhrucfhrhgrnhgtihhsuceorghlihhsthgr ihhrsegrlhhishhtrghirhdvfedrmhgvqeenucggtffrrghtthgvrhhnpeevjeelleejfe dvheeuieetfeejfefhhffffefffefhveetffeuudegudduhedtueenucffohhmrghinhep vghinhhkrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomheprghlihhsthgrihhrsegrlhhishhtrghirhdvfedrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 15 Jun 2021 06:33:38 -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 v2 2/2] drm/panel: Add support for E Ink VB3300-KCA Date: Tue, 15 Jun 2021 20:33:12 +1000 Message-Id: <20210615103312.872-2-alistair@alistair23.me> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210615103312.872-1-alistair@alistair23.me> References: <20210615103312.872-1-alistair@alistair23.me> 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: devicetree@vger.kernel.org, Alistair Francis , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, alistair23@gmail.com 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 Acked-by: Rob Herring --- v2: - Fix build warning - Document new string .../bindings/display/panel/panel-simple.yaml | 2 ++ drivers/gpu/drm/panel/panel-simple.c | 29 +++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml index b3797ba2698b..799e20222551 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml +++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml @@ -128,6 +128,8 @@ properties: # Emerging Display Technology Corp. WVGA TFT Display with capacitive touch - edt,etm0700g0dh6 - edt,etm0700g0edh6 + # E Ink VB3300-KCA + - eink,vb3300-kca # Evervision Electronics Co. Ltd. VGG804821 5.0" WVGA TFT LCD Panel - evervision,vgg804821 # Foxlink Group 5" WVGA TFT LCD panel diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index be312b5c04dd..600e054ec521 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -2004,6 +2004,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 = { + .timings = &eink_vb3300_kca_timing, + .num_timings = 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 }, @@ -4302,6 +4328,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,