Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6683722rwl; Mon, 9 Jan 2023 11:32:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXtU1VKcUkdNOl9mUpt/n1ZrcLSLNJ7oEPfEECJyETEYpH03zykmywzZxAAejOeG5EU0d/Fn X-Received: by 2002:a17:907:7e8a:b0:84c:e89e:bb4c with SMTP id qb10-20020a1709077e8a00b0084ce89ebb4cmr25079626ejc.49.1673292747659; Mon, 09 Jan 2023 11:32:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673292747; cv=none; d=google.com; s=arc-20160816; b=XVg2nXQniG20OScD7C10/3uvWLTfRM4x7g7tCozjN7tizjuA/goVwmO7Ta1V/2PU0M yb/s6jx9uuynb5DBXGcVG9qTKKbms8HVdLwctAUfi7PZ76va9IuGXct1n1VNzuKi9sSy KYkcXmAmmUnQb7RgvU0e69tcv0vd7mTDnWpeO/qVriEE1/8lz0ETEQ+n3QHGpPBP0opX CFgPTllKe7qY2iPkFOa2qCFpAhdQnJgyAldEBJmrkOe+yZ39bGlM/4x7K6K66Jm/Yarl MHt+2W/JDVUyYUhiE61QSK5BHFjHgnxKZzCBPv2KK7e01MubS5hf5fhN2JENNnNt8qRl nb7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:references:cc:to:content-language:subject:reply-to :from:user-agent:mime-version:date:message-id:dkim-signature; bh=V88INHybLWOcfoGbLn4A+qBINhHZaaKXMfDF6E41qmI=; b=HxnPVAi8zt48DjT57DmRQyrGHxZ52aJBJ5C2DzHWB4+72jO9Lu9+8UkRVShtwFNXwL wxJgKV/lq3l+46a4E4pe6Hz4k03nK/FvZluYt5D257yIL+z0jpNoGGyEQmZbc6CZzJvX QEVQYdQ794wyZC1R1RfZgvZxBSA0tndFSjFJSKKTWH1SA9JvpGt2Z4uzU82HqawYTvsv wOltCe3Z/wyLn9zWMFXxi3WY8rOcuHsDbdDHlgyvI07O/vHj2BsRyQtSWzTEBcYbUH1Z xbujFjhayimjQJIlJ1OP7BSCxtXbFojccBv0t3gSDalW+E2jvf50iZDG+2HSiGgEpprQ CS2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Qa4viYsD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xf5-20020a17090731c500b0084d4cd2dcc6si1896401ejb.598.2023.01.09.11.32.13; Mon, 09 Jan 2023 11:32:27 -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=@linaro.org header.s=google header.b=Qa4viYsD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236723AbjAIT11 (ORCPT + 53 others); Mon, 9 Jan 2023 14:27:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237443AbjAIT1C (ORCPT ); Mon, 9 Jan 2023 14:27:02 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37F786E0CA for ; Mon, 9 Jan 2023 11:26:47 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id ay12-20020a05600c1e0c00b003d9ea12bafcso4543445wmb.3 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=KEt6TMBagFh5ec4P2tbykNKU0BlgcnHoGSmpjFwWxcHX7tPny06zsDxX2gIYbRi+y3 dwRYQRQsqV+pNDBRQqPUCaFRltoVTHc57bUogMXaX4+AfraFtDilnJJTi0u3Bwkarxwy jRY+vY+XtDjM2zeaRT+Lf2AUDsoAThRf0zTkerv3JZVATPCVYESDamJyjKME7WYGL/Rf UoV5zwToSkUXANyHNI+qykyq97vgBps0NtQxYiOTpvsFM50q/QaFghSm5RZC5cMdVm+e 6U4G5vmxas8FuUjL5NX0fHY61JXkmZni18TrgDdCNkzG4rHOQvet4c/UVrW9QMuVFZQe A7HQ== X-Gm-Message-State: AFqh2kqq2AK9S0ZTrg+mpL1HBR4kom7R7COrSN1Ic6Giukeg2FJQoefu pHP0yVKhk+CRwb0Tm3KAwIlOww== 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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 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