Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6678684rwl; Mon, 9 Jan 2023 11:28:05 -0800 (PST) X-Google-Smtp-Source: AMrXdXv4gsoAbZyRmyYAyOuLuOJa4zN5MilzNBHU+dCzc8cIjo8kofV/f3O9cJ3TtmDB2H1yD6wn X-Received: by 2002:a17:902:aa0b:b0:189:cb96:1529 with SMTP id be11-20020a170902aa0b00b00189cb961529mr59563730plb.44.1673292485383; Mon, 09 Jan 2023 11:28:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673292485; cv=none; d=google.com; s=arc-20160816; b=KVmA7pBk+MNvKXMW82xDGsmBmDlzQK/c+hCKr0ElnrpAfTHRW0+3kbwzQIfD8iPAaa RIO8teOyTJqvfr/VBByesUccLWjzUqmZ5bQlGWQ5YLQ28UCsh5HDem7inRWKLzVfNr8r Ult5qHkkxMw8KeR8UpWRKQr9DKU3ZZiWu9CtKTQODGuqfeDUMHZzVbFi4nA+DPUn/LZr Rhm2Eygq5sr4h8TJI+rRRb2NON0jaODlOqsuo0nkGJ/0Zk5cprcOUJqCvCY89duoPaKo SkLrKDqdxxNL+VXfnT8jmVWBnCVwRUlc2JOWItzzMWdZoXI0KI8gBZG6j7KfbBBjQdiz yODg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=mPWvticE0M0JuTrvdT3+Lcf1d6K9Pl30AfXmB2vFFyk=; b=lZNO3Zuq40723eU/pIEMBglw4UKXTdszT79jrufJk10CU+zB6fa+kcaNTY3gf4rgPD 4K42wi3yxoCz046ub5a1ro5/OE7xywBMCup6K4Kq+4F96Jem6thd4p9FFJjZgLVU3Nyz 2dzmq920+hFK1EzwUq0RUvZgIosc1GGdyLbQShFWcCwJ9fSBP4+iPDq+J0zUEYFzs+bq X2SqK2rSAaHc1vlMt0WaLn/5HnUJrjkYhcSAzUNOQ/sqOe4u6yr0/j16i4GcDFZhbhuL s1X1QYgd48e2zoLcje0oy0Vaakc+Onuw8rDE8eEJEIWwROu1JeahtB32XUUKeEJc6YKP SshA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ravnborg.org header.s=rsa2 header.b=IHZ+cg0d; dkim=neutral (no key) header.i=@ravnborg.org; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t12-20020a1709028c8c00b001853ad3944dsi8912679plo.480.2023.01.09.11.27.57; Mon, 09 Jan 2023 11:28:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ravnborg.org header.s=rsa2 header.b=IHZ+cg0d; dkim=neutral (no key) header.i=@ravnborg.org; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237706AbjAISe4 (ORCPT + 53 others); Mon, 9 Jan 2023 13:34:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237880AbjAISdx (ORCPT ); Mon, 9 Jan 2023 13:33:53 -0500 Received: from mailrelay6-1.pub.mailoutpod2-cph3.one.com (mailrelay6-1.pub.mailoutpod2-cph3.one.com [IPv6:2a02:2350:5:405::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F416968CBB for ; Mon, 9 Jan 2023 10:32:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ravnborg.org; s=rsa2; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=mPWvticE0M0JuTrvdT3+Lcf1d6K9Pl30AfXmB2vFFyk=; b=IHZ+cg0dvaYu0ZuHdr02LpRlbsuYoKz8ylKsnXWixMTnw1wJ783iMJIgaPWHrfZpDCLcDttyz4JAc F8VJxa4C6bVfI5IbTa4YVmjNTjbh24xeXdj0FJMJvtXsYMPQxUbzomCJeAMvcz6KV3XEBa7F95/bEb Ovu4pyF4rpgO18BdnirxPolHExfWkEQChA0h/q+BEaTO5ekuw26vrOGwDWxXNrdg08Erm4c+42z0DB 4z2ynfhiDBWd+/MXWWbLyWimzOF/Oh8IyiCsVpo9ceXR0YKZ8gqA4BZjoPsmhD0MqEhTPwr42T4XjE atLHq70MK+HOqqqH8GSRvBu9sq/VU5A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ravnborg.org; s=ed2; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=mPWvticE0M0JuTrvdT3+Lcf1d6K9Pl30AfXmB2vFFyk=; b=z/GC4Prmik6Poyxkg7StXqQvQazghU/5fIBVuCsN66pu/y5Npj+h3Af3Lb3pjlLsJJ5kljIlpufBR dpGD9MxCg== X-HalOne-ID: eb1ff800-904b-11ed-8bfe-cde5ad41a1dd Received: from ravnborg.org (2-105-2-98-cable.dk.customer.tdc.net [2.105.2.98]) by mailrelay6 (Halon) with ESMTPSA id eb1ff800-904b-11ed-8bfe-cde5ad41a1dd; Mon, 09 Jan 2023 18:32:08 +0000 (UTC) Date: Mon, 9 Jan 2023 19:32:07 +0100 From: Sam Ravnborg To: Neil Armstrong Cc: Thierry Reding , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Krzysztof Kozlowski Subject: Re: [PATCH v2 2/2] drm/panel: add visionox vtdr6130 DSI panel driver Message-ID: References: <20230103-topic-sm8550-upstream-vtdr6130-panel-v2-0-dd6200f47a76@linaro.org> <20230103-topic-sm8550-upstream-vtdr6130-panel-v2-2-dd6200f47a76@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230103-topic-sm8550-upstream-vtdr6130-panel-v2-2-dd6200f47a76@linaro.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Neil, On Mon, Jan 09, 2023 at 09:49:30AM +0100, Neil Armstrong wrote: > Add support for the 1080x2400 Visionox VTDR6130 AMOLED DSI panel > found on the Qualcomm SM8550 MTP board. > > By default the the panel is configured to work with DSI compressed > streams, but can work in uncompressed video mode since 1080x2400 in > RGB888 fits in the 4 DSI lanes bandwidth. > > While display compression is preferred for performance and power > reasons, let's start with the uncompressed video mode support and > add the DSC support later on. > > Signed-off-by: Neil Armstrong One small nit about sorting include files. At least I consider them wrongly sorted. Up to you if you fix it while applying or you keep it as is. Reviewed-by: Sam Ravnborg Sam > --- > drivers/gpu/drm/panel/Kconfig | 8 + > drivers/gpu/drm/panel/Makefile | 1 + > drivers/gpu/drm/panel/panel-visionox-vtdr6130.c | 358 ++++++++++++++++++++++++ > 3 files changed, 367 insertions(+) > > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig > index 737edcdf9eef..fd1d7e6f536b 100644 > --- a/drivers/gpu/drm/panel/Kconfig > +++ b/drivers/gpu/drm/panel/Kconfig > @@ -717,6 +717,14 @@ config DRM_PANEL_VISIONOX_RM69299 > Say Y here if you want to enable support for Visionox > RM69299 DSI Video Mode panel. > > +config DRM_PANEL_VISIONOX_VTDR6130 > + tristate "Visionox VTDR6130" > + depends on OF > + depends on DRM_MIPI_DSI > + help > + Say Y here if you want to enable support for Visionox > + VTDR6130 1080x2400 AMOLED DSI panel. > + > config DRM_PANEL_WIDECHIPS_WS2401 > tristate "Widechips WS2401 DPI panel driver" > depends on SPI && GPIOLIB > diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile > index f8f9d9f6a307..1966404fcf7a 100644 > --- a/drivers/gpu/drm/panel/Makefile > +++ b/drivers/gpu/drm/panel/Makefile > @@ -73,5 +73,6 @@ obj-$(CONFIG_DRM_PANEL_TPO_TD043MTEA1) += panel-tpo-td043mtea1.o > obj-$(CONFIG_DRM_PANEL_TPO_TPG110) += panel-tpo-tpg110.o > obj-$(CONFIG_DRM_PANEL_TRULY_NT35597_WQXGA) += panel-truly-nt35597.o > obj-$(CONFIG_DRM_PANEL_VISIONOX_RM69299) += panel-visionox-rm69299.o > +obj-$(CONFIG_DRM_PANEL_VISIONOX_VTDR6130) += panel-visionox-vtdr6130.o > obj-$(CONFIG_DRM_PANEL_WIDECHIPS_WS2401) += panel-widechips-ws2401.o > obj-$(CONFIG_DRM_PANEL_XINPENG_XPP055C272) += panel-xinpeng-xpp055c272.o > diff --git a/drivers/gpu/drm/panel/panel-visionox-vtdr6130.c b/drivers/gpu/drm/panel/panel-visionox-vtdr6130.c > new file mode 100644 > index 000000000000..c107c88b22b4 > --- /dev/null > +++ b/drivers/gpu/drm/panel/panel-visionox-vtdr6130.c > @@ -0,0 +1,358 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +// Copyright (c) 2023, Linaro Limited > + > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include > +#include > +#include > +#include Sort - display/, before drm_ > + > +#include