Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2678576rwd; Mon, 22 May 2023 02:34:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5rG1Hib6sAJUEag1VzRF36b3pIayAaSTF5elOs3rtj1/AJ8B0nZjrGOKUyIaZCa1qJwQtM X-Received: by 2002:a17:903:11c9:b0:1ac:63ac:10a7 with SMTP id q9-20020a17090311c900b001ac63ac10a7mr12047533plh.68.1684748042737; Mon, 22 May 2023 02:34:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684748042; cv=none; d=google.com; s=arc-20160816; b=0k/uWtv5OR6kdk5Kg9mTlAjn6Et9Lv3LvvVkTbC+4yMgbCWV2mbC0l8VigDcHYbd08 JdnrykmyyRP3Za1SuGr84IxXSrF2xCZCDwB3sn1ODgL6L7hbp3jy4n0kieR7JOwATjXy jr4mlMo3No1hkBXg/JWetNbdWFmpxL1JIXU6ewlosfak43JErpbJNXELUv3fGufAuck+ KmTleKg7V0ZCIAci7shYFkYn9QAdTGtF8XkN7VWwU7bVw52ScvOH/NXXCC92MB+uXS2M TXn4D96vSGoccYbz3JeETmk2ZVSFHEtyJt75cx6NWpAbXLu7fYFBUn85iNHVDmDhBMrJ xxQA== 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=oNrBhLGU0q6EXXEvxeA8n4i7u2so42tvmqnXg8mjClM=; b=AvrGtVaMBt18dpH17i1vZ7Xx0lQ8BVWz4qygp9FGr0AqbUtWQf7B7w7DvZ8G6EOivF 6ewbvhUhAaS/QnoT3TKOxlGGO5dhbiFGlK80r61mP79YMEKP/a2MATjouTD6IY2DRTf9 Ieqw+r3yVeyc3l3HNCi6BMxu/Q1vtfrY35Jv4KXeiI1JMuEG0wXKhuAG2JOkySNnXVUp WEv+Q2tnNqGO776O731fYqqCsnKbNC75YLtSVGBO4hbOYViDvzwDVwMjojVxbrgL8lsz +7RZ5xk7JB8MLmLBcqeb3o+p0pYy5ZTliLeJSB00WthmgkgGhNakyyd9wI/5xBTeNsaI 3A5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bXJ+RoAo; 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 q15-20020a17090311cf00b001aafe3f409asi4501022plh.205.2023.05.22.02.33.50; Mon, 22 May 2023 02:34:02 -0700 (PDT) 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=bXJ+RoAo; 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 S232535AbjEVJJL (ORCPT + 99 others); Mon, 22 May 2023 05:09:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229647AbjEVJJH (ORCPT ); Mon, 22 May 2023 05:09:07 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A430DAF for ; Mon, 22 May 2023 02:09:05 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3f6042d610fso9600725e9.1 for ; Mon, 22 May 2023 02:09:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684746544; x=1687338544; 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=oNrBhLGU0q6EXXEvxeA8n4i7u2so42tvmqnXg8mjClM=; b=bXJ+RoAofhZNyY8fpLfHYwbra1Inc0VydB7RdUf2RlV01ZFWYSX/ZDa+wecWAALfLO ympOWv2ngQ6r9qYd3HEZpq3y5DxuAyQMcwwAANwtXeMDqXG/kVph58IEFKiFy1rbbYAp bjX5GHaMXASdC4HVSKf3IITN7FoilEUEwsmiX+Gjugb+E/lWq4bd/8y+WV9GhzCkAoIb 0trLx4qZV20jJxILYyedCJWO88XEkAPraW7Jn5yTMfai6pe34HbiY/hYcyVptbvfslSi sYb+/hg6rN/pvsal6cUsjvVjKh5jvUckDjh4G4uF/KpyqyxhiH1OCCCGuBgLhVW1w+UK Rtig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684746544; x=1687338544; 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=oNrBhLGU0q6EXXEvxeA8n4i7u2so42tvmqnXg8mjClM=; b=YPpkXUP7eUFbjs6cX8i2mmLjYFUCArVb9Yk/0TvT9mnZqQ1hlWL948KVywP2i7e8G8 2srHUbEUX1z8fjp9TfhlzvlM3I+jmYAqCtggeCuXxpyBsmwIoalGcbFEvmiM5AOI5KjY rxUBS75tA3AC5PNDFKSJJBTOwG97T6Z7q0lBULFer1/pC+2G059rL3lAtbuxk4EOLOd0 iqNC0t5OIIHFd0g/WKvFRMmCdJC6N86klzQwO6w4stssRbInb2VXC5XNuj2qQdhzadMR Nys/VpDSlKYgoJtnH8Xya4mXcrBPXDCZmtMmfwUS+ibWQj54nrlpFGEKTNMqoSVmzaLg y9KQ== X-Gm-Message-State: AC+VfDxV9bAYq5Q1vbclW9LmJpapRLNRohQoU1wV45c7t9bNr3JHRpB0 Y9ViJquHbfPxoD6l3i/FYc+f5w== X-Received: by 2002:a05:600c:281:b0:3f6:41d:24d2 with SMTP id 1-20020a05600c028100b003f6041d24d2mr1893074wmk.39.1684746544047; Mon, 22 May 2023 02:09:04 -0700 (PDT) Received: from [192.168.27.65] (home.beaume.starnux.net. [82.66.176.246]) by smtp.gmail.com with ESMTPSA id m13-20020a7bca4d000000b003f4dde07956sm10884572wml.42.2023.05.22.02.09.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 May 2023 02:09:03 -0700 (PDT) Message-ID: Date: Mon, 22 May 2023 11:09:02 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 From: Neil Armstrong Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH 2/2] drm/panel: Add driver for Visionox r66451 panel Content-Language: en-US To: Jessica Zhang , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski Cc: Abhinav Kumar , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230516-b4-r66451-panel-driver-v1-0-4210bcbb1649@quicinc.com> <20230516-b4-r66451-panel-driver-v1-2-4210bcbb1649@quicinc.com> Organization: Linaro Developer Services In-Reply-To: <20230516-b4-r66451-panel-driver-v1-2-4210bcbb1649@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 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,T_SCC_BODY_TEXT_LINE 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 16/05/2023 22:20, Jessica Zhang wrote: > Add support for the 1080x2340 Visionox R66451 AMOLED DSI panel that > comes with the Qualcomm HDK8350 display expansion pack. > > The panel enables display compression (DSC v1.2) by default. > > Signed-off-by: Jessica Zhang > --- > drivers/gpu/drm/panel/Kconfig | 8 + > drivers/gpu/drm/panel/Makefile | 1 + > drivers/gpu/drm/panel/panel-visionox-r66451.c | 395 ++++++++++++++++++++++++++ > 3 files changed, 404 insertions(+) > > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig > index 29cf5fa39ff2..9c2c36dbddf3 100644 > --- a/drivers/gpu/drm/panel/Kconfig > +++ b/drivers/gpu/drm/panel/Kconfig > @@ -766,6 +766,14 @@ config DRM_PANEL_VISIONOX_VTDR6130 > Say Y here if you want to enable support for Visionox > VTDR6130 1080x2400 AMOLED DSI panel. > > +config DRM_PANEL_VISIONOX_R66451 > + tristate "Visionox R66451" > + depends on OF > + depends on DRM_MIPI_DSI You may also want + depends on BACKLIGHT_CLASS_DEVICE > + help > + Say Y here if you want to enable support for Visionox > + R66451 1080x2340 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 b3e8ba29edd3..e043a92ee676 100644 > --- a/drivers/gpu/drm/panel/Makefile > +++ b/drivers/gpu/drm/panel/Makefile > @@ -78,5 +78,6 @@ 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_VISIONOX_R66451) += panel-visionox-r66451.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-r66451.c b/drivers/gpu/drm/panel/panel-visionox-r66451.c > new file mode 100644 > index 000000000000..e3648ead3e84 > --- /dev/null > +++ b/drivers/gpu/drm/panel/panel-visionox-r66451.c > @@ -0,0 +1,395 @@ > +//SPDX-License-Identifier: GPL-2.0-only > +//Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. > + > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include > +#include > +#include > +#include > +#include > + > +#include