From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F4A7C67871 for ; Mon, 9 Jan 2023 19:27:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237580AbjAIT1N (ORCPT ); Mon, 9 Jan 2023 14:27:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237412AbjAIT1C (ORCPT ); Mon, 9 Jan 2023 14:27:02 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 334166D535 for ; Mon, 9 Jan 2023 11:26:47 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id l26so7043045wme.5 for ; Mon, 09 Jan 2023 11:26:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:organization:references:cc:to :content-language:subject:reply-to:from:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=V88INHybLWOcfoGbLn4A+qBINhHZaaKXMfDF6E41qmI=; b=Qa4viYsDqc9L/US8S6kC0/lgmxQL0yBZ2jjhzgZ/y/ElvwrT+kjIs+WifPOwRIgNib 7uKnPGxyF4LryoQ5AiJb0tw/qvWFh7xu56KTlhwYq+XMJsYBz5H8G6BfIQB6tlzevkJS G5e6BQaX9W4fonx2QoySNB/I4vL9JBeNYlauNmR9Bfao8KDkvU/W6LUZYViuGFKW5KIZ Ftmz9g0EsMmxn4JElztseYc+oRjE3UV123AS47pOZPUoLN8RlpUe1eSUo+MN+NHaI8/b anCDnR6R0OQEe7tpeQSVr1J/ixzKJtF2meQaNvH9kCnHt/36Bl72LxMlH6nlt66KEz4g z+qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:organization:references:cc:to :content-language:subject:reply-to:from:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=V88INHybLWOcfoGbLn4A+qBINhHZaaKXMfDF6E41qmI=; b=6LoXtjgM4yW9Q/QCcOKQidI+REF4REtTcF1RfPaKlWyhXHYED9QwOjtEHPk8oA3hOM 7eanxZCG85YMKslTnjYYb7mfoivviOy/w1Gl6Jgta2ZYedE+HiCYgl3ibq8rbPhLiDR4 JOsw7njtuqvkzY3IHHyz1ZzYH6WsMtDc0SRxFoshDbpDL+IeBmIlVGsWpMQVRlkxf6Nj vqT5WJj8qFJQ/Fw5rd8PUYw4SE4EqwFKuDOhWoJ0dqhRv/IGatsyrK9RiEnVxXKhG+ZK Xcx5ErItHfM8XpL78uYZyZzA5ty9XU5b3DNNrY4mNGZ2+skz1jmp+/atrJvgKw1NshJZ +VAA== X-Gm-Message-State: AFqh2kro7er5erYWm2lgLS4V3YWP29Ve6IVL1WpkKaezLhq/rr52xNO4 ng5Z6gs8EsurTv48irwdfVhVag== X-Google-Smtp-Source: AMrXdXuj7IaJ7bo6Wto31/hC21pViohHYRKio0J8U/tz3vMk8JE1HISCLwksHOb3O4zeAYjnH2fGng== X-Received: by 2002:a05:600c:3b93:b0:3d2:1bf6:5796 with SMTP id n19-20020a05600c3b9300b003d21bf65796mr47994870wms.35.1673292405717; Mon, 09 Jan 2023 11:26:45 -0800 (PST) Received: from ?IPV6:2a01:e0a:982:cbb0:d3bb:5fe9:fe57:33a2? ([2a01:e0a:982:cbb0:d3bb:5fe9:fe57:33a2]) by smtp.gmail.com with ESMTPSA id i3-20020a1c5403000000b003d35c09d4b9sm16862041wmb.40.2023.01.09.11.26.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 Jan 2023 11:26:45 -0800 (PST) Message-ID: <901422a9-6dfb-34f6-ff37-206b4b658a04@linaro.org> Date: Mon, 9 Jan 2023 20:26:44 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 From: Neil Armstrong Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH v2 2/2] drm/panel: add visionox vtdr6130 DSI panel driver Content-Language: en-US To: Sam Ravnborg 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 References: <20230103-topic-sm8550-upstream-vtdr6130-panel-v2-0-dd6200f47a76@linaro.org> <20230103-topic-sm8550-upstream-vtdr6130-panel-v2-2-dd6200f47a76@linaro.org> Organization: Linaro Developer Services In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 09/01/2023 19:32, Sam Ravnborg wrote: > 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. Indeed I also consider it wrong, I'll sort them while applying, thanks ! > > 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